Class EngineServiceAdmin
java.lang.Object
org.odpi.openmetadata.governanceservers.enginehostservices.admin.EngineServiceAdmin
- Direct Known Subclasses:
- GovernanceActionAdmin,- RepositoryGovernanceAdmin,- SurveyActionAdmin,- WatchdogActionAdmin
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 SummaryFieldsModifier and TypeFieldDescriptionprotected AuditLogprotected InvalidParameterHandlerprotected String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetPartnerServiceRootURL(EngineServiceConfig engineServicesConfig) Return the open metadata server's root URL from the configuration.protected StringgetPartnerServiceServerName(EngineServiceConfig engineServiceConfig) Return the open metadata server's name from the configuration.abstract voidinitialize(String localServerId, String localServerName, AuditLog auditLog, String localServerUserId, String localServerPassword, int maxPageSize, GovernanceConfigurationClient configurationClient, EngineServiceConfig engineServiceConfig, GovernanceEngineMap governanceEngineMap) Initialize engine service.abstract voidshutdown()Shutdown the engine service.protected voidvalidateConfigDocument(EngineServiceConfig engineServiceConfig) Validate the content of the configuration.
- 
Field Details- 
localServerName
- 
auditLog
- 
invalidParameterHandler
 
- 
- 
Constructor Details- 
EngineServiceAdminpublic EngineServiceAdmin()
 
- 
- 
Method Details- 
initializepublic 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 server
- localServerName- name of this server
- auditLog- link to the repository responsible for servicing the REST calls
- localServerUserId- user id for this server to use if sending REST requests and processing inbound messages
- localServerPassword- password for this server to use if sending REST requests
- maxPageSize- maximum number of records that can be requested on the pageSize parameter
- configurationClient- client used to connect to the Governance Engine OMAS to retrieve the governance engine definitions
- engineServiceConfig- details of the options and the engines to run
- governanceEngineMap- map of configured engines
- Throws:
- OMAGConfigurationErrorException- an issue in the configuration prevented initialization
 
- 
shutdownpublic abstract void shutdown()Shutdown the engine service.
- 
getPartnerServiceRootURLprotected 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
 
- 
validateConfigDocumentprotected void validateConfigDocument(EngineServiceConfig engineServiceConfig) throws InvalidParameterException Validate the content of the configuration.- Parameters:
- engineServiceConfig- configuration
- Throws:
- InvalidParameterException- Missing content from the config
 
- 
getPartnerServiceServerNameprotected 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
 
 
-