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

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

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 $

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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

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-2007 Codehaus. All Rights Reserved.