Class ArchiveManagerClient
- java.lang.Object
-
- org.odpi.openmetadata.engineservices.archivemanager.client.ArchiveManagerClient
-
- All Implemented Interfaces:
ArchiveManagerAPI
public class ArchiveManagerClient extends Object implements ArchiveManagerAPI
ArchiveManagerClient is a client-side library for calling a specific archive engine with an engine host server.
-
-
Constructor Summary
Constructors Constructor Description ArchiveManagerClient(String serverPlatformRootURL, String serverName, String archiveEngineName)Create a client-side object for calling a archive engine.ArchiveManagerClient(String serverPlatformRootURL, String serverName, String archiveEngineName, String userId, String password)Create a client-side object for calling a archive engine.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectorTypevalidateConnector(String userId, String connectorProviderClassName)Validate the connector and return its connector type.
-
-
-
Constructor Detail
-
ArchiveManagerClient
public ArchiveManagerClient(String serverPlatformRootURL, String serverName, String archiveEngineName) 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 runningarchiveEngineName- the unique name of the archive engine.- Throws:
InvalidParameterException- one of the parameters is null or invalid.
-
ArchiveManagerClient
public ArchiveManagerClient(String serverPlatformRootURL, String serverName, String archiveEngineName, String userId, String password) 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 runningarchiveEngineName- the unique name of the archive engine.userId- user id for the HTTP requestpassword- password for the HTTP request- Throws:
InvalidParameterException- one of the parameters is null or invalid.
-
-
Method Detail
-
validateConnector
public ConnectorType validateConnector(String userId, String connectorProviderClassName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Validate the connector and return its connector type.- Specified by:
validateConnectorin interfaceArchiveManagerAPI- Parameters:
userId- calling userconnectorProviderClassName- name of a specific connector or null for all connectors- Returns:
- connector type 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
-
-