Class AbstractTaskBundleMessage

java.lang.Object
org.jppf.nio.AbstractNioMessageBase
org.jppf.nio.AbstractNioMessage
org.jppf.server.nio.AbstractTaskBundleMessage
All Implemented Interfaces:
org.jppf.nio.NioMessage
Direct Known Subclasses:
ClientMessage, LocalNodeMessage, RemoteNodeMessage

public abstract class AbstractTaskBundleMessage extends org.jppf.nio.AbstractNioMessage
Common abstract superclass representing a message sent or received by a node. A message is the transformation of a job into an more easily transportable format.
Author:
Laurent Cohen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.jppf.node.protocol.TaskBundle
    The latest bundle that was sent or received.

    Fields inherited from class org.jppf.nio.AbstractNioMessage

    locations, nbObjects, position

    Fields inherited from class org.jppf.nio.AbstractNioMessageBase

    channel, channelReadCount, channelWriteCount, count, currentDataLocation, currentLength, currentLengthObject, currentObject, lengthBuf, resetCurrentLength, ssl, sslHandler, sslHandlerReadCount, sslHandlerWriteCount

    Fields inherited from interface org.jppf.nio.NioMessage

    READ, WRITE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractTaskBundleMessage(org.jppf.nio.NioContext context)
    Initialize this nio message with the specified context.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jppf.node.protocol.TaskBundle
    Get the latest bundle that was sent or received.
    void
    setBundle(org.jppf.node.protocol.TaskBundle bundle)
    Set the latest bundle that was sent or received.
     

    Methods inherited from class org.jppf.nio.AbstractNioMessage

    addLocation, afterFirstRead, beforeFirstWrite, getLocations, read, readNextObject, write, writeNextObject

    Methods inherited from class org.jppf.nio.AbstractNioMessageBase

    getChannelReadCount, getChannelWriteCount, getCurrentDataLocation, isSSL, updateCounts

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • bundle

      protected org.jppf.node.protocol.TaskBundle bundle
      The latest bundle that was sent or received.
  • Constructor Details

    • AbstractTaskBundleMessage

      public AbstractTaskBundleMessage(org.jppf.nio.NioContext context)
      Initialize this nio message with the specified context.
      Parameters:
      context - the context to read from or write to.
  • Method Details

    • getBundle

      public org.jppf.node.protocol.TaskBundle getBundle()
      Get the latest bundle that was sent or received.
      Returns:
      a JPPFTaskBundle instance.
    • setBundle

      public void setBundle(org.jppf.node.protocol.TaskBundle bundle)
      Set the latest bundle that was sent or received.
      Parameters:
      bundle - a JPPFTaskBundle instance.
    • toString

      public String toString()
      Overrides:
      toString in class org.jppf.nio.AbstractNioMessage