01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2006 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: BaseClusterMBean.java 9343 2006-08-03 12:06:30Z durieuxp $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.management.cluster;
25:
26: import javax.management.JMException;
27:
28: /**
29: * Implements MBean interface for different Cluster MBean types
30: * @author Adriana Danes
31: */
32: public interface BaseClusterMBean {
33:
34: /**
35: * @return the cluster's current state
36: */
37: String getState();
38:
39: /**
40: * @return the cluster name
41: */
42: String getName();
43:
44: /**
45: * @return the members number
46: */
47: int getNbMembers();
48:
49: /**
50: * @return the member OBJECT_NAME's
51: */
52: String[] getMembers();
53:
54: /**
55: * Add a new server in the cluster (jonasAdmin)
56: * @param name logical name of the server
57: * @param array of urls for connection
58: * @param clusterd possible clusterdaemon managing the server
59: */
60: public void addServer(String name, String[] urls, String clusterd)
61: throws JMException;
62:
63: /**
64: * remove a server from the cluster (jonasAdmin)
65: * @param name logical name of the server
66: */
67: public void removeServer(String name) throws JMException;
68:
69: public void startit() throws JMException;
70:
71: public void stopit() throws JMException;
72:
73: public void deployModule(String filename) throws JMException;
74:
75: public void undeployModule(String filename) throws JMException;
76:
77: public void uploadFile(String filename, boolean replaceExisting)
78: throws JMException;
79:
80: public void uploadDeployModule(String filename,
81: boolean replaceExisting) throws JMException;
82: }
|