Package org.jppf.server.nio.nodeserver
Class NodeBundleResults
java.lang.Object
org.jppf.utils.Pair<org.jppf.node.protocol.TaskBundle,List<org.jppf.io.DataLocation>>
org.jppf.server.nio.nodeserver.NodeBundleResults
- All Implemented Interfaces:
Serializable
public class NodeBundleResults
extends org.jppf.utils.Pair<org.jppf.node.protocol.TaskBundle,List<org.jppf.io.DataLocation>>
Convenience class to simplify and improve readability of the code.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class org.jppf.utils.Pair
first, second -
Constructor Summary
ConstructorsConstructorDescriptionNodeBundleResults(org.jppf.node.protocol.TaskBundle bundle, List<org.jppf.io.DataLocation> data) Initialize with the specified task bundle and task data. -
Method Summary
Methods inherited from class org.jppf.utils.Pair
equals, first, hashCode, left, right, second, toString
-
Constructor Details
-
NodeBundleResults
public NodeBundleResults(org.jppf.node.protocol.TaskBundle bundle, List<org.jppf.io.DataLocation> data) Initialize with the specified task bundle and task data.- Parameters:
bundle- the header received from the node.data- a list ofDataLocationinstances.
-
-
Method Details
-
bundle
public org.jppf.node.protocol.TaskBundle bundle()Get the task bundle.- Returns:
- a
TaskBundleinstance.
-
data
Return the task data.- Returns:
- a list of
DataLocationinstances.
-