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
ConstructorDescriptionGovernanceActionEngineClient
(String serverPlatformRootURL, String serverName) Create a client-side object for calling a governance action engine.GovernanceActionEngineClient
(String serverPlatformRootURL, String serverName, String userId, String password) Create a client-side object for calling a governance action engine. -
Method Summary
Modifier and TypeMethodDescriptionvalidateConnector
(String userId, String connectorProviderClassName) Validate the connector and return its connector type.
-
Constructor Details
-
GovernanceActionEngineClient
public GovernanceActionEngineClient(String serverPlatformRootURL, String serverName) 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 running- Throws:
InvalidParameterException
- one of the parameters is null or invalid.
-
GovernanceActionEngineClient
public GovernanceActionEngineClient(String serverPlatformRootURL, String serverName, String userId, String password) 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 runninguserId
- user id for the HTTP requestpassword
- password for the HTTP request- Throws:
InvalidParameterException
- one of the parameters is null or invalid.
-
-
Method Details
-
validateConnector
public ConnectorReport validateConnector(String userId, String connectorProviderClassName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Validate the connector and return its connector type.- Specified by:
validateConnector
in interfaceGovernanceActionAPI
- Parameters:
userId
- calling userconnectorProviderClassName
- 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
-