You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by markap14 <gi...@git.apache.org> on 2016/03/01 17:05:23 UTC

[GitHub] nifi pull request: NIFI-1464, NIFI-78, NIFI-1487 Refactored Proces...

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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---