Example usage for org.apache.commons.io.monitor FileAlterationMonitor getObservers

List of usage examples for org.apache.commons.io.monitor FileAlterationMonitor getObservers

Introduction

In this page you can find the example usage for org.apache.commons.io.monitor FileAlterationMonitor getObservers.

Prototype

public Iterable<FileAlterationObserver> getObservers() 

Source Link

Document

Returns the set of FileAlterationObserver registered with this monitor.

Usage

From source file:org.apache.hadoop.gateway.services.topology.DefaultTopologyServiceTest.java

private void kickMonitor(FileAlterationMonitor monitor) {
    for (FileAlterationObserver observer : monitor.getObservers()) {
        observer.checkAndNotify();/*from  ww  w.ja v a2  s .  c  o  m*/
    }
}