Package com.newrelic.agent.bridge
Class AgentBridge
- java.lang.Object
-
- com.newrelic.agent.bridge.AgentBridge
-
public final class AgentBridge extends java.lang.ObjectThis implementation ofCollectionFactorywill only be used if the agent-bridge is being used by an application and the agent is NOT being loaded. Thus, it is unlikely that the objects created by this implementation are going to receive much use. So methods in this implementation do not need to implement all functional requirements of the methods in the interface, but they should not break under low use.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAgentBridge.TokenAndRefCount
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ThreadLocal<AgentBridge.TokenAndRefCount>activeTokenstatic Agentagentstatic java.lang.reflect.InvocationHandleragentHandlerThis is theInvocationHandlerused by the old pointcuts.static java.lang.Class<?>[]API_CLASSESCalls to methods on these classes will automatically be logged at FINEST.static AsyncApiasyncApistatic CloudApicloudstatic CollectionFactorycollectionFactorystatic java.lang.ThreadLocal<WeavePackageType>currentApiSourceThis thread local is set directly before a "tracked" API call and unset after the call completes.static ExtensionHolderFactoryextensionHolderFactorystatic Instrumentationinstrumentationstatic JmxApijmxApistatic PrivateApiprivateApistatic PublicApipublicApiThe agent sets the actual api implementation when it starts up.
-
Constructor Summary
Constructors Constructor Description AgentBridge()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AgentgetAgent()
-
-
-
Field Detail
-
API_CLASSES
public static final java.lang.Class<?>[] API_CLASSES
Calls to methods on these classes will automatically be logged at FINEST.
-
publicApi
public static volatile PublicApi publicApi
The agent sets the actual api implementation when it starts up.
-
privateApi
public static volatile PrivateApi privateApi
-
jmxApi
public static volatile JmxApi jmxApi
-
instrumentation
public static volatile Instrumentation instrumentation
-
asyncApi
public static volatile AsyncApi asyncApi
-
cloud
public static volatile CloudApi cloud
-
collectionFactory
public static volatile CollectionFactory collectionFactory
-
agentHandler
public static volatile java.lang.reflect.InvocationHandler agentHandler
This is theInvocationHandlerused by the old pointcuts.
-
agent
public static volatile Agent agent
-
extensionHolderFactory
public static volatile ExtensionHolderFactory extensionHolderFactory
-
currentApiSource
public static volatile java.lang.ThreadLocal<WeavePackageType> currentApiSource
This thread local is set directly before a "tracked" API call and unset after the call completes. This allows us to easily track the source of an API call (e.g. - internal weave module, FIT module, custom code, etc). This data is set from AgentPreprocessors.wrapApiCallsForSupportability().
-
activeToken
public static java.lang.ThreadLocal<AgentBridge.TokenAndRefCount> activeToken
-
-
Method Detail
-
getAgent
public static Agent getAgent()
-
-