Quota.Resource class. Each resource has a name
(for example, "STORAGE"), a current usage, and a usage limit.
See RFC 2087.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Quota.Resource
An individual resource in a quota root. |
| Modifier and Type | Field and Description |
|---|---|
| public String | quotaRoot
The name of the quota root. |
| public Quota. | resources
The set of resources associated with this quota root. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | setResourceLimit(String
the name of the resource name, long the resource limit limit)Set a resource limit for this quota root. |
| quotaRoot | back to summary |
|---|---|
| public String quotaRoot The name of the quota root. | |
| resources | back to summary |
|---|---|
| public Quota. The set of resources associated with this quota root. | |
| Quota | back to summary |
|---|---|
| public Quota(String quotaRoot) Create a Quota object for the named quotaroot with no associated resources.
| |
| setResourceLimit | back to summary |
|---|---|
| public void setResourceLimit(String name, long limit) Set a resource limit for this quota root.
| |
| Modifier and Type | Field and Description |
|---|---|
| public long | limit
The usage limit for the resource. |
| public String | name
The name of the resource. |
| public long | usage
The current usage of the resource. |
| Access | Constructor and Description |
|---|---|
| public |
| limit | back to summary |
|---|---|
| public long limit The usage limit for the resource. | |
| name | back to summary |
|---|---|
| public String name The name of the resource. | |
| usage | back to summary |
|---|---|
| public long usage The current usage of the resource. | |
| Resource | back to summary |
|---|---|
| public Resource(String name, long usage, long limit) Construct a Resource object with the given name, usage, and limit.
| |