Class EngineHostConfigurationClient
java.lang.Object
org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
org.odpi.openmetadata.adminservices.client.GovernanceServerConfigurationClient
org.odpi.openmetadata.adminservices.client.EngineHostConfigurationClient
EngineHostConfigurationClient provides the configuration services for Engine Host OMAG Servers.
This involves creating a list of engine services.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
invalidParameterHandler, nullRequestBody, restClient, serverName, serverPlatformRootURL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the configuration for the engine host services.Return the configuration for the complete engine host services in this server.Return the list of engine services for this server.voidsetEngineHostServicesConfig(List<EngineConfig> engineHostServicesConfig) Set up the configuration for the Engine Host Services in an Engine Host OMAG Server in a single call.Methods inherited from class org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
addAuditLogDestination, addConsoleAuditLogDestination, addEventTopicAuditLogDestination, addEventTopicAuditLogDestination, addFileAuditLogDestination, addFileAuditLogDestination, addJDBCAuditLogDestination, addSLF4JAuditLogDestination, clearAuditLogDestination, clearAuditLogDestinations, clearOMAGServerConfig, clearServerSecurityConnection, deployOMAGServerConfig, getBasicServerProperties, getOMAGServerConfig, getOMAGServerInstanceConfig, getServerSecurityConnection, getServerTypeClassification, setAuditLogDestinations, setBasicServerProperties, setDefaultAuditLog, setEventBus, setMaxPageSize, setOMAGServerConfig, setOrganizationName, setServerDescription, setServerSecurityConnection, setServerType, setServerURLRoot, setServerUserId, updateAuditLogDestination
-
Constructor Details
-
EngineHostConfigurationClient
public EngineHostConfigurationClient(String serverName, String serverPlatformRootURL, String secretStoreProvider, String secretStoreLocation, String secretStoreCollection, AuditLog auditLog) throws InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformRootURL- the network address of the server running the admin servicessecretStoreProvider- class name of the secrets storesecretStoreLocation- location (networkAddress) of the secrets storesecretStoreCollection- name of the collection of secrets to use to connect to the remote serverauditLog- destination for log messages.- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
getRegisteredEngineServices
public List<RegisteredOMAGService> getRegisteredEngineServices() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionReturn the list of engine services for this server.- Returns:
- list of engine service descriptions
- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
getEngineHostServicesConfiguration
public List<EngineConfig> getEngineHostServicesConfiguration() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionReturn the configuration for the complete engine host services in this server.- Returns:
- response containing the engine host services configuration
- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
setEngineHostServicesConfig
public void setEngineHostServicesConfig(List<EngineConfig> engineHostServicesConfig) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Set up the configuration for the Engine Host Services in an Engine Host OMAG Server in a single call. This overrides the current values.- Parameters:
engineHostServicesConfig- governance engine definition client config and list of configuration properties for each engine service.- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
clearEngineHostServices
public void clearEngineHostServices() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionClear the configuration for the engine host services.- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-