[jboss-svn-commits] JBL Code SVN: r22705 - in labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin: src/main/java/org/jbosson/plugins/jbossesb and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Sep 12 04:36:22 EDT 2008


Author: kevin.conner at jboss.com
Date: 2008-09-12 04:36:21 -0400 (Fri, 12 Sep 2008)
New Revision: 22705

Added:
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ListenerComponent.java
Modified:
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/install.sh
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/pom.xml
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ServiceComponent.java
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/resources/META-INF/rhq-plugin.xml
Log:
Revision 22549, 22500 and 22420: JBESB-668

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/install.sh
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/install.sh	2008-09-12 05:41:51 UTC (rev 22704)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/install.sh	2008-09-12 08:36:21 UTC (rev 22705)
@@ -1,3 +1,4 @@
 #!/bin/sh
 mvn -Dmaven.test.skip=true clean install
-cp target/rhq-jbossesb-plugin-2.0.1-SNAPSHOT.jar ~/src/jon/dev-container/jbossas/server/default/deploy/rhq.ear/rhq-downloads/rhq-plugins
+cp target/rhq-jbossesb-plugin-2.1.0-SNAPSHOT.jar ~/src/rhq/dev-container/jbossas/server/default/deploy/rhq.ear/rhq-downloads/rhq-plugins
+cp target/rhq-jbossesb-plugin-2.1.0-SNAPSHOT.jar ~/src/jon/jon/dist/agent/target/jon-agent-2.1.0-SNAPSHOT/plugins/rhq-jbossesb-plugin-2.1.0-SNAPSHOT.jar

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/pom.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/pom.xml	2008-09-12 05:41:51 UTC (rev 22704)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/pom.xml	2008-09-12 08:36:21 UTC (rev 22705)
@@ -6,7 +6,7 @@
       <groupId>org.jboss.on</groupId>
       <!--  Bypass the jon-plugins-parent which can not have children. It must build after the plugins in order to execute integration tests on them. -->
       <artifactId>jon-parent</artifactId>
-      <version>2.0.1-SNAPSHOT</version>
+      <version>2.1.0-SNAPSHOT</version>
    </parent>
 
    <groupId>org.jboss.on</groupId>

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java	2008-09-12 05:41:51 UTC (rev 22704)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java	2008-09-12 08:36:21 UTC (rev 22705)
@@ -41,8 +41,8 @@
     private static final String SUCCESS_PROCESSED = "messages successfully processed count";
     private static final String FAILED_PROCESSED = "messages failed count";
     private static final String PROCESSING_TIME = "processing time";
-    private static final String OVERALL_BYTES_PROCESSED = "bytes processed";
-    private static final String OVERALL_BYTES_FAILED = "bytes failed";
+    private static final String OVERALL_BYTES_PROCESSED = "processed bytes";
+    private static final String OVERALL_BYTES_FAILED = "failed bytes";
     
     private static final String SUCCESS_METRIC_NAME = "successProcessedCount";
     private static final String FAILED_METRIC_NAME = "failedProcessedCount";
