org.eigenbase.test.concurrent
Class ConcurrentTestCommandExecutor.Sync

java.lang.Object
  extended by org.eigenbase.test.concurrent.ConcurrentTestCommandExecutor.Sync
Enclosing class:
ConcurrentTestCommandExecutor

public static class ConcurrentTestCommandExecutor.Sync
extends Object

Synchronization object that allows multiple ConcurrentTestCommandExecutors to execute commands in lock-step. Requires that all ConcurrentTestCommandExecutors have the same number of commands.


Field Summary
private  int numThreads
           
private  int numWaiting
           
 
Constructor Summary
ConcurrentTestCommandExecutor.Sync(int numThreads)
           
 
Method Summary
(package private)  void waitForOthers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numThreads

private int numThreads

numWaiting

private int numWaiting
Constructor Detail

ConcurrentTestCommandExecutor.Sync

public ConcurrentTestCommandExecutor.Sync(int numThreads)
Method Detail

waitForOthers

void waitForOthers()
             throws InterruptedException
Throws:
InterruptedException