public interface ClusterCoordinationProtocolSender
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect(DisconnectMessage msg)
Sends a "disconnection request" message to a node.
|
void |
notifyNodeStatusChange(Set<NodeIdentifier> nodesToNotify,
NodeStatusChangeMessage msg)
Notifies all nodes in the given set that a node in the cluster has a new status
|
void |
offload(OffloadMessage msg)
Sends an "offload request" message to a node.
|
NodeConnectionStatus |
requestNodeConnectionStatus(String hostname,
int port)
Sends a request to the given hostname and port to request its connection status
|
ReconnectionResponseMessage |
requestReconnection(ReconnectionRequestMessage msg)
Sends a "reconnection request" message to a node.
|
void |
setBulletinRepository(BulletinRepository bulletinRepository)
Sets the
BulletinRepository that can be used to report bulletins |
ReconnectionResponseMessage requestReconnection(ReconnectionRequestMessage msg) throws ProtocolException
msg - a messageProtocolException - if communication failedvoid offload(OffloadMessage msg) throws ProtocolException
msg - a messageProtocolException - if communication failedvoid disconnect(DisconnectMessage msg) throws ProtocolException
msg - a messageProtocolException - if communication failedvoid setBulletinRepository(BulletinRepository bulletinRepository)
BulletinRepository that can be used to report bulletinsbulletinRepository - repovoid notifyNodeStatusChange(Set<NodeIdentifier> nodesToNotify, NodeStatusChangeMessage msg)
nodesToNotify - the nodes that should be notified of the changemsg - the message that indicates which node's status changed and what it changed toNodeConnectionStatus requestNodeConnectionStatus(String hostname, int port)
Copyright © 2020 Apache NiFi Project. All rights reserved.