Class LineageIntegratorContextManager
- java.lang.Object
-
- org.odpi.openmetadata.governanceservers.integrationdaemonservices.contextmanager.IntegrationContextManager
-
- org.odpi.openmetadata.integrationservices.lineage.contextmanager.LineageIntegratorContextManager
-
- All Implemented Interfaces:
OpenLineageListenerManager
public class LineageIntegratorContextManager extends IntegrationContextManager implements OpenLineageListenerManager
LineageIntegratorContextManager provides the bridge between the integration daemon services and the specific implementation of an integration service.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.governanceservers.integrationdaemonservices.contextmanager.IntegrationContextManager
auditLog, localServerPassword, localServerUserId, maxPageSize, partnerOMASPlatformRootURL, partnerOMASServerName, serviceOptions
-
-
Constructor Summary
Constructors Constructor Description LineageIntegratorContextManager()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateClients()Suggestion for subclass to create client(s) to partner OMAS.voidinitializeContextManager(String partnerOMASServerName, String partnerOMASPlatformRootURL, String userId, String password, Map<String,Object> serviceOptions, int maxPageSize, AuditLog auditLog)Initialize server properties for the context manager.voidpublishOpenLineageRunEvent(String rawEvent)Pass the incoming openLineage event to all connectors that are listening.voidpublishOpenLineageRunEvent(OpenLineageRunEvent event)Pass the incoming openLineage event to all connectors that are listening.voidregisterListener(OpenLineageEventListener listener)The listener is implemented by the integration connector.voidsetContext(String connectorId, String connectorName, String metadataSourceQualifiedName, IntegrationConnector integrationConnector, PermittedSynchronization permittedSynchronization)Set up the context in the supplied connector.
-
-
-
Method Detail
-
initializeContextManager
public void initializeContextManager(String partnerOMASServerName, String partnerOMASPlatformRootURL, String userId, String password, Map<String,Object> serviceOptions, int maxPageSize, AuditLog auditLog)
Initialize server properties for the context manager.- Overrides:
initializeContextManagerin classIntegrationContextManager- Parameters:
partnerOMASServerName- name of the server to connect topartnerOMASPlatformRootURL- the network address of the server running the OMAS REST serversuserId- 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 InvalidParameterExceptionSuggestion for subclass to create client(s) to partner OMAS.- Specified by:
createClientsin classIntegrationContextManager- Throws:
InvalidParameterException- the subclass is not able to create one of its clients
-
setContext
public void setContext(String connectorId, String connectorName, String metadataSourceQualifiedName, IntegrationConnector integrationConnector, PermittedSynchronization permittedSynchronization) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Set up the context in the supplied connector. This is called between initialize() and start() on the connector.- Specified by:
setContextin classIntegrationContextManager- Parameters:
connectorId- unique identifier of the connector (used to configure the event listener)connectorName- name of connector from configmetadataSourceQualifiedName- unique name of the software server capability that represents the metadata source.integrationConnector- connector created from connection integration service configurationpermittedSynchronization- controls the direction(s) that metadata is allowed to flow- Throws:
InvalidParameterException- the connector is not of the correct typeUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
registerListener
public void registerListener(OpenLineageEventListener listener)
The listener is implemented by the integration connector. Once it is registered with the context, its processOpenLineageRunEvent() method is called each time an open lineage event is published to the Lineage Integrator OMIS.- Specified by:
registerListenerin interfaceOpenLineageListenerManager- Parameters:
listener- listener to call
-
publishOpenLineageRunEvent
public void publishOpenLineageRunEvent(String rawEvent)
Pass the incoming openLineage event to all connectors that are listening.- Specified by:
publishOpenLineageRunEventin interfaceOpenLineageListenerManager- Parameters:
rawEvent- JSON payload containing the open lineage event
-
publishOpenLineageRunEvent
public void publishOpenLineageRunEvent(OpenLineageRunEvent event)
Pass the incoming openLineage event to all connectors that are listening.- Specified by:
publishOpenLineageRunEventin interfaceOpenLineageListenerManager- Parameters:
event- JSON payload containing the open lineage event
-
-