|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.catnets.p2pagent.api.P2pAgent
org.catnets.p2pagent.apiSamples.Echoes.EchoClient
public class EchoClient
This class implements a simple requestor that executes a serie
of request to a EchoServer and registers the time to completation
of each request, computing an average at the end of this serie.
The number of requests is defined by the parameter numRequests.
| Constructor Summary | |
|---|---|
EchoClient()
|
|
| Method Summary | |
|---|---|
protected void |
execute()
Executes the main logic of the Client, initializing variables and starting the requests. |
protected void |
handleMessage(org.catnets.p2pagent.api.AgentMessage message)
Handles the reply messages comming from the EchoServer. |
| Methods inherited from class org.catnets.p2pagent.api.P2pAgent |
|---|
createAgent, done, done, error, forward, getAgentName, getAgentRefence, getBooleanArgument, getDoubleArgument, getIntArgument, getLongArgument, getObjectArgument, getStringArgument, getTransactionId, groupCast, groupCast, handleConnection, handleEvent, handleGroupCast, initialize, isArgumentsEmpty, joinGroup, log, logDebug, logError, logInfo, logWarning, reply, reportMetric, reportMetric, reportMetric, run, scheduleEvent, send, setBooleanResult, setDoubleResult, setIntgResult, setLongResult, setObjectResult, setStringResult, startTransaction, terminate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EchoClient()
| Method Detail |
|---|
protected void execute()
execute in class org.catnets.p2pagent.api.P2pAgentprotected void handleMessage(org.catnets.p2pagent.api.AgentMessage message)
responseTimeVector
used later to calculate the average round trip time.
Calls the makeRequest method to issue another request.
handleMessage in class org.catnets.p2pagent.api.P2pAgentP2pAgent.handleMessage(AgentMessage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||