Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor | Description |
---|---|
Daemon(int port,
ProxyControl target) |
Create a new Daemon with the specified port and target.
|
Daemon(int port,
ProxyControl target,
Class<? extends Proxy> proxyClass) |
Create a new Daemon with the specified port and target, using the
specified class to handle individual requests.
|
Modifier and Type | Method | Description |
---|---|---|
void |
run() |
Listen on the daemon port and handle incoming requests.
|
void |
stopServer() |
Stop the proxy daemon.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, 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, stop, suspend, toString, yield
public Daemon(int port, ProxyControl target) throws IOException
port
- the port to listen on.target
- the target which will receive the generated JMeter test
components.IOException
- if an I/O error occurs opening the socketIllegalArgumentException
- if port
is outside the allowed range from 0
to 65535
SocketException
- when something is wrong on the underlying protocol layerpublic Daemon(int port, ProxyControl target, Class<? extends Proxy> proxyClass) throws IOException
port
- the port to listen on.target
- the target which will receive the generated JMeter test
components.proxyClass
- the proxy class to use to handle individual requests. This
class must be the Proxy
class or a subclass.IOException
- if an I/O error occurs opening the socketIllegalArgumentException
- if port
is outside the allowed range from 0
to 65535
SocketException
- when something is wrong on the underlying protocol layerpublic void run()
stopServer()
is called or an error occurs.public void stopServer()
stopServer
in interface Stoppable
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.