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)
workerSlots
- the slots to freepublic Collection<RasNode> getNodes()
public Map<String,List<RasNode>> getHostnameToNodes()
public Map<String,String> getNodeIdToHostname()
Copyright © 2023 The Apache Software Foundation. All rights reserved.