Class TimeSlicedNodeData

java.lang.Object
org.stellar.sdk.xdr.TimeSlicedNodeData

public class TimeSlicedNodeData extends Object
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;
 };
 
  • 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

      public void encode(XdrDataOutputStream stream) throws IOException
      Throws:
      IOException
    • decode

      public static TimeSlicedNodeData decode(XdrDataInputStream stream) throws IOException
      Throws:
      IOException
    • fromXdrBase64

      public static TimeSlicedNodeData fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static TimeSlicedNodeData fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • builder

    • toBuilder

    • getAddedAuthenticatedPeers

      public Uint32 getAddedAuthenticatedPeers()
    • getDroppedAuthenticatedPeers

      public Uint32 getDroppedAuthenticatedPeers()
    • getTotalInboundPeerCount

      public Uint32 getTotalInboundPeerCount()
    • getTotalOutboundPeerCount

      public Uint32 getTotalOutboundPeerCount()
    • getP75SCPFirstToSelfLatencyMs

      public Uint32 getP75SCPFirstToSelfLatencyMs()
    • getP75SCPSelfToOtherLatencyMs

      public Uint32 getP75SCPSelfToOtherLatencyMs()
    • getLostSyncCount

      public Uint32 getLostSyncCount()
    • getIsValidator

      public Boolean getIsValidator()
    • getMaxInboundPeerCount

      public Uint32 getMaxInboundPeerCount()
    • getMaxOutboundPeerCount

      public Uint32 getMaxOutboundPeerCount()
    • setAddedAuthenticatedPeers

      public void setAddedAuthenticatedPeers(Uint32 addedAuthenticatedPeers)
    • setDroppedAuthenticatedPeers

      public void setDroppedAuthenticatedPeers(Uint32 droppedAuthenticatedPeers)
    • setTotalInboundPeerCount

      public void setTotalInboundPeerCount(Uint32 totalInboundPeerCount)
    • setTotalOutboundPeerCount

      public void setTotalOutboundPeerCount(Uint32 totalOutboundPeerCount)
    • setP75SCPFirstToSelfLatencyMs

      public void setP75SCPFirstToSelfLatencyMs(Uint32 p75SCPFirstToSelfLatencyMs)
    • setP75SCPSelfToOtherLatencyMs

      public void setP75SCPSelfToOtherLatencyMs(Uint32 p75SCPSelfToOtherLatencyMs)
    • setLostSyncCount

      public void setLostSyncCount(Uint32 lostSyncCount)
    • setIsValidator

      public void setIsValidator(Boolean isValidator)
    • setMaxInboundPeerCount

      public void setMaxInboundPeerCount(Uint32 maxInboundPeerCount)
    • setMaxOutboundPeerCount

      public void setMaxOutboundPeerCount(Uint32 maxOutboundPeerCount)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toXdrBase64

      default String toXdrBase64() throws IOException
      Throws:
      IOException
    • toXdrByteArray

      default byte[] toXdrByteArray() throws IOException
      Throws:
      IOException