Class QueueInfo
java.lang.Object
org.apache.hadoop.yarn.api.records.QueueInfo
QueueInfo is a report of the runtime information of the queue.
It includes information such as:
- Queue name.
- Capacity of the queue.
- Maximum capacity of the queue.
- Current capacity of the queue.
- Child queues.
- Running applications.
QueueStateof the queue.QueueConfigurationsof the queue.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet theaccessible node labelsof the queue.abstract List<ApplicationReport>Get the running applications of the queue.abstract floatGet the configured capacity of the queue.Get the child queues of the queue.abstract floatGet the current capacity of the queue.abstract StringGet thedefault node label expressionof the queue, this takes affect only when theApplicationSubmissionContextandResourceRequestdon't specify theirNodeLabelExpression.abstract BooleanGet the intra-queue preemption status of the queue.abstract floatGet the maximum capacity of the queue.abstract intGet the configured max parallel apps of the queue.abstract longGet the maximum resource Memory.abstract intGet the maximum resource VCore.abstract intGet the MaxRunningApp.abstract longGet the minimum resource Memory.abstract intGet the minimum resource VCore.abstract BooleanGet the preemption status of the queue.abstract Map<String,QueueConfigurations> Get the per-node-label queue configurations of the queue.abstract StringGet the name of the queue.abstract StringGet the path of the queue.abstract QueueStateGet theQueueStateof the queue.abstract QueueStatisticsGet thequeue statsfor the queueabstract longGet the reserved resource Memory.abstract intGet the reserved resource VCore.abstract StringGet Scheduler type.abstract longGet the SteadyFairShare Memory.abstract intGet the SteadyFairShare VCore.abstract StringGet the SubClusterId.abstract floatGet the configured weight of the queue.static QueueInfonewInstance(String queueName, String queuePath, float capacity, float maximumCapacity, float currentCapacity, List<QueueInfo> childQueues, List<ApplicationReport> applications, QueueState queueState, Set<String> accessibleNodeLabels, String defaultNodeLabelExpression, QueueStatistics queueStatistics, boolean preemptionDisabled, float weight, int maxParallelApps) static QueueInfonewInstance(String queueName, String queuePath, float capacity, float maximumCapacity, float currentCapacity, List<QueueInfo> childQueues, List<ApplicationReport> applications, QueueState queueState, Set<String> accessibleNodeLabels, String defaultNodeLabelExpression, QueueStatistics queueStatistics, boolean preemptionDisabled, float weight, int maxParallelApps, Map<String, QueueConfigurations> queueConfigurations) static QueueInfonewInstance(String queueName, String queuePath, float capacity, float maximumCapacity, float currentCapacity, List<QueueInfo> childQueues, List<ApplicationReport> applications, QueueState queueState, Set<String> accessibleNodeLabels, String defaultNodeLabelExpression, QueueStatistics queueStatistics, boolean preemptionDisabled, float weight, int maxParallelApps, Map<String, QueueConfigurations> queueConfigurations, boolean intraQueuePreemptionDisabled) abstract voidsetAccessibleNodeLabels(Set<String> labels) Set theaccessible node labelsof the queue.abstract voidsetApplications(List<ApplicationReport> applications) abstract voidsetCapacity(float capacity) abstract voidsetChildQueues(List<QueueInfo> childQueues) abstract voidsetCurrentCapacity(float currentCapacity) abstract voidsetDefaultNodeLabelExpression(String defaultLabelExpression) abstract voidsetIntraQueuePreemptionDisabled(boolean intraQueuePreemptionDisabled) abstract voidsetMaximumCapacity(float maximumCapacity) abstract voidsetMaxParallelApps(int maxParallelApps) abstract voidsetMaxResourceMemory(long memory) Set the maximum resource Memory.abstract voidsetMaxResourceVCore(int vCore) Set the maximum resource Memory.abstract voidsetMaxRunningApp(int maxRunningApp) abstract voidsetMinResourceMemory(long memory) Set the minimum resource Memory.abstract voidsetMinResourceVCore(int vCore) Set the minimum resource VCore.abstract voidsetPreemptionDisabled(boolean preemptionDisabled) abstract voidsetQueueConfigurations(Map<String, QueueConfigurations> queueConfigurations) Set the per-node-label queue configurations for the queue.abstract voidsetQueueName(String queueName) abstract voidsetQueuePath(String queuePath) abstract voidsetQueueState(QueueState queueState) abstract voidsetQueueStatistics(QueueStatistics queueStatistics) Set the queue statistics for the queueabstract voidsetReservedResourceMemory(long memory) Set the reserved resource Memory.abstract voidsetReservedResourceVCore(int vCore) Set the reserved resource VCore.abstract voidsetSchedulerType(String schedulerType) Set Scheduler type.abstract voidsetSteadyFairShareMemory(long memory) Set the SteadyFairShare Memory.abstract voidsetSteadyFairShareVCore(int vCore) Set the SteadyFairShare VCore.abstract voidsetSubClusterId(String subClusterId) Set the SubClusterId.abstract voidsetWeight(float weight)
-
Constructor Details
-
QueueInfo
public QueueInfo()
-
-
Method Details
-
newInstance
@Private @Unstable public static QueueInfo newInstance(String queueName, String queuePath, float capacity, float maximumCapacity, float currentCapacity, List<QueueInfo> childQueues, List<ApplicationReport> applications, QueueState queueState, Set<String> accessibleNodeLabels, String defaultNodeLabelExpression, QueueStatistics queueStatistics, boolean preemptionDisabled, float weight, int maxParallelApps) -
newInstance
@Private @Unstable public static QueueInfo newInstance(String queueName, String queuePath, float capacity, float maximumCapacity, float currentCapacity, List<QueueInfo> childQueues, List<ApplicationReport> applications, QueueState queueState, Set<String> accessibleNodeLabels, String defaultNodeLabelExpression, QueueStatistics queueStatistics, boolean preemptionDisabled, float weight, int maxParallelApps, Map<String, QueueConfigurations> queueConfigurations) -
newInstance
@Private @Unstable public static QueueInfo newInstance(String queueName, String queuePath, float capacity, float maximumCapacity, float currentCapacity, List<QueueInfo> childQueues, List<ApplicationReport> applications, QueueState queueState, Set<String> accessibleNodeLabels, String defaultNodeLabelExpression, QueueStatistics queueStatistics, boolean preemptionDisabled, float weight, int maxParallelApps, Map<String, QueueConfigurations> queueConfigurations, boolean intraQueuePreemptionDisabled) -
getQueueName
Get the name of the queue.- Returns:
- name of the queue
-
setQueueName
-
getQueuePath
Get the path of the queue.- Returns:
- path of the queue
-
setQueuePath
-
getCapacity
@Public @Stable public abstract float getCapacity()Get the configured capacity of the queue.- Returns:
- configured capacity of the queue
-
setCapacity
@Private @Unstable public abstract void setCapacity(float capacity) -
getWeight
@Public @Stable public abstract float getWeight()Get the configured weight of the queue.- Returns:
- configured weight of the queue
-
setWeight
@Private @Unstable public abstract void setWeight(float weight) -
getMaxParallelApps
@Public @Stable public abstract int getMaxParallelApps()Get the configured max parallel apps of the queue.- Returns:
- configured max parallel apps of the queue
-
setMaxParallelApps
@Private @Unstable public abstract void setMaxParallelApps(int maxParallelApps) -
getMaximumCapacity
@Public @Stable public abstract float getMaximumCapacity()Get the maximum capacity of the queue.- Returns:
- maximum capacity of the queue
-
setMaximumCapacity
@Private @Unstable public abstract void setMaximumCapacity(float maximumCapacity) -
getCurrentCapacity
@Public @Stable public abstract float getCurrentCapacity()Get the current capacity of the queue.- Returns:
- current capacity of the queue
-
setCurrentCapacity
@Private @Unstable public abstract void setCurrentCapacity(float currentCapacity) -
getChildQueues
Get the child queues of the queue.- Returns:
- child queues of the queue
-
setChildQueues
-
getApplications
Get the running applications of the queue.- Returns:
- running applications of the queue
-
setApplications
-
getQueueState
Get theQueueStateof the queue.- Returns:
QueueStateof the queue
-
setQueueState
-
getAccessibleNodeLabels
Get theaccessible node labelsof the queue.- Returns:
accessible node labelsof the queue
-
setAccessibleNodeLabels
Set theaccessible node labelsof the queue.- Parameters:
labels- node label expression of the queue.
-
getDefaultNodeLabelExpression
Get thedefault node label expressionof the queue, this takes affect only when theApplicationSubmissionContextandResourceRequestdon't specify theirNodeLabelExpression.- Returns:
default node label expressionof the queue
-
setDefaultNodeLabelExpression
-
getQueueStatistics
Get thequeue statsfor the queue- Returns:
queue statsof the queue
-
setQueueStatistics
Set the queue statistics for the queue- Parameters:
queueStatistics- the queue statistics
-
getPreemptionDisabled
Get the preemption status of the queue.- Returns:
- if property is not in proto, return null; otherwise, return preemption status of the queue
-
setPreemptionDisabled
@Private @Unstable public abstract void setPreemptionDisabled(boolean preemptionDisabled) -
getQueueConfigurations
Get the per-node-label queue configurations of the queue.- Returns:
- the per-node-label queue configurations of the queue.
-
setQueueConfigurations
@Private @Unstable public abstract void setQueueConfigurations(Map<String, QueueConfigurations> queueConfigurations) Set the per-node-label queue configurations for the queue.- Parameters:
queueConfigurations- the queue configurations
-
getIntraQueuePreemptionDisabled
Get the intra-queue preemption status of the queue.- Returns:
- if property is not in proto, return null; otherwise, return intra-queue preemption status of the queue
-
setIntraQueuePreemptionDisabled
@Private @Unstable public abstract void setIntraQueuePreemptionDisabled(boolean intraQueuePreemptionDisabled) -
getSchedulerType
Get Scheduler type.- Returns:
- SchedulerType.
-
setSchedulerType
Set Scheduler type.- Parameters:
schedulerType- scheduler Type.
-
getMinResourceVCore
@Public @Stable public abstract int getMinResourceVCore()Get the minimum resource VCore.- Returns:
- minimum resource VCore.
-
setMinResourceVCore
@Private @Unstable public abstract void setMinResourceVCore(int vCore) Set the minimum resource VCore.- Parameters:
vCore- minimum resource VCore.
-
getMinResourceMemory
@Public @Stable public abstract long getMinResourceMemory()Get the minimum resource Memory.- Returns:
- minimum resource Memory.
-
setMinResourceMemory
@Private @Unstable public abstract void setMinResourceMemory(long memory) Set the minimum resource Memory.- Parameters:
memory- minimum resource Memory.
-
getMaxResourceVCore
@Public @Stable public abstract int getMaxResourceVCore()Get the maximum resource VCore.- Returns:
- maximum resource VCore.
-
setMaxResourceVCore
@Private @Unstable public abstract void setMaxResourceVCore(int vCore) Set the maximum resource Memory.- Parameters:
vCore- maximum resource VCore.
-
getMaxResourceMemory
@Public @Stable public abstract long getMaxResourceMemory()Get the maximum resource Memory.- Returns:
- maximum resource Memory.
-
setMaxResourceMemory
@Private @Unstable public abstract void setMaxResourceMemory(long memory) Set the maximum resource Memory.- Parameters:
memory- maximum resource Memory.
-
getReservedResourceVCore
@Public @Stable public abstract int getReservedResourceVCore()Get the reserved resource VCore.- Returns:
- reserved resource VCore.
-
setReservedResourceVCore
@Private @Unstable public abstract void setReservedResourceVCore(int vCore) Set the reserved resource VCore.- Parameters:
vCore- reserved resource VCore.
-
getReservedResourceMemory
@Public @Stable public abstract long getReservedResourceMemory()Get the reserved resource Memory.- Returns:
- reserved resource Memory.
-
setReservedResourceMemory
@Private @Unstable public abstract void setReservedResourceMemory(long memory) Set the reserved resource Memory.- Parameters:
memory- reserved resource Memory.
-
getSubClusterId
Get the SubClusterId.- Returns:
- the SubClusterId.
-
setSubClusterId
Set the SubClusterId.- Parameters:
subClusterId- the SubClusterId.
-
getMaxRunningApp
@Public @Stable public abstract int getMaxRunningApp()Get the MaxRunningApp.- Returns:
- The number of MaxRunningApp.
-
setMaxRunningApp
@Private @Unstable public abstract void setMaxRunningApp(int maxRunningApp)
-