public class TracePlugin extends RPCPlugin
Modifier and Type | Class and Description |
---|---|
static class |
TracePlugin.StorageType |
Modifier and Type | Field and Description |
---|---|
protected org.mortbay.jetty.Server |
clientFacingServer |
protected TracePluginConfiguration |
config |
protected HttpServer |
httpServer |
protected SpecificResponder |
responder |
protected static TracePlugin |
singleton |
protected static TracePluginConfiguration |
singletonConf |
protected SpanStorage |
storage |
Constructor and Description |
---|
TracePlugin(TracePluginConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
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
|
static void |
configureSingleton(TracePluginConfiguration conf)
Configure a singleton instance for this TracePlugin.
|
static TracePlugin |
getSingleton()
Get a singleton TracePlugin.
|
protected void |
initializeClientServer()
Start a client-facing server.
|
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
|
void |
stopClientServer() |
protected static TracePlugin singleton
protected static TracePluginConfiguration singletonConf
protected TracePluginConfiguration config
protected SpanStorage storage
protected HttpServer httpServer
protected SpecificResponder responder
protected org.mortbay.jetty.Server clientFacingServer
public TracePlugin(TracePluginConfiguration conf) throws IOException
IOException
public static TracePlugin getSingleton() throws IOException
IOException
public static void configureSingleton(TracePluginConfiguration conf)
public void clientStartConnect(RPCContext context)
RPCPlugin
clientStartConnect
in class RPCPlugin
context
- the handshake rpc contextpublic void serverConnecting(RPCContext context)
RPCPlugin
serverConnecting
in class RPCPlugin
context
- the handshake rpc contextpublic void clientFinishConnect(RPCContext context)
RPCPlugin
clientFinishConnect
in class RPCPlugin
context
- the handshake rpc contextpublic void clientSendRequest(RPCContext context)
RPCPlugin
clientSendRequest
in class RPCPlugin
context
- the per-call rpc context (in/out parameter)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 clientReceiveResponse(RPCContext context)
RPCPlugin
clientReceiveResponse
in class RPCPlugin
context
- the per-call rpc contextpublic void stopClientServer()
protected void initializeClientServer()
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.