|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.mft.monitor.DirectoryMonitor
public class DirectoryMonitor
Directory monitor.
Nested Class Summary | |
---|---|
static class |
DirectoryMonitor.Task
Monitor task. |
Constructor Summary | |
---|---|
DirectoryMonitor()
This constructor is used by serialization sub-system and is not intended to use directly in client code. |
|
DirectoryMonitor(java.lang.String name,
java.lang.String pathname,
long timeout,
boolean monitorAdding,
boolean monitorChanging,
boolean monitorDeleting,
boolean monitorRecursively,
com.jscape.inet.mft.monitor.DirectoryQuota quota)
Creates a new monitor instance. |
Method Summary | |
---|---|
void |
destroy()
|
boolean |
getMonitorAdding()
Returns file adding monitor flag. |
boolean |
getMonitorChanging()
Returns file changing monitor flag. |
boolean |
getMonitorDeleting()
Returns file deleting monitor flag. |
boolean |
getMonitorRecursively()
Returns recursively monitor flag. |
java.lang.String |
getName()
Returns monitor name. |
java.lang.String |
getPathname()
Returns target directory path. |
com.jscape.inet.mft.monitor.DirectoryQuota |
getQuota()
Returns directory quota. |
long |
getTimeout()
Returns monitor timeout. |
void |
handle(com.jscape.inet.vfs.events.DataWrittenEvent event)
|
void |
handle(com.jscape.inet.mft.transport.events.FileDeleteEvent event)
|
void |
handle(com.jscape.inet.mft.transport.events.FileRenameEvent event)
|
void |
handle(com.jscape.inet.vfs.requests.FurtherWritePermissionRequest request)
|
void |
handle(com.jscape.inet.vfs.requests.WriteFilePermissionRequest request)
|
void |
setMonitorAdding(boolean value)
Sets file adding monitor flag |
void |
setMonitorChanging(boolean value)
Sets file changing monitor flag |
void |
setMonitorDeleting(boolean value)
Sets file deleting monitor flag |
void |
setMonitorRecursively(boolean value)
Sets recursive monitor flag. |
void |
setName(java.lang.String value)
Sets monitor name. |
void |
setPathname(java.lang.String value)
Sets target directory path. |
void |
setQuota(com.jscape.inet.mft.monitor.DirectoryQuota value)
Sets directory quota. |
void |
setTimeout(long value)
Sets monitor timeout. |
void |
start(com.jscape.util.event.EventContext domain)
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryMonitor(java.lang.String name, java.lang.String pathname, long timeout, boolean monitorAdding, boolean monitorChanging, boolean monitorDeleting, boolean monitorRecursively, com.jscape.inet.mft.monitor.DirectoryQuota quota)
name
- monitor namepathname
- target directorytimeout
- monitor timeout in msmonitorAdding
- if true
file adding will be monitoredmonitorChanging
- if true
file changing will be monitoredmonitorDeleting
- if true
file deleting will be monitoredmonitorRecursively
- if true
subdirectories will be monitored recursivelyquota
- disk space quota for the monitored directory in bytespublic DirectoryMonitor()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String value)
value
- monitor namepublic java.lang.String getPathname()
public void setPathname(java.lang.String value)
value
- target directory pathpublic boolean getMonitorAdding()
true
if file adding is monitored;
false
otherwisepublic void setMonitorAdding(boolean value)
value
- if true
file adding will be monitoredpublic boolean getMonitorChanging()
true
if file changing is monitored;
false
otherwisepublic void setMonitorChanging(boolean value)
value
- if true
file changing will be monitoredpublic boolean getMonitorDeleting()
true
if file deleting is monitored;
false
otherwisepublic void setMonitorDeleting(boolean value)
value
- if true
file deleting will be monitoredpublic long getTimeout()
public void setTimeout(long value)
value
- monitor timeout in mspublic com.jscape.inet.mft.monitor.DirectoryQuota getQuota()
public void setQuota(com.jscape.inet.mft.monitor.DirectoryQuota value)
value
- directory quota in bytespublic boolean getMonitorRecursively()
true
if monitor works recursively;
false
otherwisepublic void setMonitorRecursively(boolean value)
value
- if true
monitor will work recursivelypublic void start(com.jscape.util.event.EventContext domain)
public void stop()
public void handle(com.jscape.inet.mft.transport.events.FileRenameEvent event)
handle
in interface com.jscape.inet.mft.transport.events.FileRenameEvent.Handler
public void handle(com.jscape.inet.mft.transport.events.FileDeleteEvent event)
handle
in interface com.jscape.inet.mft.transport.events.FileDeleteEvent.Handler
public void handle(com.jscape.inet.vfs.events.DataWrittenEvent event)
handle
in interface com.jscape.inet.vfs.events.DataWrittenEvent.Handler
public void handle(com.jscape.inet.vfs.requests.WriteFilePermissionRequest request)
handle
in interface com.jscape.inet.vfs.requests.WriteFilePermissionRequest.Handler
public void handle(com.jscape.inet.vfs.requests.FurtherWritePermissionRequest request)
handle
in interface com.jscape.inet.vfs.requests.FurtherWritePermissionRequest.Handler
public void destroy()
destroy
in interface com.jscape.util.Destroyable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |