001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.mq.server.jmx;
023:
024: import java.util.List;
025:
026: /**
027: * MBean interface.
028: */
029: public interface TopicMBean extends
030: org.jboss.mq.server.jmx.DestinationMBean {
031:
032: java.lang.String getTopicName();
033:
034: int getAllMessageCount();
035:
036: int getDurableMessageCount();
037:
038: int getNonDurableMessageCount();
039:
040: int getAllSubscriptionsCount();
041:
042: int getDurableSubscriptionsCount();
043:
044: int getNonDurableSubscriptionsCount();
045:
046: java.util.List listAllSubscriptions();
047:
048: java.util.List listDurableSubscriptions();
049:
050: java.util.List listNonDurableSubscriptions();
051:
052: java.util.List listMessages(java.lang.String id)
053: throws java.lang.Exception;
054:
055: java.util.List listMessages(java.lang.String id,
056: java.lang.String selector) throws java.lang.Exception;
057:
058: List listNonDurableMessages(String id, String sub) throws Exception;
059:
060: List listNonDurableMessages(String id, String sub, String selector)
061: throws Exception;
062:
063: List listDurableMessages(String id, String name) throws Exception;
064:
065: List listDurableMessages(String id, String name, String selector)
066: throws Exception;
067:
068: long getNonDurableMessageCount(String id, String sub)
069: throws Exception;
070:
071: long getDurableMessageCount(String id, String name)
072: throws Exception;
073:
074: List listNonDurableScheduledMessages(String id, String sub)
075: throws Exception;
076:
077: List listNonDurableScheduledMessages(String id, String sub,
078: String selector) throws Exception;
079:
080: List listDurableScheduledMessages(String id, String name)
081: throws Exception;
082:
083: List listDurableScheduledMessages(String id, String name,
084: String selector) throws Exception;
085:
086: long getNonDurableScheduledMessageCount(String id, String sub)
087: throws Exception;
088:
089: long getDurableScheduledMessageCount(String id, String name)
090: throws Exception;
091:
092: List listNonDurableInProcessMessages(String id, String sub)
093: throws Exception;
094:
095: List listNonDurableInProcessMessages(String id, String sub,
096: String selector) throws Exception;
097:
098: List listDurableInProcessMessages(String id, String name)
099: throws Exception;
100:
101: List listDurableInProcessMessages(String id, String name,
102: String selector) throws Exception;
103:
104: long getNonDurableInProcessMessageCount(String id, String sub)
105: throws Exception;
106:
107: long getDurableInProcessMessageCount(String id, String name)
108: throws Exception;
109: }
|