[jboss-svn-commits] JBL Code SVN: r29800 - in labs/jbossesb/trunk/product: tools/jonplugin and 12 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Oct 24 18:34:06 EDT 2009


Author: tcunning
Date: 2009-10-24 18:34:05 -0400 (Sat, 24 Oct 2009)
New Revision: 29800

Added:
   labs/jbossesb/trunk/product/tools/jonplugin/as4/
   labs/jbossesb/trunk/product/tools/jonplugin/as4/src/
   labs/jbossesb/trunk/product/tools/jonplugin/as4/src/main/
   labs/jbossesb/trunk/product/tools/jonplugin/as4/src/main/resources/
   labs/jbossesb/trunk/product/tools/jonplugin/as4/src/main/resources/META-INF/
   labs/jbossesb/trunk/product/tools/jonplugin/as4/src/main/resources/META-INF/rhq-plugin.xml
   labs/jbossesb/trunk/product/tools/jonplugin/as5/
   labs/jbossesb/trunk/product/tools/jonplugin/as5/src/
   labs/jbossesb/trunk/product/tools/jonplugin/as5/src/main/
   labs/jbossesb/trunk/product/tools/jonplugin/as5/src/main/resources/
   labs/jbossesb/trunk/product/tools/jonplugin/as5/src/main/resources/META-INF/
   labs/jbossesb/trunk/product/tools/jonplugin/as5/src/main/resources/META-INF/rhq-plugin.xml
   labs/jbossesb/trunk/product/tools/jonplugin/build.xml
   labs/jbossesb/trunk/product/tools/jonplugin/ivy.xml
   labs/jbossesb/trunk/product/tools/jonplugin/ivysettings.xml
   labs/jbossesb/trunk/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java
Removed:
   labs/jbossesb/trunk/product/tools/jonplugin/install.sh
   labs/jbossesb/trunk/product/tools/jonplugin/src/main/resources/META-INF/rhq-plugin.xml
Modified:
   labs/jbossesb/trunk/product/build.xml
Log:
JBESB-2907
Build the JON plugin within the ESB build.


Modified: labs/jbossesb/trunk/product/build.xml
===================================================================
--- labs/jbossesb/trunk/product/build.xml	2009-10-24 18:25:51 UTC (rev 29799)
+++ labs/jbossesb/trunk/product/build.xml	2009-10-24 22:34:05 UTC (rev 29800)
@@ -144,6 +144,12 @@
 		<ant dir="rosetta"/>
 	</target>
 
+    <target name="org.jboss.soa.esb.plugin.build" depends="org.jboss.esb.rosetta.compile">
+                <echo message="Build ESB JON plugin"/>
+                <ant dir="tools/jonplugin" target="jar-as4-plugin"/>
+		<ant dir="tools/jonplugin" target="jar-as5-plugin"/>
+    </target>
+
     <target name="dependencies.get">
         <ant antfile="ivy-build.xml" />
     </target>
@@ -286,7 +292,7 @@
 	
 	<!-- produce a basic installation (minus docs and samples) -->
 	
-	<target name="org.jboss.esb.install" depends="org.jboss.esb.contract-web, org.jboss.esb.jar">
+	<target name="org.jboss.esb.install" depends="org.jboss.esb.contract-web, org.jboss.esb.jar, org.jboss.soa.esb.plugin.build">
 
 		<echo message="Installation directory : ${org.jboss.esb.installationdirectory}"/>
 

