Class StatusData


  • public class StatusData
    extends java.lang.Object
    Returns the current status of the node
    Since:
    0.0.1
    • Constructor Detail

      • StatusData

        public StatusData​(java.lang.String apiVersion,
                          java.lang.String buildVersion,
                          java.lang.String chainSpecName,
                          MinimalBlockInfo lastAddedBlockInfo,
                          NextUpgrade nextUpgrade,
                          PublicKey publicKey,
                          java.util.List<PeerEntry> peers,
                          java.lang.String roundLength,
                          java.lang.String uptime,
                          java.lang.String startStateRootHash)
      • StatusData

        public StatusData()
    • Method Detail

      • getApiVersion

        public java.lang.String getApiVersion()
        The RPC API version
      • getBuildVersion

        public java.lang.String getBuildVersion()
        The compiled node version
      • getChainSpecName

        public java.lang.String getChainSpecName()
        The chainspec name
      • getRoundLength

        public java.lang.String getRoundLength()
        The next round length if this node is a validator
      • getUptime

        public java.lang.String getUptime()
        Time passed since the node has started
      • getStartStateRootHash

        public java.lang.String getStartStateRootHash()
        The state root hash used at the start of the current session
      • setApiVersion

        public void setApiVersion​(java.lang.String apiVersion)
        The RPC API version
      • setBuildVersion

        public void setBuildVersion​(java.lang.String buildVersion)
        The compiled node version
      • setChainSpecName

        public void setChainSpecName​(java.lang.String chainSpecName)
        The chainspec name
      • setPeers

        public void setPeers​(java.util.List<PeerEntry> peers)
        List of
        See Also:
        PeerEntry
      • setRoundLength

        public void setRoundLength​(java.lang.String roundLength)
        The next round length if this node is a validator
      • setUptime

        public void setUptime​(java.lang.String uptime)
        Time passed since the node has started
      • setStartStateRootHash

        public void setStartStateRootHash​(java.lang.String startStateRootHash)
        The state root hash used at the start of the current session