1 /*
2 * EL4J, the Extension Library for the J2EE, adds incremental enhancements to
3 * the spring framework, http://el4j.sf.net
4 * Copyright (C) 2005 by ELCA Informatique SA, Av. de la Harpe 22-24,
5 * 1000 Lausanne, Switzerland, http://www.elca.ch
6 *
7 * EL4J is published under the GNU Lesser General Public License (LGPL)
8 * Version 2.1. See http://www.gnu.org/licenses/
9 *
10 * This program 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
13 * GNU Lesser General Public License for more details.
14 *
15 * For alternative licensing, please contact info@elca.ch
16 */
17
18 package ch.elca.el4j.services.monitoring.jmx;
19
20 import javax.management.ObjectName;
21
22 /**
23 * The interface of the proxy class for the JVM.
24 *
25 * @svnLink $Revision: 3879 $;$Date: 2009-08-04 15:13:46 +0200 (Di, 04. Aug 2009) $;$Author: swismer $;$URL: https://el4j.svn.sourceforge.net/svnroot/el4j/branches/el4j_3_1/el4j/framework/modules/jmx/src/main/java/ch/elca/el4j/services/monitoring/jmx/JvmMBMBean.java $
26 *
27 * @author Raphael Boog (RBO)
28 * @author Rashid Waraich (RWA)
29 */
30 public interface JvmMBMBean {
31
32 /**
33 * Returns the system properties of this JVM in a String array.
34 *
35 * @return The system properties of this JVM
36 */
37 String[] getSystemProperties();
38
39 /**
40 * Returns all the Application Context proxies in this JVM.
41 *
42 * @return The Application Context proxies in this JVM.
43 */
44 ObjectName[] getApplicationContexts();
45
46 /**
47 * Get the classpath of this jvm. If the Jvm MBean is URL-loaded,
48 * converts all urls to strings; otherwise returns the system classpath.
49 *
50 * @return The classpath.
51 */
52 String[] getClassPath();
53
54 /**
55 * Searches for duplicated classes on the classpath.
56 *
57 * @return A report of any duplicated classes found.
58 */
59 String findDuplicateClasses();
60
61 /**
62 * An HTML table is created, which lists all Threads and
63 * their property values.
64 * @return A table with all threads
65 */
66 public String showThreadTable();
67 }