Class RepositoryGovernanceClient
java.lang.Object
org.odpi.openmetadata.engineservices.repositorygovernance.client.RepositoryGovernanceClient
- All Implemented Interfaces:
RepositoryGovernanceAPI
RepositoryGovernanceClient is a client-side library for calling a specific archive engine with an engine host server.
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryGovernanceClient(String serverPlatformRootURL, String serverName, String localServerSecretsStoreProvider, String localServerSecretsStoreLocation, String localServerSecretsStoreCollection, String repositoryGovernanceEngineName) Create a client-side object for calling a archive engine. -
Method Summary
Modifier and TypeMethodDescriptionvalidateConnector(String connectorProviderClassName) Validate the connector and return its connector type.
-
Constructor Details
-
RepositoryGovernanceClient
public RepositoryGovernanceClient(String serverPlatformRootURL, String serverName, String localServerSecretsStoreProvider, String localServerSecretsStoreLocation, String localServerSecretsStoreCollection, String repositoryGovernanceEngineName) throws InvalidParameterException Create a client-side object for calling a archive engine.- Parameters:
serverPlatformRootURL- the root url of the platform where the archive engine is running.serverName- the name of the engine host server where the archive engine is runninglocalServerSecretsStoreProvider- secrets store connector for bearer tokenlocalServerSecretsStoreLocation- secrets store location for bearer tokenlocalServerSecretsStoreCollection- secrets store collection for bearer tokenrepositoryGovernanceEngineName- the unique name of the archive engine.- Throws:
InvalidParameterException- one of the parameters is null or invalid.
-
-
Method Details
-
validateConnector
public ConnectorReport validateConnector(String connectorProviderClassName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Validate the connector and return its connector type.- Specified by:
validateConnectorin interfaceRepositoryGovernanceAPI- Parameters:
connectorProviderClassName- name of a specific connector or null for all connectors- Returns:
- connector report 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
-