public class HostStatus extends MychainObject
| 构造器和说明 |
|---|
HostStatus() |
HostStatus(NodeInfo nodeInfo,
BigInteger latestBlockNumber) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fromJson(com.alibaba.fastjson.JSONObject jsonObject)
Decode message from json object.
|
void |
fromRlp(RlpList list)
Decode message from rlp bytes.
|
BigInteger |
getLatestBlockNumber() |
NodeInfo |
getNodeInfo() |
Long |
getTimestamp() |
void |
setLatestBlockNumber(BigInteger latestBlockNumber) |
void |
setNodeInfo(NodeInfo nodeInfo) |
void |
setTimestamp(Long timestamp) |
void |
toJson(com.alibaba.fastjson.JSONObject jsonObject)
Encode message to json object.
|
byte[] |
toRlp()
Encode message to rlp bytes.
|
toStringpublic HostStatus()
public HostStatus(NodeInfo nodeInfo, BigInteger latestBlockNumber)
public NodeInfo getNodeInfo()
public void setNodeInfo(NodeInfo nodeInfo)
public BigInteger getLatestBlockNumber()
public void setLatestBlockNumber(BigInteger latestBlockNumber)
public Long getTimestamp()
public void setTimestamp(Long timestamp)
public void fromRlp(RlpList list)
MychainObjectfromRlp 在类中 MychainObjectlist - the rlp bytespublic byte[] toRlp()
MychainObjecttoRlp 在类中 MychainObjectpublic void fromJson(com.alibaba.fastjson.JSONObject jsonObject)
MychainObjectfromJson 在类中 MychainObjectjsonObject - the json objectpublic void toJson(com.alibaba.fastjson.JSONObject jsonObject)
MychainObjecttoJson 在类中 MychainObjectjsonObject - the json objectCopyright © 2022. All rights reserved.