@PerformanceTest public class WorkerValueQueueTest extends HybrisJUnit4Test
| Modifier and Type | Class and Description |
|---|---|
protected static class |
WorkerValueQueueTest.Master |
jaloSession| Constructor and Description |
|---|
WorkerValueQueueTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertAllPKsUsed(int expectedUseCount) |
protected void |
performLinearPerformanceTest(WorkerValueQueue<PK> queue1,
int cycles,
int pkCount) |
void |
setUp() |
protected java.util.Collection<java.lang.Thread> |
simulateWorkers(WorkerValueQueue<PK> queue) |
protected WorkerValueQueueTest.Master |
simulateWriter(WorkerValueQueue<PK> queue,
int cycles) |
void |
testPerformance() |
void |
testQueueCompleteness() |
void |
testQueueMultipleCycles() |
protected void |
waitForEmptyQueue(WorkerValueQueue<PK> queue) |
protected void |
waitForMaster(java.lang.Thread master) |
protected void |
waitForWorkers(java.util.Collection<java.lang.Thread> workers) |
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
public void testPerformance()
public void testQueueMultipleCycles()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testQueueCompleteness()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void performLinearPerformanceTest(WorkerValueQueue<PK> queue1, int cycles, int pkCount)
protected void assertAllPKsUsed(int expectedUseCount)
protected void waitForEmptyQueue(WorkerValueQueue<PK> queue)
protected void waitForMaster(java.lang.Thread master)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void waitForWorkers(java.util.Collection<java.lang.Thread> workers)
protected WorkerValueQueueTest.Master simulateWriter(WorkerValueQueue<PK> queue, int cycles)
protected java.util.Collection<java.lang.Thread> simulateWorkers(WorkerValueQueue<PK> queue) throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2018 SAP SE. All Rights Reserved.