Github user JPercivall commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/575#discussion_r70831253
  
    --- Diff: 
nifi-api/src/main/java/org/apache/nifi/components/ValidationContext.java ---
    @@ -99,4 +100,9 @@
          * @return the identifier of the ProcessGroup that the component being 
validated lives in
          */
         String getProcessGroupIdentifier();
    +
    +    /**
    +     * @return the {@link NodeTypeProvider} which can be used to detect 
the node type of this NiFi instance.
    +     */
    +    NodeTypeProvider getNodeTypeProvider();
    --- End diff --
    
    I don't think this should be exposed here. The primary node check is 
inherently dangerous for a validation check and something we shouldn't 
encourage. Instead let the user get the state in the init and use the clustered 
value in the validation check.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to