All Packages Class Hierarchy This Package Previous Next Index
Interface org.mitre.pam.service.resource.ResourcePool
- public abstract interface ResourcePool
- extends org.mitre.pam.service.resource.ResourceConsumer
A resource pool is somewhat analogous to an AWT
Container.
Resources may be multidimensional. Initially
most resources will probably have one dimension.
-
getBudget(String)
- Get the current pool limit
-
setBudget(String, Number)
- Set the allowed pool limit.
-
setManager(String)
- Set the name of the manager.
getBudget
public abstract java.lang.Number getBudget(java.lang.String resourceDimension)
- Get the current pool limit
- Parameters:
- resourceDimension - for multidimensional pools this is the name of the dimension
- Returns:
- the current budget number.
setBudget
public abstract void setBudget(java.lang.String resourceDimension,
java.lang.Number newBudget)
- Set the allowed pool limit.
Simple pools have only one dimension.
This is analogous to
size on an AWT container.
More complicated pools may have multiple dimensions.
setBudget() should have the side effect
of causing any specified constraints on members
of the pool to be reevaluated. This
is a bit like an AWT Container invalidate().
- Parameters:
- resourceDimension - for multidimensional pools this is the name of the dimension
- newBudget - the value of this dimension
setManager
public abstract void setManager(java.lang.String name)
- Set the name of the manager. The manager is intimately
associated with one or more
"algorithms" used to execute the budget.
There must be a default manager used by each resource pool.
Simple pools will probably ignore this method.
All Packages Class Hierarchy This Package Previous Next Index