1 45 package org.exolab.jms.administration; 46 47 import java.util.Vector ; 48 49 import javax.jms.JMSException ; 50 51 52 60 public interface JmsAdminServerIfc { 61 62 70 int getDurableConsumerMessageCount(String topic, String name) 71 throws JMSException ; 72 73 80 int getQueueMessageCount(String queue) throws JMSException ; 81 82 90 boolean addDurableConsumer(String topic, String name) throws JMSException ; 91 92 99 boolean removeDurableConsumer(String name) throws JMSException ; 100 101 108 boolean durableConsumerExists(String name) throws JMSException ; 109 110 118 Vector getDurableConsumers(String destination) throws JMSException ; 119 120 127 boolean unregisterConsumer(String name) throws JMSException ; 128 129 138 boolean isConnected(String name) throws JMSException ; 139 140 146 Vector getAllDestinations() throws JMSException ; 147 148 156 boolean addDestination(String destination, Boolean queue) 157 throws JMSException ; 158 159 167 boolean removeDestination(String name) throws JMSException ; 168 169 176 boolean destinationExists(String name) throws JMSException ; 177 178 183 void stopServer() throws JMSException ; 184 185 191 int purgeMessages() throws JMSException ; 192 193 196 void close(); 197 198 206 boolean addUser(String username, String password) throws JMSException ; 207 208 216 boolean changePassword(String username, String password) 217 throws JMSException ; 218 219 226 boolean removeUser(String username) throws JMSException ; 227 228 234 Vector getAllUsers() throws JMSException ; 235 } 236 | Popular Tags |