public class MetricInstrumentedStoreManager extends Object implements KeyColumnValueStoreManager
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOBAL_PREFIX |
static String |
M_CLOSE_MANAGER |
static String |
M_OPEN_DATABASE |
static String |
M_START_TX |
| Constructor and Description |
|---|
MetricInstrumentedStoreManager(KeyColumnValueStoreManager backend,
String managerMetricsName,
boolean mergeStoreMetrics,
String mergedMetricsName) |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
beginTransaction(BaseTransactionConfig config)
Returns a transaction handle for a new transaction according to the given configuration.
|
void |
clearStorage()
Deletes and clears all database in this storage manager.
|
void |
close()
Closes the Storage Manager and all databases that have been opened.
|
StoreFeatures |
getFeatures()
Returns the features supported by this storage manager
|
List<KeyRange> |
getLocalKeyPartition()
Returns
KeyRanges locally hosted on this machine. |
String |
getName()
Return an identifier for the StoreManager.
|
void |
mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh)
Executes multiple mutations at once.
|
KeyColumnValueStore |
openDatabase(String name,
StoreMetaData.Container metaData)
Opens an ordered database by the given name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenDatabasepublic static final String M_OPEN_DATABASE
public static final String M_START_TX
public static final String M_CLOSE_MANAGER
public static final String GLOBAL_PREFIX
public MetricInstrumentedStoreManager(KeyColumnValueStoreManager backend, String managerMetricsName, boolean mergeStoreMetrics, String mergedMetricsName)
public KeyColumnValueStore openDatabase(String name, StoreMetaData.Container metaData) throws BackendException
KeyColumnValueStoreManageropenDatabase in interface KeyColumnValueStoreManagername - Name of databasemetaData - options specific to this storeBackendExceptionpublic void mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations, StoreTransaction txh) throws BackendException
KeyColumnValueStoreManagerStoreManager.getFeatures() if it is supported by a particular implementation.mutateMany in interface KeyColumnValueStoreManagerBackendExceptionpublic StoreTransaction beginTransaction(BaseTransactionConfig config) throws BackendException
StoreManagerbeginTransaction in interface StoreManagerBackendExceptionpublic void close()
throws BackendException
StoreManagerclose in interface StoreManagerBackendExceptionpublic void clearStorage()
throws BackendException
StoreManagerclearStorage in interface StoreManagerBackendExceptionpublic StoreFeatures getFeatures()
StoreManagergetFeatures in interface StoreManagerStoreFeaturespublic String getName()
StoreManagergetName in interface StoreManagerpublic List<KeyRange> getLocalKeyPartition() throws BackendException
StoreManagerKeyRanges locally hosted on this machine. The start of
each KeyRange is inclusive. The end is exclusive. The start and
end must each be at least 4 bytes in length.getLocalKeyPartition in interface StoreManagerBackendExceptionCopyright © 2012–2015. All rights reserved.