Stefan Egli created JCR-4032:
--------------------------------
Summary: Add jmx EventListenerMBean.getToString() for clearer
consolidated listener stats
Key: JCR-4032
URL: https://issues.apache.org/jira/browse/JCR-4032
Project: Jackrabbit Content Repository
Issue Type: Improvement
Components: JCR API
Affects Versions: 2.13.3
Reporter: Stefan Egli
Priority: Critical
Fix For: 2.13.4
In Oak, the Consolidated Listener Stats MBean provides an overview of all
listeners, including the name of the class. When used in Sling (and esp with
SLING-6056) a new bunch of listeners is added, namely
{{ResourceChangeListeners}} that will get mapped 1:1 to an oak
listener/backgroundobserver. Currently though, the consolidated listeners mbean
only shows the {{getClass().getName()}} - which in the case of a
ResourceChangeListener doesn't help much, as the 'real' listener hides 2 steps
behind either a {{JcrResourceListener}} or a {{OakResourceListener}}. So it
wouldn't be possible to tell from a list of such listeners what really is
behind.
Therefore suggesting to introduce a
{noformat}
/** toString of the event listener */
String getToString();
{noformat}
that then can be used by the {{ConsolidatedListenerMBeanImpl}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)