public interface JMXService
It is used to get a connection of a remote or the local JMX server.
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_LOGGER_NAME |
Modifier and Type | Method and Description |
---|---|
org.ow2.petals.jmx.api.api.JMXClient |
getJMXClient(String containerName)
Get a JMX connection to the given container.
|
MBeanServer |
getLocalJMXServer()
Get the local jmx server
|
void |
returnJMXClient(String containerName,
org.ow2.petals.jmx.api.api.JMXClient petalsJmxClient)
Returns a JMX connection of a given container for re-use
|
static final String COMPONENT_LOGGER_NAME
org.ow2.petals.jmx.api.api.JMXClient getJMXClient(String containerName) throws org.ow2.petals.basisapi.exception.PetalsException
Get a JMX connection to the given container. The JMX connection is operational, it was tested (using the JMX operation 'ping') before to be returned.
By contract, callers must return the borrowed instance using returnJMXClient(String, JMXClient)
,
#invalidateJMXClient(String, JMXClient)
.
containerName
- The container nameJMXClient
associated to the JMX connectionorg.ow2.petals.basisapi.exception.PetalsException
void returnJMXClient(String containerName, org.ow2.petals.jmx.api.api.JMXClient petalsJmxClient) throws org.ow2.petals.basisapi.exception.PetalsException
containerName
- The container namepetalsJmxClient
- The JMX connection to returnorg.ow2.petals.basisapi.exception.PetalsException
MBeanServer getLocalJMXServer()
Copyright © 2005-2016 Linagora. All Rights Reserved.