Package org.glassfish.api.admin
Interface FileMonitoring
@Contract
public interface FileMonitoring
Service to monitor changes to files.
- Author:
- Jerome Dochez
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fileModified
(File file) Informs the monitor that a file has been changed.void
monitors
(File file, FileMonitoring.FileChangeListener listener) Registers a FileChangeListener for a particular file
-
Method Details
-
monitors
Registers a FileChangeListener for a particular file- Parameters:
file
- the file of interestlistener
- the listener to notify
-
fileModified
Informs the monitor that a file has been changed. This is a hint to the monitor to prevent missing changes that occur within the granularity of the operating system's file modification time, typically 1 second.
-