org.rhq.plugins.jmx
Class JMXServerComponent<T extends ResourceComponent<?>>

java.lang.Object
  extended by org.rhq.plugins.jmx.JMXServerComponent<T>
All Implemented Interfaces:
AvailabilityFacet, ResourceComponent<T>, JMXComponent<T>

public class JMXServerComponent<T extends ResourceComponent<?>>
extends Object
implements JMXComponent<T>

The generic JMX server component used to create and cache a connection to a local or remote JMX MBeanServer. This component is responsible for building an isolated connection/classloader to the managed resource's JMX MBeanServer. Each connection is isolated from other connections created by other instances of this component. This allows for it to do things like manage multiple JBossAS servers that are running on the same box, even if they are of different JBossAS versions. The same holds true for Hibernate applications - multiple connections can be created to different versions of the Hibernate MBean and due to the isolation of each connection, there are no version incompatibility errors that will occur.

Author:
Greg Hinkle, John Mazzitelli

Field Summary
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
JMXServerComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
 org.mc4j.ems.connection.EmsConnection getEmsConnection()
           
protected  ResourceContext getResourceContext()
           
protected  void internalStart()
           
 void start(ResourceContext context)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXServerComponent

public JMXServerComponent()
Method Detail

start

public void start(ResourceContext context)
           throws Exception
Specified by:
start in interface ResourceComponent<T extends ResourceComponent<?>>
Throws:
Exception

internalStart

protected void internalStart()
                      throws Exception
Throws:
Exception

stop

public void stop()
Specified by:
stop in interface ResourceComponent<T extends ResourceComponent<?>>

getEmsConnection

public org.mc4j.ems.connection.EmsConnection getEmsConnection()
Specified by:
getEmsConnection in interface JMXComponent<T extends ResourceComponent<?>>

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet

getResourceContext

protected ResourceContext getResourceContext()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.