java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.governanceservers.enginehostservices.server.EngineHostRESTServices

public class EngineHostRESTServices extends TokenController
EngineHostRESTServices provides the external service implementation for aan engine host.
  • Constructor Details

    • EngineHostRESTServices

      public EngineHostRESTServices()
  • Method Details

    • refreshConfig

      public VoidResponse refreshConfig(String serverName, String governanceEngineName)
      Request that the governance engine refresh its configuration by calling the metadata server. This request is useful if the metadata server has an outage, particularly while the governance server is initializing. This request just ensures that the latest configuration is in use.
      Parameters:
      serverName - name of the governance server.
      governanceEngineName - unique name of the governance engine.
      Returns:
      void or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or GovernanceEngineException there was a problem detected by the governance engine.
    • refreshConfig

      public VoidResponse refreshConfig(String serverName)
      Request that all governance engines refresh their configuration by calling the metadata server. This request is useful if the metadata server has an outage, particularly while the governance server is initializing. This request just ensures that the latest configuration is in use.
      Parameters:
      serverName - name of the governance server.
      Returns:
      void or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or GovernanceEngineException there was a problem detected by the governance engine.
    • getGovernanceEngineSummary

      public GovernanceEngineSummaryResponse getGovernanceEngineSummary(String serverName, String governanceEngineName)
      Return a summary of the requested engine's status.
      Parameters:
      serverName - name of the server tied to the request
      governanceEngineName - qualifiedName of the requested governance engine
      Returns:
      list of governance engine summaries or InvalidParameterException no available instance for the requested server UserNotAuthorizedException user does not have access to the requested server PropertyServerException the service name is not known - indicating a logic error
    • getGovernanceEngineSummaries

      public GovernanceEngineSummariesResponse getGovernanceEngineSummaries(String serverName)
      Return a summary of each of the governance engines' status for all running engine services.
      Parameters:
      serverName - engine host server name
      Returns:
      list of statuses - on for each assigned governance engines or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or