@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ApplicationResourceUsageReport extends Object
| Constructor and Description |
|---|
ApplicationResourceUsageReport() |
| Modifier and Type | Method and Description |
|---|---|
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 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) |
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 |
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)
@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()
Copyright © 2018 CERN. All Rights Reserved.