@Monitor(value="Zipkin Adapter Monitor", category=AdapterMonitor.class, defaultEnabled=true) public class TraceAdapterMonitor extends java.lang.Object implements AdapterMonitor
Constructor and Description |
---|
TraceAdapterMonitor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
onError(ActivityRuntimeContext context,
java.lang.Throwable t)
Called when an error is encountered.
|
java.lang.Object |
onRequest(ActivityRuntimeContext context,
java.lang.Object content,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.Object connection)
Only for HTTP.
|
java.lang.Object |
onResponse(ActivityRuntimeContext context,
java.lang.Object content,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.Object connection)
Called when the response is received.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onInvoke
public java.lang.Object onRequest(ActivityRuntimeContext context, java.lang.Object content, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Object connection)
onRequest
in interface AdapterMonitor
context
- The workflow runtime context of the adapter activitycontent
- The request message content (String, XMLBean, JAXB Element, JSONObject, etc).headers
- Protocol header values. May be modified by the monitor.public java.lang.Object onResponse(ActivityRuntimeContext context, java.lang.Object content, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Object connection)
AdapterMonitor
onResponse
in interface AdapterMonitor
context
- The workflow runtime context of the adapter activitycontent
- The response that was received from the external system. (String, XMLBean, JAXB Element, JSONObject, etc).headers
- Protocol headers for the incoming response. New headers can be injected by the monitor.connection
- Connection used in adapterpublic java.lang.String onError(ActivityRuntimeContext context, java.lang.Throwable t)
AdapterMonitor
onError
in interface AdapterMonitor
context
- adapter workflow contextt
- error that was encounteredCopyright © 2019 CenturyLink, Inc.