Package org.jppf.server.node
Interface NodeIO
- All Known Implementing Classes:
AbstractNodeIO
public interface NodeIO
This interface defines how a node receives a job and sends its execution results.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionorg.jppf.node.protocol.BundleWithTasksreadJob()Read a job from the socket connection, along with its header information.voidwriteResults(org.jppf.node.protocol.TaskBundle bundle, List<org.jppf.node.protocol.Task<?>> tasks) Write the execution results to the socket stream.
-
Method Details
-
readJob
Read a job from the socket connection, along with its header information. -
writeResults
void writeResults(org.jppf.node.protocol.TaskBundle bundle, List<org.jppf.node.protocol.Task<?>> tasks) throws Exception Write the execution results to the socket stream.- Parameters:
bundle- the task wrapper to send along.tasks- the list of tasks with their result field updated.- Throws:
Exception- if an error occurs while writing to the socket stream.
-