Class DataFilesMonitorIntegrationConnector

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, IntegrationConnector, FileDirectoryListenerInterface, FileListenerInterface, FilesIntegratorOMISConnector

public class DataFilesMonitorIntegrationConnector extends BasicFilesMonitorIntegrationConnectorBase
DataFilesMonitorIntegrationConnector monitors a file directory and catalogues the files it finds.
  • Constructor Details

    • DataFilesMonitorIntegrationConnector

      public DataFilesMonitorIntegrationConnector()
  • Method Details

    • refresh

      public void refresh() throws ConnectorCheckedException
      Requests that the connector does a comparison of the metadata in the third party technology and open metadata repositories. Refresh is called when the integration connector first starts and then at intervals defined in the connector's configuration as well as any external REST API calls to explicitly refresh the connector.
      This method performs two sweeps. It first retrieves the files in the directory and validates that are in the catalog - adding or updating them if necessary. The second sweep is to ensure that all the assets catalogued in this directory actually exist on the file system.
      ConnectorCheckedException - there is a problem with the connector. It is not able to refresh the metadata.
    • onFileCreate

      public void onFileCreate(File file)
      File created Event.
      file - The file that was created
    • onFileDelete

      public void onFileDelete(File file)
      Description copied from interface: FileListenerInterface
      File deleted Event.
      file - The file that was deleted
    • onFileChange

      public void onFileChange(File file)
      File changed Event.
      file - The file that changed
    • onDirectoryCreate

      public void onDirectoryCreate(File directory)
      Directory created Event.
      directory - The directory that was created
    • onDirectoryChange

      public void onDirectoryChange(File directory)
      Directory changed Event.
      directory - The directory that changed
    • onDirectoryDelete

      public void onDirectoryDelete(File directory)
      Directory deleted Event.
      directory - The directory that was deleted