Class QueueConfigurations
java.lang.Object
org.apache.hadoop.yarn.api.records.QueueConfigurations
QueueConfigurations contain information about the configuration percentages
of a queue.
It includes information such as:
- Capacity of the queue.
- Absolute capacity of the queue.
- Maximum capacity of the queue.
- Absolute maximum capacity of the queue.
- Maximum ApplicationMaster resource percentage of the queue.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract floatGet the absolute capacity.abstract floatGet the absolute maximum capacity.abstract floatGet the queue capacity.abstract ResourceGet the configured maximum capacity of queue (from absolute resource).abstract ResourceGet the configured minimum capacity of queue (from absolute resource).abstract ResourceGet the effective maximum capacity of queue (from absolute resource).abstract ResourceGet the effective minimum capacity of queue (from absolute resource).abstract floatGet the maximum AM resource percentage.abstract floatGet the maximum capacity.static QueueConfigurationsnewInstance(float capacity, float absoluteCapacity, float maxCapacity, float absoluteMaxCapacity, float maxAMPercentage) abstract voidsetAbsoluteCapacity(float absoluteCapacity) Set the absolute capacity.abstract voidsetAbsoluteMaxCapacity(float absoluteMaxCapacity) Set the absolute maximum capacity.abstract voidsetCapacity(float capacity) Set the queue capacity.abstract voidsetConfiguredMaxCapacity(Resource configuredMaxResource) Set the configured maximum capacity of queue (from absolute resource).abstract voidsetConfiguredMinCapacity(Resource configuredMinResource) Set the configured minimum capacity of queue (from absolute resource).abstract voidsetEffectiveMaxCapacity(Resource capacity) Set the effective maximum capacity of queue (from absolute resource).abstract voidsetEffectiveMinCapacity(Resource capacity) Set the effective minimum capacity of queue (from absolute resource).abstract voidsetMaxAMPercentage(float maxAMPercentage) Set the maximum AM resource percentage.abstract voidsetMaxCapacity(float maxCapacity) Set the maximum capacity.
-
Constructor Details
-
QueueConfigurations
public QueueConfigurations()
-
-
Method Details
-
newInstance
@Public @Unstable public static QueueConfigurations newInstance(float capacity, float absoluteCapacity, float maxCapacity, float absoluteMaxCapacity, float maxAMPercentage) -
getCapacity
@Public @Unstable public abstract float getCapacity()Get the queue capacity.- Returns:
- the queue capacity
-
setCapacity
@Private @Unstable public abstract void setCapacity(float capacity) Set the queue capacity.- Parameters:
capacity- the queue capacity.
-
getAbsoluteCapacity
@Public @Unstable public abstract float getAbsoluteCapacity()Get the absolute capacity.- Returns:
- the absolute capacity
-
setAbsoluteCapacity
@Private @Unstable public abstract void setAbsoluteCapacity(float absoluteCapacity) Set the absolute capacity.- Parameters:
absoluteCapacity- the absolute capacity
-
getMaxCapacity
@Public @Unstable public abstract float getMaxCapacity()Get the maximum capacity.- Returns:
- the maximum capacity
-
setMaxCapacity
@Private @Unstable public abstract void setMaxCapacity(float maxCapacity) Set the maximum capacity.- Parameters:
maxCapacity- the maximum capacity
-
getAbsoluteMaxCapacity
@Public @Unstable public abstract float getAbsoluteMaxCapacity()Get the absolute maximum capacity.- Returns:
- the absolute maximum capacity
-
setAbsoluteMaxCapacity
@Private @Unstable public abstract void setAbsoluteMaxCapacity(float absoluteMaxCapacity) Set the absolute maximum capacity.- Parameters:
absoluteMaxCapacity- the absolute maximum capacity
-
getMaxAMPercentage
@Public @Unstable public abstract float getMaxAMPercentage()Get the maximum AM resource percentage.- Returns:
- the maximum AM resource percentage
-
setMaxAMPercentage
@Private @Unstable public abstract void setMaxAMPercentage(float maxAMPercentage) Set the maximum AM resource percentage.- Parameters:
maxAMPercentage- the maximum AM resource percentage
-
getEffectiveMinCapacity
Get the effective minimum capacity of queue (from absolute resource).- Returns:
- minimum resource capability
-
setEffectiveMinCapacity
Set the effective minimum capacity of queue (from absolute resource).- Parameters:
capacity- minimum resource capability
-
getEffectiveMaxCapacity
Get the effective maximum capacity of queue (from absolute resource).- Returns:
- maximum resource capability
-
setEffectiveMaxCapacity
Set the effective maximum capacity of queue (from absolute resource).- Parameters:
capacity- maximum resource capability
-
getConfiguredMinCapacity
Get the configured minimum capacity of queue (from absolute resource).- Returns:
- minimum resource capability
-
setConfiguredMinCapacity
Set the configured minimum capacity of queue (from absolute resource).- Parameters:
configuredMinResource- minimum resource capability
-
getConfiguredMaxCapacity
Get the configured maximum capacity of queue (from absolute resource).- Returns:
- maximum resource capability
-
setConfiguredMaxCapacity
Set the configured maximum capacity of queue (from absolute resource).- Parameters:
configuredMaxResource- maximum resource capability
-