public abstract class DBShardingBundleBase<T extends io.dropwizard.Configuration> extends Object implements io.dropwizard.ConfiguredBundle<T>
| Modifier | Constructor and Description |
|---|---|
protected |
DBShardingBundleBase(Class<?> entity,
Class<?>... entities) |
protected |
DBShardingBundleBase(String... classPathPrefixes) |
protected |
DBShardingBundleBase(String dbNamespace,
Class<?> entity,
Class<?>... entities) |
protected |
DBShardingBundleBase(String dbNamespace,
List<String> classPathPrefixList) |
| Modifier and Type | Method and Description |
|---|---|
<EntityType,T extends io.dropwizard.Configuration> |
createParentObjectDao(Class<EntityType> clazz) |
<EntityType,T extends io.dropwizard.Configuration> |
createParentObjectDao(Class<EntityType> clazz,
BucketIdExtractor<String> bucketIdExtractor) |
<EntityType,T extends io.dropwizard.Configuration> |
createParentObjectDao(Class<EntityType> clazz,
BucketIdExtractor<String> bucketIdExtractor,
LookupCache<EntityType> cacheManager) |
<EntityType,T extends io.dropwizard.Configuration> |
createParentObjectDao(Class<EntityType> clazz,
LookupCache<EntityType> cacheManager) |
<EntityType,T extends io.dropwizard.Configuration> |
createRelatedObjectDao(Class<EntityType> clazz) |
<EntityType,T extends io.dropwizard.Configuration> |
createRelatedObjectDao(Class<EntityType> clazz,
BucketIdExtractor<String> bucketIdExtractor) |
<EntityType,T extends io.dropwizard.Configuration> |
createRelatedObjectDao(Class<EntityType> clazz,
BucketIdExtractor<String> bucketIdExtractor,
RelationalCache<EntityType> cacheManager) |
<EntityType,T extends io.dropwizard.Configuration> |
createRelatedObjectDao(Class<EntityType> clazz,
RelationalCache<EntityType> cacheManager) |
protected abstract ShardManager |
createShardManager(int numShards,
ShardBlacklistingStore blacklistingStore) |
<EntityType,DaoType extends io.dropwizard.hibernate.AbstractDAO<EntityType>,T extends io.dropwizard.Configuration> |
createWrapperDao(Class<DaoType> daoTypeClass) |
<EntityType,DaoType extends io.dropwizard.hibernate.AbstractDAO<EntityType>,T extends io.dropwizard.Configuration> |
createWrapperDao(Class<DaoType> daoTypeClass,
BucketIdExtractor<String> bucketIdExtractor) |
<EntityType,DaoType extends io.dropwizard.hibernate.AbstractDAO<EntityType>,T extends io.dropwizard.Configuration> |
createWrapperDao(Class<DaoType> daoTypeClass,
Class[] extraConstructorParamClasses,
Class[] extraConstructorParamObjects) |
protected ShardBlacklistingStore |
getBlacklistingStore() |
protected abstract ShardedHibernateFactory |
getConfig(T config) |
protected Supplier<MetricConfig> |
getMetricConfig(T config) |
Map<Integer,Boolean> |
healthStatus() |
void |
initBundles(io.dropwizard.setup.Bootstrap bootstrap) |
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
registerFilter(TransactionFilter filter) |
void |
registerListener(TransactionListener listener) |
void |
registerObserver(TransactionObserver observer) |
void |
run(T configuration,
io.dropwizard.setup.Environment environment) |
void |
runBundles(T configuration,
io.dropwizard.setup.Environment environment) |
protected DBShardingBundleBase(String dbNamespace, Class<?> entity, Class<?>... entities)
protected DBShardingBundleBase(String dbNamespace, List<String> classPathPrefixList)
protected DBShardingBundleBase(String... classPathPrefixes)
protected abstract ShardManager createShardManager(int numShards, ShardBlacklistingStore blacklistingStore)
public void run(T configuration, io.dropwizard.setup.Environment environment)
run in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration>public final void registerObserver(TransactionObserver observer)
public final void registerListener(TransactionListener listener)
public final void registerFilter(TransactionFilter filter)
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration>public void runBundles(T configuration, io.dropwizard.setup.Environment environment)
public void initBundles(io.dropwizard.setup.Bootstrap bootstrap)
protected abstract ShardedHibernateFactory getConfig(T config)
protected Supplier<MetricConfig> getMetricConfig(T config)
protected ShardBlacklistingStore getBlacklistingStore()
public <EntityType,T extends io.dropwizard.Configuration> LookupDao<EntityType> createParentObjectDao(Class<EntityType> clazz)
public <EntityType,T extends io.dropwizard.Configuration> CacheableLookupDao<EntityType> createParentObjectDao(Class<EntityType> clazz, LookupCache<EntityType> cacheManager)
public <EntityType,T extends io.dropwizard.Configuration> LookupDao<EntityType> createParentObjectDao(Class<EntityType> clazz, BucketIdExtractor<String> bucketIdExtractor)
public <EntityType,T extends io.dropwizard.Configuration> CacheableLookupDao<EntityType> createParentObjectDao(Class<EntityType> clazz, BucketIdExtractor<String> bucketIdExtractor, LookupCache<EntityType> cacheManager)
public <EntityType,T extends io.dropwizard.Configuration> RelationalDao<EntityType> createRelatedObjectDao(Class<EntityType> clazz)
public <EntityType,T extends io.dropwizard.Configuration> CacheableRelationalDao<EntityType> createRelatedObjectDao(Class<EntityType> clazz, RelationalCache<EntityType> cacheManager)
public <EntityType,T extends io.dropwizard.Configuration> RelationalDao<EntityType> createRelatedObjectDao(Class<EntityType> clazz, BucketIdExtractor<String> bucketIdExtractor)
public <EntityType,T extends io.dropwizard.Configuration> CacheableRelationalDao<EntityType> createRelatedObjectDao(Class<EntityType> clazz, BucketIdExtractor<String> bucketIdExtractor, RelationalCache<EntityType> cacheManager)
public <EntityType,DaoType extends io.dropwizard.hibernate.AbstractDAO<EntityType>,T extends io.dropwizard.Configuration> WrapperDao<EntityType,DaoType> createWrapperDao(Class<DaoType> daoTypeClass)
public <EntityType,DaoType extends io.dropwizard.hibernate.AbstractDAO<EntityType>,T extends io.dropwizard.Configuration> WrapperDao<EntityType,DaoType> createWrapperDao(Class<DaoType> daoTypeClass, BucketIdExtractor<String> bucketIdExtractor)
public <EntityType,DaoType extends io.dropwizard.hibernate.AbstractDAO<EntityType>,T extends io.dropwizard.Configuration> WrapperDao<EntityType,DaoType> createWrapperDao(Class<DaoType> daoTypeClass, Class[] extraConstructorParamClasses, Class[] extraConstructorParamObjects)
Copyright © 2016–2023. All rights reserved.