Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jci.monitor
Class FilesystemAlterationMonitor

    java.lang.Object
      org.apache.commons.jci.monitor.FilesystemAlterationMonitor

All Implemented Interfaces:
  Runnable

    public final class FilesystemAlterationMonitor

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

Constructor Summary
`FilesystemAlterationMonitor()`

Method Summary
`void` | `addListener(File pRoot, FilesystemAlterationListener pListener)`
`FilesystemAlterationListener[]` | `getListenersFor(File pRoot)`
`void` | `removeListener(FilesystemAlterationListener pListener)`
`void` | `run()`
`void` | `setInterval(long pDelay)` Set the delay between calls to the observers.
`void` | `start()`
`void` | `stop()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FilesystemAlterationMonitor

    public FilesystemAlterationMonitor()

Method Detail

### start

    public void start()

### stop

    public void stop()

### setInterval

    public void setInterval(long pDelay)

  Set the delay between calls to the observers.

  Parameters:
    `pDelay` - the delay in milliseconds (default if not set 3000 ms)

### addListener

    public void addListener(File pRoot,
                            FilesystemAlterationListener pListener)

### removeListener

    public void removeListener(FilesystemAlterationListener pListener)

### getListenersFor

    public FilesystemAlterationListener[] getListenersFor(File pRoot)

### run

    public void run()

  Specified by:
    `run` in interface `Runnable`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.