Class HttpMirrorServer
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.jmeter.protocol.http.control.HttpMirrorServer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Exception
getException()
static void
main(String[] args)
void
run()
Listen on the daemon port and handle incoming requests.void
stopServer()
Stop server-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
HttpMirrorServer
public HttpMirrorServer(int port)
Create a new Daemon with the specified port and target.- Parameters:
port
- the port to listen on.
-
HttpMirrorServer
public 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
public void run()
Listen on the daemon port and handle incoming requests. This method will not exit untilstopServer()
is called or an error occurs.
-
stopServer
public void stopServer()
Description copied from interface:Stoppable
Stop server- Specified by:
stopServer
in interfaceStoppable
-
getException
public Exception getException()
-
main
public static void main(String[] args)
-
-