KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jmx > JmxService


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999-2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * 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: JmxService.java,v 1.8 2005/02/08 08:31:30 danesa Exp $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.jonas.jmx;
26
27 import javax.management.MBeanServer JavaDoc;
28 import javax.management.MBeanServerConnection JavaDoc;
29 import javax.management.remote.JMXServiceURL JavaDoc;
30
31 import org.objectweb.jonas.service.Service;
32
33 /**
34  * JMX Service interface
35  *
36  */

37
38 public interface JmxService extends Service {
39
40     /**
41      * @return The reference of the MBean server
42      */

43     MBeanServer JavaDoc getJmxServer();
44     /**
45      * @return JNDI name of the JOnAS rmi connector associated to the MBeanServer
46      */

47     String JavaDoc getRmiConnectorName();
48
49     /**
50      * @return Array containing the adresses associated to the JMX connector servers
51      */

52     JMXServiceURL JavaDoc[] getConnectorServerURLs();
53
54     /**
55      * @return The current server name
56      */

57     String JavaDoc getJonasServerName();
58
59     /**
60      * @return The current management domain name
61      */

62     String JavaDoc getDomainName();
63
64     /**
65      * Return a connection to the JMX serverver of a given JOnAS server
66      * @param serverName The name of the server a connection to its JMX server its needed
67      * @return A connection to that server's JMX server
68      */

69     MBeanServerConnection JavaDoc getServerConnection(String JavaDoc serverName);
70 }
71
Popular Tags