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 Summary
FieldsModifier and TypeFieldDescriptionprotected AuditLogprotected InvalidParameterHandlerprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidinitialize(String localServerName, AuditLog auditLog, String localServerUserId, int maxPageSize, EngineServiceDefinition engineServiceDefinition) Initialize engine service.abstract voidshutdown()Shutdown the engine service.protected voidvalidateEngineDefinition(EngineServiceDefinition engineServiceDefinition) Validate the content of the configuration.
-
Field Details
-
localServerName
-
auditLog
-
invalidParameterHandler
-
-
Constructor Details
-
EngineServiceAdmin
public EngineServiceAdmin()
-
-
Method Details
-
initialize
public abstract void initialize(String localServerName, AuditLog auditLog, String localServerUserId, int maxPageSize, EngineServiceDefinition engineServiceDefinition) throws OMAGConfigurationErrorException Initialize engine service.- Parameters:
localServerName- 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 messagesmaxPageSize- maximum number of records that can be requested on the pageSize parameterengineServiceDefinition- details of the options and the engines to run- Throws:
OMAGConfigurationErrorException- an issue in the configuration prevented initialization
-
shutdown
public abstract void shutdown()Shutdown the engine service. -
validateEngineDefinition
protected void validateEngineDefinition(EngineServiceDefinition engineServiceDefinition) throws InvalidParameterException Validate the content of the configuration.- Parameters:
engineServiceDefinition- configuration- Throws:
InvalidParameterException- Missing content from the config
-