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">

<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>

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