Page History
...
Based on this configuration, instrumentation is not applied to the following methods:• AbstractTask
AbstractTask.start()
...
AbstractTask.start(TaskContext)
...
AbstractTask
.stop()
...
AbstractTask
.stop(boolean)
However, instrumentation is applied to the following methods:• RecoverableTaskAdapter
RecoverableTaskAdapter.start()
...
RecoverableTaskAdapter.stop()
...
RecoverableTaskAdapter.stop(boolean)
The <methods> element can be supplied to prevent instrumentation from being applied to some methods of a class, but not others.
This instrumenter configuration file prevents instrumentation from being applied to all stop() methods:
<?xml version'1.0'?>
<instrumenter-config>
<custom-config>
<java-classes>
<java-class>
<class-name> xmp.wfm.task.Task </class-name>
<methods>
<method>
<name> * </name>
</method>
</methods>
</java-class>
</java-classes>
</custom-config>
<ignore-config>
<java-classes>
<java-class>
<class-name> * </class-name>
<methods>
<method>
<name> stop </name>
<params> <params/>
</method>
</methods>
</java-class>
</java-classes>
</ignore-config>
</instrumenter-config>
Based on this configuration, instrumentation is not applied to the following methods:• AbstractTask
AbstractTask
.stop()
...
RecoverableTaskAdapter
.stop()
However, instrumentation is applied to the following methods:• AbstractTask
AbstractTask.start()
...
AbstractTask
.stop(boolean)
...
RecoverableTaskAdapter
.start()
...
RecoverableTaskAdapter
.stop(boolean)
About preventing instrumentation for calls from a method
...
This instrumenter configuration file prevents instrumentation from being applied to all calls to Java runtime classes (java.*) methods.
<?xml version'1.0'?>
<instrumenter-config>
<ignore-config>
<java-
...
classes>
<all-calls-to-method>
<methods>
<method>
<name> java.* </name>
</method>
</methods>
</all-calls-to-method>
</java-classes>
</ignore-config>
</instrumenter-config>
The <all-calls-to-method> element is used within an <ignore-config> element, the <name> element of <method> elements is expected to be a qualified method name. The last dot in the <name> separates the class name from the method name.
This is also true if wildcards are used. This instrumenter configuration file prevents instrumentation from being applied to all calls to methods in the java class.
<?xml version'1.0'?>
<instrumenter-config>
<ignore-config>
<java-classes/>
<all-calls-to-method>
<methods>
<method>
<name> java.* </name>
</method>
</methods>
</all-calls-to-method>
</java-classes>
</ignore-config>
</instrumenter-config>
About preventing instrumentation for calls to a method
...