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.
-
-
Field Summary
Fields Modifier and Type Field Description public volatile Stringnamepublic intprioritypublic ClassLoadercontextClassLoaderpublic final static intMIN_PRIORITYpublic final static intNORM_PRIORITYpublic final static intMAX_PRIORITYpublic volatile Thread.UncaughtExceptionHandleruncaughtExceptionHandlerpublic static volatile Thread.UncaughtExceptionHandlerdefaultUncaughtExceptionHandler
-
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.
-
Method Summary
Modifier and Type Method Description voidrun()Listen on the daemon port and handle incoming requests. voidstopServer()ExceptiongetException()static voidmain(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 sizemaxQueueSize- Max Queue size
-
-
Method Detail
-
run
void run()
Listen on the daemon port and handle incoming requests. This method will not exit until stopServer is called or an error occurs.
-
stopServer
void stopServer()
-
getException
Exception getException()
-
-
-
-