Class BasicFilesMonitorIntegrationConnectorBase
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.integrationservices.files.connector.FilesIntegratorConnector
org.odpi.openmetadata.adapters.connectors.integration.basicfiles.BasicFilesMonitorIntegrationConnectorBase
- All Implemented Interfaces:
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent,org.odpi.openmetadata.frameworks.connectors.SecureConnectorExtension,org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension,org.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnector,org.odpi.openmetadata.integrationservices.files.connector.FilesIntegratorOMISConnector
- Direct Known Subclasses:
DataFilesMonitorIntegrationConnector,DataFolderMonitorIntegrationConnector
public abstract class BasicFilesMonitorIntegrationConnectorBase
extends org.odpi.openmetadata.integrationservices.files.connector.FilesIntegratorConnector
BasicFilesMonitorIntegrationConnectorBase provides common methods for the connectors in this module.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveFileInCatalog(File file, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.DataFileElement retrievedElement, boolean allowCatalogDelete, String methodName) The file no longer exists so this method updates the metadata catalog.voidShutdown file monitoringvoidstart()Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.integrationservices.files.connector.FilesIntegratorConnector
getContext, setContextMethods inherited from class org.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnectorBase
engage, getConnectorComponentDescription, setAuditLog, setConnectorName, setContextMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestampMethods inherited from interface org.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnector
refreshMethods inherited from interface org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension
initializeEmbeddedConnectors
-
Constructor Details
-
BasicFilesMonitorIntegrationConnectorBase
public BasicFilesMonitorIntegrationConnectorBase()
-
-
Method Details
-
start
public void start() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionIndicates that the connector is completely configured and can begin processing. It extracts all the useful configuration from the connection object.- Specified by:
startin interfaceorg.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnector- Overrides:
startin classorg.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnectorBase- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the connector.
-
archiveFileInCatalog
public void archiveFileInCatalog(File file, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.DataFileElement retrievedElement, boolean allowCatalogDelete, String methodName) The file no longer exists so this method updates the metadata catalog. This may be a call to delete() or an archive action depending on the setting of the allowCatalogDelete configuration property.- Parameters:
file- Java file access objectretrievedElement- catalogued elementmethodName- calling method
-
disconnect
public void disconnect() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionShutdown file monitoring- Specified by:
disconnectin interfaceorg.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnector- Overrides:
disconnectin classorg.odpi.openmetadata.frameworks.integration.connectors.IntegrationConnectorBase- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- something failed in the super class
-