public class StatsPlugin extends RPCPlugin
Modifier and Type | Field and Description |
---|---|
static org.apache.avro.ipc.stats.Histogram.Segmenter<String,Float> |
LATENCY_SEGMENTER
Static declaration of histogram buckets.
|
static org.apache.avro.ipc.stats.Histogram.Segmenter<String,Integer> |
PAYLOAD_SEGMENTER |
Date |
startupTime
How 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, serverConnecting
public 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)
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–2022 The Apache Software Foundation. All rights reserved.