- 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NodeInformationMapping
PSEUDO_DISTRIBUTED
Any empty mapping that is used in the pseudo-distributed case
-
Constructor Summary
Constructors Constructor Description NodeInformationMapping(List<NodeInformation> nodeInformation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.List<NodeInformation>
getNodeInformation()
Returns the list of node information in this mapNodeInformation
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.
-
-
-
Field Detail
-
PSEUDO_DISTRIBUTED
public static NodeInformationMapping PSEUDO_DISTRIBUTED
Any empty mapping that is used in the pseudo-distributed case
-
-
Constructor Detail
-
NodeInformationMapping
public NodeInformationMapping(List<NodeInformation> nodeInformation)
-
-
Method Detail
-
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
-
-