Class HttpMirrorServer

  • All Implemented Interfaces:
    java.lang.Runnable , org.apache.jmeter.gui.Stoppable , org.apache.jmeter.testelement.NonTestElement

    
    public class HttpMirrorServer
    extends Thread implements Stoppable, NonTestElement
                        

    Server daemon thread. Creates main socket and listens on it. For each client request, creates a thread to handle the request.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpMirrorServer(int port) Create a new Daemon with the specified port and target.
      HttpMirrorServer(int port, int maxThreadPoolSize, int maxQueueSize) Create a new Daemon with the specified port and target.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void run() Listen on the daemon port and handle incoming requests.
      void stopServer()
      Exception getException()
      static void main(Array<String> args)
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpMirrorServer

        HttpMirrorServer(int port)
        Create a new Daemon with the specified port and target.
        Parameters:
        port - the port to listen on.
      • HttpMirrorServer

        HttpMirrorServer(int port, int maxThreadPoolSize, int maxQueueSize)
        Create a new Daemon with the specified port and target.
        Parameters:
        port - the port to listen on.
        maxThreadPoolSize - Max Thread pool size
        maxQueueSize - Max Queue size