Class Message

java.lang.Object
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.
Version:
20-Nov-2006
Author:
Alan Kaminsky
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    Construct a new message.
    Message(int theTag)
    Construct a new message with the given message tag.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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_BACKEND
      The message tag for a message from a job backend process.
      See Also:
    • FROM_JOB_FRONTEND

      public static final int FROM_JOB_FRONTEND
      The message tag for a message from a job frontend process.
      See Also:
    • FROM_JOB_LAUNCHER

      public static final int FROM_JOB_LAUNCHER
      The message tag for a message from a job launcher process.
      See Also:
    • FROM_JOB_SCHEDULER

      public static final int FROM_JOB_SCHEDULER
      The message tag for a message from a job scheduler process.
      See Also:
    • 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:
    • FILE_READ_DATA

      public static final int FILE_READ_DATA
      The 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.