|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.ipc.RPCPlugin
public class RPCPlugin
An instrumentation API for RPC metadata. Each of these methods is invoked at key points during the RPC exchange. Additionally, path-based metadata that is passed along with the RPC call and can be set or queried by subsequent instrumentation points.
| Constructor Summary | |
|---|---|
RPCPlugin()
|
|
| Method Summary | |
|---|---|
void |
clientFinishConnect(RPCContext context)
Called on the client after the initial RPC handshake |
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 |
clientStartConnect(RPCContext context)
Called on the client before the initial RPC handshake to setup any handshake metadata for this plugin |
void |
serverConnecting(RPCContext context)
Called on the server during the RPC handshake |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RPCPlugin()
| Method Detail |
|---|
public void clientStartConnect(RPCContext context)
context - the handshake rpc contextpublic void serverConnecting(RPCContext context)
context - the handshake rpc contextpublic void clientFinishConnect(RPCContext context)
context - the handshake rpc contextpublic void clientSendRequest(RPCContext context)
context - the per-call rpc context (in/out parameter)public void serverReceiveRequest(RPCContext context)
context - the per-call rpc context (in/out parameter)public void serverSendResponse(RPCContext context)
context - the per-call rpc context (in/out parameter)public void clientReceiveResponse(RPCContext context)
context - the per-call rpc context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||