Class EngineHostServicesResource
java.lang.Object
org.odpi.openmetadata.engineservices.assetanalysis.server.spring.EngineHostServicesResource
@RestController
@RequestMapping("/servers/{serverName}/open-metadata/engine-host")
public class EngineHostServicesResource
extends Object
EngineHostServicesResource provides the server-side catcher for REST calls using Spring.
The OMAG ServerPlatform routes these requests to the engine host services active in the server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGovernanceEngineSummaries(String serverName) Return a summary of each of the governance engines running in the Engine Host.getGovernanceEngineSummary(String serverName, String governanceEngineName) Retrieve the description and status of the requested governance engine.refreshConfig(String serverName) Request that all governance engines refresh their configuration by calling the metadata server.refreshConfig(String serverName, String governanceEngineName) Request that the governance engine refresh its configuration by calling the metadata server.
-
Constructor Details
-
EngineHostServicesResource
public EngineHostServicesResource()
-
-
Method Details
-
getGovernanceEngineSummary
@GetMapping(path="/governance-engines/{governanceEngineName}/summary") public GovernanceEngineSummaryResponse getGovernanceEngineSummary(@PathVariable String serverName, @PathVariable String governanceEngineName) Retrieve the description and status of the requested governance engine.- Parameters:
serverName- engine host server namegovernanceEngineName- name of governance engine of interest- 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
-
getGovernanceEngineSummaries
@GetMapping(path="/governance-engines/summary") public GovernanceEngineSummariesResponse getGovernanceEngineSummaries(@PathVariable String serverName) Return a summary of each of the governance engines running in the Engine Host.- 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
-
refreshConfig
@GetMapping(path="/governance-engines/{governanceEngineName}/refresh-config") public VoidResponse refreshConfig(@PathVariable String serverName, @PathVariable 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 servergovernanceEngineName- 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
@GetMapping(path="/governance-engines/refresh-config") public VoidResponse refreshConfig(@PathVariable 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.
-