@@ -71,27 +71,40 @@
         	String metricName = request.getName();
         	if (metricName.equals (SUCCESS_METRIC_NAME)) {
         		EmsAttribute attribute = this.bean.getAttribute(actionName + " " + SUCCESS_PROCESSED);
-        		Integer processed = (Integer) attribute.refresh();
+        		Integer processed = new Integer(0);
+        		if (attribute != null) {
+        			processed = (Integer) attribute.refresh();
+        		}
         		report.addData(new MeasurementDataNumeric(request, new Double(processed.doubleValue())));
         	} else if (metricName.equals(FAILED_METRIC_NAME)) {
         		EmsAttribute attribute = this.bean.getAttribute(actionName + " " + FAILED_PROCESSED);
-        	    Integer processed = (Integer) attribute.refresh();
+        	    Integer processed = new Integer(0);
+        	    if (attribute != null) {
+        	    	processed = (Integer) attribute.refresh();
+        	    }
         		report.addData(new MeasurementDataNumeric(request, new Double(processed.doubleValue())));
         	} else if (metricName.equals(PROCESSINGTIME_METRIC_NAME)) {
         		EmsAttribute attribute = this.bean.getAttribute(actionName + " " + PROCESSING_TIME);
         		Double processed = (Double) attribute.refresh();
         		if (processed != null) {
+            		processed = new Double(processed.doubleValue() / 1000000);
         			report.addData(new MeasurementDataNumeric(request, processed));
         		} else {
         			report.addData(new MeasurementDataNumeric(request, new Double(0)));
         		}
         	} else if (metricName.equals(BYTESPROCESSED_METRIC_NAME)) {
         		EmsAttribute attribute = this.bean.getAttribute(actionName + " " + OVERALL_BYTES_PROCESSED);
-        		Integer bytesProcessed = (Integer) attribute.refresh();
+        		Integer bytesProcessed = new Integer(0);
+        		if (attribute != null) {
+        			bytesProcessed = (Integer) attribute.refresh();
+        		}
         		report.addData(new MeasurementDataNumeric(request, new Double(bytesProcessed.doubleValue())));
         	} else if (metricName.equals(BYTESFAILED_METRIC_NAME)) {
         		EmsAttribute attribute = this.bean.getAttribute(actionName + " " + OVERALL_BYTES_FAILED);
-        		Integer bytesProcessed = (Integer) attribute.refresh();
+        		Integer bytesProcessed = new Integer(0);
+        		if (attribute != null) {
+        			bytesProcessed = (Integer) attribute.refresh();
+        		}
         		report.addData(new MeasurementDataNumeric(request, new Double(bytesProcessed.doubleValue())));        		
         	}
         }

