Package org.stellar.sdk.xdr
Class TimeSlicedNodeData
java.lang.Object
org.stellar.sdk.xdr.TimeSlicedNodeData
- All Implemented Interfaces:
XdrElement
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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTimeSlicedNodeData(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 TimeSlicedNodeDatadecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic TimeSlicedNodeDatafromXdrBase64(String xdr) static TimeSlicedNodeDatafromXdrByteArray(byte[] xdr) inthashCode()voidsetAddedAuthenticatedPeers(Uint32 addedAuthenticatedPeers) voidsetDroppedAuthenticatedPeers(Uint32 droppedAuthenticatedPeers) voidsetIsValidator(Boolean isValidator) voidsetLostSyncCount(Uint32 lostSyncCount) voidsetMaxInboundPeerCount(Uint32 maxInboundPeerCount) voidsetMaxOutboundPeerCount(Uint32 maxOutboundPeerCount) voidsetP75SCPFirstToSelfLatencyMs(Uint32 p75SCPFirstToSelfLatencyMs) voidsetP75SCPSelfToOtherLatencyMs(Uint32 p75SCPSelfToOtherLatencyMs) voidsetTotalInboundPeerCount(Uint32 totalInboundPeerCount) voidsetTotalOutboundPeerCount(Uint32 totalOutboundPeerCount) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
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
- Specified by:
encodein interfaceXdrElement- 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
-