public class RasNodes extends Object
Modifier and Type | Method and Description |
---|---|
void |
freeSlots(Collection<WorkerSlot> workerSlots)
Free everything on the given slots.
|
static Map<String,RasNode> |
getAllNodesFrom(Cluster cluster) |
Map<String,List<RasNode>> |
getHostnameToNodes()
Get a map with list of RasNode for each hostname.
|
RasNode |
getNodeById(String nodeId)
get node object from nodeId.
|
Map<String,String> |
getNodeIdToHostname()
Get a map from RasNodeId to HostName.
|
Collection<RasNode> |
getNodes() |
String |
toString() |
public RasNodes(Cluster cluster)
public void freeSlots(Collection<WorkerSlot> workerSlots)
Free everything on the given slots.
workerSlots
- the slots to freepublic Collection<RasNode> getNodes()
public Map<String,List<RasNode>> getHostnameToNodes()
Get a map with list of RasNode for each hostname.
public Map<String,String> getNodeIdToHostname()
Get a map from RasNodeId to HostName.
Copyright © 2022 The Apache Software Foundation. All rights reserved.