Copied: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ListenerComponent.java (from rev 22420, labs/jbossesb/trunk/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ListenerComponent.java)
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ListenerComponent.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ListenerComponent.java	2008-09-12 08:36:21 UTC (rev 22705)
@@ -0,0 +1,112 @@
+/*
+ * RHQ Management Platform
+ * Copyright (C) 2005-2008 Red Hat, Inc.
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+package org.jbosson.plugins.jbossesb;
+
+import java.util.Set;
+
+import org.mc4j.ems.connection.bean.attribute.EmsAttribute;
+import org.mc4j.ems.connection.bean.operation.EmsOperation;
+import org.rhq.core.domain.measurement.MeasurementDataNumeric;
+import org.rhq.core.domain.measurement.MeasurementDataTrait;
+import org.rhq.core.domain.measurement.MeasurementReport;
+import org.rhq.core.domain.measurement.MeasurementScheduleRequest;
+import org.rhq.core.pluginapi.inventory.ResourceContext;
+import org.rhq.plugins.jmx.MBeanResourceComponent;
+
+import org.rhq.core.domain.configuration.Configuration;
+import org.rhq.core.domain.configuration.PropertySimple;
+import org.mc4j.ems.connection.bean.EmsBean;
+
+
+/**
+ * @author Greg Hinkle
+ */
+public class ListenerComponent extends MBeanResourceComponent<MBeanResourceComponent> {
+    private ResourceContext<MBeanResourceComponent> context;
+
+    private static final String MEP = "mep";
+    private static final String LIFECYCLE_STATE = "LifeCycleState";
+    private static final String MAX_THREADS = "maxThreads";
+    private static final String START_DATE = "StartDate";
+    private static final String SERVICE_CATEGORY = "service-category";
+    private static final String SERVICE_NAME = "service-name";
+    private static final String SERVICE_DESCRIPTION = "service-description";
+    
+    @Override
+    public void start(ResourceContext<MBeanResourceComponent> context) {
+        super.start(context);
+        this.context = context;
+    }
+
+    @Override
+    public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> requests) {
+    	Configuration pluginConfig = this.context.getPluginConfiguration();
+    	pluginConfig.put(new PropertySimple("type", "service"));
+        for (MeasurementScheduleRequest request : requests) {
+        	String metricName = request.getName();
+        	if (metricName.equals(MEP)) {
+        		EmsAttribute attribute = getEmsBean().getAttribute(MEP);
+        		String processed = (String) attribute.refresh();
+        		report.addData(new MeasurementDataTrait(request, processed));
+        	} else if (metricName.equals(LIFECYCLE_STATE)) {
+        		EmsAttribute attribute = getEmsBean().getAttribute(LIFECYCLE_STATE);
+        		String processed = new String();
+        		if (attribute != null) {
+        			processed = (String) attribute.refresh();
+        		}
+        		report.addData(new MeasurementDataTrait(request, processed));
+        	} else if (metricName.equals(MAX_THREADS)) {
+        		EmsAttribute attribute = getEmsBean().getAttribute(MAX_THREADS);
+        		String processed = new String();
+        		if (attribute != null) {
+        			processed = (String) attribute.refresh();
+        		}
+        		report.addData(new MeasurementDataTrait(request, processed));        		
+        	} else if (metricName.equals(START_DATE)) {
+        		EmsAttribute attribute = getEmsBean().getAttribute(START_DATE);
+        		String processed = new String();
+        		if (attribute != null) {
+        			processed = (String) attribute.refresh();
+        		}
+        		report.addData(new MeasurementDataTrait(request, processed));        		
+        	} else if (metricName.equals(SERVICE_CATEGORY)) {
+        		EmsAttribute attribute = getEmsBean().getAttribute(SERVICE_CATEGORY);
+        		String processed = new String();
+        		if (attribute != null) {
+        			processed = (String) attribute.refresh();
+        		}
+        		report.addData(new MeasurementDataTrait(request, processed));        		
+        	} else if (metricName.equals(SERVICE_NAME)) {
+        		EmsAttribute attribute = getEmsBean().getAttribute(SERVICE_NAME);
+        		String processed = new String();
+        		if (attribute != null) {
+        			processed = (String) attribute.refresh();
+        		}
+        		report.addData(new MeasurementDataTrait(request, processed));        		
+        	} else if (metricName.equals(SERVICE_DESCRIPTION)) {
+        		EmsAttribute attribute = getEmsBean().getAttribute(SERVICE_DESCRIPTION);
+        		String processed = new String();
+        		if (attribute != null) {
+        			processed = (String) attribute.refresh();
+        		}
+        		report.addData(new MeasurementDataTrait(request, processed));        		
+        	}
+        }
+    }
+}

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ServiceComponent.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ServiceComponent.java	2008-09-12 05:41:51 UTC (rev 22704)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ServiceComponent.java	2008-09-12 08:36:21 UTC (rev 22705)
@@ -58,7 +58,7 @@
     @Override
     public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> requests) {
     	Configuration pluginConfig = this.context.getPluginConfiguration();
-	pluginConfig.put(new PropertySimple("type", "service"));
+    	pluginConfig.put(new PropertySimple("type", "service"));
         for (MeasurementScheduleRequest request : requests) {
         	String metricName = request.getName();
         	if (metricName.equals(OVERALL_MESSAGE_METRIC)) {
@@ -67,11 +67,17 @@
         		report.addData(new MeasurementDataNumeric(request, new Double(processed.doubleValue())));
         	} else if (metricName.equals(OVERALL_BYTES_PROCESSED_METRIC)) {
         		EmsAttribute attribute = getEmsBean().getAttribute(OVERALL_BYTES_PROCESSED);
-        		Integer processed = (Integer) attribute.refresh();
+        		Integer processed = new Integer(0);
+        		if (attribute != null) {
+        			processed = (Integer) attribute.refresh();
+        		}
         		report.addData(new MeasurementDataNumeric(request, new Double(processed.doubleValue())));
         	} else if (metricName.equals(OVERALL_BYTES_FAILED_METRIC)) {
         		EmsAttribute attribute = getEmsBean().getAttribute(OVERALL_BYTES_FAILED);
-        		Integer processed = (Integer) attribute.refresh();
+        		Integer processed = new Integer(0);
+        		if (attribute != null) {
+        			processed = (Integer) attribute.refresh();
+        		}
         		report.addData(new MeasurementDataNumeric(request, new Double(processed.doubleValue())));        		
         	}
         }

Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/resources/META-INF/rhq-plugin.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/resources/META-INF/rhq-plugin.xml	2008-09-12 05:41:51 UTC (rev 22704)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/resources/META-INF/rhq-plugin.xml	2008-09-12 08:36:21 UTC (rev 22705)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 
 <plugin name="JBossESB"
-        displayName="JBoss ESB Services"
+        displayName="JBossESB"
         package="org.jbosson.plugins.jbossesb"
         description="Provides monitoring of JBoss ESB"
         version="2.0"
@@ -13,18 +13,37 @@
    <depends plugin="Tomcat" />
    <depends plugin="JBossAS" useClasses="true"/>
 
-   <service name="JBossESB .esb Package"
+   <service name="ESB"
       discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
       class="org.rhq.plugins.jmx.MBeanResourceComponent"
-      description="Statistics for JBoss ESB">
-
+      description="Overall statistics for JBoss ESB"
+      singleton="true">
        <runs-inside>
          <parent-resource-type name="JBossAS Server" plugin="JBossAS"/>
       </runs-inside>
 
       <plugin-configuration>
+         <c:simple-property name="objectName" readOnly="true" default="jboss.esb:service=MessageCounter"/>
+         <c:simple-property name="nameTemplate" default="JBoss ESB Statistics"/>
+         <c:simple-property name="descriptionTemplate" default="JBoss ESB statistics."/>
+      </plugin-configuration>
+
+      <metric displayName="Successful Message Count" property="SuccessfulMessageCount" category="utilization" displayType="summary" measurementType="dynamic" description="Overall Successful Message Count"/>
+      <metric displayName="Total Message Count" property="TotalMessageCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Total Message Count"/>
+      <metric displayName="Failed Message Count" property="FailedMessageCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Failed Message Count"/>
+      <metric property="LastSuccessfulMessageDate" displayName="Last Successful Message Date" dataType="trait" displayType="summary" defaultOn="true" description="Last Successful Message Date"/>
+      <metric property="LastFailedMessageDate" displayName="Last Failed Message Date" dataType="trait" displayType="summary" defaultOn="true" description="Last Failed Message Date"/>
+      <metric property="StateString"  dataType="trait" displayName="State" displayType="summary" defaultOn="true" description="State of the ESB"/>
+      <metric displayName="Bytes Processed" property="ProcessedBytes" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Processed"/>
+
+   <service name="JBoss ESB Deployment"
+      discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
+      class="org.rhq.plugins.jmx.MBeanResourceComponent"
+      description="Statistics for JBoss ESB Deployments">
+
+      <plugin-configuration>
          <c:simple-property name="objectName" readOnly="true" default="jboss.esb:deployment=%deployment%"/>
-         <c:simple-property name="nameTemplate" default="{deployment} JBoss ESB statistics"/>
+         <c:simple-property name="nameTemplate" default="{deployment} JBoss ESB Statistics"/>
          <c:simple-property name="descriptionTemplate" default="JBoss ESB statistics for the {deployment} deployment."/>
          <c:simple-property name="deployment" type="string" description="the JBoss ESB deployment name"/>
       </plugin-configuration>
@@ -36,54 +55,84 @@
      <operation name="destroy" displayName="Move .esb deployment into the destroy state" description="Move the .esb deployment into the destroy state"/>
 
      <metric property="Name" displayName="Deployment Type" dataType="trait" displayType="summary" defaultOn="true" description="Type of deployment"/>
-     <!-- EsbXmlAsHtml is too large to fit in a measurement.
-     <metric property="JbossEsbXmlAsHtml" displayName="ESB XML" dataType="trait" displayType="summary" defaultOn="true" description="The jboss-esb.xml of {deployment}"/--> 
      <metric property="StateString" displayName=".esb State String" dataType="trait" displayType="summary" defaultOn="true" description="Current state of the ESB"/>
-      
+     <metric property="State" displayName=".esb State" dataType="trait" displayType="summary" defaultOn="true" description="Numeric value of the state of the ESB deployment"/>
        <help>
           <![CDATA[
-	  JBoss ESB esb
+	  JBoss ESB deployments are .esb packages deployed within a server.    
           ]]>
        </help>
       <service name="JBoss ESB Services"
          discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
          class="ServiceComponent"
          description="JBoss ESB Services">
-       <runs-inside>
-         <parent-resource-type name="JBossAS Server" plugin="JBossAS"/>
-       </runs-inside>
          <plugin-configuration>
               <c:simple-property name="objectName" readOnly="true" default="jboss.esb:category=MessageCounter,deployment={deployment},service-name=%serviceName%"/>
-              <c:simple-property name="nameTemplate" default="{serviceName} JBoss ESB statistics"/>
+              <c:simple-property name="nameTemplate" default="{serviceName} Service"/>
               <c:simple-property name="DescriptionTemplate" default="JBoss ESB statistics for the {serviceName} service."/>
               <c:simple-property name="serviceName" type="string" description="the JBoss ESB service name"/>
          </plugin-configuration>
-         <operation name="reset" displayName="Reset the message counter" description="Reset the message counter"/>
-         <metric displayName="Overall Service Message Count" property="overallMessageCount" category="throughput" displayType="summary" measurementType="trendsup" description="Overall Service Message Count"/>
-	 <metric displayName="Overall Service Bytes Processed" property="overallBytesProcessed" category="throughput" displayType="summary" defaultOn="true" measurementType="trendsup" description="Overall Service Bytes Processed"/>
-	 <metric displayName="Overall Service Bytes Failed" property="overallBytesFailed" category="throughput" displayType="summary" defaultOn="true" measurementType="trendsup" description="Overall Service Bytes Failed"/>
+         <operation name="resetCounts" displayName="Reset the message counter" description="Reset the message counter"/>
+         <metric displayName="Overall Service Message Count" property="overallMessageCount" category="utilization" displayType="summary" measurementType="dynamic" description="Overall Service Message Count"/>
+	 <metric displayName="Overall Service Bytes Processed" property="overallBytesProcessed" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Service Bytes Processed"/>
+	 <metric displayName="Overall Service Bytes Failed" property="overallBytesFailed" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Service Bytes Failed"/>
          <help>
              <![CDATA[
-	         JBoss ESB Service
+	         JBoss ESB Services are the services available within a deployment.
              ]]>
          </help>
-         <service name="JBoss ESB Actions"
+	 <service name="JBoss ESB Listeners"
+		discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
+		class="ListenerComponent"
+		description="JBoss ESB Listeners">
+	     <plugin-configuration>
+		     <c:simple-property name="objectName" readOnly="true" default="jboss.esb:listener-name=listener,service-category=%service-category%,service-name={serviceName}"/>
+		     <c:simple-property name="nameTemplate" default="{service-category} Listener Configuration"/>
+		     <c:simple-property name="descriptionTemplate" default="JBoss Listener statistics"/>
+		     <c:simple-property name="serviceCategory" type="string" description="the service category of the listener"/> 
+             </plugin-configuration>
+             <operation name="initialise" displayName="Initialize listener" description="Initialize the listener."/>
+             <operation name="start" displayName="Start listener" description="Start the listener."/>
+             <operation name="stop" displayName="Stop listener" description="Stop the listener."/>
+             <operation name="destroy" displayName="Destroy listener" description="Destroy the listener."/>
+
+             <metric property="mep" displayName="MEP" dataType="trait" displayType="summary" defaultOn="true" description="Type of deployment"/>
+             <metric property="LifeCycleState" displayName="Lifecycle State" dataType="trait" displayType="summary" defaultOn="true" description="Lifecycle State"/>
+             <metric property="maxThreads" displayName="Maximum Number of Threads" dataType="trait" displayType="summary" defaultOn="true" description="Maximum number of threads"/>
+             <metric property="StartDate" displayName="Start Date" dataType="trait" displayType="summary" defaultOn="true" description="Start Date"/>
+             <metric property="service-category" displayName="Service Category" dataType="trait" displayType="summary" defaultOn="true" description="Service Category"/>
+             <metric property="service-description" displayName="Service Description" dataType="trait" displayType="summary" defaultOn="true" description="Service Description"/>
+             <metric property="service-name" displayName="Service Name" dataType="trait" displayType="summary" defaultOn="true" description="Service Name"/>
+             <help>
+             <![CDATA[
+             JBoss ESB Listener configuration shows the config of the listener.
+             ]]>
+             </help>
+	 </service>
+  
+         <service name="Actions"
          	discovery="ActionDiscoveryComponent"
          	class="ActionComponent"
          	description="JBoss ESB Actions">
              <plugin-configuration>
          	     <c:simple-property name="objectName" readOnly="true" default="jboss.esb:category=MessageCounter,deployment={deployment},service-name=%service-name%"/>
-         		 <c:simple-property name="nameTemplate" default="{actionName} JBoss ESB Action statistics"/>
+         	     <c:simple-property name="nameTemplate" default="{actionName} JBoss ESB Action statistics"/>
          	     <c:simple-property name="descriptionTemplate" default="JBoss ESB statistics for the {actionName} action."/>
-         		 <c:simple-property name="actionName" type="string" description="the JBoss ESB action name"/>
-			</plugin-configuration>
-	 	<metric displayName="Bytes Processed" property="overallBytesProcessed" category="throughput" displayType="summary" defaultOn="true" measurementType="trendsup"/>
-		<metric displayName="Bytes Failed" property="overallBytesFailed" category="throughput" displayType="summary" defaultOn="true" measurementType="trendsup"/>
-	        <metric displayName="Messages Successfully Processed" property="successProcessedCount" category="throughput" displayType="summary" defaultOn="true" measurementType="trendsup"/>
-	        <metric displayName="Messages Failed" property="failedProcessedCount"  category="throughput" displayType="summary" defaultOn="true" measurementType="trendsup"/>
-	        <metric displayName="Processing Time" property="processingTime" displayType="summary" defaultOn="true" category="performance"/>
+         	     <c:simple-property name="actionName" type="string" description="the JBoss ESB action name"/>
+	      </plugin-configuration>
+	        <metric displayName="Messages Successfully Processed" property="successProcessedCount" category="throughput" defaultOn="true"/>
+	        <metric displayName="Messages Failed" property="failedProcessedCount"  category="performance" defaultOn="true"/>
+	        <metric displayName="Processing Time" property="processingTime" units="milliseconds" defaultOn="true" category="performance"/>
+	 	<metric displayName="Bytes Processed" property="overallBytesProcessed" units="bytes" category="performance" defaultOn="true"/>
+		<metric displayName="Bytes Failed" property="overallBytesFailed" units="bytes" category="performance" defaultOn="true"/>
+         	<help>
+             	<![CDATA[
+                 JBoss ESB Actions are the actions executed within a service.
+             	]]>
+         	</help>
          </service>
        </service> 
     </service>
+    </service>
 </plugin>
 




More information about the jboss-svn-commits mailing list