public class PeerStats extends java.lang.Object implements XdrElement
struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected; uint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv; uint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; };
Modifier and Type | Class and Description |
---|---|
static class |
PeerStats.PeerStatsBuilder |
Constructor and Description |
---|
PeerStats() |
PeerStats(NodeID id,
XdrString versionStr,
Uint64 messagesRead,
Uint64 messagesWritten,
Uint64 bytesRead,
Uint64 bytesWritten,
Uint64 secondsConnected,
Uint64 uniqueFloodBytesRecv,
Uint64 duplicateFloodBytesRecv,
Uint64 uniqueFetchBytesRecv,
Uint64 duplicateFetchBytesRecv,
Uint64 uniqueFloodMessageRecv,
Uint64 duplicateFloodMessageRecv,
Uint64 uniqueFetchMessageRecv,
Uint64 duplicateFetchMessageRecv) |
toXdrBase64, toXdrByteArray
public PeerStats()
public PeerStats(NodeID id, XdrString versionStr, Uint64 messagesRead, Uint64 messagesWritten, Uint64 bytesRead, Uint64 bytesWritten, Uint64 secondsConnected, Uint64 uniqueFloodBytesRecv, Uint64 duplicateFloodBytesRecv, Uint64 uniqueFetchBytesRecv, Uint64 duplicateFetchBytesRecv, Uint64 uniqueFloodMessageRecv, Uint64 duplicateFloodMessageRecv, Uint64 uniqueFetchMessageRecv, Uint64 duplicateFetchMessageRecv)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static PeerStats decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static PeerStats fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static PeerStats fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static PeerStats.PeerStatsBuilder builder()
public PeerStats.PeerStatsBuilder toBuilder()
public NodeID getId()
public XdrString getVersionStr()
public Uint64 getMessagesRead()
public Uint64 getMessagesWritten()
public Uint64 getBytesRead()
public Uint64 getBytesWritten()
public Uint64 getSecondsConnected()
public Uint64 getUniqueFloodBytesRecv()
public Uint64 getDuplicateFloodBytesRecv()
public Uint64 getUniqueFetchBytesRecv()
public Uint64 getDuplicateFetchBytesRecv()
public Uint64 getUniqueFloodMessageRecv()
public Uint64 getDuplicateFloodMessageRecv()
public Uint64 getUniqueFetchMessageRecv()
public Uint64 getDuplicateFetchMessageRecv()
public void setId(NodeID id)
public void setVersionStr(XdrString versionStr)
public void setMessagesRead(Uint64 messagesRead)
public void setMessagesWritten(Uint64 messagesWritten)
public void setBytesRead(Uint64 bytesRead)
public void setBytesWritten(Uint64 bytesWritten)
public void setSecondsConnected(Uint64 secondsConnected)
public void setUniqueFloodBytesRecv(Uint64 uniqueFloodBytesRecv)
public void setDuplicateFloodBytesRecv(Uint64 duplicateFloodBytesRecv)
public void setUniqueFetchBytesRecv(Uint64 uniqueFetchBytesRecv)
public void setDuplicateFetchBytesRecv(Uint64 duplicateFetchBytesRecv)
public void setUniqueFloodMessageRecv(Uint64 uniqueFloodMessageRecv)
public void setDuplicateFloodMessageRecv(Uint64 duplicateFloodMessageRecv)
public void setUniqueFetchMessageRecv(Uint64 uniqueFetchMessageRecv)
public void setDuplicateFetchMessageRecv(Uint64 duplicateFetchMessageRecv)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object