Class NodeInformationMapping

java.lang.Object
com.pervasive.datarush.cal.NodeInformationMapping
All Implemented Interfaces:
Serializable

public final class NodeInformationMapping extends Object implements Serializable
Contains host information associated with the nodes in the cluster that the current job is running on. Note that the information in this mapping is captured at the time the job is submitted and so contains host information for those nodes that are used by the job.
See Also:
  • Field Details

    • PSEUDO_DISTRIBUTED

      public static NodeInformationMapping PSEUDO_DISTRIBUTED
      Any empty mapping that is used in the pseudo-distributed case
  • Constructor Details

    • NodeInformationMapping

      public NodeInformationMapping(List<NodeInformation> nodeInformation)
  • Method Details

    • getNodeInformation

      public List<NodeInformation> getNodeInformation()
      Returns the list of node information in this map
      Returns:
      the list of node information
    • getNodeInformation

      public NodeInformation getNodeInformation(String nodeID)
      Returns the node information for the given nodeID or null if the nodeID either doesn't exist or is not a node used by this job.
      Parameters:
      nodeID - the nodeID
      Returns:
      the node information
    • getHostName

      public String getHostName(String nodeID)
      Returns the host name for the given nodeID or null if the nodeID either doesn't exist or is not a node used by this job.
      Parameters:
      nodeID - the nodeID
      Returns:
      the host name