|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.common.service.AbstractService
voldemort.server.storage.StorageService
public class StorageService
The service responsible for managing all storage types
Field Summary | |
---|---|
static java.lang.String |
CLUSTER_VERSION_KEY
|
static java.lang.String |
STORES_VERSION_KEY
|
static java.lang.String |
VERSIONS_METADATA_STORE
|
Constructor Summary | |
---|---|
StorageService(StoreRepository storeRepository,
MetadataStore metadata,
SchedulerService scheduler,
VoldemortConfig config)
|
Method Summary | |
---|---|
void |
forceCleanupOldData(java.lang.String storeName)
|
void |
forceCleanupOldDataThrottled(java.lang.String storeName,
int entryScanThrottleRate)
|
DynamicThrottleLimit |
getDynThrottleLimit()
|
long |
getEntriesDeleted()
|
long |
getEntriesScanned()
|
long |
getGrantedPermits()
|
MetadataStore |
getMetadataStore()
|
java.util.List<java.lang.String> |
getPermitOwners()
|
SocketStoreFactory |
getSocketStoreFactory()
|
StoreRepository |
getStoreRepository()
|
protected void |
initializeMetadataVersions(java.util.List<StoreDefinition> storeDefs)
|
void |
logStoreStats()
|
void |
logStoreStats(java.lang.String storeName)
|
StorageEngine<ByteArray,byte[],byte[]> |
openStore(StoreDefinition storeDef)
|
void |
openSystemStore(StoreDefinition storeDef)
|
void |
registerEngine(StorageEngine<ByteArray,byte[],byte[]> engine,
boolean isReadOnly,
java.lang.String storeType,
StoreDefinition storeDef)
Register the given engine with the storage repository |
void |
registerInternalEngine(StorageEngine<ByteArray,byte[],byte[]> engine,
boolean isReadOnly,
java.lang.String storeType)
Register the given internal engine (slop and metadata) with the storage repository |
void |
registerNodeStores(StoreDefinition def,
Cluster cluster,
int localNode)
For server side routing create NodeStore (socketstore) and pass it on to a RebootstrappingStore . |
void |
registerSystemEngine(StorageEngine<ByteArray,byte[],byte[]> engine)
|
void |
removeEngine(StorageEngine<ByteArray,byte[],byte[]> engine,
boolean isReadOnly,
java.lang.String storeType,
boolean truncate)
Unregister and remove the engine from the storage repository. |
protected void |
startInner()
|
protected void |
stopInner()
|
void |
unregisterSystemEngine(StorageEngine<ByteArray,byte[],byte[]> engine)
|
void |
updateStore(StoreDefinition storeDef)
|
Methods inherited from class voldemort.common.service.AbstractService |
---|
getType, isStarted, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSIONS_METADATA_STORE
public static final java.lang.String CLUSTER_VERSION_KEY
public static final java.lang.String STORES_VERSION_KEY
Constructor Detail |
---|
public StorageService(StoreRepository storeRepository, MetadataStore metadata, SchedulerService scheduler, VoldemortConfig config)
Method Detail |
---|
protected void startInner()
startInner
in class AbstractService
protected void initializeMetadataVersions(java.util.List<StoreDefinition> storeDefs)
public void openSystemStore(StoreDefinition storeDef)
public void registerSystemEngine(StorageEngine<ByteArray,byte[],byte[]> engine)
public void unregisterSystemEngine(StorageEngine<ByteArray,byte[],byte[]> engine)
public void updateStore(StoreDefinition storeDef)
public StorageEngine<ByteArray,byte[],byte[]> openStore(StoreDefinition storeDef)
public void removeEngine(StorageEngine<ByteArray,byte[],byte[]> engine, boolean isReadOnly, java.lang.String storeType, boolean truncate)
engine
- The actual engine to removeisReadOnly
- Is this read-only?storeType
- The storage type of the storetruncate
- Should the store be truncated?public void registerInternalEngine(StorageEngine<ByteArray,byte[],byte[]> engine, boolean isReadOnly, java.lang.String storeType)
engine
- Register the storage engineisReadOnly
- Boolean indicating if this store is read-onlystoreType
- The type of the storepublic void registerEngine(StorageEngine<ByteArray,byte[],byte[]> engine, boolean isReadOnly, java.lang.String storeType, StoreDefinition storeDef)
engine
- Register the storage engineisReadOnly
- Boolean indicating if this store is read-onlystoreType
- The type of the storestoreDef
- store definition for the store to be registeredpublic void registerNodeStores(StoreDefinition def, Cluster cluster, int localNode)
RebootstrappingStore
.
The RebootstrappingStore
handles invalid-metadata exceptions
introduced due to changes in cluster.xml at different nodes.
def
- cluster
- localNode
- protected void stopInner()
stopInner
in class AbstractService
public MetadataStore getMetadataStore()
public StoreRepository getStoreRepository()
public void forceCleanupOldData(java.lang.String storeName)
public void forceCleanupOldDataThrottled(java.lang.String storeName, int entryScanThrottleRate)
public void logStoreStats(java.lang.String storeName)
public void logStoreStats()
public SocketStoreFactory getSocketStoreFactory()
public DynamicThrottleLimit getDynThrottleLimit()
public java.util.List<java.lang.String> getPermitOwners()
public long getGrantedPermits()
public long getEntriesScanned()
public long getEntriesDeleted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |