[jboss-cvs] JBossAS SVN: r88260 - in branches/Branch_5_x: messaging/src/etc and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 6 09:12:43 EDT 2009


Author: emuckenhuber
Date: 2009-05-06 09:12:42 -0400 (Wed, 06 May 2009)
New Revision: 88260

Added:
   branches/Branch_5_x/messaging/src/etc/xmdesc/
   branches/Branch_5_x/messaging/src/etc/xmdesc/Queue-xmbean.xml
   branches/Branch_5_x/messaging/src/etc/xmdesc/Topic-xmbean.xml
Modified:
   branches/Branch_5_x/build/build-distr.xml
Log:
[JBAS-6850] override jms xmbean descriptors

Modified: branches/Branch_5_x/build/build-distr.xml
===================================================================
--- branches/Branch_5_x/build/build-distr.xml	2009-05-06 13:08:26 UTC (rev 88259)
+++ branches/Branch_5_x/build/build-distr.xml	2009-05-06 13:12:42 UTC (rev 88260)
@@ -676,6 +676,16 @@
            <include name="jboss-messaging-int.jar"/>
         </fileset>
      </copy>
+  	
+  	<!--
+  		JBAS-6850: Replace Queue and Topic xmbean defintion.  
+  	-->
+  	 <jar destfile="${install.all.lib}/jboss-messaging.jar" update="true">
+  	 	<fileset dir="${_module.output}/etc/">
+  	 		<include name="xmdesc/Queue-xmbean.xml"/>
+  	 		<include name="xmdesc/Topic-xmbean.xml"/>
+  	 	</fileset>
+  	 </jar>
 
      <!--
           Security metadata, same for "all" and "default" configurations.

