Class IntegrationContextManager
java.lang.Object
org.odpi.openmetadata.frameworks.integration.contextmanager.IntegrationContextManager
IntegrationContextManager is the base class for the context manager that is implemented by each integration service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.odpi.openmetadata.frameworks.auditlog.AuditLogprotected Stringprotected Stringprotected intprotected OpenIntegrationClientprotected org.odpi.openmetadata.frameworks.governanceaction.client.OpenMetadataClientprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSuggestion for subclass to create client(s) to partner OMAS.voidinitializeContextManager(String partnerOMASServerName, String partnerOMASPlatformRootURL, String userId, String password, Map<String, Object> serviceOptions, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Initialize server properties for the context manager.setContext(String connectorId, String connectorName, String connectorUserId, IntegrationConnector integrationConnector, String integrationConnectorGUID, PermittedSynchronization permittedSynchronization, boolean generateIntegrationReport, String metadataSourceQualifiedName) Set up the context in the supplied connector.protected StringsetUpMetadataSource(String metadataSourceQualifiedName, String typeName, String classificationName) Retrieve the metadata source's unique identifier (GUID) or if it is not defined, create the software server capability for this event broker.
-
Field Details
-
partnerOMASPlatformRootURL
-
partnerOMASServerName
-
openIntegrationClient
-
openMetadataStoreClient
protected org.odpi.openmetadata.frameworks.governanceaction.client.OpenMetadataClient openMetadataStoreClient -
localServerUserId
-
localServerPassword
-
serviceOptions
-
maxPageSize
protected int maxPageSize -
auditLog
protected org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog
-
-
Constructor Details
-
IntegrationContextManager
protected IntegrationContextManager()Default constructor
-
-
Method Details
-
initializeContextManager
public void initializeContextManager(String partnerOMASServerName, String partnerOMASPlatformRootURL, String userId, String password, Map<String, Object> serviceOptions, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Initialize server properties for the context manager.- Parameters:
partnerOMASServerName- name of the server to connect topartnerOMASPlatformRootURL- 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 requestsserviceOptions- options from the integration service's configurationmaxPageSize- maximum number of results that can be returned on a single REST callauditLog- logging destination
-
createClients
public void createClients() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterExceptionSuggestion for subclass to create client(s) to partner OMAS.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the subclass is not able to create one of its clients
-
setUpMetadataSource
protected String setUpMetadataSource(String metadataSourceQualifiedName, String typeName, String classificationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the metadata source's unique identifier (GUID) or if it is not defined, create the software server capability for this event broker.- Parameters:
metadataSourceQualifiedName- unique name of the software capability that represents this integration servicetypeName- subtype name of the software capabilityclassificationName- optional classification for the software capability- Returns:
- unique identifier of the metadata source
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters passed (probably on initialize) is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the integration daemon's userId does not have access to the partner OMASorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem in the remote server running the partner OMAS
-
setContext
public IntegrationContext setContext(String connectorId, String connectorName, String connectorUserId, IntegrationConnector integrationConnector, String integrationConnectorGUID, PermittedSynchronization permittedSynchronization, boolean generateIntegrationReport, String metadataSourceQualifiedName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Set up the context in the supplied connector. This is called between initialize() and start() on the connector.- Parameters:
connectorId- unique identifier of the connector (used to configure the event listener)connectorName- name of connector from configconnectorUserId- userId for the connectorintegrationConnector- connector created from connection integration service configurationintegrationConnectorGUID- unique identifier of the integration connector entity (only set if working with integration groups)permittedSynchronization- controls the direction(s) that metadata is allowed to flowgenerateIntegrationReport- should the connector generate an integration reports?metadataSourceQualifiedName- unique name of the software server capability that represents the metadata source.- Returns:
- the new integration context
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the connector is not of the correct typeorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property server
-