Added: labs/jbossesb/trunk/product/tools/jonplugin/as4/src/main/resources/META-INF/rhq-plugin.xml
===================================================================
--- labs/jbossesb/trunk/product/tools/jonplugin/as4/src/main/resources/META-INF/rhq-plugin.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/tools/jonplugin/as4/src/main/resources/META-INF/rhq-plugin.xml	2009-10-24 22:34:05 UTC (rev 29800)
@@ -0,0 +1,221 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<plugin name="JBossESB"
+        displayName="JBossESB"
+        package="org.jbosson.plugins.jbossesb"
+        description="Provides monitoring of JBoss ESB"
+        version="2.0"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xmlns="urn:xmlns:rhq-plugin"
+        xmlns:c="urn:xmlns:rhq-configuration">
+
+   <depends plugin="JMX" />
+   <depends plugin="JBossAS" useClasses="true"/>
+ 
+   <service name="ESB"
+      discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+      class="org.jbosson.plugins.jbossesb.ESBComponent"
+      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."/>
+         <c:group name="connection" displayName="Connection Info">
+            <c:simple-property name="namingURL" displayName="Naming Provider URL"
+                               description="The JNP URL with which to connect to the JBoss Application Server instance (e.g. jnp://127.0.0.1:1099)."
+                               default="jnp://127.0.0.1:1099"/>
+            <c:simple-property name="principal" required="false" description="The name of the principal (i.e. user) to authenticate."/>
+            <c:simple-property name="credentials" type="password" required="false"
+                               description="The credentials (i.e. password) that should be used to authenticate the principal."/>
+            <c:simple-property name="jbossHomeDir" displayName="JBoss Home Directory" type="directory" readOnly="true"
+                               description="The absolute path to the directory where JBossAS is installed (e.g. /opt/jboss-4.2.2.GA)."/>
+            <c:simple-property name="configurationPath" displayName="Configuration Path" type="directory" readOnly="true"
+                               description="The path to the configuration directory under which this instance
+                                            operates (e.g. /opt/jboss-4.2.2.GA/server/default); if the path is not absolute,
+                                            then it will be resolved relative to {jbossHomeDir}."/>
+            <c:simple-property name="configurationSet" displayName="Configuration Set" required="false"
+                               description="The name of the server configuration (e.g. minimal, default, or all);
+                                            if not specified, it will default to the last path component of {configurationPath}."
+                               default="default"/>
+         </c:group>
+      </plugin-configuration>
+      <operation name="start" displayName="Start deployment" description="Start the JBoss ESB deployment"/>
+      <operation name="stop" displayName="Stop deployment" description="Stop the JBoss ESB deployment"/>
+      <operation name="create" displayName="Move .esb deployment into the create state" description="Move the .esb deployment into the create state"/>
+      <operation name="destroy" displayName="Move .esb deployment into the destroy state" description="Move the .esb deployment into the destroy state"/>
+      <operation name="resetCounts" displayName="Reset Counts" description="Reset the overall counter"/>
+      <metric displayName="Message Count (Successful)" property="SuccessfulMessageCount" category="utilization" displayType="summary" measurementType="dynamic" description="Overall Successful Message Count"/>
+      <metric displayName="Message Count (Total)" property="TotalMessageCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Total Message Count"/>
+      <metric displayName="Message Counts (Failed)" property="FailedMessageCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Failed Message Count"/>
+      <metric displayName="Processed Bytes" property="ProcessedBytes" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Processed"/>
+      <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"/>
+      <event name="ESBMessageAlert"/>
+      <content name="library" displayName="Jar Library" category="deployable"
+                description="Library Jar files deployed in JBoss AS">
+         <configuration>
+            <c:simple-property name="version" readOnly="true" description="The version declared by the JAR's manifest."/>
+            <c:simple-property name="title" readOnly="true" description="The title declared by the JAR's manifest."/>
+            <c:simple-property name="url" readOnly="true" description="The url declared by the JAR's manifest."/>
+            <c:simple-property name="vendor" readOnly="true" description="The vendor declared by the JAR's manifest."/>
+            <c:simple-property name="classpath" readOnly="true"
+                               description="The classpath declared by the JAR's manifest."/>
+            <c:simple-property name="sealed" readOnly="true" type="boolean" description="True if the JAR is sealed."/>
+         </configuration>
+      </content>
+   <service name="JBoss ESB Deployment"
+      discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+      class="org.jbosson.plugins.jbossesb.DeploymentComponent"
+      description="Statistics for JBoss ESB Deployments"
+      creationDataType="content"	
+      createDeletePolicy="both">
+
+      <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="descriptionTemplate" default="JBoss ESB statistics for the {deployment} deployment."/>
+         <c:simple-property name="deployment" type="string" description="the JBoss ESB deployment name"/>
+                <c:group name="advanced" displayName="Advanced" hiddenByDefault="true">
+                    <c:simple-property name="extension" default="esb" readOnly="true"/>
+                    <c:simple-property name="descriptionTemplate" default="ESB package" readOnly="true"/>
+                </c:group>
+      </plugin-configuration>
+     <operation name="start" displayName="Start deployment" description="Start the JBoss ESB deployment"/>
+     <operation name="stop" displayName="Stop deployment" description="Stop the JBoss ESB deployment"/>
+     <metric property="Name" displayName="Deployment Type" dataType="trait" displayType="summary" defaultOn="true" description="Type 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 deployments are .esb packages deployed within a server.    
+          ]]>
+       </help-->
+         <content name="file" displayName="ESB Package" category="deployable" isCreationType="true">
+            <configuration>
+               <c:group name="deployment" displayName="Deployment Options">
+                  <c:simple-property name="deployZipped" displayName="Deploy Zipped" type="boolean" default="false" required="true"
+                                     description="Indicates if the ESB is deployed either zipped or exploded."/>
+                  <c:simple-property name="deployDirectory" displayName="Deploy Directory" type="string" default="deploy" required="true"
+                                     description="Path to deploy the file. This must be a path relative to the AS configuration set in use."/>
+               </c:group>
+            </configuration>
+         </content>
+      <service name="JBoss ESB Services"
+         discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+         class="org.jbosson.plugins.jbossesb.ServiceComponent"
+         description="JBoss ESB Services">
+         <plugin-configuration>
+              <c:simple-property name="objectName" readOnly="true" default="jboss.esb:category=MessageCounter,deployment={deployment},service-category=%categoryName%,service-name=%serviceName%"/>
+              <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"/>
+	      <c:simple-property name="categoryName" type="string" description="the JBoss ESB service category name"/>
+         </plugin-configuration>
+         
+         <operation name="resetCounter" displayName="Reset the message counter" description="Reset the message counter"/>
+         <metric displayName="Message Count" property="overallMessageCount" category="utilization" displayType="summary" measurementType="dynamic" description="Message Count"/>
+         <metric displayName="Message Count (avg)" property="overallMessageCountByMinute" category="utilization" displayType="summary" measurementType="trendsup" description="Message Count (avg)"/>
+	 	 <metric displayName="Overall Bytes" property="overallBytes" units="bytes" category="utilization" displayType="summary"
+defaultOn="true" measurementType="dynamic" description="Overall Bytes"/>
+	 	 <metric displayName="Overall Bytes Processed" property="bytesProcessed" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Processed"/>
+	 	 <metric displayName="Overall Bytes Failed" property="bytesFailed" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Failed"/>
+		 <metric displayName="Overall Service Time Processed" property="overallTimeProcessed" units="milliseconds" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Service Time Processed"/> 
+         <help>
+             <![CDATA[
+	         JBoss ESB Services are the services available within a deployment.
+             ]]>
+         </help>
+
+	 <service name="JBoss ESB Listeners"
+		discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+		class="ListenerComponent"
+		description="JBoss ESB Listeners">
+	     <plugin-configuration>
+		     <c:simple-property name="objectName" readOnly="true" default="jboss.esb:deployment=%deploymentName%,listener-name=%listenerName%,service-category=%serviceCategory%,service-name={serviceName}"/>
+		     <c:simple-property name="nameTemplate" default="{listenerName} - {serviceCategory} 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"/> 
+		     <c:simple-property name="listenerName" type="string" description="the name of the Listener"/>
+		     <c:simple-property name="deploymentName" type="string" description="name of deployment"/>
+             </plugin-configuration>
+             <operation name="start" displayName="Start listener" description="Start the listener."/>
+             <operation name="stop" displayName="Stop listener" description="Stop 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="JBoss ESB Gateways"
+		discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+		class="ListenerComponent"
+		description="JBoss ESB Listeners">
+	     <plugin-configuration>
+		     <c:simple-property name="objectName" readOnly="true" default="jboss.esb:deployment=%deploymentName%,gateway-name=%listenerName%,target-service-category=%serviceCategory%,target-service-name={serviceName}"/>
+		     <c:simple-property name="nameTemplate" default="{listenerName} - {serviceCategory} 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"/> 
+		     <c:simple-property name="listenerName" type="string" description="the name of the Listener"/>
+		     <c:simple-property name="deploymentName" type="string" description="name of deployment"/>
+             </plugin-configuration>
+             <operation name="start" displayName="Start listener" description="Start the listener."/>
+             <operation name="stop" displayName="Stop listener" description="Stop the listener."/>
+             <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="target-service-category" displayName="Service Category" dataType="trait" displayType="summary" defaultOn="true" description="Service Category"/>
+             <metric property="target-service-description" displayName="Service Description" dataType="trait" displayType="summary" defaultOn="true" description="Service Description"/>
+             <metric property="target-service-name" displayName="Service Name" dataType="trait" displayType="summary" defaultOn="true" description="Service Name"/>
+             <help>
+             <![CDATA[
+             JBoss ESB Gateway 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="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="Message Count" property="overallMessagesCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+		<metric displayName="Message Count (avg)" property="overallMessagesCountMinute" category="utilization" 
+displayType="summary" defaultOn="true" measurementType="trendsup"/>
+	        <metric displayName="Messages Failed" property="failedProcessedCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+	        <metric displayName="Messages Failed (avg)" property="failedProcessedCountMinute" category="utilization" displayType="summary" defaultOn="true" measurementType="trendsup"/>
+	        <metric displayName="Messages Successfully Processed" property="successProcessedCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+	        <metric displayName="Messages Successfully Processed (avg)" property="successProcessedCountMinute" category="utilization" displayType="summary" defaultOn="true" measurementType="trendsup"/>
+		<metric displayName="Overall Bytes" property="overallBytesProcessed" units="bytes" category="utilization"
+displayType="summary" defaultOn="true" measurementType="dynamic"/>
+	 	<metric displayName="Overall Bytes Processed" property="bytesSuccessful"  units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+		<metric displayName="Overall Bytes Failed" property="overallBytesFailed"  units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+	        <metric displayName="Processing Time" property="processingTime" units="milliseconds" defaultOn="true" category="performance"/>
+         	<help>
+             	<![CDATA[
+                 JBoss ESB Actions are the actions executed within a service.
+             	]]>
+         	</help>
+         </service>
+       </service> 
+    </service>
+    </service>
+</plugin>

Added: labs/jbossesb/trunk/product/tools/jonplugin/as5/src/main/resources/META-INF/rhq-plugin.xml
===================================================================
--- labs/jbossesb/trunk/product/tools/jonplugin/as5/src/main/resources/META-INF/rhq-plugin.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/tools/jonplugin/as5/src/main/resources/META-INF/rhq-plugin.xml	2009-10-24 22:34:05 UTC (rev 29800)
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<plugin name="JBossESB"
+        displayName="JBossESB"
+        package="org.jbosson.plugins.jbossesb"
+        description="Provides monitoring of JBoss ESB"
+        version="2.0"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xmlns="urn:xmlns:rhq-plugin"
+        xmlns:c="urn:xmlns:rhq-configuration">
+
+   <depends plugin="JMX" />
+   <depends plugin="JBossAS5" useClasses="true"/>
+
+   <service name="ESB"
+      discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+      class="org.jbosson.plugins.jbossesb.ESB5Component"
+      description="Overall statistics for JBoss ESB"
+      singleton="true">
+       <runs-inside>
+         <parent-resource-type name="JBossAS Server" plugin="JBossAS5"/>
+      </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."/>
+         <c:group name="connection" displayName="Connection Info">
+            <c:simple-property name="namingURL" displayName="Naming Provider URL"
+                               description="The JNP URL with which to connect to the JBoss Application Server instance (e.g. jnp://127.0.0.1:1099)."
+                               default="jnp://127.0.0.1:1099"/>
+            <c:simple-property name="principal" required="false" description="The name of the principal (i.e. user) to authenticate."/>
+            <c:simple-property name="credentials" type="password" required="false"
+                               description="The credentials (i.e. password) that should be used to authenticate the principal."/>
+            <c:simple-property name="jbossHomeDir" displayName="JBoss Home Directory" type="directory" readOnly="true"
+                               description="The absolute path to the directory where JBossAS is installed (e.g. /opt/jboss-4.2.2.GA)."/>
+            <c:simple-property name="configurationPath" displayName="Configuration Path" type="directory" readOnly="true"
+                               description="The path to the configuration directory under which this instance
+                                            operates (e.g. /opt/jboss-4.2.2.GA/server/default); if the path is not absolute,
+                                            then it will be resolved relative to {jbossHomeDir}."/>
+            <c:simple-property name="configurationSet" displayName="Configuration Set" required="false"
+                               description="The name of the server configuration (e.g. minimal, default, or all);
+                                            if not specified, it will default to the last path component of {configurationPath}."
+                               default="default"/>
+         </c:group>
+      </plugin-configuration>
+      <operation name="start" displayName="Start deployment" description="Start the JBoss ESB deployment"/>
+      <operation name="stop" displayName="Stop deployment" description="Stop the JBoss ESB deployment"/>
+      <operation name="create" displayName="Move .esb deployment into the create state" description="Move the .esb deployment into the create state"/>
+      <operation name="destroy" displayName="Move .esb deployment into the destroy state" description="Move the .esb deployment into the destroy state"/>
+      <operation name="resetCounts" displayName="Reset Counts" description="Reset the overall counter"/>
+      <metric displayName="Message Count (Successful)" property="SuccessfulMessageCount" category="utilization" displayType="summary" measurementType="dynamic" description="Overall Successful Message Count"/>
+      <metric displayName="Message Count (Total)" property="TotalMessageCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Total Message Count"/>
+      <metric displayName="Message Counts (Failed)" property="FailedMessageCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Failed Message Count"/>
+      <metric displayName="Processed Bytes" property="ProcessedBytes" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Processed"/>
+      <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"/>
+      <content name="library" displayName="Jar Library" category="deployable"
+                description="Library Jar files deployed in JBoss AS">
+         <configuration>
+            <c:simple-property name="version" readOnly="true" description="The version declared by the JAR's manifest."/>
+            <c:simple-property name="title" readOnly="true" description="The title declared by the JAR's manifest."/>
+            <c:simple-property name="url" readOnly="true" description="The url declared by the JAR's manifest."/>
+            <c:simple-property name="vendor" readOnly="true" description="The vendor declared by the JAR's manifest."/>
+            <c:simple-property name="classpath" readOnly="true"
+                               description="The classpath declared by the JAR's manifest."/>
+            <c:simple-property name="sealed" readOnly="true" type="boolean" description="True if the JAR is sealed."/>
+         </configuration>
+      </content>
+   <service name="JBoss ESB Deployment"
+      discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+      class="org.jbosson.plugins.jbossesb.DeploymentComponent"
+      description="Statistics for JBoss ESB Deployments"
+      creationDataType="content"	
+      createDeletePolicy="both">
+
+      <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="descriptionTemplate" default="JBoss ESB statistics for the {deployment} deployment."/>
+         <c:simple-property name="deployment" type="string" description="the JBoss ESB deployment name"/>
+                <c:group name="advanced" displayName="Advanced" hiddenByDefault="true">
+                    <c:simple-property name="extension" default="esb" readOnly="true"/>
+                    <c:simple-property name="descriptionTemplate" default="ESB package" readOnly="true"/>
+                </c:group>
+      </plugin-configuration>
+     <operation name="start" displayName="Start deployment" description="Start the JBoss ESB deployment"/>
+     <operation name="stop" displayName="Stop deployment" description="Stop the JBoss ESB deployment"/>
+     <metric property="Name" displayName="Deployment Type" dataType="trait" displayType="summary" defaultOn="true" description="Type 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 deployments are .esb packages deployed within a server.    
+          ]]>
+       </help-->
+         <content name="file" displayName="ESB Package" category="deployable" isCreationType="true">
+            <configuration>
+               <c:group name="deployment" displayName="Deployment Options">
+                  <c:simple-property name="deployZipped" displayName="Deploy Zipped" type="boolean" default="false" required="true"
+                                     description="Indicates if the ESB is deployed either zipped or exploded."/>
+                  <c:simple-property name="deployDirectory" displayName="Deploy Directory" type="string" default="deploy" required="true"
+                                     description="Path to deploy the file. This must be a path relative to the AS configuration set in use."/>
+               </c:group>
+            </configuration>
+         </content>
+      <service name="JBoss ESB Services"
+         discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+         class="org.jbosson.plugins.jbossesb.ServiceComponent"
+         description="JBoss ESB Services">
+         <plugin-configuration>
+              <c:simple-property name="objectName" readOnly="true" default="jboss.esb:category=MessageCounter,deployment={deployment},service-category=%categoryName%,service-name=%serviceName%"/>
+              <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"/>
+	      <c:simple-property name="categoryName" type="string" description="the JBoss ESB service category name"/>
+         </plugin-configuration>
+         <operation name="resetCounter" displayName="Reset the message counter" description="Reset the message counter"/>
+         <metric displayName="Message Count" property="overallMessageCount" category="utilization" displayType="summary" measurementType="dynamic" description="Message Count"/>
+        <metric displayName="Message Count (avg)" property="overallMessageCountByMinute" category="utilization" displayType="summary" measurementType="trendsup" description="Message Count (avg)"/>
+	 <metric displayName="Overall Bytes" property="overallBytes" units="bytes" category="utilization" displayType="summary"
+defaultOn="true" measurementType="dynamic" description="Overall Bytes"/>
+	 <metric displayName="Overall Bytes Processed" property="bytesProcessed" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Processed"/>
+	 <metric displayName="Overall Bytes Failed" property="bytesFailed" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Failed"/>
+         <help>
+             <![CDATA[
+	         JBoss ESB Services are the services available within a deployment.
+             ]]>
+         </help>
+	 <service name="JBoss ESB Listeners"
+		discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+		class="ListenerComponent"
+		description="JBoss ESB Listeners">
+	     <plugin-configuration>
+		     <c:simple-property name="objectName" readOnly="true" default="jboss.esb:deployment=%deploymentName%,listener-name=%listenerName%,service-category=%serviceCategory%,service-name={serviceName}"/>
+		     <c:simple-property name="nameTemplate" default="{listenerName} - {serviceCategory} 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"/> 
+		     <c:simple-property name="listenerName" type="string" description="the name of the Listener"/>
+		     <c:simple-property name="deploymentName" type="string" description="name of deployment"/>
+             </plugin-configuration>
+             <operation name="start" displayName="Start listener" description="Start the listener."/>
+             <operation name="stop" displayName="Stop listener" description="Stop 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="JBoss ESB Gateways"
+		discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
+		class="ListenerComponent"
+		description="JBoss ESB Listeners">
+	     <plugin-configuration>
+		     <c:simple-property name="objectName" readOnly="true" default="jboss.esb:deployment=%deploymentName%,gateway-name=%listenerName%,target-service-category=%serviceCategory%,target-service-name={serviceName}"/>
+		     <c:simple-property name="nameTemplate" default="{listenerName} - {serviceCategory} 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"/> 
+		     <c:simple-property name="listenerName" type="string" description="the name of the Listener"/>
+		     <c:simple-property name="deploymentName" type="string" description="name of deployment"/>
+             </plugin-configuration>
+             <operation name="start" displayName="Start listener" description="Start the listener."/>
+             <operation name="stop" displayName="Stop listener" description="Stop the listener."/>
+             <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="target-service-category" displayName="Service Category" dataType="trait" displayType="summary" defaultOn="true" description="Service Category"/>
+             <metric property="target-service-description" displayName="Service Description" dataType="trait" displayType="summary" defaultOn="true" description="Service Description"/>
+             <metric property="target-service-name" displayName="Service Name" dataType="trait" displayType="summary" defaultOn="true" description="Service Name"/>
+             <help>
+             <![CDATA[
+             JBoss ESB Gateway 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="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="Message Count" property="overallMessagesCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+		<metric displayName="Message Count (avg)" property="overallMessagesCountMinute" category="utilization" 
+displayType="summary" defaultOn="true" measurementType="trendsup"/>
+	        <metric displayName="Messages Failed" property="failedProcessedCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+	        <metric displayName="Messages Failed (avg)" property="failedProcessedCountMinute" category="utilization" displayType="summary" defaultOn="true" measurementType="trendsup"/>
+	        <metric displayName="Messages Successfully Processed" property="successProcessedCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+	        <metric displayName="Messages Successfully Processed (avg)" property="successProcessedCountMinute" category="utilization" displayType="summary" defaultOn="true" measurementType="trendsup"/>
+		<metric displayName="Overall Bytes" property="overallBytesProcessed" units="bytes" category="utilization"
+displayType="summary" defaultOn="true" measurementType="dynamic"/>
+	 	<metric displayName="Overall Bytes Processed" property="bytesSuccessful"  units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+		<metric displayName="Overall Bytes Failed" property="overallBytesFailed"  units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
+	        <metric displayName="Processing Time" property="processingTime" units="milliseconds" defaultOn="true" category="performance"/>
+         	<help>
+             	<![CDATA[
+                 JBoss ESB Actions are the actions executed within a service.
+             	]]>
+         	</help>
+         </service>
+       </service> 
+    </service>
+    </service>
+</plugin>

Added: labs/jbossesb/trunk/product/tools/jonplugin/build.xml
===================================================================
--- labs/jbossesb/trunk/product/tools/jonplugin/build.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/tools/jonplugin/build.xml	2009-10-24 22:34:05 UTC (rev 29800)
@@ -0,0 +1,127 @@
+<project name="jon-build" default="build-plugins" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
+
+    <property name="build.dir" location="build"/>
+    <property name="ivy.lib.dir" location="${build.dir}/lib"/>
+    <property name="extract.dir" location="${build.dir}/extract"/>
+    <property name="classpath.dir" location="../../../antlib"/>
+
+    <property name="esb.plugin.jar.version" value="2.3.0-SNAPSHOT"/>
+    <property name="esb.plugin.jar.name" value="rhq-jbossesb-plugin-${esb.plugin.jar.version}"/>
+    <property name="esb.server.zip.version" value=""/>
+    <property name="esb.agent.zip.version" value=""/>
+
+    <property name="src.dir" location="src/main"/>
+    <property name="java.dir" location="${src.dir}/java"/>
+    <property name="resources.dir" location="${src.dir}/resources"/>
+
+    <property name="classes.dir" location="${build.dir}/classes"/>
+
+    <path id="classpath.ivy">
+        <fileset dir="${classpath.dir}" includes="ivy-*.jar" />
+    </path>
+    <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="classpath.ivy" />
+
+    <target name="ivy.init" depends="clean">
+        <ivy:settings file="ivysettings.xml" />
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${ivy.lib.dir}"/>
+        <mkdir dir="${extract.dir}"/>
+        <mkdir dir="${classes.dir}"/>
+    </target>
+
+    <target name="retrieve" depends="ivy.init">
+        <ivy:retrieve/>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+	<delete file="${basedir}/src/main/resources/META-INF/rhq-plugin.xml"/>
+    </target>
+
+    <target name="cleancache" depends="ivy.init">
+        <ivy:cleancache/>
+    </target>
+
+    <target name="report" depends="retrieve" description="--> generates a report of dependencies">
+        <ivy:report todir="${ivy.lib.dir}"/>
+    </target>
+
+    <target name="extract-classpath-jars" depends="retrieve">
+        <path id="jon.server.location">
+            <fileset dir="${ivy.lib.dir}" includes="jon-server*.zip"/>
+        </path>
+	<path id="jon.eap.plugin.pack.location">
+	    <fileset dir="${ivy.lib.dir}" includes="jon-plugin-pack-eap-*.zip"/>	
+	</path>
+	<property name="jon.eap.plugin.pack.location" refid="jon.eap.plugin.pack.location"/>
+        <property name="jon.server.location" refid="jon.server.location"/>
+
+        <unzip dest="${extract.dir}" src="${jon.server.location}">
+            <patternset>
+                <include name="**/rhq-jbossas-plugin*.jar"/>
+                <include name="**/rhq-core-domain-*.jar"/>
+                <include name="**/rhq-jmx-plugin-*.jar"/>
+                <include name="**/rhq-core-plugin-api-*.jar"/>
+                <include name="**/rhq-tomcat-plugin-*.jar"/>
+                <include name="**/rhq-core-native-system-*.jar"/>
+<include name="**/ejb3-persistence.jar"/> <include name="**/lib/hibernate-annotations.jar"/>
+
+                <include name="**/commons-logging-*.jar"/>
+                <include name="**/endorsed/jaxb-api.jar"/>
+            </patternset>
+        </unzip>
+	<unzip dest="${extract.dir}" src="${jon.eap.plugin.pack.location}">
+	    <patternset>
+		<include name="**/jopr-jboss-as-plugin-*.jar"/>
+		<include name="**/jopr-jboss-as-5-plugin-*.jar"/>
+	    </patternset>
+	</unzip>
+        <unzip dest="${extract.dir}">
+            <patternset>
+                <include name="**/org-mc4j-ems*.jar"/>
+            </patternset>
+            <fileset dir="${extract.dir}">
+                <include name="**/rhq-jmx-plugin-*.jar"/>
+            </fileset>
+        </unzip>
+        <path id="plugin.location">
+            <fileset dir="${extract.dir}" includes="**/rhq-jbossas-plugin*.jar"/>
+        </path>
+        <property name="plugin.location" refid="plugin.location"/>
+        <dirname property="plugin.dir" file="${plugin.location}"/>
+        <path id="classpath">
+            <fileset dir="${extract.dir}" includes="**/*.jar"/>
+        </path>
+        <pathconvert property="zip.plugin.location" targetos="unix">
+            <path path="${plugin.dir}"/>
+            <mapper>
+                <globmapper from="${extract.dir}/*" to="*"/>
+            </mapper>
+        </pathconvert>
+    </target>
+
+    <target name="compile-plugin" depends="extract-classpath-jars">
+        <javac srcdir="${java.dir}" destdir="${classes.dir}" debug="true" classpathref="classpath" source="1.5"/>
+    </target>
+
+    <target name="jar-as4-plugin" depends="compile-plugin">	
+	<echo message="Plugin version is ${esb.plugin.jar.version}"/>
+        <jar destfile="${build.dir}/${esb.plugin.jar.name}-as4.jar">
+            <fileset dir="${classes.dir}"/>
+            <fileset dir="${resources.dir}"/>
+	    <fileset dir="${basedir}/as4/src/main/resources"/>
+        </jar>
+    </target>
+
+    <target name="jar-as5-plugin" depends="compile-plugin">
+        <echo message="Plugin version is ${esb.plugin.jar.version}"/>
+        <jar destfile="${build.dir}/${esb.plugin.jar.name}-as5.jar">
+            <fileset dir="${classes.dir}"/>
+            <fileset dir="${resources.dir}"/>
+	    <fileset dir="${basedir}/as5/src/main/resources"/>
+        </jar>
+    </target>
+
+    <target name="build-plugins" depends="jar-as4-plugin, jar-as5-plugin"/>
+
+</project>

Deleted: labs/jbossesb/trunk/product/tools/jonplugin/install.sh
===================================================================
--- labs/jbossesb/trunk/product/tools/jonplugin/install.sh	2009-10-24 18:25:51 UTC (rev 29799)
+++ labs/jbossesb/trunk/product/tools/jonplugin/install.sh	2009-10-24 22:34:05 UTC (rev 29800)
@@ -1,6 +0,0 @@
-#!/bin/sh
-rm -rf ~/.m2/repository/org/jboss/on/rhq-jbossesb-plugin
-mvn -Dmaven.test.skip=true clean install
-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
-

Added: labs/jbossesb/trunk/product/tools/jonplugin/ivy.xml
===================================================================
--- labs/jbossesb/trunk/product/tools/jonplugin/ivy.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/tools/jonplugin/ivy.xml	2009-10-24 22:34:05 UTC (rev 29800)
@@ -0,0 +1,15 @@
+<ivy-module version="2.0">
+  <info organisation="org.jboss" module="jbossesb"/>    
+  <dependencies>
+<!--    <dependency org="org.jboss.on" name="jon-agent" rev="2.3.0.GA">
+      <artifact name="jon-agent" type="zip"/>
+    </dependency>
+--> 
+    <dependency org="org.jboss.on" name="jon-plugin-pack-eap" rev="2.3.0.GA">
+      <artifact name="jon-plugin-pack-eap" type="zip"/>
+    </dependency> 
+    <dependency org="org.jboss.on" name="jon-server" rev="2.3.0.GA">
+      <artifact name="jon-server" type="zip"/>
+    </dependency>
+  </dependencies>
+</ivy-module>

Added: labs/jbossesb/trunk/product/tools/jonplugin/ivysettings.xml
===================================================================
--- labs/jbossesb/trunk/product/tools/jonplugin/ivysettings.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/tools/jonplugin/ivysettings.xml	2009-10-24 22:34:05 UTC (rev 29800)
@@ -0,0 +1,8 @@
+<ivysettings>
+    <settings defaultResolver="jonQA"/>
+    <resolvers>
+        <url name="jonQA">
+            <artifact pattern="http://jon01.qa.atl2.redhat.com:8042/dist/qa/[artifact]-[revision].[ext]"/>
+        </url>
+    </resolvers>
+</ivysettings>

Added: labs/jbossesb/trunk/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java
===================================================================
--- labs/jbossesb/trunk/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java	                        (rev 0)
+++ labs/jbossesb/trunk/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java	2009-10-24 22:34:05 UTC (rev 29800)
@@ -0,0 +1,20 @@
+package org.jbosson.plugins.jbossesb;
+
+import java.io.File;
+import org.rhq.core.domain.configuration.Configuration;
+import org.rhq.core.pluginapi.inventory.ResourceContext;
+import org.rhq.plugins.jbossas5.ApplicationServerComponent;
+
+public class ESB5Component extends ESBComponent
+{
+  public File getConfigurationPath()
+  {
+    ApplicationServerComponent jass = (ApplicationServerComponent)this.resourceContext.getParentResourceComponent();
+    ResourceContext rc = jass.getResourceContext();
+    Configuration config = rc.getPluginConfiguration();
+
+    String configurationPath = config.getSimpleValue("homeDir", null);
+
+    return new File(configurationPath);
+  }
+}

Deleted: labs/jbossesb/trunk/product/tools/jonplugin/src/main/resources/META-INF/rhq-plugin.xml
===================================================================
--- labs/jbossesb/trunk/product/tools/jonplugin/src/main/resources/META-INF/rhq-plugin.xml	2009-10-24 18:25:51 UTC (rev 29799)
+++ labs/jbossesb/trunk/product/tools/jonplugin/src/main/resources/META-INF/rhq-plugin.xml	2009-10-24 22:34:05 UTC (rev 29800)
@@ -1,221 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<plugin name="JBossESB"
-        displayName="JBossESB"
-        package="org.jbosson.plugins.jbossesb"
-        description="Provides monitoring of JBoss ESB"
-        version="2.0"
-        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-        xmlns="urn:xmlns:rhq-plugin"
-        xmlns:c="urn:xmlns:rhq-configuration">
-
-   <depends plugin="JMX" />
-   <depends plugin="JBossAS" useClasses="true"/>
- 
-   <service name="ESB"
-      discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
-      class="org.jbosson.plugins.jbossesb.ESBComponent"
-      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."/>
-         <c:group name="connection" displayName="Connection Info">
-            <c:simple-property name="namingURL" displayName="Naming Provider URL"
-                               description="The JNP URL with which to connect to the JBoss Application Server instance (e.g. jnp://127.0.0.1:1099)."
-                               default="jnp://127.0.0.1:1099"/>
-            <c:simple-property name="principal" required="false" description="The name of the principal (i.e. user) to authenticate."/>
-            <c:simple-property name="credentials" type="password" required="false"
-                               description="The credentials (i.e. password) that should be used to authenticate the principal."/>
-            <c:simple-property name="jbossHomeDir" displayName="JBoss Home Directory" type="directory" readOnly="true"
-                               description="The absolute path to the directory where JBossAS is installed (e.g. /opt/jboss-4.2.2.GA)."/>
-            <c:simple-property name="configurationPath" displayName="Configuration Path" type="directory" readOnly="true"
-                               description="The path to the configuration directory under which this instance
-                                            operates (e.g. /opt/jboss-4.2.2.GA/server/default); if the path is not absolute,
-                                            then it will be resolved relative to {jbossHomeDir}."/>
-            <c:simple-property name="configurationSet" displayName="Configuration Set" required="false"
-                               description="The name of the server configuration (e.g. minimal, default, or all);
-                                            if not specified, it will default to the last path component of {configurationPath}."
-                               default="default"/>
-         </c:group>
-      </plugin-configuration>
-      <operation name="start" displayName="Start deployment" description="Start the JBoss ESB deployment"/>
-      <operation name="stop" displayName="Stop deployment" description="Stop the JBoss ESB deployment"/>
-      <operation name="create" displayName="Move .esb deployment into the create state" description="Move the .esb deployment into the create state"/>
-      <operation name="destroy" displayName="Move .esb deployment into the destroy state" description="Move the .esb deployment into the destroy state"/>
-      <operation name="resetCounts" displayName="Reset Counts" description="Reset the overall counter"/>
-      <metric displayName="Message Count (Successful)" property="SuccessfulMessageCount" category="utilization" displayType="summary" measurementType="dynamic" description="Overall Successful Message Count"/>
-      <metric displayName="Message Count (Total)" property="TotalMessageCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Total Message Count"/>
-      <metric displayName="Message Counts (Failed)" property="FailedMessageCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Failed Message Count"/>
-      <metric displayName="Processed Bytes" property="ProcessedBytes" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Processed"/>
-      <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"/>
-      <content name="library" displayName="Jar Library" category="deployable"
-                description="Library Jar files deployed in JBoss AS">
-         <configuration>
-            <c:simple-property name="version" readOnly="true" description="The version declared by the JAR's manifest."/>
-            <c:simple-property name="title" readOnly="true" description="The title declared by the JAR's manifest."/>
-            <c:simple-property name="url" readOnly="true" description="The url declared by the JAR's manifest."/>
-            <c:simple-property name="vendor" readOnly="true" description="The vendor declared by the JAR's manifest."/>
-            <c:simple-property name="classpath" readOnly="true"
-                               description="The classpath declared by the JAR's manifest."/>
-            <c:simple-property name="sealed" readOnly="true" type="boolean" description="True if the JAR is sealed."/>
-         </configuration>
-      </content>
-   <service name="JBoss ESB Deployment"
-      discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
-      class="org.jbosson.plugins.jbossesb.DeploymentComponent"
-      description="Statistics for JBoss ESB Deployments"
-      creationDataType="content"	
-      createDeletePolicy="both">
-
-      <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="descriptionTemplate" default="JBoss ESB statistics for the {deployment} deployment."/>
-         <c:simple-property name="deployment" type="string" description="the JBoss ESB deployment name"/>
-                <c:group name="advanced" displayName="Advanced" hiddenByDefault="true">
-                    <c:simple-property name="extension" default="esb" readOnly="true"/>
-                    <c:simple-property name="descriptionTemplate" default="ESB package" readOnly="true"/>
-                </c:group>
-      </plugin-configuration>
-     <operation name="start" displayName="Start deployment" description="Start the JBoss ESB deployment"/>
-     <operation name="stop" displayName="Stop deployment" description="Stop the JBoss ESB deployment"/>
-     <metric property="Name" displayName="Deployment Type" dataType="trait" displayType="summary" defaultOn="true" description="Type 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 deployments are .esb packages deployed within a server.    
-          ]]>
-       </help-->
-         <content name="file" displayName="ESB Package" category="deployable" isCreationType="true">
-            <configuration>
-               <c:group name="deployment" displayName="Deployment Options">
-                  <c:simple-property name="deployZipped" displayName="Deploy Zipped" type="boolean" default="false" required="true"
-                                     description="Indicates if the ESB is deployed either zipped or exploded."/>
-                  <c:simple-property name="deployDirectory" displayName="Deploy Directory" type="string" default="deploy" required="true"
-                                     description="Path to deploy the file. This must be a path relative to the AS configuration set in use."/>
-               </c:group>
-            </configuration>
-         </content>
-      <service name="JBoss ESB Services"
-         discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
-         class="org.jbosson.plugins.jbossesb.ServiceComponent"
-         description="JBoss ESB Services">
-         <plugin-configuration>
-              <c:simple-property name="objectName" readOnly="true" default="jboss.esb:category=MessageCounter,deployment={deployment},service-category=%categoryName%,service-name=%serviceName%"/>
-              <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"/>
-	      <c:simple-property name="categoryName" type="string" description="the JBoss ESB service category name"/>
-         </plugin-configuration>
-         
-         <operation name="resetCounter" displayName="Reset the message counter" description="Reset the message counter"/>
-         <metric displayName="Message Count" property="overallMessageCount" category="utilization" displayType="summary" measurementType="dynamic" description="Message Count"/>
-         <metric displayName="Message Count (avg)" property="overallMessageCountByMinute" category="utilization" displayType="summary" measurementType="trendsup" description="Message Count (avg)"/>
-	 	 <metric displayName="Overall Bytes" property="overallBytes" units="bytes" category="utilization" displayType="summary"
-defaultOn="true" measurementType="dynamic" description="Overall Bytes"/>
-	 	 <metric displayName="Overall Bytes Processed" property="bytesProcessed" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Processed"/>
-	 	 <metric displayName="Overall Bytes Failed" property="bytesFailed" units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Bytes Failed"/>
-		 <metric displayName="Overall Service Time Processed" property="overallTimeProcessed" units="milliseconds" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic" description="Overall Service Time Processed"/> 
-         <event name="ESBMessageAlert"/>
-         <help>
-             <![CDATA[
-	         JBoss ESB Services are the services available within a deployment.
-             ]]>
-         </help>
-
-	 <service name="JBoss ESB Listeners"
-		discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
-		class="ListenerComponent"
-		description="JBoss ESB Listeners">
-	     <plugin-configuration>
-		     <c:simple-property name="objectName" readOnly="true" default="jboss.esb:deployment=%deploymentName%,listener-name=%listenerName%,service-category=%serviceCategory%,service-name={serviceName}"/>
-		     <c:simple-property name="nameTemplate" default="{listenerName} - {serviceCategory} 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"/> 
-		     <c:simple-property name="listenerName" type="string" description="the name of the Listener"/>
-		     <c:simple-property name="deploymentName" type="string" description="name of deployment"/>
-             </plugin-configuration>
-             <operation name="start" displayName="Start listener" description="Start the listener."/>
-             <operation name="stop" displayName="Stop listener" description="Stop 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="JBoss ESB Gateways"
-		discovery="org.jbosson.plugins.jbossesb.ESBDiscoveryComponent"
-		class="ListenerComponent"
-		description="JBoss ESB Listeners">
-	     <plugin-configuration>
-		     <c:simple-property name="objectName" readOnly="true" default="jboss.esb:deployment=%deploymentName%,gateway-name=%listenerName%,target-service-category=%serviceCategory%,target-service-name={serviceName}"/>
-		     <c:simple-property name="nameTemplate" default="{listenerName} - {serviceCategory} 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"/> 
-		     <c:simple-property name="listenerName" type="string" description="the name of the Listener"/>
-		     <c:simple-property name="deploymentName" type="string" description="name of deployment"/>
-             </plugin-configuration>
-             <operation name="start" displayName="Start listener" description="Start the listener."/>
-             <operation name="stop" displayName="Stop listener" description="Stop the listener."/>
-             <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="target-service-category" displayName="Service Category" dataType="trait" displayType="summary" defaultOn="true" description="Service Category"/>
-             <metric property="target-service-description" displayName="Service Description" dataType="trait" displayType="summary" defaultOn="true" description="Service Description"/>
-             <metric property="target-service-name" displayName="Service Name" dataType="trait" displayType="summary" defaultOn="true" description="Service Name"/>
-             <help>
-             <![CDATA[
-             JBoss ESB Gateway 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="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="Message Count" property="overallMessagesCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
-		<metric displayName="Message Count (avg)" property="overallMessagesCountMinute" category="utilization" 
-displayType="summary" defaultOn="true" measurementType="trendsup"/>
-	        <metric displayName="Messages Failed" property="failedProcessedCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
-	        <metric displayName="Messages Failed (avg)" property="failedProcessedCountMinute" category="utilization" displayType="summary" defaultOn="true" measurementType="trendsup"/>
-	        <metric displayName="Messages Successfully Processed" property="successProcessedCount" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
-	        <metric displayName="Messages Successfully Processed (avg)" property="successProcessedCountMinute" category="utilization" displayType="summary" defaultOn="true" measurementType="trendsup"/>
-		<metric displayName="Overall Bytes" property="overallBytesProcessed" units="bytes" category="utilization"
-displayType="summary" defaultOn="true" measurementType="dynamic"/>
-	 	<metric displayName="Overall Bytes Processed" property="bytesSuccessful"  units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
-		<metric displayName="Overall Bytes Failed" property="overallBytesFailed"  units="bytes" category="utilization" displayType="summary" defaultOn="true" measurementType="dynamic"/>
-	        <metric displayName="Processing Time" property="processingTime" units="milliseconds" defaultOn="true" category="performance"/>
-         	<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