Package org.stellar.sdk.xdr
Class PeerStats
java.lang.Object
org.stellar.sdk.xdr.PeerStats
PeerStats's original definition in the XDR file is:
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; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPeerStats
(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) -
Method Summary
Modifier and TypeMethodDescriptionstatic PeerStats.PeerStatsBuilder
builder()
static PeerStats
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static PeerStats
fromXdrBase64
(String xdr) static PeerStats
fromXdrByteArray
(byte[] xdr) getId()
int
hashCode()
void
setBytesRead
(Uint64 bytesRead) void
setBytesWritten
(Uint64 bytesWritten) void
setDuplicateFetchBytesRecv
(Uint64 duplicateFetchBytesRecv) void
setDuplicateFetchMessageRecv
(Uint64 duplicateFetchMessageRecv) void
setDuplicateFloodBytesRecv
(Uint64 duplicateFloodBytesRecv) void
setDuplicateFloodMessageRecv
(Uint64 duplicateFloodMessageRecv) void
void
setMessagesRead
(Uint64 messagesRead) void
setMessagesWritten
(Uint64 messagesWritten) void
setSecondsConnected
(Uint64 secondsConnected) void
setUniqueFetchBytesRecv
(Uint64 uniqueFetchBytesRecv) void
setUniqueFetchMessageRecv
(Uint64 uniqueFetchMessageRecv) void
setUniqueFloodBytesRecv
(Uint64 uniqueFloodBytesRecv) void
setUniqueFloodMessageRecv
(Uint64 uniqueFloodMessageRecv) void
setVersionStr
(XdrString versionStr) toString()
default String
default byte[]
-
Constructor Details
-
PeerStats
public PeerStats() -
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)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getId
-
getVersionStr
-
getMessagesRead
-
getMessagesWritten
-
getBytesRead
-
getBytesWritten
-
getSecondsConnected
-
getUniqueFloodBytesRecv
-
getDuplicateFloodBytesRecv
-
getUniqueFetchBytesRecv
-
getDuplicateFetchBytesRecv
-
getUniqueFloodMessageRecv
-
getDuplicateFloodMessageRecv
-
getUniqueFetchMessageRecv
-
getDuplicateFetchMessageRecv
-
setId
-
setVersionStr
-
setMessagesRead
-
setMessagesWritten
-
setBytesRead
-
setBytesWritten
-
setSecondsConnected
-
setUniqueFloodBytesRecv
-
setDuplicateFloodBytesRecv
-
setUniqueFetchBytesRecv
-
setDuplicateFetchBytesRecv
-
setUniqueFloodMessageRecv
-
setDuplicateFloodMessageRecv
-
setUniqueFetchMessageRecv
-
setDuplicateFetchMessageRecv
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-