|
JProfiler API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InterceptorProvider
An interceptor provider is queried by the profiling agent for the interceptors that should be activated. To add your interceptors to the profiled JVM, you have to create an implementation that instantiates all interceptors and returns them in an array. In addition, you have to add the VM parameter
-Djprofiler.interceptorProvider=fully-qualified-classto the java call of the profiled process.
Note that interceptors are only functional if the JVM is actually profiled, i.e. the -agentlib:jprofilerti (JVMTI) or the -Xrunjprofiler (JVMPI) argument is present as a JVM parameter.
Method Summary | |
---|---|
Interceptor[] |
getInterceptors()
Returns the interceptors that should be activated. |
Method Detail |
---|
Interceptor[] getInterceptors()
If you analyze payload information with the profiling platform, the payload id is always equal to the one-based index in the returned array, i.e. if you return a single interceptor, the payload id is always 1.
|
JProfiler API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |