Package org.jppf.server.nio
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
FieldsModifier and TypeFieldDescriptionprotected org.jppf.node.protocol.TaskBundleThe latest bundle that was sent or received.Fields inherited from class org.jppf.nio.AbstractNioMessage
locations, nbObjects, positionFields inherited from class org.jppf.nio.AbstractNioMessageBase
channel, channelReadCount, channelWriteCount, count, currentDataLocation, currentLength, currentLengthObject, currentObject, lengthBuf, resetCurrentLength, ssl, sslHandler, sslHandlerReadCount, sslHandlerWriteCountFields inherited from interface org.jppf.nio.NioMessage
READ, WRITE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTaskBundleMessage(org.jppf.nio.NioContext context) Initialize this nio message with the specified context. -
Method Summary
Methods inherited from class org.jppf.nio.AbstractNioMessage
addLocation, afterFirstRead, beforeFirstWrite, getLocations, read, readNextObject, write, writeNextObjectMethods inherited from class org.jppf.nio.AbstractNioMessageBase
getChannelReadCount, getChannelWriteCount, getCurrentDataLocation, isSSL, updateCounts
-
Field Details
-
bundle
protected org.jppf.node.protocol.TaskBundle bundleThe 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
JPPFTaskBundleinstance.
-
setBundle
public void setBundle(org.jppf.node.protocol.TaskBundle bundle) Set the latest bundle that was sent or received.- Parameters:
bundle- aJPPFTaskBundleinstance.
-
toString
- Overrides:
toStringin classorg.jppf.nio.AbstractNioMessage
-