Class IntegrationDaemonConfigurationClient
java.lang.Object
org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
org.odpi.openmetadata.adminservices.client.GovernanceServerConfigurationClient
org.odpi.openmetadata.adminservices.client.IntegrationDaemonConfigurationClient
IntegrationDaemonConfigurationClient provides the configuration services for integration daemons.
This involves creating a list of integration services and/or integration groups.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
invalidParameterHandler, nullRequestBody, restClient, serverName, serverPlatformRootURL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisable the integration groups.voidclearIntegrationGroup(String groupQualifiedName) Remove an integration group.voidconfigureIntegrationGroup(IntegrationGroupConfig groupConfig) Add configuration for a single integration group to the server's config document.Return the configuration for the integration groups in this server.voidsetIntegrationGroupsConfig(List<IntegrationGroupConfig> integrationGroupConfigs) Set up the configuration for all the open metadata integration groups.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
-
IntegrationDaemonConfigurationClient
public IntegrationDaemonConfigurationClient(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
-
getIntegrationGroupsConfiguration
public List<IntegrationGroupConfig> getIntegrationGroupsConfiguration() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionReturn the configuration for the integration groups in this server.- Returns:
- list of integration group configuration
- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureIntegrationGroup
public void configureIntegrationGroup(IntegrationGroupConfig groupConfig) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Add configuration for a single integration group to the server's config document.- Parameters:
groupConfig- all values to configure an integration group- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
setIntegrationGroupsConfig
public void setIntegrationGroupsConfig(List<IntegrationGroupConfig> integrationGroupConfigs) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Set up the configuration for all the open metadata integration groups. This overrides the current values.- Parameters:
integrationGroupConfigs- list of configuration properties for each integration group.- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
clearAllIntegrationGroups
public void clearAllIntegrationGroups() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionDisable the integration groups. This removes all configuration for the integration groups from the integration daemon.- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
clearIntegrationGroup
public void clearIntegrationGroup(String groupQualifiedName) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Remove an integration group. This removes all configuration for the integration group.- Parameters:
groupQualifiedName- integration group name used in URL- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-