mirror of https://github.com/apache/nifi.git
NIFI-5066:
- Fixing predicate for finding all processors/ports that can be disabled. This closes #2739. Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
parent
18ec386150
commit
dbef69040f
|
@ -75,7 +75,7 @@ public interface ProcessGroup extends ComponentAuthorizable, Positionable, Versi
|
|||
/**
|
||||
* Predicate for disabling eligible Processors.
|
||||
*/
|
||||
Predicate<ProcessorNode> DISABLE_PROCESSORS_FILTER = node -> !node.isRunning();
|
||||
Predicate<ProcessorNode> DISABLE_PROCESSORS_FILTER = node -> !node.isRunning() && !ScheduledState.DISABLED.equals(node.getScheduledState());
|
||||
|
||||
/**
|
||||
* Predicate for starting eligible Ports.
|
||||
|
@ -95,7 +95,7 @@ public interface ProcessGroup extends ComponentAuthorizable, Positionable, Versi
|
|||
/**
|
||||
* Predicate for disabling eligible Ports.
|
||||
*/
|
||||
Predicate<Port> DISABLE_PORTS_FILTER = port -> !port.isRunning();
|
||||
Predicate<Port> DISABLE_PORTS_FILTER = port -> !port.isRunning() && !ScheduledState.DISABLED.equals(port.getScheduledState());
|
||||
|
||||
/**
|
||||
* @return a reference to this ProcessGroup's parent. This will be
|
||||
|
|
Loading…
Reference in New Issue