public class StatsPlugin extends RPCPlugin
| Modifier and Type | Field and Description | 
|---|---|
| static org.apache.avro.ipc.stats.Histogram.Segmenter<String,Float> | LATENCY_SEGMENTERStatic declaration of histogram buckets. | 
| static org.apache.avro.ipc.stats.Histogram.Segmenter<String,Integer> | PAYLOAD_SEGMENTER | 
| Date | startupTimeHow long I've been alive | 
| Constructor and Description | 
|---|
| StatsPlugin()Construct a plugin with default (system) ticks, and default histogram
 segmentation. | 
| StatsPlugin(org.apache.avro.ipc.stats.Stopwatch.Ticks ticks,
           org.apache.avro.ipc.stats.Histogram.Segmenter<?,Float> floatSegmenter,
           org.apache.avro.ipc.stats.Histogram.Segmenter<?,Integer> integerSegmenter)Construct a plugin with custom Ticks and Segmenter implementations. | 
| 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 static final org.apache.avro.ipc.stats.Histogram.Segmenter<String,Float> LATENCY_SEGMENTER
public static final org.apache.avro.ipc.stats.Histogram.Segmenter<String,Integer> PAYLOAD_SEGMENTER
public Date startupTime
public StatsPlugin(org.apache.avro.ipc.stats.Stopwatch.Ticks ticks,
                   org.apache.avro.ipc.stats.Histogram.Segmenter<?,Float> floatSegmenter,
                   org.apache.avro.ipc.stats.Histogram.Segmenter<?,Integer> integerSegmenter)
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–2020 The Apache Software Foundation. All rights reserved.