Class JettyExecutorThread

  • All Implemented Interfaces:
    Runnable, Loggable

    public class JettyExecutorThread
    extends Thread
    implements Loggable
    Executor that executes by introspection a Jetty Server object.
    • Constructor Detail

      • JettyExecutorThread

        public JettyExecutorThread​(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 Runnable
        Overrides:
        run in class Thread
      • setLogger

        public void setLogger​(Logger logger)
        Specified by:
        setLogger in interface Loggable
        Parameters:
        logger - the log implementation to use for logging