Class RasNodes


  • public class RasNodes
    extends Object
    • Constructor Detail

      • RasNodes

        public RasNodes​(Cluster cluster)
    • Method Detail

      • getNodeById

        public RasNode getNodeById​(String nodeId)
        get node object from nodeId.
      • freeSlots

        public void freeSlots​(Collection<WorkerSlot> workerSlots)
        Free everything on the given slots.
        Parameters:
        workerSlots - the slots to free
      • getHostnameToNodes

        public Map<String,​List<RasNode>> getHostnameToNodes()
        Get a map with list of RasNode for each hostname.
        Returns:
        map of hostname to a list of RasNode
      • getNodeIdToHostname

        public Map<String,​String> getNodeIdToHostname()
        Get a map from RasNodeId to HostName.
        Returns:
        map of nodeId to hostname