Class StatusData
- java.lang.Object
-
- com.syntifi.casper.sdk.model.status.StatusData
-
public class StatusData extends java.lang.Object
Returns the current status of the node- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatusData.StatusDataBuilder
-
Constructor Summary
Constructors Constructor Description StatusData()
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatusData.StatusDataBuilder
builder()
java.lang.String
getApiVersion()
The RPC API versionjava.lang.String
getBuildVersion()
The compiled node versionjava.lang.String
getChainSpecName()
The chainspec nameMinimalBlockInfo
getLastAddedBlockInfo()
NextUpgrade
getNextUpgrade()
java.util.List<PeerEntry>
getPeers()
List ofPublicKey
getPublicKey()
java.lang.String
getRoundLength()
The next round length if this node is a validatorjava.lang.String
getStartStateRootHash()
The state root hash used at the start of the current sessionjava.lang.String
getUptime()
Time passed since the node has startedvoid
setApiVersion(java.lang.String apiVersion)
The RPC API versionvoid
setBuildVersion(java.lang.String buildVersion)
The compiled node versionvoid
setChainSpecName(java.lang.String chainSpecName)
The chainspec namevoid
setLastAddedBlockInfo(MinimalBlockInfo lastAddedBlockInfo)
void
setNextUpgrade(NextUpgrade nextUpgrade)
void
setPeers(java.util.List<PeerEntry> peers)
List ofvoid
setPublicKey(PublicKey publicKey)
void
setRoundLength(java.lang.String roundLength)
The next round length if this node is a validatorvoid
setStartStateRootHash(java.lang.String startStateRootHash)
The state root hash used at the start of the current sessionvoid
setUptime(java.lang.String uptime)
Time passed since the node has started
-
-
-
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
-
builder
public static StatusData.StatusDataBuilder builder()
-
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
-
getLastAddedBlockInfo
public MinimalBlockInfo getLastAddedBlockInfo()
- See Also:
MinimalBlockInfo
-
getNextUpgrade
public NextUpgrade getNextUpgrade()
- See Also:
NextUpgrade
-
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
-
setLastAddedBlockInfo
public void setLastAddedBlockInfo(MinimalBlockInfo lastAddedBlockInfo)
- See Also:
MinimalBlockInfo
-
setNextUpgrade
public void setNextUpgrade(NextUpgrade nextUpgrade)
- See Also:
NextUpgrade
-
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
-
-