Class EngineHostRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.governanceservers.enginehostservices.server.EngineHostRESTServices
EngineHostRESTServices provides the external service implementation for aan engine host.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGovernanceEngineSummaries(String serverName, String delegatingUserId) Return a summary of each of the governance engines' status for all running engine services.getGovernanceEngineSummary(String serverName, String delegatingUserId, String governanceEngineName) Return a summary of the requested engine's status.refreshConfig(String serverName, String delegatingUserId) Request that all governance engines refresh their configuration by calling the metadata server.refreshConfig(String serverName, String delegatingUserId, String governanceEngineName) Request that the governance engine refresh its configuration by calling the metadata server.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
Constructor Details
-
EngineHostRESTServices
public EngineHostRESTServices()
-
-
Method Details
-
refreshConfig
public VoidResponse refreshConfig(String serverName, String delegatingUserId, 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.delegatingUserId- external userId making requestgovernanceEngineName- 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
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.delegatingUserId- external userId making request- 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 delegatingUserId, String governanceEngineName) Return a summary of the requested engine's status.- Parameters:
serverName- name of the server tied to the requestdelegatingUserId- external userId making requestgovernanceEngineName- 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, String delegatingUserId) Return a summary of each of the governance engines' status for all running engine services.- Parameters:
serverName- engine host server namedelegatingUserId- external userId making request- 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
-