Getter Chains
You can use getter chains to:
- Create a new JMX Metric Rule and define metrics from MBean attributes. See Configure JMX Metrics from MBeans.
- Configure method invocation data collectors. See the Configuration Notes in Data Collectors.
- Define a new business transaction custom match rule that uses a POJO object instance as the mechanism to name the transaction. See POJO Entry Points.
- Configure a custom match rule for servlet entry points and name the transaction by defining methods in a getter chain. See "Split by POJO Method Call" on Split Servlet Transaction by Payload Examples.
As a best practice, you should use getter chains with simple getter methods only.Getter chains on processing-intensive methods, such as one that make numerous SQL calls, can result in degraded performance for the application and agent.
For example, the following shows a simple get method that returns a property for a class, such as MyUser.Name
public class MyUser
{
private String Name {get; set;}
private String Url;
public String GetUrl() {
return this.Url;
}
}