Class EngineServiceAdmin
java.lang.Object
org.odpi.openmetadata.governanceservers.enginehostservices.admin.EngineServiceAdmin
- Direct Known Subclasses:
GovernanceActionAdmin
,RepositoryGovernanceAdmin
,SurveyActionAdmin
EngineServiceAdmin is the interface that an engine service implements to receive its configuration.
The java class that implements this interface is created with a default constructor and then
the initialize method is called.
-
Field Summary
Modifier and TypeFieldDescriptionprotected AuditLog
protected InvalidParameterHandler
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getPartnerServiceRootURL
(EngineServiceConfig engineServicesConfig) Return the open metadata server's root URL from the configuration.protected String
getPartnerServiceServerName
(EngineServiceConfig engineServiceConfig) Return the open metadata server's name from the configuration.abstract void
initialize
(String localServerId, String localServerName, AuditLog auditLog, String localServerUserId, String localServerPassword, int maxPageSize, GovernanceConfigurationClient configurationClient, EngineServiceConfig engineServiceConfig, GovernanceEngineMap governanceEngineMap) Initialize engine service.abstract void
shutdown()
Shutdown the engine service.protected void
validateConfigDocument
(EngineServiceConfig engineServiceConfig) Validate the content of the configuration.
-
Field Details
-
localServerName
-
auditLog
-
invalidParameterHandler
-
-
Constructor Details
-
EngineServiceAdmin
public EngineServiceAdmin()
-
-
Method Details
-
initialize
public abstract void initialize(String localServerId, String localServerName, AuditLog auditLog, String localServerUserId, String localServerPassword, int maxPageSize, GovernanceConfigurationClient configurationClient, EngineServiceConfig engineServiceConfig, GovernanceEngineMap governanceEngineMap) throws OMAGConfigurationErrorException Initialize engine service.- Parameters:
localServerId
- unique identifier of this serverlocalServerName
- name of this serverauditLog
- link to the repository responsible for servicing the REST callslocalServerUserId
- user id for this server to use if sending REST requests and processing inbound messageslocalServerPassword
- password for this server to use if sending REST requestsmaxPageSize
- maximum number of records that can be requested on the pageSize parameterconfigurationClient
- client used to connect to the Governance Engine OMAS to retrieve the governance engine definitionsengineServiceConfig
- details of the options and the engines to rungovernanceEngineMap
- map of configured engines- Throws:
OMAGConfigurationErrorException
- an issue in the configuration prevented initialization
-
shutdown
public abstract void shutdown()Shutdown the engine service. -
getPartnerServiceRootURL
protected String getPartnerServiceRootURL(EngineServiceConfig engineServicesConfig) throws OMAGConfigurationErrorException Return the open metadata server's root URL from the configuration.- Parameters:
engineServicesConfig
- configuration- Returns:
- root URL
- Throws:
OMAGConfigurationErrorException
- No root URL present in the config
-
validateConfigDocument
protected void validateConfigDocument(EngineServiceConfig engineServiceConfig) throws InvalidParameterException Validate the content of the configuration.- Parameters:
engineServiceConfig
- configuration- Throws:
InvalidParameterException
- Missing content from the config
-
getPartnerServiceServerName
protected String getPartnerServiceServerName(EngineServiceConfig engineServiceConfig) throws OMAGConfigurationErrorException Return the open metadata server's name from the configuration.- Parameters:
engineServiceConfig
- configuration- Returns:
- server name
- Throws:
OMAGConfigurationErrorException
- No server name present in the config
-