| Modifier and Type | Method and Description |
|---|---|
private PeerStatus |
PeerSelector.getAvailablePeerStatus(Map<PeerStatus,Double> orderedPeerStatuses)
Returns the
PeerStatus identifying the next peer to send/receive data. |
PeerStatus |
PeerSelector.getNextPeerStatus(TransferDirection direction)
Return status of a peer that will be used for the next communication.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) LinkedHashMap<PeerStatus,Double> |
PeerSelector.buildWeightedPeerMap(Set<PeerStatus> statuses,
TransferDirection direction)
Returns a map of peers prepared for flowfile transfer in the specified direction.
|
Set<PeerStatus> |
PeerStatusProvider.fetchRemotePeerStatuses(PeerDescription peerDescription)
Fetch peer statuses from a remote NiFi cluster.
|
private Set<PeerStatus> |
PeerSelector.fetchRemotePeerStatuses(Set<PeerDescription> peersToRequestClusterInfoFrom)
Returns a set of
PeerStatus objects representing all remote peers for the provided
PeerDescriptions. |
private Set<PeerStatus> |
AbstractPeerPersistence.readPeerStatuses(BufferedReader reader) |
private static LinkedHashMap<PeerStatus,Double> |
PeerSelector.sortMapByWeight(Map<PeerStatus,Double> unsortedMap)
Returns an ordered map of peers sorted in descending order by value (relative weight).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PeerSelector.isPenalized(PeerStatus peerStatus)
Returns
true if this peer is currently penalized and should not send/receive flowfiles. |
| Modifier and Type | Method and Description |
|---|---|
(package private) LinkedHashMap<PeerStatus,Double> |
PeerSelector.buildWeightedPeerMap(Set<PeerStatus> statuses,
TransferDirection direction)
Returns a map of peers prepared for flowfile transfer in the specified direction.
|
private @NotNull Map<PeerStatus,Double> |
PeerSelector.createDestinationMap(Set<PeerStatus> peerStatuses,
TransferDirection direction)
Returns a map indexed by a peer to the normalized weight (number of flowfiles currently being
processed by the peer as a percentage of the total).
|
private PeerStatus |
PeerSelector.getAvailablePeerStatus(Map<PeerStatus,Double> orderedPeerStatuses)
Returns the
PeerStatus identifying the next peer to send/receive data. |
private static void |
PeerSelector.printDistributionStatistics(Map<PeerStatus,Double> sortedPeerWorkloads,
TransferDirection direction)
Prints the distribution of the peers to the logger.
|
private static LinkedHashMap<PeerStatus,Double> |
PeerSelector.sortMapByWeight(Map<PeerStatus,Double> unsortedMap)
Returns an ordered map of peers sorted in descending order by value (relative weight).
|
private static double |
PeerSelector.sumMapValues(Map<PeerStatus,Double> peerWeightMap)
Returns the total of all values in the map.
|
| Modifier and Type | Method and Description |
|---|---|
Set<PeerStatus> |
HttpClient.fetchRemotePeerStatuses(PeerDescription peerDescription) |
private Set<PeerStatus> |
HttpClient.fetchRemotePeerStatuses(SiteToSiteRestApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Set<PeerStatus> |
EndpointConnectionPool.fetchRemotePeerStatuses(PeerDescription peerDescription) |
| Modifier and Type | Method and Description |
|---|---|
private CommunicationsSession |
EndpointConnectionPool.establishSiteToSiteConnection(PeerStatus peerStatus) |
| Modifier and Type | Method and Description |
|---|---|
Set<PeerStatus> |
ClientProtocol.getPeerStatuses(Peer currentPeer) |
| Modifier and Type | Method and Description |
|---|---|
Set<PeerStatus> |
SocketClientProtocol.getPeerStatuses(Peer peer) |
| Modifier and Type | Field and Description |
|---|---|
private Set<PeerStatus> |
PeerStatusCache.statuses |
| Modifier and Type | Method and Description |
|---|---|
Set<PeerStatus> |
PeerStatusCache.getStatuses() |
| Constructor and Description |
|---|
PeerStatusCache(Set<PeerStatus> statuses,
long timestamp,
String remoteInstanceUris,
SiteToSiteTransportProtocol transportProtocol) |
Copyright © 2023 Apache NiFi Project. All rights reserved.