Class HttpMirrorServer
java.lang.Object
java.lang.Thread
org.apache.jmeter.protocol.http.control.HttpMirrorServer
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionHttpMirrorServer(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 TypeMethodDescriptionstatic voidvoidrun()Listen on the daemon port and handle incoming requests.voidStop serverMethods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Constructor Details
-
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 Details
-
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:StoppableStop server- Specified by:
stopServerin interfaceStoppable
-
getException
-
main
-