public class NodeInfo extends MychainObject
| 构造器和说明 |
|---|
NodeInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
static NodeInfo |
builder(Hash nodeId,
List<EndPoint> endPoints,
PublicKey publicKey,
NodeRoleEnum nodeRoleEnum,
ContractNodeStatusEnum contractNodeStatusEnum) |
boolean |
equals(Object o) |
void |
fromJson(com.alibaba.fastjson.JSONObject jsonObject)
Decode message from json object.
|
void |
fromRlp(RlpList list)
Decode message from rlp bytes.
|
ContractNodeStatusEnum |
getContractNodeStatusEnum()
Getter method for property contractNodeStatusEnum.
|
List<EndPoint> |
getEndPoints()
Getter method for property endPoints.
|
Hash |
getNodeId()
Getter method for property nodeId.
|
NodeRoleEnum |
getNodeRoleEnum()
Getter method for property nodeRoleEnum.
|
PublicKey |
getPublicKey()
Getter method for property publicKey.
|
int |
hashCode() |
void |
setEndPoints(List<EndPoint> endPoints)
Setter method for property endPoints.
|
void |
toJson(com.alibaba.fastjson.JSONObject jsonObject)
Encode message to json object.
|
byte[] |
toRlp()
Encode message to rlp bytes.
|
toStringpublic static NodeInfo builder(Hash nodeId, List<EndPoint> endPoints, PublicKey publicKey, NodeRoleEnum nodeRoleEnum, ContractNodeStatusEnum contractNodeStatusEnum)
public Hash getNodeId()
public List<EndPoint> getEndPoints()
public void setEndPoints(List<EndPoint> endPoints)
endPoints - value to be assigned to property endPointspublic PublicKey getPublicKey()
public NodeRoleEnum getNodeRoleEnum()
public ContractNodeStatusEnum getContractNodeStatusEnum()
public byte[] toRlp()
toRlp 在类中 MychainObjectpublic void fromRlp(RlpList list)
fromRlp 在类中 MychainObjectlist - the rlp bytespublic void toJson(com.alibaba.fastjson.JSONObject jsonObject)
toJson 在类中 MychainObjectjsonObject - the json objectpublic void fromJson(com.alibaba.fastjson.JSONObject jsonObject)
fromJson 在类中 MychainObjectjsonObject - the json objectCopyright © 2022. All rights reserved.