Package bftsmart.communication
Class SystemMessage
- java.lang.Object
-
- bftsmart.communication.SystemMessage
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
- Direct Known Subclasses:
ConsensusMessage
,ForwardedMessage
,LCMessage
,SMMessage
,TOMMessage
,VMMessage
public abstract class SystemMessage extends java.lang.Object implements java.io.Externalizable
This is the super-class for all other kinds of messages created by JBP- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean
authenticated
protected int
sender
-
Constructor Summary
Constructors Constructor Description SystemMessage()
Creates a new instance of SystemMessageSystemMessage(int sender)
Creates a new instance of SystemMessage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSender()
Returns the ID of the process which sent the messagevoid
readExternal(java.io.ObjectInput in)
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
getSender
public final int getSender()
Returns the ID of the process which sent the message- Returns:
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- 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
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-