Package org.jppf.server.nio.client
Class ClientMessage
java.lang.Object
org.jppf.nio.AbstractNioMessageBase
org.jppf.nio.AbstractNioMessage
org.jppf.server.nio.AbstractTaskBundleMessage
org.jppf.server.nio.client.ClientMessage
- All Implemented Interfaces:
org.jppf.nio.NioMessage
Representation of a message sent or received by a remote node.
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class org.jppf.server.nio.AbstractTaskBundleMessage
bundleFields 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
ConstructorsConstructorDescriptionClientMessage(org.jppf.nio.NioContext context, ServerTaskBundleClient clientBundle) Initialize this nio message with the specified context. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidActions to take after the first object in the message has been fully read.protected voidActions to take before the first object in the message is written.protected booleantoString()Methods inherited from class org.jppf.server.nio.AbstractTaskBundleMessage
getBundle, setBundleMethods inherited from class org.jppf.nio.AbstractNioMessage
addLocation, getLocations, read, write, writeNextObjectMethods inherited from class org.jppf.nio.AbstractNioMessageBase
getChannelReadCount, getChannelWriteCount, getCurrentDataLocation, isSSL, updateCounts
-
Constructor Details
-
ClientMessage
Initialize this nio message with the specified context.- Parameters:
context- the context to read from or write to.clientBundle- the actual client task bundle from which this message is created.
-
-
Method Details
-
afterFirstRead
Actions to take after the first object in the message has been fully read.- Overrides:
afterFirstReadin classorg.jppf.nio.AbstractNioMessage- Throws:
Exception- if an IO error occurs.
-
beforeFirstWrite
Actions to take before the first object in the message is written.- Overrides:
beforeFirstWritein classorg.jppf.nio.AbstractNioMessage- Throws:
Exception- if an IO error occurs.
-
toString
- Overrides:
toStringin classAbstractTaskBundleMessage
-
getClientBundle
- Returns:
- the actual client task bundle from which this message is created
-
readNextObject
- Overrides:
readNextObjectin classorg.jppf.nio.AbstractNioMessage- Throws:
Exception
-