Class PeerInfo

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​Codec>, Codec

    public class PeerInfo
    extends Struct
    A system peer info indicator, reported back over RPC
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      PeerInfo​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      Hash getBestHash()
      The best block hash for the peer
      BlockNumber getBestNumber()
      The best block hash for the peer
      Text getPeerId()
      The p2p network id for the peer
      U32 getProtocolVersion()
      The index of the peer in our list
      Text getRoles()
      The roles of the peer on the network
      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.polkadot.types.Codec

        toU8a
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • PeerInfo

        public PeerInfo​(java.lang.Object value)
    • Method Detail

      • getBestHash

        public Hash getBestHash()
        The best block hash for the peer
      • getBestNumber

        public BlockNumber getBestNumber()
        The best block hash for the peer
      • getPeerId

        public Text getPeerId()
        The p2p network id for the peer
      • getProtocolVersion

        public U32 getProtocolVersion()
        The index of the peer in our list
      • getRoles

        public Text getRoles()
        The roles of the peer on the network