public class Coordinator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Coordinator.Directive
Represents action to be taken on a test step.
|
static class |
Coordinator.Status
Represents processor state.
|
| Constructor and Description |
|---|
Coordinator(Scenario scenario,
ProcessFlow processFlow,
File logDir)
Creates a process flow coordinator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(StepProcessListener listener)
Adds the specified listener.
|
long |
duration()
Returns number of milliseconds it took to execute.
|
Coordinator.Status |
getStatus(Step step)
Returns the status record of the specified test step.
|
Set<Step> |
getSteps()
Returns set of all test steps.
|
static void |
print(String format,
Object... args)
Prints formatted output.
|
void |
removeListener(StepProcessListener listener)
Removes the specified listener.
|
void |
reset()
Resets any previously accrued status and events.
|
void |
reset(List<String> runFromPatterns,
List<String> runToPatterns)
Resets all previously accrued status and events for steps that lie
in the range between the steps or groups whose names match the specified
patterns.
|
void |
start()
Starts execution of the process flow graph.
|
int |
waitFor()
Wants for completion of the entire process flow.
|
public Coordinator(Scenario scenario, ProcessFlow processFlow, File logDir)
scenario - test scenario to coordinateprocessFlow - process flow to coordinatelogDir - scenario log directorypublic void reset()
public void reset(List<String> runFromPatterns, List<String> runToPatterns)
runFromPatterns - list of starting step patternsrunToPatterns - list of ending step patternspublic long duration()
public void start()
public int waitFor()
throws InterruptedException
InterruptedException - if interrupted while waiting for completionpublic Coordinator.Status getStatus(Step step)
step - test step or grouppublic void addListener(StepProcessListener listener)
listener - step process listenerpublic void removeListener(StepProcessListener listener)
listener - step process listenerCopyright © 2015. All rights reserved.