Package com.c8db.internal
Class C8AdminImpl
- java.lang.Object
-
- com.c8db.internal.C8Executeable<E>
-
- com.c8db.internal.InternalC8Admin<C8DBImpl,C8DatabaseImpl,C8ExecutorSync>
-
- com.c8db.internal.C8AdminImpl
-
- All Implemented Interfaces:
C8Admin,C8SerializationAccessor
public class C8AdminImpl extends InternalC8Admin<C8DBImpl,C8DatabaseImpl,C8ExecutorSync> implements C8Admin
-
-
Field Summary
-
Fields inherited from class com.c8db.internal.InternalC8Admin
PATH_API_FEATURES, PATH_API_LIMITS, PATH_API_METRICS, PATH_API_TENANT, PATH_API_TENANTS, PATH_QUERY, PATH_TENANT
-
Fields inherited from class com.c8db.internal.C8Executeable
context, executor, util
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedC8AdminImpl(C8DatabaseImpl db)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TenantEntitygetTenant(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 class com.c8db.internal.InternalC8Admin
db, getTenantFeaturesRequest, getTenantFeaturesResponseDeserializer, getTenantLimitsRequest, getTenantLimitsResponseDeserializer, getTenantMetricResponseDeserializer, getTenantMetricsRequest, getTenantRequest, getTenantResponseDeserializer, getTenantsRequest, getTenantsResponseDeserializer
-
Methods inherited from class com.c8db.internal.C8Executeable
createPath, executor, request, util, util
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.c8db.C8SerializationAccessor
util, util
-
-
-
-
Constructor Detail
-
C8AdminImpl
protected C8AdminImpl(C8DatabaseImpl db)
-
-
Method Detail
-
getTenantFeatures
public FeaturesEntity getTenantFeatures(String tenant) throws C8DBException
Description copied from interface:C8AdminFetches all features associated with given tenant- Specified by:
getTenantFeaturesin interfaceC8Admin- Returns:
- all features for a given tenant
- Throws:
C8DBException
-
getTenantLimits
public LimitsEntity getTenantLimits(String tenant) throws C8DBException
Description copied from interface:C8AdminReturns the tenant limits- Specified by:
getTenantLimitsin interfaceC8Admin- Parameters:
tenant- The tenant name- Returns:
- All limits for this tenant
- Throws:
C8DBException
-
getTenants
public List<TenantsEntity> getTenants() throws C8DBException
Description copied from interface:C8AdminReturns the tenant limits- Specified by:
getTenantsin interfaceC8Admin- Returns:
- All tenants
- Throws:
C8DBException
-
getTenant
public TenantEntity getTenant(String tenant) throws C8DBException
Description copied from interface:C8AdminReturns the requested tenant- Specified by:
getTenantin interfaceC8Admin- Parameters:
tenant- The tenant name- Returns:
- The tenant matching the given tenant name
- Throws:
C8DBException
-
getTenantMetrics
public TenantMetricsEntity getTenantMetrics(TenantMetricsOption options) throws C8DBException
Description copied from interface:C8AdminReturns metrics for a tenant- Specified by:
getTenantMetricsin interfaceC8Admin- Parameters:
options- The parameters passed as a part of request body- Returns:
- metrics for this tenant
- Throws:
C8DBException
-
-