Class GovernanceActionEngineClient
java.lang.Object
org.odpi.openmetadata.engineservices.governanceaction.client.GovernanceActionEngineClient
- All Implemented Interfaces:
GovernanceActionAPI
GovernanceActionEngineClient is a client-side library for calling a specific governance action OMES within an engine host server.
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceActionEngineClient(String serverPlatformRootURL, String serverName, String localServerSecretsStoreProvider, String localServerSecretsStoreLocation, String localServerSecretsStoreCollection, String delegatingUserId, AuditLog auditLog) Create a client-side object for calling a governance action engine.GovernanceActionEngineClient(String serverPlatformRootURL, String serverName, Map<String, SecretsStoreConnector> secretsStoreConnectorMap, String delegatingUserId, AuditLog auditLog) Create a new client with bearer token from supplied secrets store. -
Method Summary
Modifier and TypeMethodDescriptionvalidateConnector(String connectorProviderClassName) Validate the connector and return its connector type.
-
Constructor Details
-
GovernanceActionEngineClient
public GovernanceActionEngineClient(String serverPlatformRootURL, String serverName, String localServerSecretsStoreProvider, String localServerSecretsStoreLocation, String localServerSecretsStoreCollection, String delegatingUserId, AuditLog auditLog) throws InvalidParameterException Create a client-side object for calling a governance action engine.- Parameters:
serverPlatformRootURL- the root url of the platform where the governance action engine is running.serverName- the name of the engine host server where the governance action engine is runninglocalServerSecretsStoreProvider- class name of the secrets storelocalServerSecretsStoreLocation- location (networkAddress) of the secrets storelocalServerSecretsStoreCollection- name of the collection of secrets to use to connect to the remote serverdelegatingUserId- external userId making requestauditLog- destination for log messages.- Throws:
InvalidParameterException- one of the parameters is null or invalid.
-
GovernanceActionEngineClient
public GovernanceActionEngineClient(String serverPlatformRootURL, String serverName, Map<String, SecretsStoreConnector> secretsStoreConnectorMap, String delegatingUserId, AuditLog auditLog) throws InvalidParameterExceptionCreate a new client with bearer token from supplied secrets store.- Parameters:
serverPlatformRootURL- the root url of the platform where the governance action engine is running.serverName- the name of the engine host server where the governance action engine is runningsecretsStoreConnectorMap- connectors to secrets storesdelegatingUserId- external userId making requestauditLog- destination for log messages.- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
validateConnector
public ConnectorReport validateConnector(String connectorProviderClassName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Validate the connector and return its connector type.- Specified by:
validateConnectorin interfaceGovernanceActionAPI- Parameters:
connectorProviderClassName- name of a specific connector or null for all connectors- Returns:
- connector type and other capabilities for this connector
- Throws:
InvalidParameterException- the connector provider class name is not a valid connector fo this serviceUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- there was a problem detected by the integration service
-