Class RasNodes
java.lang.Object
org.apache.storm.scheduler.resource.RasNodes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidfreeSlots(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
- 
getNodeByIdget node object from nodeId.
- 
freeSlotsFree everything on the given slots.- Parameters:
- workerSlots- the slots to free
 
- 
getNodes
- 
getHostnameToNodesGet a map with list of RasNode for each hostname.- Returns:
- map of hostname to a list of RasNode
 
- 
getNodeIdToHostnameGet a map from RasNodeId to HostName.- Returns:
- map of nodeId to hostname
 
- 
toString
 
-