public class Quota
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Quota.Resource
A representation of a given resource definition.
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
quotaRoot
The name of the quota root.
|
Quota.Resource[] |
resources
The resources associated with this quota root.
|
| Constructor and Description |
|---|
Quota(java.lang.String quotaRoot)
Create a Quota with the given name and not resources.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setResourceLimit(java.lang.String name,
long limit)
Set a limit value for a resource.
|
public java.lang.String quotaRoot
public Quota.Resource[] resources
public Quota(java.lang.String quotaRoot)
quotaRoot - The quota root name.public void setResourceLimit(java.lang.String name,
long limit)
name - The target resource name.limit - The new limit value for the resource.