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

    Constructors
    Constructor
    Description
    NodeBundleResults(org.jppf.node.protocol.TaskBundle bundle, List<org.jppf.io.DataLocation> data)
    Initialize with the specified task bundle and task data.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jppf.node.protocol.TaskBundle
    Get the task bundle.
    List<org.jppf.io.DataLocation>
    Return the task data.

    Methods inherited from class org.jppf.utils.Pair

    equals, first, hashCode, left, right, second, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 of DataLocation instances.
  • Method Details

    • bundle

      public org.jppf.node.protocol.TaskBundle bundle()
      Get the task bundle.
      Returns:
      a TaskBundle instance.
    • data

      public List<org.jppf.io.DataLocation> data()
      Return the task data.
      Returns:
      a list of DataLocation instances.