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, serverConnectingpublic Date startupTime
public StatsPlugin()
public void serverReceiveRequest(RPCContext context)
RPCPluginserverReceiveRequest in class RPCPlugincontext - the per-call rpc context (in/out parameter)public void serverSendResponse(RPCContext context)
RPCPluginserverSendResponse in class RPCPlugincontext - the per-call rpc context (in/out parameter)public void clientSendRequest(RPCContext context)
RPCPluginclientSendRequest in class RPCPlugincontext - the per-call rpc context (in/out parameter)public void clientReceiveResponse(RPCContext context)
RPCPluginclientReceiveResponse in class RPCPlugincontext - the per-call rpc contextCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.