public class TraceStrategy extends Object implements Strategy, ClassFileTransformer
| Constructor and Description |
|---|
TraceStrategy(ApmAgentContext context,
Instrumentation instrumentation) |
| Modifier and Type | Method and Description |
|---|---|
void |
configurationChanged() |
ApmAgentContext |
getContext() |
Instrumentation |
getInstrumentation() |
void |
initialize() |
boolean |
isAudit(String className) |
boolean |
isAudit(String className,
String methodName) |
void |
setContext(ApmAgentContext context) |
void |
setInstrumentation(Instrumentation instrumentation) |
void |
shutDown() |
void |
start() |
void |
stop() |
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
public TraceStrategy(ApmAgentContext context, Instrumentation instrumentation)
public void initialize()
throws Exception
initialize in interface StrategyExceptionpublic void start()
throws Exception
public boolean isAudit(String className)
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform in interface ClassFileTransformerIllegalClassFormatExceptionpublic void configurationChanged()
configurationChanged in interface ApmConfigurationChangeListenerpublic Instrumentation getInstrumentation()
public void setInstrumentation(Instrumentation instrumentation)
public ApmAgentContext getContext()
public void setContext(ApmAgentContext context)
Copyright © 2011–2016 Red Hat. All rights reserved.