Class QuotaSetServiceImpl

    • Constructor Detail

      • QuotaSetServiceImpl

        public QuotaSetServiceImpl()
    • Method Detail

      • get

        public QuotaSet get​(String tenantId)
        Gets the QuotaSet for the given tenant ID
        Specified by:
        get in interface QuotaSetService
        Parameters:
        tenantId - the tenant id
        Returns:
        the quota set
      • getDetail

        public ComputeQuotaDetail getDetail​(String tenantId)
        Gets the QuotaSetDetail for the given tenant ID
        Specified by:
        getDetail in interface QuotaSetService
        Parameters:
        tenantId - the tenant id
        Returns:
        the quota set detail
      • get

        public QuotaSet get​(String tenantId,
                            String userId)
        Gets the QuotaSet for the given tenant and user ID
        Specified by:
        get in interface QuotaSetService
        Parameters:
        tenantId - the identifier for the tenant
        userId - the identifier of the user
        Returns:
        the quota set
      • limits

        public Limits limits()
        Accounts may be pre-configured with a set of thresholds (or limits) to manage capacity and prevent system abuse. This call will return the current Rate and Absolute Limits.
        Specified by:
        limits in interface QuotaSetService
        Returns:
        the system limits
      • listTenantUsages

        public List<? extends SimpleTenantUsage> listTenantUsages()
        Gets tenant usage information for all tenants (os-simple-tenant-usage)
        Specified by:
        listTenantUsages in interface QuotaSetService
        Returns:
        list of usage information for all tenants
      • getTenantUsage

        public SimpleTenantUsage getTenantUsage​(String tenantId)
        Gets the usage information for the specified tenant (os-simple-tenant-usage)
        Specified by:
        getTenantUsage in interface QuotaSetService
        Parameters:
        tenantId - the tenant identifier
        Returns:
        Tenant Usage or null if not found
      • listTenantUsages

        public List<? extends SimpleTenantUsage> listTenantUsages​(String startTime,
                                                                  String endTime)
        Gets tenant usage information for all tenants in a period of time (os-simple-tenant-usage)
        Specified by:
        listTenantUsages in interface QuotaSetService
        Parameters:
        startTime - eg:2015-05-05T23:59:59
        Returns:
        list of usage information for all tenants
      • getTenantUsage

        public SimpleTenantUsage getTenantUsage​(String tenantId,
                                                String startTime,
                                                String endTime)
        Gets the usage information for the specified tenant in a period of time (os-simple-tenant-usage)
        Specified by:
        getTenantUsage in interface QuotaSetService
        Parameters:
        tenantId - the tenant identifier
        startTime - eg:2015-05-05T23:59:59
        Returns:
        Tenant Usage or null if not found