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.ExternalizableThis 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 booleanauthenticatedprotected intsender
-
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 intgetSender()Returns the ID of the process which sent the messagevoidreadExternal(java.io.ObjectInput in)voidwriteExternal(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:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-