|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.slamd.tools.tcpreplay.CaptureDaemon
public class CaptureDaemon
This class defines a utility that may be used to capture data from one or more clients so that it may be replayed against a server later for the purpose of load generation. Any data captured will be forwarded onto the server and any response from that server will be passed back to the client.
| Constructor Summary | |
|---|---|
CaptureDaemon(int listenPort,
java.lang.String serverHost,
int serverPort,
java.lang.String outputFile)
Creates a new capture daemon with the provided information. |
|
| Method Summary | |
|---|---|
void |
captureData()
Starts listening for new connections from clients. |
void |
stopCapture()
Stops the process of capturing data from clients. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CaptureDaemon(int listenPort,
java.lang.String serverHost,
int serverPort,
java.lang.String outputFile)
throws java.net.UnknownHostException
listenPort - The port on which to listen for new connections from
clients.serverHost - The address of the server to which client requests
should be forwarded.serverPort - The port of the server to which client requests should
be forwarded.outputFile - The name of the file to which the captured data should
be written.
java.net.UnknownHostException - If the server address cannot be resolved to
an IP address.| Method Detail |
|---|
public void captureData()
throws java.io.IOException
java.io.IOException - If a problem occurs while creating the server socket
to accept client connections or opening the output
file to which to write the captured data.public void stopCapture()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||