java.lang.Object
org.odpi.openmetadata.governanceservers.enginehostservices.admin.EngineServiceAdmin
Direct Known Subclasses:
GovernanceActionAdmin, RepositoryGovernanceAdmin, SurveyActionAdmin, WatchdogActionAdmin

public abstract class EngineServiceAdmin extends Object
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 Details

  • 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 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
      maxPageSize - maximum number of records that can be requested on the pageSize parameter
      engineServiceDefinition - 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