01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2004 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: DiscoveryServiceImplMBean.java 9838 2006-11-14 15:35:24Z danesa $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.discovery;
25:
26: import javax.management.JMException;
27:
28: /**
29: * Management interface for the discovery service
30: * @author Adriana Danes
31: *
32: */
33: public interface DiscoveryServiceImplMBean {
34: /**
35: * @return the multicast group IP address used by the discovery service
36: */
37: String getMulticastAddress();
38:
39: /**
40: * @return the multicast group port number used by the discovery service
41: */
42: String getMulticastPort();
43:
44: /**
45: * @return true if the current server is a discovery master
46: */
47: Boolean getIsDiscoveryMaster();
48:
49: /**
50: * @return the discovery protocol version number
51: */
52: String getDiscoveryProtocolVersion();
53:
54: /**
55: * @return the time-to-live of the discovery multicast
56: */
57: String getDiscoveryTtl();
58:
59: /**
60: * Make this server a discovery master
61: * @throws JMException a JMX exception occured when trying to make current server a discovery master
62: */
63: void startDiscoveryMaster() throws JMException;
64: }
|