ch.elca.el4j.services.monitoring.jmx
Class JvmMB

java.lang.Object
  extended by ch.elca.el4j.services.monitoring.jmx.JvmMB
All Implemented Interfaces:
JvmMBMBean

public class JvmMB
extends Object
implements JvmMBMBean

The proxy class for the JVM. Each MBean Server contains exactly one JVM MBean.

Author:
Raphael Boog (RBO), Rashid Waraich (RWA)
File-location:
JvmMB
Last check-in date:
2009-12-01 10:59:54 +0100 (Di, 01. Dez 2009) by jonasha for revision 4010

Field Summary
static String JVM_DOMAIN
          The domain of the JVM proxy as it will be registered at the MBean Server.
protected  List m_applicationContextMB
          A list of Application Context proxies which are running in this JVM proxy.
 
Constructor Summary
JvmMB()
          Constructor which calls the setObjectName() method.
 
Method Summary
 void addApplicationContext(ApplicationContextMB appCont)
          Add an Application Context proxy to the list of Application Context proxies in this JVM proxy.
 String findDuplicateClasses()
          Searches for duplicated classes on the classpath.
 ObjectName[] getApplicationContexts()
          Returns all the Application Context proxies in this JVM.
 String[] getClassPath()
          Get the classpath of this jvm.
 int getInstanceCounter()
          The getter method for the instanceCounter member.
 ObjectName getObjectName()
          The getter method for the object name of this JVM proxy.
 String[] getSystemProperties()
          Returns the system properties of this JVM in a String array.
 void setInstanceCounter()
          Save the class variable s_counter to an instance member and increment the class variable by 1.
 void setObjectName()
          Sets the object name of this JVM proxy.
 String showThreadTable()
          An HTML table is created, which lists all Threads and their property values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JVM_DOMAIN

public static final String JVM_DOMAIN
The domain of the JVM proxy as it will be registered at the MBean Server.

See Also:
Constant Field Values

m_applicationContextMB

protected List m_applicationContextMB
A list of Application Context proxies which are running in this JVM proxy.

Constructor Detail

JvmMB

public JvmMB()
Constructor which calls the setObjectName() method.

Method Detail

getSystemProperties

public String[] getSystemProperties()
Returns the system properties of this JVM in a String array.

Specified by:
getSystemProperties in interface JvmMBMBean
Returns:
The system properties of this JVM

getClassPath

public String[] getClassPath()
Get the classpath of this jvm. If the Jvm MBean is URL-loaded, converts all urls to strings; otherwise returns the system classpath.

Specified by:
getClassPath in interface JvmMBMBean
Returns:
The classpath.

findDuplicateClasses

public String findDuplicateClasses()
Searches for duplicated classes on the classpath.

Specified by:
findDuplicateClasses in interface JvmMBMBean
Returns:
A report of any duplicated classes found.

getApplicationContexts

public ObjectName[] getApplicationContexts()
Returns all the Application Context proxies in this JVM.

Specified by:
getApplicationContexts in interface JvmMBMBean
Returns:
The Application Context proxies in this JVM.

addApplicationContext

public void addApplicationContext(ApplicationContextMB appCont)
Add an Application Context proxy to the list of Application Context proxies in this JVM proxy.

Parameters:
appCont - The Application Context proxy to add

setObjectName

public void setObjectName()
Sets the object name of this JVM proxy.


getObjectName

public ObjectName getObjectName()
The getter method for the object name of this JVM proxy.

Returns:
The object name of this JVM proxy

getInstanceCounter

public int getInstanceCounter()
The getter method for the instanceCounter member.

Returns:
The instanceCounter member

setInstanceCounter

public void setInstanceCounter()
Save the class variable s_counter to an instance member and increment the class variable by 1.


showThreadTable

public String showThreadTable()
An HTML table is created, which lists all Threads and their property values.

Specified by:
showThreadTable in interface JvmMBMBean
Returns:
A table with all threads


Copyright © 2005-2011 ELCA. All Rights Reserved.