org.flexunit.ant.launcher.contexts
Class HeadlessContext

java.lang.Object
  extended by 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.


Field Summary
private  int finalDisplay
           
private  PlayerCommand playerCommand
           
private  org.apache.tools.ant.Project project
           
private  int startDisplay
           
 
Constructor Summary
HeadlessContext(int display)
           
 
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
 

Field Detail

playerCommand

private PlayerCommand playerCommand

startDisplay

private int startDisplay

finalDisplay

private int finalDisplay

project

private org.apache.tools.ant.Project project
Constructor Detail

HeadlessContext

public HeadlessContext(int display)
Method Detail

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