Package org.apache.nifi.cluster.protocol
Class ConnectionResponse
java.lang.Object
org.apache.nifi.cluster.protocol.ConnectionResponse
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final DataFlow
private final String
private final NodeIdentifier
private final List
<NodeConnectionStatus> private final String
private final ComponentRevisionSnapshot
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConnectionResponse
(int tryLaterSeconds, String explanation) private
ConnectionResponse
(String rejectionReason) ConnectionResponse
(NodeIdentifier nodeIdentifier, DataFlow dataFlow, String instanceId, List<NodeConnectionStatus> nodeStatuses, ComponentRevisionSnapshot revisionSnapshot) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionResponse
static ConnectionResponse
createConflictingNodeIdResponse
(String otherNode) static ConnectionResponse
createRejectionResponse
(String explanation) int
boolean
-
Field Details
-
rejectionReason
-
tryLaterSeconds
private final int tryLaterSeconds -
nodeIdentifier
-
dataFlow
-
instanceId
-
nodeStatuses
-
revisionSnapshot
-
-
Constructor Details
-
ConnectionResponse
public ConnectionResponse(NodeIdentifier nodeIdentifier, DataFlow dataFlow, String instanceId, List<NodeConnectionStatus> nodeStatuses, ComponentRevisionSnapshot revisionSnapshot) -
ConnectionResponse
-
ConnectionResponse
-
-
Method Details
-
createBlockedByFirewallResponse
-
createConflictingNodeIdResponse
-
createRejectionResponse
-
shouldTryLater
public boolean shouldTryLater() -
getRejectionReason
-
getTryLaterSeconds
public int getTryLaterSeconds() -
getDataFlow
-
getNodeIdentifier
-
getInstanceId
-
getNodeConnectionStatuses
-
getComponentRevisions
-