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
IOExceptionpublic static TracePlugin getSingleton() throws IOException
IOExceptionpublic static void configureSingleton(TracePluginConfiguration conf)
public void clientStartConnect(RPCContext context)
RPCPluginclientStartConnect in class RPCPlugincontext - the handshake rpc contextpublic void serverConnecting(RPCContext context)
RPCPluginserverConnecting in class RPCPlugincontext - the handshake rpc contextpublic void clientFinishConnect(RPCContext context)
RPCPluginclientFinishConnect in class RPCPlugincontext - the handshake rpc contextpublic void clientSendRequest(RPCContext context)
RPCPluginclientSendRequest in class RPCPlugincontext - the per-call rpc context (in/out parameter)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 clientReceiveResponse(RPCContext context)
RPCPluginclientReceiveResponse in class RPCPlugincontext - the per-call rpc contextpublic void stopClientServer()
protected void initializeClientServer()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.