Github user markap14 commented on a diff in the pull request: https://github.com/apache/nifi/pull/210#discussion_r54588819 --- Diff: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/ProcessorNode.java --- @@ -99,4 +108,96 @@ public ProcessorNode(final Processor processor, final String id, */ public abstract void verifyCanStart(Set<ControllerServiceNode> ignoredReferences); + /** + * + */ + @Override + public ScheduledState getScheduledState() { + return this.scheduledState.get(); + } + + /** + * Returns the logical state of this processor. Logical state ignores + * transition states such as STOPPING and STARTING rounding it up to the + * next logical state of STOPPED and RUNNING respectively. + * + * @return the logical state of this processor [DISABLED, STOPPED, RUNNING] + */ + public ScheduledState getLogicalScheduledState() { --- End diff -- Good. I like this approach.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---