Package edu.rit.pj.cluster
Class Message
java.lang.Object
edu.rit.pj.cluster.Message
- All Implemented Interfaces:
Externalizable
,Serializable
- Direct Known Subclasses:
JobBackendMessage
,JobFrontendMessage
,JobSchedulerMessage
Class Message is the abstract base class for a message sent to a process in
the PJ cluster middleware.
- Version:
- 20-Nov-2006
- Author:
- Alan Kaminsky
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The message tag for a message containing data read from a file.static final int
The message tag for a message containing data to write to a file.static final int
The message tag for a message from a job backend process.static final int
The message tag for a message from a job frontend process.static final int
The message tag for a message from a job launcher process.static final int
The message tag for a message from a job scheduler process. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getTag()
Get the message tag to use when sending this message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
-
Field Details
-
FROM_JOB_BACKEND
public static final int FROM_JOB_BACKENDThe message tag for a message from a job backend process.- See Also:
-
FROM_JOB_FRONTEND
public static final int FROM_JOB_FRONTENDThe message tag for a message from a job frontend process.- See Also:
-
FROM_JOB_LAUNCHER
public static final int FROM_JOB_LAUNCHERThe message tag for a message from a job launcher process.- See Also:
-
FROM_JOB_SCHEDULER
public static final int FROM_JOB_SCHEDULERThe message tag for a message from a job scheduler process.- See Also:
-
FILE_WRITE_DATA
public static final int FILE_WRITE_DATAThe message tag for a message containing data to write to a file.- See Also:
-
FILE_READ_DATA
public static final int FILE_READ_DATAThe message tag for a message containing data read from a file.- See Also:
-
-
Constructor Details
-
Message
public Message()Construct a new message. -
Message
public Message(int theTag) Construct a new message with the given message tag.- Parameters:
theTag
- Message tag to use when sending this message.
-
-
Method Details
-
getTag
public int getTag()Get the message tag to use when sending this message.- Returns:
- Message tag.
-