Class FileBasedBitolStoreConnector
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.bitol.FileBasedBitolStoreConnector
- All Implemented Interfaces:
AuditLoggingComponent,SecureConnectorExtension,VirtualConnectorExtension,BitolDocumentListener,IntegrationConnector
public class FileBasedBitolStoreConnector
extends IntegrationConnectorBase
implements BitolDocumentListener
FileBasedBitolStoreConnector stores the Bitol documents (Open Data Contract Standard data contracts and Open Data
Product Standard data products) published in the integration daemon to the file system. Each document is written
to {directory}/{kind}/{id}/{version}.yaml (or .json if the document arrived as JSON) so the store can be committed to a
git repository as-is. The directories to write to come from the connection's endpoint and from catalog targets that
are Endpoints, Connections or FileFolder assets.
-
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.frameworks.integration.connectors.IntegrationConnectorBase
catalogTargetsManager, connectorName, integrationContext, propertyHelperFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
auditLog, connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessDataContract(DataContract dataContract, String rawDocument) Store a data contract in each destination directory.voidprocessDataProduct(DataProduct dataProduct, String rawDocument) Store a data product in each destination directory.voidrefresh()Requests that the connector does a comparison of the metadata in the third party technology and open metadata repositories.voidstart()Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnectorBase
disconnect, engage, getConnectorComponentDescription, getNetworkAddress, passEventToCatalogTargets, refreshCatalogTargets, setAuditLog, setConnectorName, setContextMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnectConnectors, equals, fromCamelToCanonicalCase, fromCanonicalToCamelCase, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getSecretsCollectionName, getSecretsLocation, getSecretsProvider, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingElement, 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
-
FileBasedBitolStoreConnector
public FileBasedBitolStoreConnector()Default constructor
-
-
Method Details
-
start
Indicates that the connector is completely configured and can begin processing. This picks up the optional directory named in the connection's endpoint and registers the listener.- Specified by:
startin interfaceIntegrationConnector- Overrides:
startin classIntegrationConnectorBase- Throws:
ConnectorCheckedException- there is a problem within the connector.UserNotAuthorizedException- the connector was disconnected before/during start
-
refresh
Requests that the connector does a comparison of the metadata in the third party technology and open metadata repositories. This connector uses the refresh to pick up any new destination directories from its catalog targets.- Specified by:
refreshin interfaceIntegrationConnector- Throws:
ConnectorCheckedException- there is a problem with the connector. It is not able to refresh the metadata.
-
processDataContract
Store a data contract in each destination directory.- Specified by:
processDataContractin interfaceBitolDocumentListener- Parameters:
dataContract- parsed document (null if the raw document could not be parsed into the bean)rawDocument- the document as received (YAML or JSON)
-
processDataProduct
Store a data product in each destination directory.- Specified by:
processDataProductin interfaceBitolDocumentListener- Parameters:
dataProduct- parsed document (null if the raw document could not be parsed into the bean)rawDocument- the document as received (YAML or JSON)
-