org.glassfish.api.admin
Interface FileMonitoring


@Contract
public interface FileMonitoring

Service to monitor changes to files.

Author:
Jerome Dochez

Nested Class Summary
static interface FileMonitoring.FileChangeListener
           
 
Method Summary
 void 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 Detail

monitors

void monitors(File file,
              FileMonitoring.FileChangeListener listener)
Registers a FileChangeListener for a particular file

Parameters:
file - the file of interest
listener - the listener to notify

fileModified

void fileModified(File file)
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.



Copyright © 2012. All Rights Reserved.