incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1508067 - in /sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo: ecma-jmx-and.json groovy-jmx-and.json
Date Mon, 29 Jul 2013 13:48:06 GMT
Author: bdelacretaz
Date: Mon Jul 29 13:48:06 2013
New Revision: 1508067

URL: http://svn.apache.org/r1508067
Log:
SLING-2983 - jmx binding for easy access to jmx attributes in scripted rules

Added:
    sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json
    sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json

Added: sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json?rev=1508067&view=auto
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json
(added)
+++ sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json
Mon Jul 29 13:48:06 2013
@@ -0,0 +1,9 @@
+{
+  "sling:resourceType" : "sling/healthcheck/rules",
+  "namespace": "script",
+  "ruleName": "Example javascript expression that combines two JMX attributes",
+  "qualifier": "ecma",
+  "expression": 'jmx.attribute("java.lang:type=ClassLoading", "LoadedClassCount") > 100
&& jmx.attribute("osgi.core:type=framework,version=1.5","FrameworkStartLevel") >
1',
+  "tags" : ["script","javascript", "jmx" ],
+  "jcr:primaryType": "nt:unstructured"
+}
\ No newline at end of file

Added: sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json?rev=1508067&view=auto
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json
(added)
+++ sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json
Mon Jul 29 13:48:06 2013
@@ -0,0 +1,9 @@
+{
+  "sling:resourceType" : "sling/healthcheck/rules",
+  "namespace": "script",
+  "ruleName": "Example Groovy expression that combines two JMX attributes",
+  "qualifier": "groovy",
+  "expression": 'jmx.attribute("java.lang:type=ClassLoading", "LoadedClassCount") > 100
&& jmx.attribute("osgi.core:type=framework,version=1.5","FrameworkStartLevel") >
1',
+  "tags" : ["script","groovy", "jmx" ],
+  "jcr:primaryType": "nt:unstructured"
+}
\ No newline at end of file



Mime
View raw message