Package org.apache.commons.vfs2.impl
Class DefaultFileMonitor.FileMonitorAgent
java.lang.Object
org.apache.commons.vfs2.impl.DefaultFileMonitor.FileMonitorAgent
- Enclosing class:
DefaultFileMonitor
File monitor agent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DefaultFileMonitorprivate booleanprivate final FileObjectprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheck()private voidOnly checks for new children.private voidfireAllCreate(FileObject child) Recursively fires create events for all children if recursive descent is enabled.private voidrefresh()Clear the cache and re-request the file objectprivate void
-
Field Details
-
fileObject
-
defaultFileMonitor
-
exists
private boolean exists -
timestamp
private long timestamp -
children
-
-
Constructor Details
-
FileMonitorAgent
-
-
Method Details
-
resetChildrenList
private void resetChildrenList() -
refresh
private void refresh()Clear the cache and re-request the file object -
fireAllCreate
Recursively fires create events for all children if recursive descent is enabled. Otherwise the create event is only fired for the initial FileObject.- Parameters:
child- The child to add.
-
checkForNewChildren
private void checkForNewChildren()Only checks for new children. If children are removed, they'll eventually be checked. -
check
private void check()
-