Class FileBasedOpenLineageLogStoreConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnectorBase
org.odpi.openmetadata.adapters.connectors.integration.openlineage.OpenLineageLogStoreConnectorBase
org.odpi.openmetadata.adapters.connectors.integration.openlineage.FileBasedOpenLineageLogStoreConnector
- All Implemented Interfaces:
OpenLineageLogStore,AuditLoggingComponent,SecureConnectorExtension,VirtualConnectorExtension,IntegrationConnector,OpenLineageEventListener
FileBasedOpenLineageLogStoreConnector provides a connector implementation for a file based open lineage log.
The open lineage log is stored in a directory and each open lineage event record is stored as a file with a filename built
from the record's unique identifier (runId), time and status. The record is stored in a subdirectory that is made from the namespace and job.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection -
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.connectors.integration.openlineage.OpenLineageLogStoreConnectorBase
destinationAddresses, distributorName, myContextFields inherited from class org.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnectorBase
auditLog, catalogTargetsManager, connectorName, integrationContext, propertyHelperFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor used by the connector provider. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidnewDestinationIdentified(String logStoreDirectoryName) Informs the subclasses that there is a new destination - in case they need to do special setup.voidstoreEvent(OpenLineageRunEvent openLineageEvent, String rawEvent, String logStoreDirectoryName) Store the open lineage event in the open lineage log store.Methods inherited from class org.odpi.openmetadata.adapters.connectors.integration.openlineage.OpenLineageLogStoreConnectorBase
initialize, logNoRawEvent, processOpenLineageRunEvent, refresh, startMethods inherited from class org.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnectorBase
disconnect, engage, getConnectorComponentDescription, getNetworkAddress, passEventToCatalogTargets, refreshCatalogTargets, registerCatalogTargetChangeListener, setAuditLog, setConnectorName, setContextMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnectConnectors, equals, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestampMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension
initializeEmbeddedConnectors
-
Constructor Details
-
FileBasedOpenLineageLogStoreConnector
public FileBasedOpenLineageLogStoreConnector()Default constructor used by the connector provider.
-
-
Method Details
-
newDestinationIdentified
protected void newDestinationIdentified(String logStoreDirectoryName) throws ConnectorCheckedException Informs the subclasses that there is a new destination - in case they need to do special setup.- Specified by:
newDestinationIdentifiedin classOpenLineageLogStoreConnectorBase- Parameters:
logStoreDirectoryName- new destination- Throws:
ConnectorCheckedException- new destination not valid
-
storeEvent
public void storeEvent(OpenLineageRunEvent openLineageEvent, String rawEvent, String logStoreDirectoryName) throws InvalidParameterException, PropertyServerException Store the open lineage event in the open lineage log store. If the raw event is null, a json version of the open lineage event is generated using the Egeria beans.- Specified by:
storeEventin interfaceOpenLineageLogStore- Specified by:
storeEventin classOpenLineageLogStoreConnectorBase- Parameters:
openLineageEvent- event formatted using Egeria beansrawEvent- event in Json form from the originator - may have facets that are not known to EgerialogStoreDirectoryName- address to send the event to- Throws:
InvalidParameterException- indicates that the openLineageEvent parameter is invalid.PropertyServerException- indicates that the log store is not available or has an error.
-