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 DefaultFileMonitor
private boolean
private final FileObject
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
check()
private void
Only checks for new children.private void
fireAllCreate
(FileObject child) Recursively fires create events for all children if recursive descent is enabled.private void
refresh()
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()
-