Class StandardSMMessage
- java.lang.Object
-
- bftsmart.communication.SystemMessage
-
- bftsmart.statemanagement.SMMessage
-
- bftsmart.statemanagement.standard.StandardSMMessage
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
public class StandardSMMessage extends SMMessage
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class bftsmart.statemanagement.SMMessage
TRIGGER_SM_LOCALLY
-
Fields inherited from class bftsmart.communication.SystemMessage
authenticated, sender
-
-
Constructor Summary
Constructors Constructor Description StandardSMMessage()
StandardSMMessage(int sender, int cid, int type, int replica, ApplicationState state, View view, int regency, int leader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getReplica()
Retrieves the replica that should send the statevoid
readExternal(java.io.ObjectInput in)
void
writeExternal(java.io.ObjectOutput out)
-
Methods inherited from class bftsmart.statemanagement.SMMessage
getCID, getLeader, getRegency, getState, getType, getView
-
Methods inherited from class bftsmart.communication.SystemMessage
getSender
-
-
-
-
Constructor Detail
-
StandardSMMessage
public StandardSMMessage(int sender, int cid, int type, int replica, ApplicationState state, View view, int regency, int leader)
-
StandardSMMessage
public StandardSMMessage()
-
-
Method Detail
-
getReplica
public int getReplica()
Retrieves the replica that should send the state- Returns:
- The replica that should send the state
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classSMMessage
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classSMMessage
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-