com.tivoli.jmx.jar
Interface DirectoryObserverMBean

All Known Implementing Classes:
DirectoryObserver

public interface DirectoryObserverMBean

Observes a directory.

Gets a directory list and verifies whether these files that comply with the current filter have been added, removed or modified. The following ObserverNotification are sent:

An added notification when a file has been added

An removed notification when a file has been removed

An modified notification when a file has been modified

An error notification when the directory does not exist

.

Version:
1.3
Author:
Max Parlione

Method Summary
 java.io.File getDirectory()
          The directory to be observed
 java.lang.String[] getFilter()
          The suffixes used to filter the direcory
 void observe()
          Gets a directory list and verifies whether these files that comply with the current filter have been added, removed or modified.
 void setDirectory(java.io.File directory)
          The directory to be observed
 void setFilter(java.lang.String[] filter)
          The suffixes used to filter the direcory
 

Method Detail

setDirectory

public void setDirectory(java.io.File directory)
The directory to be observed
Parameters:
file - the dirctory to be observed

getDirectory

public java.io.File getDirectory()
The directory to be observed
Returns:
file the dirctory to be observed

getFilter

public java.lang.String[] getFilter()
The suffixes used to filter the direcory
Returns:
the filter

setFilter

public void setFilter(java.lang.String[] filter)
The suffixes used to filter the direcory

observe

public void observe()
Gets a directory list and verifies whether these files that comply with the current filter have been added, removed or modified. The following ObserverNotification are sent:

An added notification when a file has been added

An removed notification when a file has been removed

An modified notification when a file has been modified

An error notification when the directory does not exist

.