public class QuotaSetServiceImpl extends BaseComputeServices implements QuotaSetService
| Constructor and Description |
|---|
QuotaSetServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
QuotaSet |
get(String tenantId)
Gets the QuotaSet for the given tenant ID
|
QuotaSet |
get(String tenantId,
String userId)
Gets the QuotaSet for the given tenant and user ID
|
SimpleTenantUsage |
getTenantUsage(String tenantId)
Gets the usage information for the specified tenant (os-simple-tenant-usage)
|
Limits |
limits()
Accounts may be pre-configured with a set of thresholds (or limits) to manage capacity and prevent system abuse.
|
List<? extends SimpleTenantUsage> |
listTenantUsages()
Gets tenant usage information for all tenants (os-simple-tenant-usage)
|
QuotaSet |
updateForClass(String classId,
QuotaSetUpdate qs)
Updates quota for a specified class
|
QuotaSet |
updateForTenant(String tenantId,
QuotaSetUpdate qs)
Updates quota for a specified tenant
|
public QuotaSet get(String tenantId)
get in interface QuotaSetServicetenantId - the tenant idpublic QuotaSet get(String tenantId, String userId)
get in interface QuotaSetServicetenantId - the identifier for the tenantuserId - the identifier of the userpublic QuotaSet updateForClass(String classId, QuotaSetUpdate qs)
updateForClass in interface QuotaSetServiceclassId - the class identifierqs - the quota set - see Builders.quotaSet()public QuotaSet updateForTenant(String tenantId, QuotaSetUpdate qs)
updateForTenant in interface QuotaSetServicetenantId - the tenant identifierqs - the quota set - see Builders.quotaSet()public Limits limits()
limits in interface QuotaSetServicepublic List<? extends SimpleTenantUsage> listTenantUsages()
listTenantUsages in interface QuotaSetServicepublic SimpleTenantUsage getTenantUsage(String tenantId)
getTenantUsage in interface QuotaSetServicetenantId - the tenant identifier