org.codehaus.cargo.container.jetty.internal
Class JettyExecutorThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.codehaus.cargo.container.jetty.internal.JettyExecutorThread
All Implemented Interfaces:
java.lang.Runnable, org.codehaus.cargo.util.log.Loggable

public class JettyExecutorThread
extends java.lang.Thread
implements org.codehaus.cargo.util.log.Loggable

Executor that executes by introspection a Jetty Server object.

Version:
$Id: JettyExecutorThread.java 998 2006-04-09 14:55:31Z vmassol $

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JettyExecutorThread(java.lang.Object server, boolean isForStart)
           
 
Method Summary
 org.codehaus.cargo.util.log.Logger getLogger()
          
 void run()
          Start or stop Jetty by introspection.
 void setLogger(org.codehaus.cargo.util.log.Logger logger)
          
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JettyExecutorThread

public JettyExecutorThread(java.lang.Object server,
                           boolean isForStart)
Parameters:
server - the reference to a Jetty Server object
isForStart - if true Jetty must be started. Otherwise Jetty must be stopped
Method Detail

run

public void run()
Start or stop Jetty by introspection.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

setLogger

public void setLogger(org.codehaus.cargo.util.log.Logger logger)

Specified by:
setLogger in interface org.codehaus.cargo.util.log.Loggable
See Also:
Loggable.setLogger(org.codehaus.cargo.util.log.Logger)

getLogger

public org.codehaus.cargo.util.log.Logger getLogger()

Specified by:
getLogger in interface org.codehaus.cargo.util.log.Loggable
See Also:
Loggable.getLogger()


Copyright © 2004-2009 Codehaus. All Rights Reserved.