Package com.newrelic.agent.bridge
Class NoOpCrossProcessState
- java.lang.Object
-
- com.newrelic.agent.bridge.NoOpCrossProcessState
-
- All Implemented Interfaces:
CrossProcessState
public class NoOpCrossProcessState extends java.lang.Object implements CrossProcessState
-
-
Field Summary
Fields Modifier and Type Field Description static CrossProcessStateINSTANCE
-
Constructor Summary
Constructors Constructor Description NoOpCrossProcessState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRequestMetadata()java.lang.StringgetResponseMetadata()voidprocessInboundResponseHeaders(com.newrelic.api.agent.InboundHeaders inboundHeaders, TracedMethod tracer, java.lang.String host, java.lang.String uri, boolean addRollupMetric)Process the "X-NewRelic-App-Data" header and generate External metrics for response.voidprocessOutboundRequestHeaders(com.newrelic.api.agent.OutboundHeaders outboundHeaders)Add New Relic "X" headers to the request headers of outbound external requests.voidprocessOutboundRequestHeaders(com.newrelic.api.agent.OutboundHeaders outboundHeaders, com.newrelic.api.agent.TracedMethod tracedMethod)Add New Relic "X" headers to the request headers of outbound external requests.voidprocessOutboundResponseHeaders(com.newrelic.api.agent.OutboundHeaders outboundHeaders, long contentLength)Add New Relic "X" headers to our response (to the request that initiated this transaction)voidprocessRequestMetadata(java.lang.String requestMetadata)Process inbound request metadata.voidprocessResponseMetadata(java.lang.String responseMetadata, java.net.URI uri)Process inbound response metadata.
-
-
-
Field Detail
-
INSTANCE
public static final CrossProcessState INSTANCE
-
-
Method Detail
-
processOutboundRequestHeaders
public void processOutboundRequestHeaders(com.newrelic.api.agent.OutboundHeaders outboundHeaders)
Description copied from interface:CrossProcessStateAdd New Relic "X" headers to the request headers of outbound external requests.- Specified by:
processOutboundRequestHeadersin interfaceCrossProcessState
-
processOutboundRequestHeaders
public void processOutboundRequestHeaders(com.newrelic.api.agent.OutboundHeaders outboundHeaders, com.newrelic.api.agent.TracedMethod tracedMethod)Description copied from interface:CrossProcessStateAdd New Relic "X" headers to the request headers of outbound external requests.- Specified by:
processOutboundRequestHeadersin interfaceCrossProcessState
-
processOutboundResponseHeaders
public void processOutboundResponseHeaders(com.newrelic.api.agent.OutboundHeaders outboundHeaders, long contentLength)Description copied from interface:CrossProcessStateAdd New Relic "X" headers to our response (to the request that initiated this transaction)- Specified by:
processOutboundResponseHeadersin interfaceCrossProcessState
-
getRequestMetadata
public java.lang.String getRequestMetadata()
- Specified by:
getRequestMetadatain interfaceCrossProcessState- Returns:
- CAT and Synthetics encoded request metadata for outbound request.
-
processRequestMetadata
public void processRequestMetadata(java.lang.String requestMetadata)
Description copied from interface:CrossProcessStateProcess inbound request metadata.- Specified by:
processRequestMetadatain interfaceCrossProcessState
-
getResponseMetadata
public java.lang.String getResponseMetadata()
- Specified by:
getResponseMetadatain interfaceCrossProcessState- Returns:
- CAT and Synthetics encoded response metadata for outbound response.
-
processResponseMetadata
public void processResponseMetadata(java.lang.String responseMetadata, java.net.URI uri)Description copied from interface:CrossProcessStateProcess inbound response metadata.- Specified by:
processResponseMetadatain interfaceCrossProcessState
-
processInboundResponseHeaders
public void processInboundResponseHeaders(com.newrelic.api.agent.InboundHeaders inboundHeaders, TracedMethod tracer, java.lang.String host, java.lang.String uri, boolean addRollupMetric)Description copied from interface:CrossProcessStateProcess the "X-NewRelic-App-Data" header and generate External metrics for response.- Specified by:
processInboundResponseHeadersin interfaceCrossProcessState
-
-