Package org.jppf.server.node.local
Class AsyncLocalNodeIO
java.lang.Object
org.jppf.server.node.AbstractNodeIO<JPPFLocalNode>
org.jppf.server.node.local.AsyncLocalNodeIO
- All Implemented Interfaces:
org.jppf.server.node.NodeIO
This class performs the I/O operations requested by the JPPFNode, for reading the task bundles and sending the results back.
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class org.jppf.server.node.AbstractNodeIO
node -
Constructor Summary
ConstructorsConstructorDescriptionInitialize this TaskIO with the specified node. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]protected Object[]deserializeObjects(org.jppf.node.protocol.TaskBundle bundle) protected Object[]deserializeObjects(org.jppf.node.protocol.TaskBundle bundle, LocalNodeMessage currentMessage) Perform the deserialization of the objects received through the socket connection.protected voidPerforms the actions required if reloading the classes is necessary.protected voidsendResults(org.jppf.node.protocol.TaskBundle bundle, List<org.jppf.node.protocol.Task<?>> tasks) Methods inherited from class org.jppf.server.node.AbstractNodeIO
finalizeBundleData, initializeBundleData, postSendResults, readJob, readObjects, writeResults
-
Constructor Details
-
AsyncLocalNodeIO
Initialize this TaskIO with the specified node.- Parameters:
node- - the node who owns this TaskIO.
-
-
Method Details
-
deserializeObjects
- Specified by:
deserializeObjectsin classorg.jppf.server.node.AbstractNodeIO<JPPFLocalNode>- Throws:
Exception
-
handleReload
Performs the actions required if reloading the classes is necessary.- Specified by:
handleReloadin classorg.jppf.server.node.AbstractNodeIO<JPPFLocalNode>- Throws:
Exception- if any error occurs.
-
deserializeObjects
- Specified by:
deserializeObjectsin classorg.jppf.server.node.AbstractNodeIO<JPPFLocalNode>- Throws:
Exception
-
deserializeObjects
protected Object[] deserializeObjects(org.jppf.node.protocol.TaskBundle bundle, LocalNodeMessage currentMessage) throws Exception Perform the deserialization of the objects received through the socket connection.- Parameters:
bundle- the message header that contains information about the tasks and data provider.currentMessage- contains the tasks and data provider inserialized form.- Returns:
- an array of objects deserialized from the socket stream.
- Throws:
Exception- if an error occurs while deserializing.
-
sendResults
protected void sendResults(org.jppf.node.protocol.TaskBundle bundle, List<org.jppf.node.protocol.Task<?>> tasks) throws Exception - Specified by:
sendResultsin classorg.jppf.server.node.AbstractNodeIO<JPPFLocalNode>- Throws:
Exception
-