|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.apache.jmeter.protocol.http.proxy.Daemon
Web daemon thread. Creates main socket on port 8080 and listens on it forever. For each client request, creates a proxy thread to handle the request.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Daemon()
Default constructor. |
|
Daemon(int port,
ProxyControl target)
Create a new Daemon with the specified port and target. |
|
Daemon(int port,
ProxyControl target,
Class proxyClass)
Create a new Daemon with the specified port and target, using the specified class to handle individual requests. |
Method Summary | |
void |
configureProxy(int daemonPort)
Configure the Daemon to listen on the specified port. |
static void |
main(String[] args)
Main method which will start the Proxy daemon on the specified port (or the default port if no port is specified). |
void |
run()
Listen on the daemon port and handle incoming requests. |
void |
stopServer()
Stop the proxy daemon. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Daemon()
public Daemon(int port, ProxyControl target)
port
- the port to listen on.target
- the target which will receive the generated JMeter test
components.public Daemon(int port, ProxyControl target, Class proxyClass)
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.Method Detail |
public void configureProxy(int daemonPort)
daemonPort
- the port to listen onpublic static void main(String[] args)
args
- the command-line argumentspublic void run()
stopServer()
is called or an error occurs.
public void stopServer()
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |