Package com.c8db
Interface C8Admin
-
- All Superinterfaces:
C8SerializationAccessor
- All Known Implementing Classes:
C8AdminImpl
public interface C8Admin extends C8SerializationAccessor
Interface for operations on administration level.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description C8Databasedb()The handler of the databaseTenantEntitygetTenant(String tenant)Returns the requested tenantFeaturesEntitygetTenantFeatures(String tenant)Fetches all features associated with given tenantLimitsEntitygetTenantLimits(String tenant)Returns the tenant limitsTenantMetricsEntitygetTenantMetrics(TenantMetricsOption options)Returns metrics for a tenantList<TenantsEntity>getTenants()Returns the tenant limits-
Methods inherited from interface com.c8db.C8SerializationAccessor
util, util
-
-
-
-
Method Detail
-
db
C8Database db()
The handler of the database- Returns:
- database handler
-
getTenantFeatures
FeaturesEntity getTenantFeatures(String tenant) throws C8DBException
Fetches all features associated with given tenant- Returns:
- all features for a given tenant
- Throws:
C8DBException
-
getTenants
List<TenantsEntity> getTenants() throws C8DBException
Returns the tenant limits- Returns:
- All tenants
- Throws:
C8DBException
-
getTenant
TenantEntity getTenant(String tenant) throws C8DBException
Returns the requested tenant- Parameters:
tenant- The tenant name- Returns:
- The tenant matching the given tenant name
- Throws:
C8DBException
-
getTenantLimits
LimitsEntity getTenantLimits(String tenant) throws C8DBException
Returns the tenant limits- Parameters:
tenant- The tenant name- Returns:
- All limits for this tenant
- Throws:
C8DBException
-
getTenantMetrics
TenantMetricsEntity getTenantMetrics(TenantMetricsOption options) throws C8DBException
Returns metrics for a tenant- Parameters:
options- The parameters passed as a part of request body- Returns:
- metrics for this tenant
- Throws:
C8DBException
-
-