| |
|
| java.lang.Object java.lang.Thread org.apache.jmeter.protocol.http.proxy.Daemon
Daemon | public class Daemon extends Thread (Code) | | 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.
author: default Created June 29, 2001 version: $Revision: 571988 $ Last updated: $Date: 2007-09-02 15:19:10 +0100 (Sun, 02 Sep 2007) $ |
Constructor Summary | |
public | Daemon() Default constructor. | public | Daemon(int port, ProxyControl target) Create a new Daemon with the specified port and target. | public | 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.
Parameters: port - the port to listen on. Parameters: target - the target which will receive the generated JMeter testcomponents. Parameters: proxyClass - the proxy class to use to handle individual requests. |
Method Summary | |
public void | configureProxy(int _daemonPort) Configure the Daemon to listen on the specified port. | public 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). | public void | run() Listen on the daemon port and handle incoming requests. | public void | stopServer() Stop the proxy daemon. |
Daemon | public Daemon()(Code) | | Default constructor.
|
Daemon | public Daemon(int port, ProxyControl target)(Code) | | Create a new Daemon with the specified port and target.
Parameters: port - the port to listen on. Parameters: target - the target which will receive the generated JMeter testcomponents. |
Daemon | public Daemon(int port, ProxyControl target, Class proxyClass)(Code) | | Create a new Daemon with the specified port and target, using the
specified class to handle individual requests.
Parameters: port - the port to listen on. Parameters: target - the target which will receive the generated JMeter testcomponents. Parameters: proxyClass - the proxy class to use to handle individual requests. Thisclass must be the Proxy class or a subclass. |
configureProxy | public void configureProxy(int _daemonPort)(Code) | | Configure the Daemon to listen on the specified port.
Parameters: _daemonPort - the port to listen on |
main | public static void main(String args)(Code) | | Main method which will start the Proxy daemon on the specified port (or
the default port if no port is specified).
Parameters: args - the command-line arguments |
run | public void run()(Code) | | Listen on the daemon port and handle incoming requests. This method will
not exit until
Daemon.stopServer() is called or an error occurs.
|
stopServer | public void stopServer()(Code) | | Stop the proxy daemon. The daemon may not stop immediately.
see #ACCEPT_TIMEOUT
|
|
|
|