public class CompoundUpdateMonitor extends Object implements UpdateMonitor
UpdateMonitor that combines multiple UpdateMonitors such that it will indicate a change in a file only if ALL sub-monitors indicate a change. The sub-monitors will be
applied in the order given and if any indicates that the state has not changed, the subsequent sub-monitors may not be given a chance to run| Modifier and Type | Class and Description |
|---|---|
private static class |
CompoundUpdateMonitor.DeferredMonitorAction |
| Modifier and Type | Field and Description |
|---|---|
private List<UpdateMonitor> |
monitors |
| Constructor and Description |
|---|
CompoundUpdateMonitor(UpdateMonitor first,
UpdateMonitor... others) |
private final List<UpdateMonitor> monitors
public CompoundUpdateMonitor(UpdateMonitor first, UpdateMonitor... others)
public Object getCurrentState(Path path) throws IOException
getCurrentState in interface UpdateMonitorIOExceptionCopyright © 2019 Apache NiFi Project. All rights reserved.