public class User extends Object
Constructor and Description |
---|
User(String userId) |
User(String userId,
Map<String,Double> resourcePool) |
public User(String userId)
public String getId()
public TreeSet<TopologyDetails> getRunningTopologies(ISchedulingState cluster)
public TreeSet<TopologyDetails> getPendingTopologies(ISchedulingState cluster)
public void markTopoUnsuccess(TopologyDetails topo, Cluster cluster)
public void markTopoUnsuccess(TopologyDetails topo)
public double getResourcePoolAverageUtilization(ISchedulingState cluster)
public double getCpuResourcePoolUtilization(ISchedulingState cluster)
public double getMemoryResourcePoolUtilization(ISchedulingState cluster)
public double getMemoryResourceRequest(ISchedulingState cluster)
public double getCpuResourceRequest(ISchedulingState cluster)
public double getCpuResourceUsedByUser(ISchedulingState cluster)
public double getMemoryResourceUsedByUser(ISchedulingState cluster)
public double getMemoryResourceGuaranteed()
public double getCpuResourceGuaranteed()
public TopologyDetails getNextTopologyToSchedule(ISchedulingState cluster)
public boolean hasTopologyNeedSchedule(ISchedulingState cluster)
public TopologyDetails getRunningTopologyWithLowestPriority(ISchedulingState cluster)
Copyright © 2022 The Apache Software Foundation. All rights reserved.