de.knipp.rritoolkit.test
Class Test.ParallelCommand

java.lang.Object
  extended by de.knipp.rritoolkit.test.Test.ParallelCommand
All Implemented Interfaces:
Test.Command
Enclosing class:
Test

private static class Test.ParallelCommand
extends java.lang.Object
implements Test.Command

class that executes the given commands in parallel

Version:
$Revision: 15112 $
Author:
Klaus Malorny

Field Summary
private  Test.Command[] commands
          the commands to execute
private  int threadCount
          the number of threads to use
 
Constructor Summary
Test.ParallelCommand(Test.Command[] theCommands, int theThreadCount)
          constructor
 
Method Summary
 void execute(Port port)
          execute the command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

private Test.Command[] commands
the commands to execute


threadCount

private int threadCount
the number of threads to use

Constructor Detail

Test.ParallelCommand

public Test.ParallelCommand(Test.Command[] theCommands,
                            int theThreadCount)
constructor

Parameters:
theCommands - the commands to execute
theThreadCount - the maximum number of threads to use
Method Detail

execute

public void execute(Port port)
             throws java.lang.Exception
execute the command

Specified by:
execute in interface Test.Command
Parameters:
port - the port
Throws:
java.lang.Exception - if the execution failed for some reason


Copyright © 2005-2011 Knipp Medien und Kommunikation GmbH