Package org.stellar.sdk.xdr
Class TopologyResponseBodyV1
java.lang.Object
org.stellar.sdk.xdr.TopologyResponseBodyV1
TopologyResponseBodyV1's original definition in the XDR file is:
struct TopologyResponseBodyV1
{
PeerStatList inboundPeers;
PeerStatList outboundPeers;
uint32 totalInboundPeerCount;
uint32 totalOutboundPeerCount;
uint32 maxInboundPeerCount;
uint32 maxOutboundPeerCount;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionTopologyResponseBodyV1(PeerStatList inboundPeers, PeerStatList outboundPeers, Uint32 totalInboundPeerCount, Uint32 totalOutboundPeerCount, Uint32 maxInboundPeerCount, Uint32 maxOutboundPeerCount) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TopologyResponseBodyV1decode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic TopologyResponseBodyV1fromXdrBase64(String xdr) static TopologyResponseBodyV1fromXdrByteArray(byte[] xdr) inthashCode()voidsetInboundPeers(PeerStatList inboundPeers) voidsetMaxInboundPeerCount(Uint32 maxInboundPeerCount) voidsetMaxOutboundPeerCount(Uint32 maxOutboundPeerCount) voidsetOutboundPeers(PeerStatList outboundPeers) voidsetTotalInboundPeerCount(Uint32 totalInboundPeerCount) voidsetTotalOutboundPeerCount(Uint32 totalOutboundPeerCount) toString()default Stringdefault byte[]
-
Constructor Details
-
TopologyResponseBodyV1
public TopologyResponseBodyV1() -
TopologyResponseBodyV1
public TopologyResponseBodyV1(PeerStatList inboundPeers, PeerStatList outboundPeers, Uint32 totalInboundPeerCount, Uint32 totalOutboundPeerCount, Uint32 maxInboundPeerCount, Uint32 maxOutboundPeerCount)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getInboundPeers
-
getOutboundPeers
-
getTotalInboundPeerCount
-
getTotalOutboundPeerCount
-
getMaxInboundPeerCount
-
getMaxOutboundPeerCount
-
setInboundPeers
-
setOutboundPeers
-
setTotalInboundPeerCount
-
setTotalOutboundPeerCount
-
setMaxInboundPeerCount
-
setMaxOutboundPeerCount
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-