Class ConnectionResponse

java.lang.Object
org.apache.nifi.cluster.protocol.ConnectionResponse

public class ConnectionResponse extends Object
The cluster manager's response to a node's connection request. If the manager has a current copy of the data flow, then it is returned with a node identifier to the node. Otherwise, the manager will provide a "try again in X seconds" response to the node in hopes that a current data flow will be available upon subsequent requests.
  • Field Details

  • Constructor Details

  • Method Details

    • createBlockedByFirewallResponse

      public static ConnectionResponse createBlockedByFirewallResponse()
    • createConflictingNodeIdResponse

      public static ConnectionResponse createConflictingNodeIdResponse(String otherNode)
    • createRejectionResponse

      public static ConnectionResponse createRejectionResponse(String explanation)
    • shouldTryLater

      public boolean shouldTryLater()
    • getRejectionReason

      public String getRejectionReason()
    • getTryLaterSeconds

      public int getTryLaterSeconds()
    • getDataFlow

      public DataFlow getDataFlow()
    • getNodeIdentifier

      public NodeIdentifier getNodeIdentifier()
    • getInstanceId

      public String getInstanceId()
    • getNodeConnectionStatuses

      public List<NodeConnectionStatus> getNodeConnectionStatuses()
    • getComponentRevisions

      public ComponentRevisionSnapshot getComponentRevisions()