net.flexmojos.oss.test.monitor
Class AsVmPing

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.AsVmPing
All Implemented Interfaces:
Runnable, ControlledThread, org.codehaus.plexus.logging.LogEnabled

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

This class will ping Action Script virtual machine to make sure if the application still running

Author:
velo

Field Summary
 
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
AsVmPing()
           
 
Method Summary
protected  int getFirstConnectionTimeout()
           
protected  int getTestPort()
           
protected  void handleRequest()
           
 void start(int testControlPort, int firstConnectionTimeout, int testTimeout)
           
 
Methods inherited from class net.flexmojos.oss.test.monitor.AbstractSocketThread
closeClientSocket, openClientSocket, reset, 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, unlock
 

Constructor Detail

AsVmPing

public AsVmPing()
Method Detail

handleRequest

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

start

public void start(int testControlPort,
                  int firstConnectionTimeout,
                  int testTimeout)

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.