Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4032

Add jmx EventListenerMBean.getToString() for clearer consolidated listener stats

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.13.3
    • 2.13.4, 2.14
    • JCR API
    • None

    Description

      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

          /** toString of the event listener */
          String getToString();
      

      that then can be used by the ConsolidatedListenerMBeanImpl

      Attachments

        1. JCR-4032.patch
          1 kB
          Stefan Egli

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stefanegli Stefan Egli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: