KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > joram > client > jms > admin > PlatformAdminMBean


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2005 - ScalAgent Distributed Technologies
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA.
19  *
20  * Initial developer(s): Nicolas Tachker (ScalAgent)
21  * Contributor(s):
22  */

23 package org.objectweb.joram.client.jms.admin;
24
25 import java.net.ConnectException JavaDoc;
26 import java.net.UnknownHostException JavaDoc;
27 import java.util.List JavaDoc;
28
29
30 /**
31  *
32  */

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