public class TimeSlicedNodeData extends java.lang.Object implements XdrElement
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; };
Modifier and Type | Class and Description |
---|---|
static class |
TimeSlicedNodeData.TimeSlicedNodeDataBuilder |
Constructor and Description |
---|
TimeSlicedNodeData() |
TimeSlicedNodeData(Uint32 addedAuthenticatedPeers,
Uint32 droppedAuthenticatedPeers,
Uint32 totalInboundPeerCount,
Uint32 totalOutboundPeerCount,
Uint32 p75SCPFirstToSelfLatencyMs,
Uint32 p75SCPSelfToOtherLatencyMs,
Uint32 lostSyncCount,
java.lang.Boolean isValidator,
Uint32 maxInboundPeerCount,
Uint32 maxOutboundPeerCount) |
toXdrBase64, toXdrByteArray
public TimeSlicedNodeData()
public TimeSlicedNodeData(Uint32 addedAuthenticatedPeers, Uint32 droppedAuthenticatedPeers, Uint32 totalInboundPeerCount, Uint32 totalOutboundPeerCount, Uint32 p75SCPFirstToSelfLatencyMs, Uint32 p75SCPSelfToOtherLatencyMs, Uint32 lostSyncCount, java.lang.Boolean isValidator, Uint32 maxInboundPeerCount, Uint32 maxOutboundPeerCount)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static TimeSlicedNodeData decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static TimeSlicedNodeData fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static TimeSlicedNodeData fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static TimeSlicedNodeData.TimeSlicedNodeDataBuilder builder()
public TimeSlicedNodeData.TimeSlicedNodeDataBuilder toBuilder()
public Uint32 getAddedAuthenticatedPeers()
public Uint32 getDroppedAuthenticatedPeers()
public Uint32 getTotalInboundPeerCount()
public Uint32 getTotalOutboundPeerCount()
public Uint32 getP75SCPFirstToSelfLatencyMs()
public Uint32 getP75SCPSelfToOtherLatencyMs()
public Uint32 getLostSyncCount()
public java.lang.Boolean getIsValidator()
public Uint32 getMaxInboundPeerCount()
public Uint32 getMaxOutboundPeerCount()
public void setAddedAuthenticatedPeers(Uint32 addedAuthenticatedPeers)
public void setDroppedAuthenticatedPeers(Uint32 droppedAuthenticatedPeers)
public void setTotalInboundPeerCount(Uint32 totalInboundPeerCount)
public void setTotalOutboundPeerCount(Uint32 totalOutboundPeerCount)
public void setP75SCPFirstToSelfLatencyMs(Uint32 p75SCPFirstToSelfLatencyMs)
public void setP75SCPSelfToOtherLatencyMs(Uint32 p75SCPSelfToOtherLatencyMs)
public void setLostSyncCount(Uint32 lostSyncCount)
public void setIsValidator(java.lang.Boolean isValidator)
public void setMaxInboundPeerCount(Uint32 maxInboundPeerCount)
public void setMaxOutboundPeerCount(Uint32 maxOutboundPeerCount)
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