1 45 package org.exolab.jms.tools.admin; 46 47 import java.util.Enumeration ; 48 49 50 62 public abstract class AbstractAdminConnection { 63 64 protected static AbstractAdminConnection _instance = null; 65 66 71 public static AbstractAdminConnection instance() { 72 return _instance; 73 } 74 75 82 public abstract int getDurableConsumerMessageCount(String topic, 83 String name); 84 85 91 public abstract int getQueueMessageCount(String queue); 92 93 100 public abstract boolean addDurableConsumer(String topic, String name); 101 102 108 public abstract boolean removeDurableConsumer(String name); 109 110 117 public abstract Enumeration getDurableConsumers(String destination); 118 119 125 public abstract boolean durableConsumerExists(String name); 126 127 133 public abstract boolean unregisterConsumer(String name); 134 135 143 public abstract boolean isConnected(String name); 144 145 150 public abstract Enumeration getAllDestinations(); 151 152 159 public abstract boolean addDestination(String destination, 160 boolean isQueue); 161 162 169 public abstract boolean removeDestination(String name); 170 171 176 public abstract void stopServer(); 177 178 183 public abstract int purgeMessages(); 184 185 188 public abstract void close(); 189 190 198 public abstract boolean addUser(String username, String password); 199 200 208 public abstract boolean changePassword(String username, String password); 209 210 217 public abstract boolean removeUser(String username); 218 219 224 public abstract Enumeration getAllUsers(); 225 } 226 | Popular Tags |