|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.services.monitoring.jmx.Loader
public class Loader
Entry point for the JMX package. If this bean is defined in an Application Context, then it will set up the whole JMX world by creating the proxies and setting the corresponding references.
Field Summary | |
---|---|
protected ApplicationContextMB |
m_acMB
The Application Context proxy for the Application Context containing this loader. |
protected JvmMB |
m_jvmmb
The JVM proxy containing this Application Context. |
protected static Map<MBeanServer,JvmMBMBean> |
s_jvmMBs
A map containing the MBean Server as key and the JvmMB as value. |
Constructor Summary | |
---|---|
Loader()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
ConfigurableApplicationContext |
getApplicationContext()
Getter method for the Application Context. |
ObjectName[] |
getObjectNames(MBeanServer server,
String domain,
String keyProperty,
String value)
Returns all object names of the beans in the domain "domain" and where "keyProperty"="name" which are registered on the MBeanServer server. |
MBeanServer |
getServer()
Returns the MBean Server of this ApplicationContext. |
protected void |
init()
Creates the "Real World" image of the given Application Context by setting up the corresponding JMX objects. |
boolean |
isInitAfterPropertiesSet()
|
void |
onApplicationEvent(ApplicationEvent event)
|
protected static void |
registerJdk15Mbean(MBeanServer ms)
Registers JDK 1.5 MBeans. |
void |
setApplicationContext(ApplicationContext applicationContext)
The ApplicationContext is set via ApplicationContextAware. |
void |
setInitAfterPropertiesSet(boolean initAfterPropertiesSet)
|
protected void |
setJvmMB()
Takes the JvmMB Bean from the MBean Server or creates a new JvmMB if no such bean is registered at the MBean Server. |
void |
setServer(MBeanServer server)
Sets the MBean Server of this ApplicationContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Map<MBeanServer,JvmMBMBean> s_jvmMBs
protected ApplicationContextMB m_acMB
protected JvmMB m_jvmmb
Constructor Detail |
---|
public Loader()
Method Detail |
---|
public MBeanServer getServer()
public void setServer(MBeanServer server)
server
- The MBean Server to set.protected void setJvmMB() throws BaseException
BaseException
- in case the registration at the MBean Server failedpublic ObjectName[] getObjectNames(MBeanServer server, String domain, String keyProperty, String value)
server
- the MBean Serverdomain
- the domain of the wanted beanskeyProperty
- the key property (e.g. name) as registered on the MBean Servervalue
- the value of the key property
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in interface ApplicationContextAware
applicationContext
- The Application Context delivered by the
ApplicationContextAwarepublic ConfigurableApplicationContext getApplicationContext()
public final boolean isInitAfterPropertiesSet()
public final void setInitAfterPropertiesSet(boolean initAfterPropertiesSet)
initAfterPropertiesSet
- Is the initAfterPropertiesSet to set.public void afterPropertiesSet() throws BaseException
afterPropertiesSet
in interface InitializingBean
BaseException
init()
public void onApplicationEvent(ApplicationEvent event)
onApplicationEvent
in interface ApplicationListener
init()
protected void init() throws BaseException
BaseException
- On failure.protected static void registerJdk15Mbean(MBeanServer ms)
ms
- The MBeanServer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |