public abstract class BalancedDBShardingBundle<T extends io.dropwizard.Configuration> extends Object
| Constructor and Description |
|---|
BalancedDBShardingBundle(Class<?> entity,
Class<?>... entities) |
BalancedDBShardingBundle(String... classPathPrefixes) |
BalancedDBShardingBundle(String dbNamespace,
Class<?> entity,
Class<?>... entities) |
BalancedDBShardingBundle(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 ShardManager |
createShardManager(int numShards,
ShardBlacklistingStore shardBlacklistingStore) |
<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) |
Map<Integer,Boolean> |
healthStatus() |
void |
initBundles(io.dropwizard.setup.Bootstrap bootstrap) |
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(T configuration,
io.dropwizard.setup.Environment environment) |
void |
runBundles(T configuration,
io.dropwizard.setup.Environment environment) |
public BalancedDBShardingBundle(String dbNamespace, Class<?> entity, Class<?>... entities)
public BalancedDBShardingBundle(String dbNamespace, List<String> classPathPrefixList)
public BalancedDBShardingBundle(String... classPathPrefixes)
protected ShardManager createShardManager(int numShards, ShardBlacklistingStore shardBlacklistingStore)
public void run(T configuration,
io.dropwizard.setup.Environment environment)
run in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration>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 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–2020. All rights reserved.