public class StatsPlugin extends RPCPlugin
Modifier and Type | Field and Description |
---|---|
Date |
startupTime
How long I've been alive
|
Constructor and Description |
---|
StatsPlugin()
Construct a plugin with default (system) ticks, and default
histogram segmentation.
|
Modifier and Type | Method and Description |
---|---|
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
|
clientFinishConnect, clientStartConnect, serverConnecting
public Date startupTime
public StatsPlugin()
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 contextCopyright © 2009–2016 The Apache Software Foundation. All rights reserved.