org.eigenbase.test.concurrent
Class ConcurrentTestCommandGenerator.SleepCommand

java.lang.Object
  extended by org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
      extended by org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.SleepCommand
All Implemented Interfaces:
ConcurrentTestCommand
Enclosing class:
ConcurrentTestCommandGenerator

private static class ConcurrentTestCommandGenerator.SleepCommand
extends ConcurrentTestCommandGenerator.AbstractCommand

SleepCommand causes the execution thread to wait for all other threads in the test before continuing.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eigenbase.test.concurrent.ConcurrentTestCommand
ConcurrentTestCommand.ShouldHaveFailedException
 
Field Summary
private  long millis
           
 
Constructor Summary
private ConcurrentTestCommandGenerator.SleepCommand(long millis)
           
 
Method Summary
protected  void doExecute(ConcurrentTestCommandExecutor executor)
           
 
Methods inherited from class org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
execute, isFailureExpected, markToFail, markToFail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

millis

private long millis
Constructor Detail

ConcurrentTestCommandGenerator.SleepCommand

private ConcurrentTestCommandGenerator.SleepCommand(long millis)
Method Detail

doExecute

protected void doExecute(ConcurrentTestCommandExecutor executor)
                  throws Exception
Specified by:
doExecute in class ConcurrentTestCommandGenerator.AbstractCommand
Throws:
Exception