org.flexunit.ant.launcher.contexts
Class HeadlessContext
java.lang.Object
org.flexunit.ant.launcher.contexts.HeadlessContext
- All Implemented Interfaces:
- ExecutionContext
public class HeadlessContext
- extends java.lang.Object
- implements ExecutionContext
Context used to wrap a call to the player command in a start and stop of a vncserver.
All vncserver commands are blocking.
Method Summary |
void |
setCommand(PlayerCommand command)
|
void |
setProject(org.apache.tools.ant.Project project)
|
void |
start()
Starts the execution context and any work associated with the individual implementations. |
void |
stop(java.lang.Process playerProcess)
Stops the execution context and manages the player Process as well as any work associated
with the individual implementations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
playerCommand
private PlayerCommand playerCommand
startDisplay
private int startDisplay
finalDisplay
private int finalDisplay
project
private org.apache.tools.ant.Project project
HeadlessContext
public HeadlessContext(int display)
setProject
public void setProject(org.apache.tools.ant.Project project)
- Specified by:
setProject
in interface ExecutionContext
setCommand
public void setCommand(PlayerCommand command)
- Specified by:
setCommand
in interface ExecutionContext
start
public void start()
throws java.io.IOException
- Description copied from interface:
ExecutionContext
- Starts the execution context and any work associated with the individual implementations.
- Specified by:
start
in interface ExecutionContext
- Throws:
java.io.IOException
stop
public void stop(java.lang.Process playerProcess)
throws java.io.IOException
- Description copied from interface:
ExecutionContext
- Stops the execution context and manages the player Process as well as any work associated
with the individual implementations.
- Specified by:
stop
in interface ExecutionContext
- Throws:
java.io.IOException