public class AgentImpl
extends java.lang.Object
implements com.newrelic.agent.bridge.Agent, org.crac.Resource
| Constructor and Description |
|---|
AgentImpl(com.newrelic.api.agent.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRestore(org.crac.Context<? extends org.crac.Resource> context) |
void |
beforeCheckpoint(org.crac.Context<? extends org.crac.Resource> context) |
com.newrelic.api.agent.AiMonitoring |
getAiMonitoring() |
com.newrelic.api.agent.Cloud |
getCloud() |
com.newrelic.api.agent.Config |
getConfig() |
java.lang.String |
getEntityGuid(boolean wait) |
com.newrelic.api.agent.ErrorApi |
getErrorApi() |
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.ErrorApi getErrorApi()
getErrorApi 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.AiMonitoring getAiMonitoring()
getAiMonitoring in interface com.newrelic.api.agent.Agentpublic com.newrelic.api.agent.Cloud getCloud()
getCloud in interface com.newrelic.api.agent.Agentpublic com.newrelic.api.agent.Logs getLogSender()
public java.lang.String getEntityGuid(boolean wait)
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.Agentpublic void beforeCheckpoint(org.crac.Context<? extends org.crac.Resource> context)
throws java.lang.Exception
beforeCheckpoint in interface org.crac.Resourcejava.lang.Exceptionpublic void afterRestore(org.crac.Context<? extends org.crac.Resource> context)
throws java.lang.Exception
afterRestore in interface org.crac.Resourcejava.lang.Exception