edu.rit.pj.cluster
Class Message

java.lang.Object
  extended by edu.rit.pj.cluster.Message
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
JobBackendMessage, JobFrontendMessage, JobSchedulerMessage

public abstract class Message
extends Object
implements Externalizable

Class Message is the abstract base class for a message sent to a process in the PJ cluster middleware.

See Also:
Serialized Form

Field Summary
static int FILE_READ_DATA
          The message tag for a message containing data read from a file.
static int FILE_WRITE_DATA
          The message tag for a message containing data to write to a file.
static int FROM_JOB_BACKEND
          The message tag for a message from a job backend process.
static int FROM_JOB_FRONTEND
          The message tag for a message from a job frontend process.
static int FROM_JOB_LAUNCHER
          The message tag for a message from a job launcher process.
static int FROM_JOB_SCHEDULER
          The message tag for a message from a job scheduler process.
 
Constructor Summary
Message()
          Construct a new message.
Message(int theTag)
          Construct a new message with the given message tag.
 
Method Summary
 int 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 Detail

FROM_JOB_BACKEND

public static final int FROM_JOB_BACKEND
The message tag for a message from a job backend process.

See Also:
Constant Field Values

FROM_JOB_FRONTEND

public static final int FROM_JOB_FRONTEND
The message tag for a message from a job frontend process.

See Also:
Constant Field Values

FROM_JOB_LAUNCHER

public static final int FROM_JOB_LAUNCHER
The message tag for a message from a job launcher process.

See Also:
Constant Field Values

FROM_JOB_SCHEDULER

public static final int FROM_JOB_SCHEDULER
The message tag for a message from a job scheduler process.

See Also:
Constant Field Values

FILE_WRITE_DATA

public static final int FILE_WRITE_DATA
The message tag for a message containing data to write to a file.

See Also:
Constant Field Values

FILE_READ_DATA

public static final int FILE_READ_DATA
The message tag for a message containing data read from a file.

See Also:
Constant Field Values
Constructor Detail

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 Detail

getTag

public int getTag()
Get the message tag to use when sending this message.

Returns:
Message tag.


Copyright © 2005-2012 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.