private static class Test.ParallelCommand extends java.lang.Object implements Test.Command
Modifier and Type | Field and Description |
---|---|
private Test.Command[] |
commands
the commands to execute
|
private int |
threadCount
the number of threads to use
|
Constructor and Description |
---|
ParallelCommand(Test.Command[] theCommands,
int theThreadCount)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Port port)
execute the command
|
private Test.Command[] commands
private int threadCount
public ParallelCommand(Test.Command[] theCommands, int theThreadCount)
theCommands
- the commands to executetheThreadCount
- the maximum number of threads to usepublic void execute(Port port) throws java.lang.Exception
execute
in interface Test.Command
port
- the portjava.lang.Exception
- if the execution failed for some reasonCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH