@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ApplicationResourceUsageReport extends Object
Constructor and Description |
---|
ApplicationResourceUsageReport() |
Modifier and Type | Method and 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 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 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,
long memorySeconds,
long vcoreSeconds,
float queueUsagePerc,
float clusterUsagePerc,
long preemptedMemorySeconds,
long preemptedVcoresSeconds) |
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 |
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 |
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.
|
@InterfaceAudience.Private @InterfaceStability.Unstable public static ApplicationResourceUsageReport newInstance(int numUsedContainers, int numReservedContainers, Resource usedResources, Resource reservedResources, Resource neededResources, long memorySeconds, long vcoreSeconds, float queueUsagePerc, float clusterUsagePerc, long preemptedMemorySeconds, long preemptedVcoresSeconds)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getNumUsedContainers()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumUsedContainers(int num_containers)
num_containers
- the number of used containers@InterfaceAudience.Private @InterfaceStability.Unstable public abstract int getNumReservedContainers()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumReservedContainers(int num_reserved_containers)
num_reserved_containers
- the number of reserved containers@InterfaceAudience.Public @InterfaceStability.Stable public abstract Resource getUsedResources()
Resource
. -1 for invalid/inaccessible reports.Resource
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setUsedResources(Resource resources)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Resource getReservedResources()
Resource
. -1 for invalid/inaccessible reports.Resource
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setReservedResources(Resource reserved_resources)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Resource getNeededResources()
Resource
. -1 for invalid/inaccessible reports.Resource
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNeededResources(Resource needed_resources)
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setMemorySeconds(long memory_seconds)
memory_seconds
- the aggregated amount of memory seconds@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getMemorySeconds()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setVcoreSeconds(long vcore_seconds)
vcore_seconds
- the aggregated number of vcore seconds@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getVcoreSeconds()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract float getQueueUsagePercentage()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setQueueUsagePercentage(float queueUsagePerc)
queueUsagePerc
- the percentage of resources of the queue that
the app is using.@InterfaceAudience.Public @InterfaceStability.Stable public abstract float getClusterUsagePercentage()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setClusterUsagePercentage(float clusterUsagePerc)
clusterUsagePerc
- the percentage of resources of the cluster that
the app is using.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setPreemptedMemorySeconds(long memorySeconds)
memorySeconds
- the aggregated amount of memory seconds@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getPreemptedMemorySeconds()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setPreemptedVcoreSeconds(long vcoreSeconds)
vcoreSeconds
- the aggregated number of vcore seconds@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getPreemptedVcoreSeconds()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.