net.flexmojos.oss.test.monitor
Class ResultHandler

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by net.flexmojos.oss.test.AbstractControlledThread
          extended by net.flexmojos.oss.test.monitor.AbstractSocketThread
              extended by net.flexmojos.oss.test.monitor.ResultHandler
All Implemented Interfaces:
Runnable, ControlledThread, org.codehaus.plexus.logging.LogEnabled

@Component(role=ResultHandler.class,
           instantiationStrategy="per-lookup")
public class ResultHandler
extends AbstractSocketThread
implements ControlledThread

Create a server socket for receiving the test reports from FlexUnit. We read the test reports inside of a Thread.


Field Summary
static String ROLE
           
protected  List<String> testReportData
           
 
Fields inherited from class net.flexmojos.oss.test.monitor.AbstractSocketThread
clientSocket, in, out, serverSocket, testPort
 
Fields inherited from class net.flexmojos.oss.test.AbstractControlledThread
error, status
 
Constructor Summary
ResultHandler()
           
 
Method Summary
protected  int getFirstConnectionTimeout()
           
protected  int getTestPort()
           
 List<String> getTestReportData()
           
protected  void handleRequest()
           
protected  void reset()
           
 void start(int testPort)
           
 
Methods inherited from class net.flexmojos.oss.test.monitor.AbstractSocketThread
closeClientSocket, openClientSocket, run, stop
 
Methods inherited from class net.flexmojos.oss.test.AbstractControlledThread
getError, getStatus, launch, lock, unlock
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.flexmojos.oss.test.ControlledThread
getError, getStatus, lock, stop, unlock
 

Field Detail

ROLE

public static final String ROLE

testReportData

protected List<String> testReportData
Constructor Detail

ResultHandler

public ResultHandler()
Method Detail

getTestReportData

public List<String> getTestReportData()

handleRequest

protected void handleRequest()
                      throws SocketException,
                             IOException
Specified by:
handleRequest in class AbstractSocketThread
Throws:
SocketException
IOException

start

public void start(int testPort)

reset

protected void reset()
Overrides:
reset in class AbstractSocketThread

getTestPort

protected int getTestPort()
Specified by:
getTestPort in class AbstractSocketThread

getFirstConnectionTimeout

protected int getFirstConnectionTimeout()
Specified by:
getFirstConnectionTimeout in class AbstractSocketThread


Copyright © 2008–2014 flexmojos. All rights reserved.