public abstract class SystemMessage
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
boolean |
authenticated |
protected int |
sender |
Constructor and Description |
---|
SystemMessage()
Creates a new instance of SystemMessage
|
SystemMessage(int sender)
Creates a new instance of SystemMessage
|
Modifier and Type | Method and Description |
---|---|
int |
getSender()
Returns the ID of the process which sent the message
|
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
public SystemMessage()
public SystemMessage(int sender)
sender
- ID of the process which sent the messagepublic final int getSender()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException