Skip navigation links
A B C D E F G H I L M N O P R S T U W 

A

afterEnd() - Method in class io.appform.dropwizard.sharding.utils.TransactionHandler
 
apply(Function<T, Void>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 

B

BalancedDBShardingBundle<T extends io.dropwizard.Configuration> - Class in io.appform.dropwizard.sharding
A dropwizard bundle that provides sharding over normal RDBMS.
BalancedDBShardingBundle(String, Class<?>, Class<?>...) - Constructor for class io.appform.dropwizard.sharding.BalancedDBShardingBundle
 
BalancedDBShardingBundle(String, List<String>) - Constructor for class io.appform.dropwizard.sharding.BalancedDBShardingBundle
 
BalancedDBShardingBundle(Class<?>, Class<?>...) - Constructor for class io.appform.dropwizard.sharding.BalancedDBShardingBundle
 
BalancedDBShardingBundle(String...) - Constructor for class io.appform.dropwizard.sharding.BalancedDBShardingBundle
 
BalancedShardManager - Class in io.appform.dropwizard.sharding.sharding
Manages shard to bucket mapping.
BalancedShardManager(int) - Constructor for class io.appform.dropwizard.sharding.sharding.BalancedShardManager
 
BalancedShardManager(int, ShardBlacklistingStore) - Constructor for class io.appform.dropwizard.sharding.sharding.BalancedShardManager
 
beforeStart() - Method in class io.appform.dropwizard.sharding.utils.TransactionHandler
 
blacklist(int) - Method in class io.appform.dropwizard.sharding.sharding.InMemoryLocalShardBlacklistingStore
 
blacklist(int) - Method in interface io.appform.dropwizard.sharding.sharding.ShardBlacklistingStore
 
BlacklistConfig - Class in io.appform.dropwizard.sharding.config
 
BlacklistConfig() - Constructor for class io.appform.dropwizard.sharding.config.BlacklistConfig
 
blacklisted(int) - Method in class io.appform.dropwizard.sharding.sharding.InMemoryLocalShardBlacklistingStore
 
blacklisted(int) - Method in interface io.appform.dropwizard.sharding.sharding.ShardBlacklistingStore
 
BlacklistingAwareHealthCheck - Class in io.appform.dropwizard.sharding.healthcheck
 
BlacklistingAwareHealthCheck(int, HealthCheck, ShardManager, BlacklistConfig) - Constructor for class io.appform.dropwizard.sharding.healthcheck.BlacklistingAwareHealthCheck
 
blacklistShard(int) - Method in class io.appform.dropwizard.sharding.sharding.ShardManager
 
BlacklistShardTask - Class in io.appform.dropwizard.sharding.admin
 
BlacklistShardTask(ShardManager) - Constructor for class io.appform.dropwizard.sharding.admin.BlacklistShardTask
 
bucketId(T) - Method in interface io.appform.dropwizard.sharding.sharding.BucketIdExtractor
 
bucketId(T) - Method in class io.appform.dropwizard.sharding.sharding.impl.ConsistentHashBucketIdExtractor
 
bucketId(T) - Method in class io.appform.dropwizard.sharding.sharding.impl.RandomBucketIdExtractor
 
BucketIdExtractor<T> - Interface in io.appform.dropwizard.sharding.sharding
Extracts bucket id from key

C

CacheableLookupDao<T> - Class in io.appform.dropwizard.sharding.dao
A write through/read through cache enabled dao to manage lookup and top level elements in the system.
CacheableLookupDao(List<SessionFactory>, Class<T>, ShardCalculator<String>, LookupCache<T>) - Constructor for class io.appform.dropwizard.sharding.dao.CacheableLookupDao
 
CacheableRelationalDao<T> - Class in io.appform.dropwizard.sharding.dao
A read/write through cache enabled RelationalDao
CacheableRelationalDao(List<SessionFactory>, Class<T>, ShardCalculator<String>, RelationalCache<T>) - Constructor for class io.appform.dropwizard.sharding.dao.CacheableRelationalDao
 
check() - Method in class io.appform.dropwizard.sharding.healthcheck.BlacklistingAwareHealthCheck
 
ConsistentHashBucketIdExtractor<T> - Class in io.appform.dropwizard.sharding.sharding.impl
Generates bucket id on the basis of murmur128 of the key.
ConsistentHashBucketIdExtractor(ShardManager) - Constructor for class io.appform.dropwizard.sharding.sharding.impl.ConsistentHashBucketIdExtractor
 
count(DetachedCriteria) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
Queries using the specified criteria across all shards and returns the counts of rows satisfying the criteria.
count(String, DetachedCriteria) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
createOrUpdate(RelationalDao<U>, DetachedCriteria, Function<U, U>, Supplier<U>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
createShardManager(int, ShardBlacklistingStore) - Method in class io.appform.dropwizard.sharding.BalancedDBShardingBundle
 
createShardManager(int, ShardBlacklistingStore) - Method in class io.appform.dropwizard.sharding.DBShardingBundle
 

D

DaoFwdException - Exception in io.appform.dropwizard.sharding.exceptions
 
DaoFwdException(String, Throwable) - Constructor for exception io.appform.dropwizard.sharding.exceptions.DaoFwdException
 
DBShardingBundle<T extends io.dropwizard.Configuration> - Class in io.appform.dropwizard.sharding
A dropwizard bundle that provides sharding over normal RDBMS.
DBShardingBundle(String, Class<?>, Class<?>...) - Constructor for class io.appform.dropwizard.sharding.DBShardingBundle
 
DBShardingBundle(String, List<String>) - Constructor for class io.appform.dropwizard.sharding.DBShardingBundle
 
DBShardingBundle(Class<?>, Class<?>...) - Constructor for class io.appform.dropwizard.sharding.DBShardingBundle
 
DBShardingBundle(String...) - Constructor for class io.appform.dropwizard.sharding.DBShardingBundle
 
delete(String) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
 

E

execute(ImmutableMultimap<String, String>, PrintWriter) - Method in class io.appform.dropwizard.sharding.admin.BlacklistShardTask
 
execute(ImmutableMultimap<String, String>, PrintWriter) - Method in class io.appform.dropwizard.sharding.admin.UnblacklistShardTask
 
execute() - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
execute(SessionFactory, boolean, Function<U, T>, U) - Static method in class io.appform.dropwizard.sharding.utils.Transactions
 
execute(SessionFactory, boolean, Function<U, T>, U, Function<T, V>) - Static method in class io.appform.dropwizard.sharding.utils.Transactions
 
execute(SessionFactory, boolean, Function<U, T>, U, Function<T, V>, boolean) - Static method in class io.appform.dropwizard.sharding.utils.Transactions
 
execute(SessionFactory, Function<Session, T>) - Static method in class io.appform.dropwizard.sharding.utils.Transactions
 
executeAndResolve(SessionFactory, Function<U, T>, U) - Static method in class io.appform.dropwizard.sharding.utils.Transactions
 
executeAndResolve(SessionFactory, boolean, Function<U, T>, U) - Static method in class io.appform.dropwizard.sharding.utils.Transactions
 
exists(String) - Method in interface io.appform.dropwizard.sharding.caching.LookupCache
Read through exists method that will be called if cache enabled CacheableLookupDao.exists(String) is used
exists(String, Object) - Method in interface io.appform.dropwizard.sharding.caching.RelationalCache
Read through exists method that will be called if cache enabled RelationalDao.exists(String, Object) is used
exists(String) - Method in class io.appform.dropwizard.sharding.dao.CacheableLookupDao
Read through exists check on the basis of key (value of field annotated with LookupKey) from cache.
exists(String) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
Check if object with specified key exists in any shard.
exists(String, Object) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 

F

filter(Predicate<T>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
filter(Predicate<T>, RuntimeException) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
forParent(String) - Method in class io.appform.dropwizard.sharding.dao.WrapperDao
Get a fully formed DAO that localizes all dao operations to the shard for the given parentKey.

G

get(String) - Method in interface io.appform.dropwizard.sharding.caching.LookupCache
Read through method that will be called if a cache enabled CacheableLookupDao.get(String) is used
get(String, Object) - Method in interface io.appform.dropwizard.sharding.caching.RelationalCache
Read through method that will be called if a cache enabled CacheableRelationalDao.get(String, Object) is used
get(String) - Method in class io.appform.dropwizard.sharding.dao.CacheableLookupDao
Read through an object on the basis of key (value of field annotated with LookupKey) from cache.
get(String, Object) - Method in class io.appform.dropwizard.sharding.dao.CacheableRelationalDao
 
get(String) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
Get an object on the basis of key (value of field annotated with LookupKey) from any shard.
get(String, Function<T, U>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
Get an object on the basis of key (value of field annotated with LookupKey) from any shard and applies the provided function/lambda to it.
get(List<String>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
Queries across various shards and returns the results.
get(String, Object) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
get(String, Object, Function<T, U>) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
getKeyField() - Method in class io.appform.dropwizard.sharding.dao.LookupDao
 
getKeyField() - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
getShardCalculator() - Method in interface io.appform.dropwizard.sharding.dao.ShardedDao
 

H

HealthCheckManager - Class in io.appform.dropwizard.sharding.healthcheck
 
HealthCheckManager(String, ShardInfoProvider, ShardBlacklistingStore, ShardManager) - Constructor for class io.appform.dropwizard.sharding.healthcheck.HealthCheckManager
 

I

InMemoryLocalShardBlacklistingStore - Class in io.appform.dropwizard.sharding.sharding
 
InMemoryLocalShardBlacklistingStore() - Constructor for class io.appform.dropwizard.sharding.sharding.InMemoryLocalShardBlacklistingStore
 
io.appform.dropwizard.sharding - package io.appform.dropwizard.sharding
 
io.appform.dropwizard.sharding.admin - package io.appform.dropwizard.sharding.admin
 
io.appform.dropwizard.sharding.caching - package io.appform.dropwizard.sharding.caching
 
io.appform.dropwizard.sharding.config - package io.appform.dropwizard.sharding.config
 
io.appform.dropwizard.sharding.dao - package io.appform.dropwizard.sharding.dao
 
io.appform.dropwizard.sharding.exceptions - package io.appform.dropwizard.sharding.exceptions
 
io.appform.dropwizard.sharding.healthcheck - package io.appform.dropwizard.sharding.healthcheck
 
io.appform.dropwizard.sharding.sharding - package io.appform.dropwizard.sharding.sharding
 
io.appform.dropwizard.sharding.sharding.impl - package io.appform.dropwizard.sharding.sharding.impl
 
io.appform.dropwizard.sharding.utils - package io.appform.dropwizard.sharding.utils
 
isBlacklisted(int) - Method in class io.appform.dropwizard.sharding.sharding.ShardManager
 
isMappedToValidShard(int) - Method in class io.appform.dropwizard.sharding.sharding.ShardManager
 
isOnValidShard(T) - Method in class io.appform.dropwizard.sharding.utils.ShardCalculator
 

L

LegacyShardManager - Class in io.appform.dropwizard.sharding.sharding
Manages shard to bucket mapping.
LegacyShardManager(int) - Constructor for class io.appform.dropwizard.sharding.sharding.LegacyShardManager
 
LegacyShardManager(int, ShardBlacklistingStore) - Constructor for class io.appform.dropwizard.sharding.sharding.LegacyShardManager
 
lockAndGetExecutor(String) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
 
LockedContext(int, SessionFactory, Function<String, T>, String) - Constructor for class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
LockedContext(int, SessionFactory, Function<T, T>, T) - Constructor for class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
LookupCache<V> - Interface in io.appform.dropwizard.sharding.caching
A simple cache interface which allows plugging in any caching framework or infrastructure to enable write through caching
LookupDao<T> - Class in io.appform.dropwizard.sharding.dao
A dao to manage lookup and top level elements in the system.
LookupDao(List<SessionFactory>, Class<T>, ShardCalculator<String>) - Constructor for class io.appform.dropwizard.sharding.dao.LookupDao
Creates a new sharded DAO.
LookupDao.LockedContext<T> - Class in io.appform.dropwizard.sharding.dao
A context for a shard
LookupDao.LockedContext.Mutator<T> - Interface in io.appform.dropwizard.sharding.dao
 
LookupKey - Annotation Type in io.appform.dropwizard.sharding.sharding
Annotation to annotate top level lookup key to be used by LookupDao

M

manageHealthChecks(BlacklistConfig, Environment) - Method in class io.appform.dropwizard.sharding.healthcheck.HealthCheckManager
 
mutate(LookupDao.LockedContext.Mutator<T>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
mutator(T) - Method in interface io.appform.dropwizard.sharding.dao.LookupDao.LockedContext.Mutator
 

N

namespace(String) - Method in class io.appform.dropwizard.sharding.ShardInfoProvider
 
numBuckets() - Method in class io.appform.dropwizard.sharding.sharding.BalancedShardManager
 
numBuckets() - Method in class io.appform.dropwizard.sharding.sharding.LegacyShardManager
 
numBuckets() - Method in class io.appform.dropwizard.sharding.sharding.ShardManager
 
numShards() - Method in class io.appform.dropwizard.sharding.sharding.BalancedShardManager
 
numShards() - Method in class io.appform.dropwizard.sharding.sharding.LegacyShardManager
 
numShards() - Method in class io.appform.dropwizard.sharding.sharding.ShardManager
 

O

onError() - Method in class io.appform.dropwizard.sharding.utils.TransactionHandler
 
onHealthCheckAdded(String, HealthCheck) - Method in class io.appform.dropwizard.sharding.healthcheck.HealthCheckManager
 
onHealthCheckRemoved(String, HealthCheck) - Method in class io.appform.dropwizard.sharding.healthcheck.HealthCheckManager
 

P

parseShardParam(ImmutableMultimap<String, String>) - Static method in class io.appform.dropwizard.sharding.admin.TaskUtils
 
put(String, V) - Method in interface io.appform.dropwizard.sharding.caching.LookupCache
Write through method that will be called if cache enabled CacheableLookupDao.save(Object) is used
put(String, Object, V) - Method in interface io.appform.dropwizard.sharding.caching.RelationalCache
Write through method that will be called if cache enabled CacheableRelationalDao.save(String, Object) is used
put(String, List<V>) - Method in interface io.appform.dropwizard.sharding.caching.RelationalCache
Write through method that will be called if cache enabled RelationalDao.select(String, DetachedCriteria, int, int, Function) is used
put(String, int, int, List<V>) - Method in interface io.appform.dropwizard.sharding.caching.RelationalCache
Write through method that will be called if cache enabled RelationalDao.select(String, DetachedCriteria, int, int, Function) is used

R

RandomBucketIdExtractor<T> - Class in io.appform.dropwizard.sharding.sharding.impl
Generates a random bucket id.
RandomBucketIdExtractor(ShardManager) - Constructor for class io.appform.dropwizard.sharding.sharding.impl.RandomBucketIdExtractor
 
RelationalCache<V> - Interface in io.appform.dropwizard.sharding.caching
A simple cache interface which allows plugging in any caching framework or infrastructure to enable write through caching
RelationalDao<T> - Class in io.appform.dropwizard.sharding.dao
A dao used to work with entities related to a parent shard.
RelationalDao(List<SessionFactory>, Class<T>, ShardCalculator<String>) - Constructor for class io.appform.dropwizard.sharding.dao.RelationalDao
Create a relational DAO.
runInSession(String, Function<Session, U>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
 
runInSession(String, Function<Session, U>) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 

S

save(T) - Method in class io.appform.dropwizard.sharding.dao.CacheableLookupDao
Write through the entity on proper shard based on hash of the value in the key field in the object and into cache.
save(String, T) - Method in class io.appform.dropwizard.sharding.dao.CacheableRelationalDao
 
save(RelationalDao<U>, Function<T, U>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
save(RelationalDao<U>, U, Function<U, U>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
save(T) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
Saves an entity on proper shard based on hash of the value in the key field in the object.
save(T, Function<T, U>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
Save an object on the basis of key (value of field annotated with LookupKey) to target shard and applies the provided function/lambda to it.
save(String, T) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
save(String, T, Function<T, U>) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
saveAll(RelationalDao<U>, Function<T, List<U>>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
saveAll(String, Collection<T>) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
saveAndGetExecutor(T) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
 
scatterGather(DetachedCriteria) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
Queries using the specified criteria across all shards and returns the result.
scatterGather(DetachedCriteria, int, int) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
select(String) - Method in interface io.appform.dropwizard.sharding.caching.RelationalCache
Read through method that will be called if a cache enabled RelationalDao.select(String, DetachedCriteria, int, int, Function) is used
select(String, int, int) - Method in interface io.appform.dropwizard.sharding.caching.RelationalCache
Read through method that will be called if a cache enabled RelationalDao.select(String, DetachedCriteria, int, int, Function) is used
select(String, DetachedCriteria, int, int) - Method in class io.appform.dropwizard.sharding.dao.CacheableRelationalDao
 
select(String, DetachedCriteria, int, int) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
select(String, DetachedCriteria, int, int, Function<List<T>, U>) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
ShardBlacklistedException - Exception in io.appform.dropwizard.sharding.exceptions
 
ShardBlacklistedException(int) - Constructor for exception io.appform.dropwizard.sharding.exceptions.ShardBlacklistedException
 
ShardBlacklistingStore - Interface in io.appform.dropwizard.sharding.sharding
 
ShardCalculator<T> - Class in io.appform.dropwizard.sharding.utils
Utility class for calculating shards.
ShardCalculator(ShardManager, BucketIdExtractor<T>) - Constructor for class io.appform.dropwizard.sharding.utils.ShardCalculator
 
ShardedDao<T> - Interface in io.appform.dropwizard.sharding.dao
 
ShardedHibernateFactory - Class in io.appform.dropwizard.sharding.config
Config for shards.
ShardedHibernateFactory() - Constructor for class io.appform.dropwizard.sharding.config.ShardedHibernateFactory
 
ShardedTransaction - Annotation Type in io.appform.dropwizard.sharding.sharding
Used to mark a transactional operation in a derviced AbstractDAO for use by WrapperDao
shardForBucket(int) - Method in class io.appform.dropwizard.sharding.sharding.ShardManager
 
shardForBucketImpl(int) - Method in class io.appform.dropwizard.sharding.sharding.BalancedShardManager
 
shardForBucketImpl(int) - Method in class io.appform.dropwizard.sharding.sharding.LegacyShardManager
 
shardForBucketImpl(int) - Method in class io.appform.dropwizard.sharding.sharding.ShardManager
 
ShardHealthCheckMeta - Class in io.appform.dropwizard.sharding.healthcheck
 
ShardHealthCheckMeta() - Constructor for class io.appform.dropwizard.sharding.healthcheck.ShardHealthCheckMeta
 
shardId(String) - Method in class io.appform.dropwizard.sharding.ShardInfoProvider
 
shardId(T) - Method in class io.appform.dropwizard.sharding.utils.ShardCalculator
 
ShardInfoProvider - Class in io.appform.dropwizard.sharding
 
ShardInfoProvider(String) - Constructor for class io.appform.dropwizard.sharding.ShardInfoProvider
 
ShardManager - Class in io.appform.dropwizard.sharding.sharding
 
ShardManager(ShardBlacklistingStore) - Constructor for class io.appform.dropwizard.sharding.sharding.ShardManager
 
shardName(int) - Method in class io.appform.dropwizard.sharding.ShardInfoProvider
 
status() - Method in class io.appform.dropwizard.sharding.healthcheck.HealthCheckManager
 

T

TaskUtils - Class in io.appform.dropwizard.sharding.admin
 
TransactionHandler - Class in io.appform.dropwizard.sharding.utils
A transaction handler utility class
TransactionHandler(SessionFactory, boolean) - Constructor for class io.appform.dropwizard.sharding.utils.TransactionHandler
 
Transactions - Class in io.appform.dropwizard.sharding.utils
Utility functional class for running transactions.

U

unblacklist(int) - Method in class io.appform.dropwizard.sharding.sharding.InMemoryLocalShardBlacklistingStore
 
unblacklist(int) - Method in interface io.appform.dropwizard.sharding.sharding.ShardBlacklistingStore
 
unblacklistShard(int) - Method in class io.appform.dropwizard.sharding.sharding.ShardManager
 
UnblacklistShardTask - Class in io.appform.dropwizard.sharding.admin
 
UnblacklistShardTask(ShardManager) - Constructor for class io.appform.dropwizard.sharding.admin.UnblacklistShardTask
 
update(String, Function<Optional<T>, T>) - Method in class io.appform.dropwizard.sharding.dao.CacheableLookupDao
Update the entity with a given id and refresh the object in the cache.
update(RelationalDao<U>, Object, Function<U, U>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
update(RelationalDao<U>, DetachedCriteria, Function<U, U>, BooleanSupplier) - Method in class io.appform.dropwizard.sharding.dao.LookupDao.LockedContext
 
update(String, Function<Optional<T>, T>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
 
update(String, Object, Function<T, T>) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
update(String, DetachedCriteria, Function<T, T>) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
updateAll(String, int, int, DetachedCriteria, Function<T, T>) - Method in class io.appform.dropwizard.sharding.dao.RelationalDao
 
updateInLock(String, Function<Optional<T>, T>) - Method in class io.appform.dropwizard.sharding.dao.LookupDao
 

W

WrapperDao<T,DaoType extends io.dropwizard.hibernate.AbstractDAO<T>> - Class in io.appform.dropwizard.sharding.dao
A dao used to wrap custom Dao's so that all operations on the DAO's are routed to the same shard for a parent key.
WrapperDao(List<SessionFactory>, Class<DaoType>, ShardCalculator<String>) - Constructor for class io.appform.dropwizard.sharding.dao.WrapperDao
Create a relational DAO.
WrapperDao(List<SessionFactory>, Class<DaoType>, Class[], Class[], ShardCalculator<String>) - Constructor for class io.appform.dropwizard.sharding.dao.WrapperDao
Create a relational DAO.
A B C D E F G H I L M N O P R S T U W 
Skip navigation links

Copyright © 2016–2020. All rights reserved.