1 23 package org.objectweb.joram.client.jms.admin; 24 25 import java.io.File ; 26 import java.net.ConnectException ; 27 import java.util.List ; 28 import java.util.Properties ; 29 30 import javax.jms.Destination ; 31 32 import org.objectweb.joram.client.jms.Queue; 33 import org.objectweb.joram.client.jms.Topic; 34 35 38 public interface JoramAdminMBean { 39 40 public void exit(); 41 42 public void setTimeOutToAbortRequest(long timeOut); 43 44 public long getTimeOutToAbortRequest(); 45 46 public DeadMQueue getDefaultDMQ(int serverId) 47 throws ConnectException , AdminException; 48 49 public void setDefaultDMQ(int serverId, DeadMQueue dmq) 50 throws ConnectException , AdminException; 51 52 public DeadMQueue getDefaultDMQ() 53 throws ConnectException , AdminException; 54 55 public List getDestinations(int serverId); 56 57 public List getDestinations(); 58 59 public List getUsers(int serverId); 60 61 public List getUsers(); 62 63 public void createUser(String name, String password) 64 throws AdminException; 65 66 public void createUser(String name, String password, int serverId) 67 throws AdminException; 68 69 public Destination createQueue(String name) 70 throws AdminException; 71 72 public Destination createQueue(int serverId, String name) 73 throws AdminException; 74 75 public Destination createQueue(int serverId, 76 String name, 77 String className, 78 Properties prop) 79 throws AdminException; 80 81 public Destination createTopic(String name) 82 throws AdminException; 83 84 public Destination createTopic(int serverId, String name) 85 throws AdminException; 86 87 public Destination createTopic(int serverId, 88 String name, 89 String className, 90 Properties prop) 91 throws AdminException; 92 93 94 101 public void exportRepositoryToFile(String exportDir) 102 throws AdminException; 103 104 public boolean executeXMLAdminJMX(String path) 105 throws Exception ; 106 } 107 | Popular Tags |