Groovy Documentation

com.ace.mws
[Groovy] Class Resource

java.lang.Object
  com.ace.mws.Resource

class Resource

Represents counts of resources available, configured, etc.

Authors:
bsaville


Field Summary
private Integer available

The amount of this resource that is currently available for allocation to workload.

private Integer configured

The amount of this resource that is considered possible to schedule.

private Integer dedicated

The amount of this resource that has been allocated for running workload.

private Integer real

The amount of this resource that physically exists on the node.

private Integer utilized

The amount of this resource that is currently reported as utilized by resource managers.

 
Constructor Summary
Resource()

 
Method Summary
Integer getAvailable()

The amount of this resource that is currently available for allocation to workload.

Integer getConfigured()

The amount of this resource that is considered possible to schedule.

Integer getDedicated()

The amount of this resource that has been allocated for running workload.

Integer getReal()

The amount of this resource that physically exists on the node.

Integer getUtilized()

The amount of this resource that is currently reported as utilized by resource managers.

void setAvailable(Integer available)

The amount of this resource that is currently available for allocation to workload.

void setConfigured(Integer configured)

The amount of this resource that is considered possible to schedule.

void setDedicated(Integer dedicated)

The amount of this resource that has been allocated for running workload.

void setReal(Integer real)

The amount of this resource that physically exists on the node.

void setUtilized(Integer utilized)

The amount of this resource that is currently reported as utilized by resource managers.

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

available

private Integer available
The amount of this resource that is currently available for allocation to workload.


configured

private Integer configured
The amount of this resource that is considered possible to schedule. Overcommit specifically applies to this, in other words, configured = overcommitFactor * real.


dedicated

private Integer dedicated
The amount of this resource that has been allocated for running workload. Resources are "dedicated" to reservations.


real

private Integer real
The amount of this resource that physically exists on the node. Overcommit specifically doesn't apply to this. Note that overcommit currently only applies to "processors" and "memory", and so, for most cases, real and configured will always be the same.


utilized

private Integer utilized
The amount of this resource that is currently reported as utilized by resource managers.


 
Constructor Detail

Resource

Resource()


 
Method Detail

getAvailable

Integer getAvailable()
The amount of this resource that is currently available for allocation to workload.


getConfigured

Integer getConfigured()
The amount of this resource that is considered possible to schedule. Overcommit specifically applies to this, in other words, configured = overcommitFactor * real.


getDedicated

Integer getDedicated()
The amount of this resource that has been allocated for running workload. Resources are "dedicated" to reservations.


getReal

Integer getReal()
The amount of this resource that physically exists on the node. Overcommit specifically doesn't apply to this. Note that overcommit currently only applies to "processors" and "memory", and so, for most cases, real and configured will always be the same.


getUtilized

Integer getUtilized()
The amount of this resource that is currently reported as utilized by resource managers.


setAvailable

void setAvailable(Integer available)
The amount of this resource that is currently available for allocation to workload.


setConfigured

void setConfigured(Integer configured)
The amount of this resource that is considered possible to schedule. Overcommit specifically applies to this, in other words, configured = overcommitFactor * real.


setDedicated

void setDedicated(Integer dedicated)
The amount of this resource that has been allocated for running workload. Resources are "dedicated" to reservations.


setReal

void setReal(Integer real)
The amount of this resource that physically exists on the node. Overcommit specifically doesn't apply to this. Note that overcommit currently only applies to "processors" and "memory", and so, for most cases, real and configured will always be the same.


setUtilized

void setUtilized(Integer utilized)
The amount of this resource that is currently reported as utilized by resource managers.


toString

String toString()


 

Groovy Documentation