public abstract class LockKeyColumnValueStoreTest extends AbstractKCVSTest
| Modifier and Type | Field and Description |
|---|---|
static int |
CONCURRENCY |
static String |
DB_NAME |
protected static long |
EXPIRE_MS |
KeyColumnValueStoreManager[] |
manager |
static int |
NUM_TX |
KeyColumnValueStore[] |
store |
StoreTransaction[][] |
tx |
times| Constructor and Description |
|---|
LockKeyColumnValueStoreTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
expectedValueMismatchCausesMutateFailure() |
void |
expiredLocalLockIsIgnored() |
void |
expiredRemoteLockIsIgnored() |
StoreTransaction |
newTransaction(KeyColumnValueStoreManager manager) |
void |
open() |
abstract KeyColumnValueStoreManager |
openStorageManager(int id) |
void |
parallelNoncontendedLockStressTest() |
void |
repeatLockingDoesNotExtendExpiration() |
void |
setUp() |
void |
singleLockAndUnlock() |
void |
singleTransactionWithMultipleLocks() |
void |
tearDown() |
void |
testLocalLockContention() |
void |
testLocksOnMultipleStores() |
void |
testRemoteLockContention() |
void |
transactionMayReenterLock() |
void |
twoLocalTransactionsWithIndependentLocks() |
void |
twoTransactionsWithIndependentLocks() |
getConsistentTxConfig, getTxConfigpublic static final int CONCURRENCY
public static final int NUM_TX
public static final String DB_NAME
protected static final long EXPIRE_MS
public KeyColumnValueStoreManager[] manager
public StoreTransaction[][] tx
public KeyColumnValueStore[] store
public abstract KeyColumnValueStoreManager openStorageManager(int id) throws BackendException
BackendExceptionpublic void open()
throws BackendException
BackendExceptionpublic StoreTransaction newTransaction(KeyColumnValueStoreManager manager) throws BackendException
BackendExceptionpublic void close()
throws BackendException
BackendExceptionpublic void singleLockAndUnlock()
throws BackendException
BackendExceptionpublic void transactionMayReenterLock()
throws BackendException
BackendExceptionpublic void expectedValueMismatchCausesMutateFailure()
throws BackendException
BackendExceptionpublic void testLocalLockContention()
throws BackendException
BackendExceptionpublic void testRemoteLockContention()
throws InterruptedException,
BackendException
InterruptedExceptionBackendExceptionpublic void singleTransactionWithMultipleLocks()
throws BackendException
BackendExceptionpublic void twoLocalTransactionsWithIndependentLocks()
throws BackendException
BackendExceptionpublic void twoTransactionsWithIndependentLocks()
throws BackendException
BackendExceptionpublic void expiredLocalLockIsIgnored()
throws BackendException,
InterruptedException
BackendExceptionInterruptedExceptionpublic void expiredRemoteLockIsIgnored()
throws BackendException,
InterruptedException
BackendExceptionInterruptedExceptionpublic void repeatLockingDoesNotExtendExpiration()
throws BackendException,
InterruptedException
BackendExceptionInterruptedExceptionpublic void parallelNoncontendedLockStressTest()
throws BackendException,
InterruptedException
BackendExceptionInterruptedExceptionCopyright © 2012–2016. All rights reserved.