public class PbftInfo extends ConsensusInfo
| 构造器和说明 |
|---|
PbftInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
static PbftInfo |
builder(String phase,
long n,
long f,
Hash currentLeader,
Hash myId,
long currentView,
long lastExecSeq,
long proposeSize,
long proposeTimeoutInterval,
long normalTimeoutInterval,
long viewchangeTimeoutInterval) |
static PbftInfo |
builder(String phase,
long n,
long f,
Hash currentLeader,
Hash myId,
long currentView,
long lastExecSeq,
long proposeSize,
long proposeTimeoutInterval,
long normalTimeoutInterval,
long viewchangeTimeoutInterval,
ConsensusProposalStatusEnum consensusProposalStatusEnum) |
void |
fromJson(com.alibaba.fastjson.JSONObject jsonObject)
Decode message from json object.
|
void |
fromRlp(RlpList list)
Decode message from rlp bytes.
|
ConsensusInfoEnum |
getConsensusInfoEnum()
Getter method for property consensusInfoEnum.
|
ConsensusProposalStatusEnum |
getConsensusProposalStatus() |
Hash |
getCurrentLeader()
Getter method for property currentLeader.
|
long |
getCurrentView()
Getter method for property currentView.
|
long |
getF()
Getter method for property f.
|
long |
getLastExecSeq()
Getter method for property lastExecSeq.
|
Hash |
getMyId()
Getter method for property myId.
|
long |
getN()
Getter method for property n.
|
long |
getNormalTimeoutInterval()
Getter method for property normalTimeoutInterval.
|
String |
getPhase()
Getter method for property phase.
|
long |
getProposeSize()
Getter method for property proposeSize.
|
long |
getProposeTimeoutInterval()
Getter method for property proposeTimeoutInterval.
|
long |
getViewchangeTimeoutInterval()
Getter method for property viewchangeTimeoutInterval.
|
void |
toJson(com.alibaba.fastjson.JSONObject jsonObject)
Encode message to json object.
|
byte[] |
toRlp()
Encode message to rlp bytes.
|
setConsensusInfoEnumtoStringpublic static PbftInfo builder(String phase, long n, long f, Hash currentLeader, Hash myId, long currentView, long lastExecSeq, long proposeSize, long proposeTimeoutInterval, long normalTimeoutInterval, long viewchangeTimeoutInterval)
public static PbftInfo builder(String phase, long n, long f, Hash currentLeader, Hash myId, long currentView, long lastExecSeq, long proposeSize, long proposeTimeoutInterval, long normalTimeoutInterval, long viewchangeTimeoutInterval, ConsensusProposalStatusEnum consensusProposalStatusEnum)
public String getPhase()
public long getN()
public long getF()
public Hash getCurrentLeader()
public Hash getMyId()
public long getCurrentView()
public long getLastExecSeq()
public long getProposeSize()
public long getProposeTimeoutInterval()
public long getNormalTimeoutInterval()
public long getViewchangeTimeoutInterval()
public ConsensusProposalStatusEnum getConsensusProposalStatus()
public ConsensusInfoEnum getConsensusInfoEnum()
ConsensusInfogetConsensusInfoEnum 在类中 ConsensusInfopublic byte[] toRlp()
toRlp 在类中 ConsensusInfopublic void fromRlp(RlpList list)
fromRlp 在类中 ConsensusInfolist - the rlp bytespublic void toJson(com.alibaba.fastjson.JSONObject jsonObject)
toJson 在类中 ConsensusInfojsonObject - the json objectpublic void fromJson(com.alibaba.fastjson.JSONObject jsonObject)
fromJson 在类中 ConsensusInfojsonObject - the json objectCopyright © 2022. All rights reserved.