public abstract class TitanGraphConcurrentTest extends TitanGraphBaseTest
TitanGraphBaseTest.TestConfigOption| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.TestRule |
benchmark |
adjustedConfig, config, DEFAULT_THREAD_COUNT, features, graph, logManagers, mgmt, tx| Constructor and Description |
|---|
TitanGraphConcurrentTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
concurrentIndexReadWriteTest() |
void |
concurrentReadsOnSingleTransaction()
Insert an extremely simple graph and start
TASK_COUNT simultaneous readers in an executor with
THREAD_COUNT threads.
|
void |
concurrentReadWriteOnSingleTransaction()
Tail many readers, as in
concurrentReadsOnSingleTransaction(),
but also start some threads that add and remove relationships and
properties while the readers are working; all tasks share a common
transaction. |
void |
concurrentTxRead() |
void |
setUp() |
void |
tearDown() |
void |
testStandardIndexVertexPropertyReads()
Load-then-read test of standard-indexed vertex properties.
|
clopen, close, closeLogManager, createExternalEdgeIndex, createExternalVertexIndex, finishSchema, getConfig, getConfiguration, getExternalIndex, getThreadCount, getVertex, getVertex, getVertex, getVertex, makeKey, makeKeyedEdgeLabel, makeLabel, makeVertexIndexedKey, makeVertexIndexedUniqueKey, newTx, open, openTxLog, openUserLog, option, round, wrapAroundpublic void setUp()
throws Exception
setUp in class TitanGraphBaseTestExceptionpublic void tearDown()
throws Exception
tearDown in class TitanGraphBaseTestExceptionpublic void concurrentReadsOnSingleTransaction()
throws Exception
Exceptionpublic void concurrentReadWriteOnSingleTransaction()
throws Exception
concurrentReadsOnSingleTransaction(),
but also start some threads that add and remove relationships and
properties while the readers are working; all tasks share a common
transaction.
The readers do not look for the properties or relationships the
writers are mutating, since this is all happening on a common transaction.Exceptionpublic void concurrentIndexReadWriteTest()
throws Exception
Exceptionpublic void testStandardIndexVertexPropertyReads()
throws InterruptedException,
ExecutionException
Copyright © 2012–2016. All rights reserved.