public class User extends Object
Constructor and Description |
---|
User(String userId) |
User(String userId,
Map<String,Double> resourcePool) |
User(User src)
Copy Constructor
|
public String getId()
public void addTopologyToPendingQueue(TopologyDetails topo, Cluster cluster)
public void addTopologyToPendingQueue(TopologyDetails topo)
public void addTopologyToRunningQueue(TopologyDetails topo, Cluster cluster)
public void addTopologyToRunningQueue(TopologyDetails topo)
public Set<TopologyDetails> getTopologiesPending()
public void addTopologyToAttemptedQueue(TopologyDetails topo)
public void addTopologyToInvalidQueue(TopologyDetails topo)
public Set<TopologyDetails> getTopologiesRunning()
public Set<TopologyDetails> getTopologiesAttempted()
public Set<TopologyDetails> getTopologiesInvalid()
public void moveTopoFromPendingToRunning(TopologyDetails topo, Cluster cluster)
public void moveTopoFromPendingToRunning(TopologyDetails topo)
public void moveTopoFromPendingToAttempted(TopologyDetails topo, Cluster cluster)
public void moveTopoFromPendingToAttempted(TopologyDetails topo)
public void moveTopoFromPendingToInvalid(TopologyDetails topo, Cluster cluster)
public void moveTopoFromPendingToInvalid(TopologyDetails topo)
public void moveTopoFromRunningToPending(TopologyDetails topo, Cluster cluster)
public void moveTopoFromRunningToPending(TopologyDetails topo)
public double getResourcePoolAverageUtilization()
public double getCPUResourcePoolUtilization()
public double getMemoryResourcePoolUtilization()
public double getCPUResourceUsedByUser()
public double getMemoryResourceUsedByUser()
public Double getMemoryResourceGuaranteed()
public Double getCPUResourceGuaranteed()
public TopologyDetails getNextTopologyToSchedule()
public boolean hasTopologyNeedSchedule()
public TopologyDetails getRunningTopologyWithLowestPriority()
public String getDetailedInfo()
public static String getResourcePoolAverageUtilizationForUsers(Collection<User> users)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.