incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1519581 - /sling/trunk/contrib/extensions/healthcheck/jmx/src/main/java/org/apache/sling/hc/jmx/impl/HealthCheckMBean.java
Date Tue, 03 Sep 2013 06:40:38 GMT
Author: cziegeler
Date: Tue Sep  3 06:40:38 2013
New Revision: 1519581

URL: http://svn.apache.org/r1519581
Log:
Add persistence id as mbean attribute

Modified:
    sling/trunk/contrib/extensions/healthcheck/jmx/src/main/java/org/apache/sling/hc/jmx/impl/HealthCheckMBean.java

Modified: sling/trunk/contrib/extensions/healthcheck/jmx/src/main/java/org/apache/sling/hc/jmx/impl/HealthCheckMBean.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/jmx/src/main/java/org/apache/sling/hc/jmx/impl/HealthCheckMBean.java?rev=1519581&r1=1519580&r2=1519581&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/jmx/src/main/java/org/apache/sling/hc/jmx/impl/HealthCheckMBean.java
(original)
+++ sling/trunk/contrib/extensions/healthcheck/jmx/src/main/java/org/apache/sling/hc/jmx/impl/HealthCheckMBean.java
Tue Sep  3 06:40:38 2013
@@ -171,6 +171,9 @@ public class HealthCheckMBean implements
         if ( serviceReference.getProperty(HealthCheck.TAGS) != null ) {
             attrs.add(new MBeanAttributeInfo(HealthCheck.TAGS, String.class.getName(), "The
tags of the health check service.", true, false, false));
         }
+        if ( serviceReference.getProperty(Constants.SERVICE_PID) != null ) {
+            attrs.add(new MBeanAttributeInfo(Constants.SERVICE_PID, String.class.getName(),
"The persistence identifier of the service.", true, false, false));
+        }
 
         // add standard attributes
         attrs.add(new MBeanAttributeInfo(HC_OK_ATTRIBUTE_NAME, Boolean.class.getName(), "The
health check result", true, false, false));
@@ -205,6 +208,9 @@ public class HealthCheckMBean implements
                 list.put(HealthCheck.TAGS, value.toString());
             }
         }
+        if ( serviceReference.getProperty(Constants.SERVICE_PID) != null ) {
+            list.put(Constants.SERVICE_PID, serviceReference.getProperty(Constants.SERVICE_PID).toString());
+        }
         return list;
     }
 



Mime
View raw message