org.apache.accumulo.start.classloader
Class AccumuloFilesystemAlterationMonitor
java.lang.Object
org.apache.accumulo.start.classloader.AccumuloFilesystemAlterationMonitor
- All Implemented Interfaces:
- Runnable
public final class AccumuloFilesystemAlterationMonitor
- extends Object
- implements Runnable
It's a runnable that spawns of a monitoring thread triggering the the observers and managing the their listeners.
- Author:
- tcurdt
Method Summary |
void |
addListener(File pRoot,
org.apache.commons.jci.monitor.FilesystemAlterationListener pListener)
|
org.apache.commons.jci.monitor.FilesystemAlterationListener[] |
getListenersFor(File pRoot)
|
void |
removeListener(org.apache.commons.jci.monitor.FilesystemAlterationListener pListener)
|
void |
run()
|
void |
setInterval(long pDelay)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccumuloFilesystemAlterationMonitor
public AccumuloFilesystemAlterationMonitor()
start
public void start()
stop
public void stop()
setInterval
public void setInterval(long pDelay)
addListener
public void addListener(File pRoot,
org.apache.commons.jci.monitor.FilesystemAlterationListener pListener)
removeListener
public void removeListener(org.apache.commons.jci.monitor.FilesystemAlterationListener pListener)
getListenersFor
public org.apache.commons.jci.monitor.FilesystemAlterationListener[] getListenersFor(File pRoot)
run
public void run()
- Specified by:
run
in interface Runnable
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.