Data Files Monitor Integration Connector

Overview

The data folder monitor integration connector monitor changes in a file directory (folder) and maintains a DataFolder asset for the folder. The files and directories underneath it are assumed to be elements/records in the DataFolder asset and so each time there is a change to the files and directories under the monitored directory, it results in an update to the lastModified property of the corresponding DataFolder asset.

Figure 1

Figure 1: Operation of the data folder monitor integration connector

This connector assumes that the DataFolder asset is already defined. If it can not retrieve the DataFolder asset, it ignores file changes.

Configuration

This connector uses the Files Integrator OMIS running in the Integration Daemon.

This is its connection definition to use on the administration commands that configure the Files Integrator OMIS. Replace {folderName} with the path name of the folder to monitor.

{
   "connection" : { 
                      "class" : "Connection",
                      "connectorType" : 
                      {
                           "class" : "ConnectorType",
                           "connectorProviderClassName" : "org.odpi.openmetadata.adapters.connectors.integration.basicfiles.DataFolderMonitorIntegrationProvider"           
                      },
                      "endpoint" :
                      {
                           "class" : "Endpoint",
                           "address" : "{folderName}"
                      }
                  }
}

Examples of use



License: CC BY 4.0, Copyright Contributors to the ODPi Egeria project.