public class AgentImpl
extends java.lang.Object
implements com.newrelic.agent.bridge.Agent
| Constructor and Description |
|---|
AgentImpl(com.newrelic.api.agent.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
com.newrelic.api.agent.Config |
getConfig() |
com.newrelic.api.agent.Insights |
getInsights() |
java.util.Map<java.lang.String,java.lang.String> |
getLinkingMetadata() |
com.newrelic.api.agent.Logger |
getLogger() |
com.newrelic.api.agent.Logs |
getLogSender() |
com.newrelic.api.agent.MetricAggregator |
getMetricAggregator() |
com.newrelic.agent.bridge.TracedMethod |
getTracedMethod()
If in a transaction, then getTransaction().getTracedMethod() returns the same thing as this method.
|
com.newrelic.api.agent.TraceMetadata |
getTraceMetadata() |
com.newrelic.agent.bridge.Transaction |
getTransaction()
This method will be invoked through the public client api.
|
com.newrelic.agent.bridge.Transaction |
getTransaction(boolean createIfNotExists) |
com.newrelic.agent.bridge.Transaction |
getWeakRefTransaction(boolean createIfNotExists) |
boolean |
ignoreIfUnstartedAsyncContext(java.lang.Object activityContext) |
boolean |
startAsyncActivity(java.lang.Object activityContext) |
public com.newrelic.agent.bridge.TracedMethod getTracedMethod()
getTracedMethod in interface com.newrelic.api.agent.Agentpublic com.newrelic.agent.bridge.Transaction getTransaction()
getTransaction in interface com.newrelic.api.agent.Agentpublic com.newrelic.agent.bridge.Transaction getTransaction(boolean createIfNotExists)
public com.newrelic.agent.bridge.Transaction getWeakRefTransaction(boolean createIfNotExists)
public com.newrelic.api.agent.Logger getLogger()
getLogger in interface com.newrelic.api.agent.Agentpublic com.newrelic.api.agent.Config getConfig()
getConfig in interface com.newrelic.api.agent.Agentpublic com.newrelic.api.agent.MetricAggregator getMetricAggregator()
getMetricAggregator in interface com.newrelic.api.agent.Agentpublic com.newrelic.api.agent.Insights getInsights()
getInsights in interface com.newrelic.api.agent.Agentpublic com.newrelic.api.agent.Logs getLogSender()
public boolean startAsyncActivity(java.lang.Object activityContext)
public boolean ignoreIfUnstartedAsyncContext(java.lang.Object activityContext)
public com.newrelic.api.agent.TraceMetadata getTraceMetadata()
getTraceMetadata in interface com.newrelic.api.agent.Agentpublic java.util.Map<java.lang.String,java.lang.String> getLinkingMetadata()
getLinkingMetadata in interface com.newrelic.api.agent.Agent