public class PeerStatus extends Object
PeerDescription: hostname, port, and security) and its current status (number of
flowfiles and whether it can query other peers for status). Equality is only based on the
identifying information, so when iterating over multiple PeerStatus objects, more recent statuses
will replace previously acquired statuses for a specific peer.| Modifier and Type | Field and Description |
|---|---|
private PeerDescription |
description |
private int |
numFlowFiles |
private boolean |
queryForPeers |
| Constructor and Description |
|---|
PeerStatus(PeerDescription description,
int numFlowFiles,
boolean queryForPeers) |
PeerStatus(PeerDTO peerDTO)
Copy constructor from a
PeerDTO. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getFlowFileCount() |
PeerDescription |
getPeerDescription() |
int |
hashCode() |
boolean |
isQueryForPeers() |
String |
toString() |
private final PeerDescription description
private final int numFlowFiles
private final boolean queryForPeers
public PeerStatus(PeerDescription description, int numFlowFiles, boolean queryForPeers)
public PeerStatus(PeerDTO peerDTO)
peerDTO - the peer DTO object with hostname, port, security, and flowfile countpublic PeerDescription getPeerDescription()
public int getFlowFileCount()
public boolean isQueryForPeers()
true if this node can be queried for its peers, false otherwise.Copyright © 2023 Apache NiFi Project. All rights reserved.