Package org.stellar.sdk.xdr
Class TimeSlicedNodeData
java.lang.Object
org.stellar.sdk.xdr.TimeSlicedNodeData
TimeSlicedNodeData's original definition in the XDR file is:
struct TimeSlicedNodeData { uint32 addedAuthenticatedPeers; uint32 droppedAuthenticatedPeers; uint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; // SCP stats uint32 p75SCPFirstToSelfLatencyMs; uint32 p75SCPSelfToOtherLatencyMs; // How many times the node lost sync in the time slice uint32 lostSyncCount; // Config data bool isValidator; uint32 maxInboundPeerCount; uint32 maxOutboundPeerCount; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTimeSlicedNodeData
(Uint32 addedAuthenticatedPeers, Uint32 droppedAuthenticatedPeers, Uint32 totalInboundPeerCount, Uint32 totalOutboundPeerCount, Uint32 p75SCPFirstToSelfLatencyMs, Uint32 p75SCPSelfToOtherLatencyMs, Uint32 lostSyncCount, Boolean isValidator, Uint32 maxInboundPeerCount, Uint32 maxOutboundPeerCount) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static TimeSlicedNodeData
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static TimeSlicedNodeData
fromXdrBase64
(String xdr) static TimeSlicedNodeData
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAddedAuthenticatedPeers
(Uint32 addedAuthenticatedPeers) void
setDroppedAuthenticatedPeers
(Uint32 droppedAuthenticatedPeers) void
setIsValidator
(Boolean isValidator) void
setLostSyncCount
(Uint32 lostSyncCount) void
setMaxInboundPeerCount
(Uint32 maxInboundPeerCount) void
setMaxOutboundPeerCount
(Uint32 maxOutboundPeerCount) void
setP75SCPFirstToSelfLatencyMs
(Uint32 p75SCPFirstToSelfLatencyMs) void
setP75SCPSelfToOtherLatencyMs
(Uint32 p75SCPSelfToOtherLatencyMs) void
setTotalInboundPeerCount
(Uint32 totalInboundPeerCount) void
setTotalOutboundPeerCount
(Uint32 totalOutboundPeerCount) toString()
default String
default byte[]
-
Constructor Details
-
TimeSlicedNodeData
public TimeSlicedNodeData() -
TimeSlicedNodeData
public TimeSlicedNodeData(Uint32 addedAuthenticatedPeers, Uint32 droppedAuthenticatedPeers, Uint32 totalInboundPeerCount, Uint32 totalOutboundPeerCount, Uint32 p75SCPFirstToSelfLatencyMs, Uint32 p75SCPSelfToOtherLatencyMs, Uint32 lostSyncCount, Boolean isValidator, Uint32 maxInboundPeerCount, Uint32 maxOutboundPeerCount)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getAddedAuthenticatedPeers
-
getDroppedAuthenticatedPeers
-
getTotalInboundPeerCount
-
getTotalOutboundPeerCount
-
getP75SCPFirstToSelfLatencyMs
-
getP75SCPSelfToOtherLatencyMs
-
getLostSyncCount
-
getIsValidator
-
getMaxInboundPeerCount
-
getMaxOutboundPeerCount
-
setAddedAuthenticatedPeers
-
setDroppedAuthenticatedPeers
-
setTotalInboundPeerCount
-
setTotalOutboundPeerCount
-
setP75SCPFirstToSelfLatencyMs
-
setP75SCPSelfToOtherLatencyMs
-
setLostSyncCount
-
setIsValidator
-
setMaxInboundPeerCount
-
setMaxOutboundPeerCount
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-