org.apache.avro.ipc.stats
Class StatsPlugin
java.lang.Object
org.apache.avro.ipc.RPCPlugin
org.apache.avro.ipc.stats.StatsPlugin
public class StatsPlugin
- extends RPCPlugin
Collects count and latency statistics about RPC calls. Keeps
data for every method.
This uses milliseconds as the standard unit of measure
throughout the class, stored in floats.
|
Constructor Summary |
StatsPlugin()
Construct a plugin with default (system) ticks, and default
histogram segmentation. |
|
Method Summary |
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 after the call is executed,
but before the response is returned to the client |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatsPlugin
public StatsPlugin()
- Construct a plugin with default (system) ticks, and default
histogram segmentation.
serverReceiveRequest
public void serverReceiveRequest(RPCContext context)
- Description copied from class:
RPCPlugin
- This method is invoked at the RPC server when the request is received,
but before the call itself is executed
- Overrides:
serverReceiveRequest in class RPCPlugin
- Parameters:
context - the per-call rpc context (in/out parameter)
serverSendResponse
public void serverSendResponse(RPCContext context)
- Description copied from class:
RPCPlugin
- This method is invoked at the server after the call is executed,
but before the response is returned to the client
- Overrides:
serverSendResponse in class RPCPlugin
- Parameters:
context - the per-call rpc context (in/out parameter)
Copyright © 2010 The Apache Software Foundation