Added: branches/Branch_5_x/messaging/src/etc/xmdesc/Queue-xmbean.xml
===================================================================
--- branches/Branch_5_x/messaging/src/etc/xmdesc/Queue-xmbean.xml	                        (rev 0)
+++ branches/Branch_5_x/messaging/src/etc/xmdesc/Queue-xmbean.xml	2009-05-06 13:12:42 UTC (rev 88260)
@@ -0,0 +1,292 @@
+<?xml version="1.0" encoding="UTF-8"?>
+   <!DOCTYPE mbean PUBLIC
+      "-//JBoss//DTD JBOSS XMBEAN 1.2//EN"
+      "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd">
+
+<!-- $Id: Queue-xmbean.xml 3332 2007-11-15 09:32:43Z timfox $ -->
+
+<mbean>
+   <description>A deployable JBoss Messaging Queue</description>
+   <class>org.jboss.jms.server.destination.QueueService</class>
+
+   <!-- Managed constructors -->
+
+   <constructor>
+      <name>Queue</name>
+   </constructor>
+
+   <constructor>
+      <name>Queue</name>
+      <parameter>
+         <name>IsCreatedProgrammatically</name>
+         <type>boolean</type>
+      </parameter>
+   </constructor>
+   
+   <!-- Managed attributes -->
+
+   <attribute access="read-only" getMethod="getName">
+      <description>The destination name</description>
+      <name>Name</name>
+      <type>java.lang.String</type>
+   </attribute>
+
+   <!-- This attribute is writable to allow configuring an arbitrary JNDI name in the queue's
+        service deployment descriptor. Any attempt to change the attribute after initialization
+        will be ignored.
+   -->
+   <attribute access="read-write" getMethod="getJNDIName" setMethod="setJNDIName">
+      <description>The destination's JNDI name</description>
+      <name>JNDIName</name>
+      <type>java.lang.String</type>
+   </attribute>
+
+   <!-- ServerPeer ObjectName is configured as a dependency optional-attribute-name, this is the
+        only reason for this attribute to be writable. Any write attempt on this attribute after
+        initialization will be ignored.
+   -->
+   <attribute access="read-write" getMethod="getServerPeer" setMethod="setServerPeer">
+      <description>The ObjectName of the server peer this destination was deployed on</description>
+      <name>ServerPeer</name>
+      <type>javax.management.ObjectName</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getDLQ" setMethod="setDLQ">
+      <description>The DLQ for this queue, overrides the default DLQ on the server peer</description>
+      <name>DLQ</name>
+      <type>javax.management.ObjectName</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getExpiryQueue" setMethod="setExpiryQueue">
+      <description>The expiry queue for this queue, overrides the default expiry queue on the server peer</description>
+      <name>ExpiryQueue</name>
+      <type>javax.management.ObjectName</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getRedeliveryDelay" setMethod="setRedeliveryDelay">
+      <description>The delay before redelivering</description>
+      <name>RedeliveryDelay</name>
+      <type>long</type>
+   </attribute>   
+
+   <attribute access="read-write" getMethod="getSecurityConfig" setMethod="setSecurityConfig">
+      <description>The destination's security configuration</description>
+      <name>SecurityConfig</name>
+      <type>org.w3c.dom.Element</type>
+   </attribute>
+
+   <attribute access="read-only" getMethod="isCreatedProgrammatically">
+      <description>True if this destination was created programmatically</description>
+      <name>CreatedProgrammatically</name>
+      <type>boolean</type>
+   </attribute>
+
+   <attribute access="read-only" getMethod="getMessageCount">
+      <description>The number of messages in the queue</description>
+      <name>MessageCount</name>
+      <type>int</type>
+   </attribute>
+   
+   <attribute access="read-only" getMethod="getDeliveringCount">
+      <description>The number of messages currently being delivered</description>
+      <name>DeliveringCount</name>
+      <type>int</type>
+   </attribute>   
+   
+   <attribute access="read-only" getMethod="getScheduledMessageCount">
+      <description>The number of scheduled messages in the queue</description>
+      <name>ScheduledMessageCount</name>
+      <type>int</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getMaxSize" setMethod="setMaxSize">
+      <description>The maximum number of messages this queue can hold before they are dropped</description>
+      <name>MaxSize</name>
+      <type>int</type>
+   </attribute>   
+
+   <attribute access="read-write" getMethod="getFullSize" setMethod="setFullSize">
+      <description>The in-memory message limit, can only be set when queue is stopped</description>
+      <name>FullSize</name>
+      <type>int</type>
+   </attribute>
+
+   <attribute access="read-write" getMethod="getPageSize" setMethod="setPageSize">
+      <description>The paging size, can only be set when queue is stopped</description>
+      <name>PageSize</name>
+      <type>int</type>
+   </attribute>
+
+   <attribute access="read-write" getMethod="getDownCacheSize" setMethod="setDownCacheSize">
+      <description>The write-cache size, can only be set when queue is stopped</description>
+      <name>DownCacheSize</name>
+      <type>int</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="isClustered" setMethod="setClustered">
+      <description>Is this a clustered destination?</description>
+      <name>Clustered</name>
+      <type>boolean</type>
+   </attribute>   
+   
+   <attribute access="read-only" getMethod="getMessageCounter">
+      <description>Get the message counter for the queue</description>
+      <name>MessageCounter</name>
+      <type>org.jboss.jms.server.messagecounter.MessageCounter</type>
+   </attribute>
+   
+   <attribute access="read-only" getMethod="getMessageStatistics">
+      <description>Get the message statistics for the queue</description>
+      <name>MessageStatistics</name>
+      <type>org.jboss.jms.server.messagecounter.MessageStatistics</type>
+   </attribute>   
+   
+   <attribute access="read-write" getMethod="getMessageCounterHistoryDayLimit" setMethod="setMessageCounterHistoryDayLimit">
+      <description>The day limit for the message counter</description>
+      <name>MessageCounterHistoryDayLimit</name>
+      <type>int</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getMaxDeliveryAttempts" setMethod="setMaxDeliveryAttempts">
+      <description>The maximum delivery attempts to the queue</description>
+      <name>MaxDeliveryAttempts</name>
+      <type>int</type>
+   </attribute>
+   
+   <attribute access="read-only" getMethod="getConsumerCount">
+      <description>The number of consumers on the queue</description>
+      <name>ConsumerCount</name>
+      <type>int</type>
+   </attribute>   
+   
+   <!-- instance access -->
+
+   <attribute access="read-only" getMethod="getInstance">
+      <description>The instance to be accessed by select plugins via a typed hard reference</description>
+      <name>Instance</name>
+      <type>org.jboss.messaging.core.contract.MessagingComponent</type>
+   </attribute>
+   
+   <!-- Managed operations -->
+
+   <operation>
+      <description>JBoss Service lifecycle operation</description>
+      <name>create</name>
+   </operation>
+
+   <operation>
+      <description>JBoss Service lifecycle operation</description>
+      <name>start</name>
+   </operation>
+
+   <operation>
+      <description>JBoss Service lifecycle operation</description>
+      <name>stop</name>
+   </operation>
+
+   <operation>
+      <description>JBoss Service lifecycle operation</description>
+      <name>destroy</name>
+   </operation>
+   
+   <!-- Expose jbossInternalLifecycle -->
+   <operation>
+      <description>JBoss internal lifecycle operation</description>
+      <name>jbossInternalLifecycle</name>
+      <parameter>
+         <description>The lifecycle method</description>
+         <name>method</name>
+         <type>java.lang.String</type>
+      </parameter>
+   </operation>
+
+   <operation>
+      <description>Remove all messages in the queue</description>
+      <name>removeAllMessages</name>
+   </operation>
+
+   <operation>
+      <description>List all messages</description>
+      <name>listAllMessages</name>
+      <return-type>java.util.List</return-type>
+   </operation>
+   
+   <operation>
+      <description>List all messages with selector</description>
+      <name>listAllMessages</name>
+      <parameter>
+         <description>Expression to define the selector</description>
+         <name>selector</name>
+         <type>java.lang.String</type>
+      </parameter>
+      <return-type>java.util.List</return-type>
+   </operation>   
+   
+   <operation>
+      <description>List durable messages</description>
+      <name>listDurableMessages</name>
+      <return-type>java.util.List</return-type>
+   </operation>
+   
+   <operation>
+      <description>List durable messages with selector</description>
+      <name>listDurableMessages</name>
+      <parameter>
+         <description>Expression to define the selector</description>
+         <name>selector</name>
+         <type>java.lang.String</type>
+      </parameter>
+      <return-type>java.util.List</return-type>
+   </operation>  
+   
+   <operation>
+      <description>List non durable messages</description>
+      <name>listNonDurableMessages</name>
+      <return-type>java.util.List</return-type>
+   </operation>
+   
+   <operation>
+      <description>List non durable messages with selector</description>
+      <name>listNonDurableMessages</name>
+      <parameter>
+         <description>Expression to define the selector</description>
+         <name>selector</name>
+         <type>java.lang.String</type>
+      </parameter>
+      <return-type>java.util.List</return-type>
+   </operation>      
+
+   <operation>
+      <description>List all messages which meet the condition described in selector</description>
+      <name>listMessages</name>
+      <parameter>
+         <description>Expression to define the selector</description>
+         <name>selector</name>
+         <type>java.lang.String</type>
+      </parameter>
+      <return-type>java.util.List</return-type>
+   </operation>
+   
+   <operation>
+      <description>Reset the message counter</description>
+      <name>resetMessageCounter</name>
+   </operation>   
+   
+   <operation>
+      <description>Reset the message counter history</description>
+      <name>resetMessageCounterHistory</name>
+   </operation>   
+   
+   <operation>
+      <description>Get the message counter as HTML</description>
+      <name>listMessageCounterAsHTML</name>
+      <return-type>java.lang.String</return-type>
+   </operation>
+   
+   <operation>
+      <description>Get the message counter history as HTML</description>
+      <name>listMessageCounterHistoryAsHTML</name>
+      <return-type>java.lang.String</return-type>
+   </operation>       
+   
+</mbean>

Added: branches/Branch_5_x/messaging/src/etc/xmdesc/Topic-xmbean.xml
===================================================================
--- branches/Branch_5_x/messaging/src/etc/xmdesc/Topic-xmbean.xml	                        (rev 0)
+++ branches/Branch_5_x/messaging/src/etc/xmdesc/Topic-xmbean.xml	2009-05-06 13:12:42 UTC (rev 88260)
@@ -0,0 +1,332 @@
+<?xml version="1.0" encoding="UTF-8"?>
+   <!DOCTYPE mbean PUBLIC
+      "-//JBoss//DTD JBOSS XMBEAN 1.2//EN"
+      "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd">
+
+<mbean>
+   <description>A deployable JBoss Messaging Topic</description>
+   <class>org.jboss.jms.server.destination.TopicService</class>
+
+   <!-- Managed constructors -->
+
+   <constructor>
+      <name>Topic</name>
+   </constructor>
+
+   <constructor>
+      <name>Topic</name>
+      <parameter>
+         <name>IsCreatedProgrammatically</name>
+         <type>boolean</type>
+      </parameter>
+   </constructor>
+
+   <!-- Managed attributes -->
+
+   <attribute access="read-only" getMethod="getName">
+      <description>The destination name</description>
+      <name>Name</name>
+      <type>java.lang.String</type>
+   </attribute>
+
+   <!-- This attribute is writable to allow configuring an arbitrary JNDI name in the topic's
+        service deployment descriptor. Any attempt to change the attribute after initialization
+        will be ignored.
+   -->
+   <attribute access="read-write" getMethod="getJNDIName" setMethod="setJNDIName">
+      <description>The destination's JNDI name</description>
+      <name>JNDIName</name>
+      <type>java.lang.String</type>
+   </attribute>
+
+   <!-- ServerPeer ObjectName is configured as a dependency optional-attribute-name, this is the
+        only reason for this attribute to be writable. Any write attempt on this attribute after
+        initialization will be ignored.
+   -->
+   <attribute access="read-write" getMethod="getServerPeer" setMethod="setServerPeer">
+      <description>The ObjectName of the server peer this destination was deployed on</description>
+      <name>ServerPeer</name>
+      <type>javax.management.ObjectName</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getDLQ" setMethod="setDLQ">
+      <description>The DLQ for this queue, overrides the default DLQ on the server peer</description>
+      <name>DLQ</name>
+      <type>javax.management.ObjectName</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getExpiryQueue" setMethod="setExpiryQueue">
+      <description>The expiry queue for this queue, overrides the default expiry queue on the server peer</description>
+      <name>ExpiryQueue</name>
+      <type>javax.management.ObjectName</type>
+   </attribute>   
+   
+   <attribute access="read-write" getMethod="getRedeliveryDelay" setMethod="setRedeliveryDelay">
+      <description>The delay before redelivering</description>
+      <name>RedeliveryDelay</name>
+      <type>long</type>
+   </attribute>    
+
+   <attribute access="read-write" getMethod="getSecurityConfig" setMethod="setSecurityConfig">
+      <description>The destination's security configuration</description>
+      <name>SecurityConfig</name>
+      <type>org.w3c.dom.Element</type>
+   </attribute>
+
+   <attribute access="read-only" getMethod="isCreatedProgrammatically">
+      <description>True if this destination was created programmatically</description>
+      <name>CreatedProgrammatically</name>
+      <type>boolean</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getMaxSize" setMethod="setMaxSize">
+      <description>The maximum number of messages subscriptions of this topic can hold before they are dropped</description>
+      <name>MaxSize</name>
+      <type>int</type>
+   </attribute>    
+
+   <attribute access="read-write" getMethod="getFullSize" setMethod="setFullSize">
+      <description>The in-memory message limit, can only be set when topic is stopped</description>
+      <name>FullSize</name>
+      <type>int</type>
+   </attribute>
+
+   <attribute access="read-write" getMethod="getPageSize" setMethod="setPageSize">
+      <description>The paging size, can only be set when topic is stopped</description>
+      <name>PageSize</name>
+      <type>int</type>
+   </attribute>
+
+   <attribute access="read-write" getMethod="getDownCacheSize" setMethod="setDownCacheSize">
+      <description>The write-cache size, can only be set when topic is stopped</description>
+      <name>DownCacheSize</name>
+      <type>int</type>
+   </attribute>
+
+   <attribute access="read-write" getMethod="isClustered" setMethod="setClustered">
+      <description>Is this a clustered destination?</description>
+      <name>Clustered</name>
+      <type>boolean</type>
+   </attribute>
+   
+   <attribute access="read-write" getMethod="getMessageCounterHistoryDayLimit" setMethod="setMessageCounterHistoryDayLimit">
+      <description>The day limit for the message counters of this topic</description>
+      <name>MessageCounterHistoryDayLimit</name>
+      <type>int</type>
+   </attribute>
+
+   <attribute access="read-write" getMethod="getMaxDeliveryAttempts" setMethod="setMaxDeliveryAttempts">
+      <description>The maximum delivery attempts to the topic</description>
+      <name>MaxDeliveryAttempts</name>
+      <type>int</type>
+   </attribute>
+   
+   <attribute access="read-only" getMethod="getMessageCounters">
+      <description>The message counters for the topic</description>
+      <name>MessageCounters</name>
+      <type>java.util.List</type>
+   </attribute>  
+   
+   <attribute access="read-only" getMethod="getAllMessageCount">
+      <description>The count of all messages in all subscriptions of this topic</description>
+      <name>AllMessageCount</name>
+      <type>int</type>
+   </attribute> 
+   
+   <attribute access="read-only" getMethod="getDurableMessageCount">
+      <description>The count of all messages in all durable subscriptions of this topic</description>
+      <name>DurableMessageCount</name>
+      <type>int</type>
+   </attribute>   
+   
+   <attribute access="read-only" getMethod="getNonDurableMessageCount">
+      <description>The count of all messages in all non durable subscriptions of this topic</description>
+      <name>NonDurableMessageCount</name>
+      <type>int</type>
+   </attribute>      
+   
+   <attribute access="read-only" getMethod="getAllSubscriptionsCount">
+      <description>The count of all subscriptions of this topic</description>
+      <name>AllSubscriptionsCount</name>
+      <type>int</type>
+   </attribute> 
+   
+   <attribute access="read-only" getMethod="getDurableSubscriptionsCount">
+      <description>The count of all durable subscriptions of this topic</description>
+      <name>DurableSubscriptionsCount</name>
+      <type>int</type>
+   </attribute>    
+   
+   <attribute access="read-only" getMethod="getNonDurableSubscriptionsCount">
+      <description>The count of all non durable subscriptions of this topic</description>
+      <name>NonDurableSubscriptionsCount</name>
+      <type>int</type>
+   </attribute>    
+   
+   
+   <!-- instance access -->
+
+   <attribute access="read-only" getMethod="getInstance">
+      <description>The instance to be accessed by select plugins via a typed hard reference</description>
+      <name>Instance</name>
+      <type>org.jboss.messaging.core.contract.MessagingComponent</type>
+   </attribute>
+
+   <!-- Managed operations -->
+
+   <operation>
+      <description>JBoss Service lifecycle operation</description>
+      <name>create</name>
+   </operation>
+
+   <operation>
+      <description>JBoss Service lifecycle operation</description>
+      <name>start</name>
+   </operation>
+
+   <operation>
+      <description>JBoss Service lifecycle operation</description>
+      <name>stop</name>
+   </operation>
+
+   <operation>
+      <description>JBoss Service lifecycle operation</description>
+      <name>destroy</name>
+   </operation>
+
+   <!-- Expose jbossInternalLifecycle -->
+   <operation>
+      <description>JBoss internal lifecycle operation</description>
+      <name>jbossInternalLifecycle</name>
+      <parameter>
+         <description>The lifecycle method</description>
+         <name>method</name>
+         <type>java.lang.String</type>
+      </parameter>
+   </operation>
+
+   <operation>
+      <description>Remove all messages</description>
+      <name>removeAllMessages</name>
+   </operation>
+
+   <operation>
+      <description>Return all subscriptions for the topic</description>
+      <name>listAllSubscriptions</name>
+      <return-type>java.util.List</return-type>
+   </operation>
+   
+   <operation>
+      <description>Return all durable subscriptions for the topic</description>
+      <name>listDurableSubscriptions</name>
+      <return-type>java.util.List</return-type>
+   </operation> 
+   
+   <operation>
+      <description>Return all non durable subscriptions for the topic</description>
+      <name>listNonDurableSubscriptions</name>
+      <return-type>java.util.List</return-type>
+   </operation>     
+   
+   <operation>
+      <description>Return all subscriptions for the topic in HTML</description>
+      <name>listAllSubscriptionsAsHTML</name>
+      <return-type>java.lang.String</return-type>
+   </operation>
+   
+   <operation>
+      <description>Return all durable subscriptions for the topic in HTML</description>
+      <name>listDurableSubscriptionsAsHTML</name>
+      <return-type>java.lang.String</return-type>
+   </operation> 
+   
+   <operation>
+      <description>Return all non durable subscriptions for the topic in HTML</description>
+      <name>listNonDurableSubscriptionsAsHTML</name>
+      <return-type>java.lang.String</return-type>
+   </operation>      
+
+   <operation>
+      <description>List all messages for the specified subscription</description>
+      <name>listAllMessages</name>
+      <parameter>
+         <description>The subscription id</description>
+         <name>subscriptionID</name>
+         <type>java.lang.String</type>
+      </parameter>     
+      <return-type>java.util.List</return-type>
+   </operation>
+   
+   <operation>
+      <description>List all messages for the specified subscription with the specified selector</description>
+      <name>listAllMessages</name>
+      <parameter>
+         <description>The subscription id</description>
+         <name>subscriptionID</name>
+         <type>java.lang.String</type>
+      </parameter>     
+      <parameter>
+         <description>The selector</description>
+         <name>selector</name>
+         <type>java.lang.String</type>
+      </parameter>
+      <return-type>java.util.List</return-type>
+   </operation>   
+   
+   
+   <operation>
+      <description>List all durable messages for the specified subscription</description>
+      <name>listDurableMessages</name>
+      <parameter>
+         <description>The subscription id</description>
+         <name>subscriptionID</name>
+         <type>java.lang.String</type>
+      </parameter>     
+      <return-type>java.util.List</return-type>
+   </operation>
+   
+   <operation>
+      <description>List all durable messages for the specified subscription with the specified selector</description>
+      <name>listDurableMessages</name>
+      <parameter>
+         <description>The subscription id</description>
+         <name>subscriptionID</name>
+         <type>java.lang.String</type>
+      </parameter>     
+      <parameter>
+         <description>The selector</description>
+         <name>selector</name>
+         <type>java.lang.String</type>
+      </parameter>
+      <return-type>java.util.List</return-type>
+   </operation>  
+   
+   <operation>
+      <description>List all non durable messages for the specified subscription</description>
+      <name>listNonDurableMessages</name>
+      <parameter>
+         <description>The subscription id</description>
+         <name>subscriptionID</name>
+         <type>java.lang.String</type>
+      </parameter>     
+      <return-type>java.util.List</return-type>
+   </operation>
+   
+   <operation>
+      <description>List all non durable messages for the specified subscription with the specified selector</description>
+      <name>listNonDurableMessages</name>
+      <parameter>
+         <description>The subscription id</description>
+         <name>subscriptionID</name>
+         <type>java.lang.String</type>
+      </parameter>     
+      <parameter>
+         <description>The selector</description>
+         <name>selector</name>
+         <type>java.lang.String</type>
+      </parameter>
+      <return-type>java.util.List</return-type>
+   </operation>     
+   
+
+</mbean>




More information about the jboss-cvs-commits mailing list