public interface PeerStatusProvider
PeerSelector.| Modifier and Type | Method and Description |
|---|---|
Set<PeerStatus> |
fetchRemotePeerStatuses(PeerDescription peerDescription)
Fetch peer statuses from a remote NiFi cluster.
|
PeerDescription |
getBootstrapPeerDescription()
Returns a PeerDescription instance, which represents a bootstrap remote NiFi node.
|
String |
getRemoteInstanceUris()
Returns the remote instance URIs.
|
SiteToSiteTransportProtocol |
getTransportProtocol()
Returns the transport protocol being used.
|
PeerDescription getBootstrapPeerDescription() throws IOException
Returns a PeerDescription instance, which represents a bootstrap remote NiFi node. The bootstrap node is always used to fetch remote peer statuses.
Once the PeerSelector successfully got remote peer statuses, it periodically fetches remote peer statuses,
so that it can detect remote NiFi cluster topology changes such as addition or removal of nodes.
To refresh remote peer statuses, PeerSelector calls fetchRemotePeerStatuses(org.apache.nifi.remote.PeerDescription) with one of query-able nodes
lastly fetched from the remote NiFi cluster, until it gets a successful result,
or throws IOException if none of them responds successfully.
This mechanism lets PeerSelector works even if the bootstrap remote NiFi node goes down.
IOException - thrown when it fails to retrieve the bootstrap remote node informationSet<PeerStatus> fetchRemotePeerStatuses(PeerDescription peerDescription) throws IOException
peerDescription - a bootstrap node or one of query-able nodes lastly fetched successfullyIOException - thrown when it fails to fetch peer statuses of the remote cluster from the specified peerString getRemoteInstanceUris()
SiteToSiteTransportProtocol getTransportProtocol()
Copyright © 2023 Apache NiFi Project. All rights reserved.