Class DirectoryToMonitor
java.lang.Object
org.odpi.openmetadata.adapters.connectors.integration.basicfiles.DirectoryToMonitor
- All Implemented Interfaces:
FileDirectoryListenerInterface
,FileListenerInterface
- Direct Known Subclasses:
DataFilesMonitorForTarget
,DataFolderMonitorForTarget
Directory to monitor caches information about a specific directory that is at the root of the monitoring.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Policy for deletingprotected final AuditLog
protected boolean
Should only file types that are recognized by the classifier be catalogued.protected String
This is the unique identifier of the CatalogTarget relationship that this directory matches.protected final String
protected FileFolderElement
This is the folder element describing this directory from the open metadata ecosystem.protected File
This is the Java File object that is accessing the directory.protected String
What is the short name for this directory?protected String
protected String
Template for cataloguing directoriesprotected String
protected String
Template for cataloguing filesprotected String
protected String
Template for creating incident reportsprotected final BasicFilesMonitorIntegrationConnectorBase
protected boolean
This boolean indicates that the connector is registered to listen for changes in the directory.protected String
protected String
protected String
protected final PropertyHelper
protected String
Where did information about this directory come from?protected String
protected String
Template for creating todosprotected boolean
Does the physical directory have to exist or will it wait? -
Constructor Summary
ConstructorDescriptionDirectoryToMonitor
(String connectorName, String sourceName, String pathName, String catalogTargetGUID, DeleteMethod deleteMethod, Map<String, String> templates, Map<String, Object> configurationProperties, BasicFilesMonitorIntegrationConnectorBase integrationConnector, FileFolderElement dataFolderElement, AuditLog auditLog) Construct the monitor for a specific catalog target. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
refresh()
Requests that the connector does a comparison of the metadata in the third party technology and open metadata repositories.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.odpi.openmetadata.frameworks.integration.filelistener.FileDirectoryListenerInterface
onDirectoryChange, onDirectoryCreate, onDirectoryDelete
Methods inherited from interface org.odpi.openmetadata.frameworks.integration.filelistener.FileListenerInterface
onFileChange, onFileCreate, onFileDelete
-
Field Details
-
propertyHelper
-
auditLog
-
integrationConnector
-
connectorName
-
sourceName
Where did information about this directory come from? -
directoryName
What is the short name for this directory? -
dataFolderElement
This is the folder element describing this directory from the open metadata ecosystem. -
directoryFile
This is the Java File object that is accessing the directory. -
isListening
protected boolean isListeningThis boolean indicates that the connector is registered to listen for changes in the directory. -
catalogTargetGUID
This is the unique identifier of the CatalogTarget relationship that this directory matches. Null means the value was supplied in the endpoint. -
fileTemplateQualifiedName
Template for cataloguing files -
fileTemplateGUID
-
directoryTemplateQualifiedName
Template for cataloguing directories -
directoryTemplateGUID
-
toDoTemplateQualifiedName
Template for creating todos -
toDoTemplateGUID
-
incidentReportTemplateQualifiedName
Template for creating incident reports -
incidentReportTemplateGUID
-
newFileProcessName
-
allowCatalogDelete
protected boolean allowCatalogDeletePolicy for deleting -
waitForDirectory
protected boolean waitForDirectoryDoes the physical directory have to exist or will it wait? -
catalogClassifiedFiles
protected boolean catalogClassifiedFilesShould only file types that are recognized by the classifier be catalogued. -
configurationProperties
-
metadataSourceGUID
-
metadataSourceName
-
-
Constructor Details
-
DirectoryToMonitor
public DirectoryToMonitor(String connectorName, String sourceName, String pathName, String catalogTargetGUID, DeleteMethod deleteMethod, Map<String, String> templates, Map<String, Object> configurationProperties, BasicFilesMonitorIntegrationConnectorBase integrationConnector, FileFolderElement dataFolderElement, AuditLog auditLog) Construct the monitor for a specific catalog target.- Parameters:
connectorName
- name of associated connectorsourceName
- source of the pathnamepathName
- pathname to the directorycatalogTargetGUID
- optional catalog target GUIDdeleteMethod
- should the connector use delete or archive?templates
- names and GUIDs of templatesconfigurationProperties
- parameters to further modify the behaviour of the connectorintegrationConnector
- associated connectordataFolderElement
- Egeria element for this directoryauditLog
- logging destination
-
-
Method Details
-
refresh
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.- Throws:
ConnectorCheckedException
- there is a problem with the connector. It is not able to refresh the metadata.
-