Class RasNodes
java.lang.Object
org.apache.storm.scheduler.resource.RasNodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
freeSlots
(Collection<WorkerSlot> workerSlots) Free everything on the given slots.getAllNodesFrom
(Cluster cluster) Get a map with list of RasNode for each hostname.getNodeById
(String nodeId) get node object from nodeId.Get a map from RasNodeId to HostName.getNodes()
toString()
-
Constructor Details
-
RasNodes
-
-
Method Details
-
getAllNodesFrom
-
getNodeById
get node object from nodeId. -
freeSlots
Free everything on the given slots.- Parameters:
workerSlots
- the slots to free
-
getNodes
-
getHostnameToNodes
Get a map with list of RasNode for each hostname.- Returns:
- map of hostname to a list of RasNode
-
getNodeIdToHostname
Get a map from RasNodeId to HostName.- Returns:
- map of nodeId to hostname
-
toString
-