Class MetadataSourceClient
java.lang.Object
org.odpi.openmetadata.accessservices.datamanager.client.DataManagerBaseClient
org.odpi.openmetadata.accessservices.datamanager.client.MetadataSourceClient
- All Implemented Interfaces:
MetadataSourceInterface
MetadataSourceClient is the client for setting up the SoftwareServerCapabilities that represent metadata sources.
-
Constructor Summary
ConstructorDescriptionMetadataSourceClient
(String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request.MetadataSourceClient
(String serverName, String serverPlatformURLRoot, String userId, String password) Create a new client that passes userId and password in each HTTP request.MetadataSourceClient
(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) Create a new client that passes userId and password in each HTTP request.MetadataSourceClient
(String serverName, String serverPlatformURLRoot, DataManagerRESTClient restClient, int maxPageSize) Create a new client that is to be used within an OMAG Server.MetadataSourceClient
(String serverName, String serverPlatformURLRoot, AuditLog auditLog) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptioncreateAPIManager
(String userId, String externalSourceGUID, String externalSourceName, APIManagerProperties apiManagerProperties) Create information about the component that manages APIs.createApplication
(String userId, String externalSourceGUID, String externalSourceName, ApplicationProperties applicationProperties) Create information about an application.createDatabaseManager
(String userId, String externalSourceGUID, String externalSourceName, DatabaseManagerProperties databaseManagerProperties) Create information about the integration daemon that is managing the acquisition of metadata from the data manager.createDataProcessingEngine
(String userId, String externalSourceGUID, String externalSourceName, DataProcessingEngineProperties engineProperties) Create information about a data processing engine - set up typeName in the properties to create subtypes such as ReportingEngine, WorkflowEngine, AnalyticsEngine, DataMovementEngine or DataVirtualizationEngine.createEventBroker
(String userId, String externalSourceGUID, String externalSourceName, EventBrokerProperties eventBrokerProperties) Create information about the integration daemon that is managing the acquisition of metadata from the data manager.createFileManager
(String userId, String externalSourceGUID, String externalSourceName, FileManagerProperties fileManagerProperties) Create information about an application that manages a collection of data files.createFileSystem
(String userId, String externalSourceGUID, String externalSourceName, FileSystemProperties fileSystemProperties) Create information about a File System that is being used to store data files.getMetadataSourceGUID
(String userId, String qualifiedName) Retrieve the unique identifier of the data manager.Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.client.DataManagerBaseClient
removeReferenceable
-
Constructor Details
-
MetadataSourceClient
public MetadataSourceClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesauditLog
- logging destination- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
MetadataSourceClient
public MetadataSourceClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST services- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
MetadataSourceClient
public MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesuserId
- caller's userId embedded in all HTTP requestspassword
- caller's userId embedded in all HTTP requestsauditLog
- logging destination- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
MetadataSourceClient
public MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesuserId
- caller's userId embedded in all HTTP requestspassword
- caller's userId embedded in all HTTP requests- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
MetadataSourceClient
public MetadataSourceClient(String serverName, String serverPlatformURLRoot, DataManagerRESTClient restClient, int maxPageSize) throws InvalidParameterException Create a new client that is to be used within an OMAG Server.- Parameters:
serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesrestClient
- pre-initialized REST clientmaxPageSize
- pre-initialized parameter limit- Throws:
InvalidParameterException
- there is a problem with the information about the remote OMAS
-
-
Method Details
-
createAPIManager
public String createAPIManager(String userId, String externalSourceGUID, String externalSourceName, APIManagerProperties apiManagerProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create information about the component that manages APIs.- Specified by:
createAPIManager
in interfaceMetadataSourceInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceapiManagerProperties
- description of the API manager (specify qualified name at a minimum)- Returns:
- unique identifier of the API manager's software server capability
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createDatabaseManager
public String createDatabaseManager(String userId, String externalSourceGUID, String externalSourceName, DatabaseManagerProperties databaseManagerProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create information about the integration daemon that is managing the acquisition of metadata from the data manager. Typically, this is Egeria's data manager integrator OMIS.- Specified by:
createDatabaseManager
in interfaceMetadataSourceInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcedatabaseManagerProperties
- description of the integration daemon (specify qualified name at a minimum)- Returns:
- unique identifier of the integration daemon's software server capability
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createEventBroker
public String createEventBroker(String userId, String externalSourceGUID, String externalSourceName, EventBrokerProperties eventBrokerProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create information about the integration daemon that is managing the acquisition of metadata from the data manager. Typically, this is Egeria's data manager proxy.- Specified by:
createEventBroker
in interfaceMetadataSourceInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceeventBrokerProperties
- description of the event broker (specify qualified name at a minimum)- Returns:
- unique identifier of the event broker's software server capability
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createFileSystem
public String createFileSystem(String userId, String externalSourceGUID, String externalSourceName, FileSystemProperties fileSystemProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create information about a File System that is being used to store data files.- Specified by:
createFileSystem
in interfaceMetadataSourceInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcefileSystemProperties
- description of the file system- Returns:
- unique identifier of the file system's software server capability
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createFileManager
public String createFileManager(String userId, String externalSourceGUID, String externalSourceName, FileManagerProperties fileManagerProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create information about an application that manages a collection of data files.- Specified by:
createFileManager
in interfaceMetadataSourceInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourcefileManagerProperties
- description of the- Returns:
- unique identifier of the file manager's software server capability
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createApplication
public String createApplication(String userId, String externalSourceGUID, String externalSourceName, ApplicationProperties applicationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create information about an application.- Specified by:
createApplication
in interfaceMetadataSourceInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceapplicationProperties
- description of the application (specify qualified name at a minimum)- Returns:
- unique identifier of the application's software server capability
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createDataProcessingEngine
public String createDataProcessingEngine(String userId, String externalSourceGUID, String externalSourceName, DataProcessingEngineProperties engineProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create information about a data processing engine - set up typeName in the properties to create subtypes such as ReportingEngine, WorkflowEngine, AnalyticsEngine, DataMovementEngine or DataVirtualizationEngine.- Specified by:
createDataProcessingEngine
in interfaceMetadataSourceInterface
- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software server capability entity that represented the external source - null for localexternalSourceName
- name of the software server capability entity that represented the external sourceengineProperties
- description of the engine (specify qualified name at a minimum)- Returns:
- unique identifier of the engine's software server capability
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
getMetadataSourceGUID
public String getMetadataSourceGUID(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the unique identifier of the data manager.- Specified by:
getMetadataSourceGUID
in interfaceMetadataSourceInterface
- Parameters:
userId
- calling userqualifiedName
- unique name of the integration daemon- Returns:
- unique identifier of the data manager's software server capability
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-