@Public
@Stable
public abstract class ApplicationResourceUsageReport
extends java.lang.Object
| Constructor | Description |
|---|---|
ApplicationResourceUsageReport() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract float |
getClusterUsagePercentage() |
Get the percentage of resources of the cluster that the app is using.
|
abstract long |
getMemorySeconds() |
Get the aggregated amount of memory (in megabytes) the application has
allocated times the number of seconds the application has been running.
|
abstract Resource |
getNeededResources() |
Get the needed
Resource. |
abstract int |
getNumReservedContainers() |
Get the number of reserved containers.
|
abstract int |
getNumUsedContainers() |
Get the number of used containers.
|
abstract long |
getPreemptedMemorySeconds() |
Get the aggregated amount of memory preempted(in megabytes)
the application has allocated times the number of
seconds the application has been running.
|
abstract java.util.Map<java.lang.String,java.lang.Long> |
getPreemptedResourceSecondsMap() |
Get the aggregated number of resources preempted that the application has
allocated times the number of seconds the application has been running.
|
abstract long |
getPreemptedVcoreSeconds() |
Get the aggregated number of vcores preempted that the application has
allocated times the number of seconds the application has been running.
|
abstract float |
getQueueUsagePercentage() |
Get the percentage of resources of the queue that the app is using.
|
abstract Resource |
getReservedResources() |
Get the reserved
Resource. |
abstract java.util.Map<java.lang.String,java.lang.Long> |
getResourceSecondsMap() |
Get the aggregated number of resources that the application has
allocated times the number of seconds the application has been running.
|
abstract Resource |
getUsedResources() |
Get the used
Resource. |
abstract long |
getVcoreSeconds() |
Get the aggregated number of vcores that the application has allocated
times the number of seconds the application has been running.
|
static ApplicationResourceUsageReport |
newInstance(int numUsedContainers,
int numReservedContainers,
Resource usedResources,
Resource reservedResources,
Resource neededResources,
java.util.Map<java.lang.String,java.lang.Long> resourceSecondsMap,
float queueUsagePerc,
float clusterUsagePerc,
java.util.Map<java.lang.String,java.lang.Long> preemtedResourceSecondsMap) |
|
abstract void |
setClusterUsagePercentage(float clusterUsagePerc) |
Set the percentage of resources of the cluster that the app is using.
|
abstract void |
setMemorySeconds(long memory_seconds) |
Set the aggregated amount of memory (in megabytes) the application has
allocated times the number of seconds the application has been running.
|
abstract void |
setNeededResources(Resource needed_resources) |
|
abstract void |
setNumReservedContainers(int num_reserved_containers) |
Set the number of reserved containers
|
abstract void |
setNumUsedContainers(int num_containers) |
Set the number of used containers
|
abstract void |
setPreemptedMemorySeconds(long memorySeconds) |
Set the aggregated amount of memory preempted (in megabytes)
the application has allocated times the number of seconds
the application has been running.
|
abstract void |
setPreemptedResourceSecondsMap(java.util.Map<java.lang.String,java.lang.Long> preemptedResourceSecondsMap) |
Set the aggregated number of resources preempted that the application has
allocated times the number of seconds the application has been running.
|
abstract void |
setPreemptedVcoreSeconds(long vcoreSeconds) |
Set the aggregated number of vcores preempted that the application has
allocated times the number of seconds the application has been running.
|
abstract void |
setQueueUsagePercentage(float queueUsagePerc) |
Set the percentage of resources of the queue that the app is using.
|
abstract void |
setReservedResources(Resource reserved_resources) |
|
abstract void |
setResourceSecondsMap(java.util.Map<java.lang.String,java.lang.Long> resourceSecondsMap) |
Set the aggregated number of resources that the application has
allocated times the number of seconds the application has been running.
|
abstract void |
setUsedResources(Resource resources) |
|
abstract void |
setVcoreSeconds(long vcore_seconds) |
Set the aggregated number of vcores that the application has allocated
times the number of seconds the application has been running.
|
@Private @Unstable public static ApplicationResourceUsageReport newInstance(int numUsedContainers, int numReservedContainers, Resource usedResources, Resource reservedResources, Resource neededResources, java.util.Map<java.lang.String,java.lang.Long> resourceSecondsMap, float queueUsagePerc, float clusterUsagePerc, java.util.Map<java.lang.String,java.lang.Long> preemtedResourceSecondsMap)
@Public @Stable public abstract int getNumUsedContainers()
@Private @Unstable public abstract void setNumUsedContainers(int num_containers)
num_containers - the number of used containers@Private @Unstable public abstract int getNumReservedContainers()
@Private @Unstable public abstract void setNumReservedContainers(int num_reserved_containers)
num_reserved_containers - the number of reserved containers@Public @Stable public abstract Resource getUsedResources()
Resource. -1 for invalid/inaccessible reports.Resource@Private @Unstable public abstract void setUsedResources(Resource resources)
@Public @Stable public abstract Resource getReservedResources()
Resource. -1 for invalid/inaccessible reports.Resource@Private @Unstable public abstract void setReservedResources(Resource reserved_resources)
@Public @Stable public abstract Resource getNeededResources()
Resource. -1 for invalid/inaccessible reports.Resource@Private @Unstable public abstract void setNeededResources(Resource needed_resources)
@Private @Unstable public abstract void setMemorySeconds(long memory_seconds)
memory_seconds - the aggregated amount of memory seconds@Public @Unstable public abstract long getMemorySeconds()
@Private @Unstable public abstract void setVcoreSeconds(long vcore_seconds)
vcore_seconds - the aggregated number of vcore seconds@Public @Unstable public abstract long getVcoreSeconds()
@Public @Stable public abstract float getQueueUsagePercentage()
@Private @Unstable public abstract void setQueueUsagePercentage(float queueUsagePerc)
queueUsagePerc - the percentage of resources of the queue that
the app is using.@Public @Stable public abstract float getClusterUsagePercentage()
@Private @Unstable public abstract void setClusterUsagePercentage(float clusterUsagePerc)
clusterUsagePerc - the percentage of resources of the cluster that
the app is using.@Private @Unstable public abstract void setPreemptedMemorySeconds(long memorySeconds)
memorySeconds - the aggregated amount of memory seconds@Public @Unstable public abstract long getPreemptedMemorySeconds()
@Private @Unstable public abstract void setPreemptedVcoreSeconds(long vcoreSeconds)
vcoreSeconds - the aggregated number of vcore seconds@Public @Unstable public abstract long getPreemptedVcoreSeconds()
@Public @Unstable public abstract java.util.Map<java.lang.String,java.lang.Long> getResourceSecondsMap()
@Private @Unstable public abstract void setResourceSecondsMap(java.util.Map<java.lang.String,java.lang.Long> resourceSecondsMap)
resourceSecondsMap - map containing the resource name and aggregated
resource-seconds@Public @Unstable public abstract java.util.Map<java.lang.String,java.lang.Long> getPreemptedResourceSecondsMap()
@Private @Unstable public abstract void setPreemptedResourceSecondsMap(java.util.Map<java.lang.String,java.lang.Long> preemptedResourceSecondsMap)
preemptedResourceSecondsMap - map containing the resource name and
aggregated preempted resource-secondsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.