|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.ipc.RPCPlugin org.apache.avro.ipc.stats.StatsPlugin
public class StatsPlugin
Collects count and latency statistics about RPC calls. Keeps data for every method. Can be added to a Requestor (client) or Responder (server). This uses milliseconds as the standard unit of measure throughout the class, stored in floats.
Field Summary | |
---|---|
Date |
startupTime
How long I've been alive |
Constructor Summary | |
---|---|
StatsPlugin()
Construct a plugin with default (system) ticks, and default histogram segmentation. |
Method Summary | |
---|---|
void |
clientReceiveResponse(RPCContext context)
This method is invoked at the client after the call is executed, and after the client receives the response |
void |
clientSendRequest(RPCContext context)
This method is invoked at the client before it issues the RPC call. |
void |
serverReceiveRequest(RPCContext context)
This method is invoked at the RPC server when the request is received, but before the call itself is executed |
void |
serverSendResponse(RPCContext context)
This method is invoked at the server before the response is executed, but before the response has been formulated |
Methods inherited from class org.apache.avro.ipc.RPCPlugin |
---|
clientFinishConnect, clientStartConnect, serverConnecting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Date startupTime
Constructor Detail |
---|
public StatsPlugin()
Method Detail |
---|
public void serverReceiveRequest(RPCContext context)
RPCPlugin
serverReceiveRequest
in class RPCPlugin
context
- the per-call rpc context (in/out parameter)public void serverSendResponse(RPCContext context)
RPCPlugin
serverSendResponse
in class RPCPlugin
context
- the per-call rpc context (in/out parameter)public void clientSendRequest(RPCContext context)
RPCPlugin
clientSendRequest
in class RPCPlugin
context
- the per-call rpc context (in/out parameter)public void clientReceiveResponse(RPCContext context)
RPCPlugin
clientReceiveResponse
in class RPCPlugin
context
- the per-call rpc context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |