Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?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 2925 2007-07-25 10:43:58Z 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>

   <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>
New to GrepCode? Check out our FAQ X