1 23 package org.objectweb.joram.client.jms.admin; 24 25 import java.net.ConnectException ; 26 import java.net.UnknownHostException ; 27 import java.util.List ; 28 29 30 33 public interface PlatformAdminMBean { 34 35 public void connect(javax.jms.TopicConnectionFactory cnxFact, 36 String name, 37 String password) 38 throws ConnectException , AdminException; 39 40 public void connect(String hostName, 41 int port, 42 String name, 43 String password, 44 int cnxTimer, 45 String reliableClass) 46 throws UnknownHostException , ConnectException , AdminException; 47 48 public void connect(String name, String password, int cnxTimer) 49 throws UnknownHostException , ConnectException , AdminException; 50 51 public void collocatedConnect(String name, String password) 52 throws ConnectException , AdminException; 53 54 public void disconnect(); 55 56 public void exit(); 57 58 public void stopServer(int serverId) 59 throws ConnectException , AdminException; 60 61 public void stopServer() 62 throws ConnectException , AdminException; 63 64 public void addServer(int sid, 65 String hostName, 66 String domainName, 67 int port, 68 String serverName) 69 throws ConnectException , AdminException; 70 71 public void removeServer(int sid) 72 throws ConnectException , AdminException; 73 74 public void addDomain(String domainName, 75 int sid, 76 int port) 77 throws ConnectException , AdminException; 78 79 public void removeDomain(String domainName) 80 throws ConnectException , AdminException; 81 82 public String getConfiguration() 83 throws ConnectException , AdminException; 84 85 public List getServersIds(); 86 87 public List getServersIds(String domainName) 88 throws ConnectException , AdminException; 89 90 public String [] getDomainNames(int serverId) 91 throws ConnectException , AdminException; 92 93 public void setDefaultThreshold(int serverId, int threshold) 94 throws ConnectException , AdminException; 95 96 public void setDefaultThreshold(int threshold) 97 throws ConnectException , AdminException; 98 99 public int getDefaultThreshold(int serverId) 100 throws ConnectException , AdminException; 101 102 public int getDefaultThreshold() 103 throws ConnectException , AdminException; 104 105 public int getLocalServerId() 106 throws ConnectException ; 107 108 public String getLocalHost() 109 throws ConnectException ; 110 111 public int getLocalPort() 112 throws ConnectException ; 113 } 114 | Popular Tags |