public class JMXProvider extends AbstractInstrumentationProvider
Modifier and Type | Field and Description |
---|---|
static String[] |
JMX_INSTRUMENT_ALIASES |
static String |
MBEAN_DOMAIN
The MBean domain for OpenJPA
|
Constructor and Description |
---|
JMXProvider() |
Modifier and Type | Method and Description |
---|---|
static ObjectName |
createObjectName(JMXInstrument instrument,
Map<String,String> props)
Creates an object name for the supplied instrument and key properties
|
String[] |
getInstrumentAliases()
Returns aliases for built-in instruments.
|
Set<MBeanServer> |
getMBeanServer()
Returns the mbean server
|
protected void |
registerMBean(JMXInstrument mBean)
Register an MBean with the mbean server.
|
void |
start()
Stops the instrumentation provider
|
void |
startInstrument(Instrument instrument)
Start an instrument.
|
void |
stop()
Stops all instruments registered with this provider and releases the
reference to the Platform MBean server instance.
|
void |
stopInstrument(Instrument instrument,
boolean force)
Stop an instrument.
|
addInstrument, endConfiguration, getConfiguration, getInstrument, getInstrumentByName, getInstruments, getOptions, initializeInstrument, initializeInstrument, isStarted, removeInstrumentByName, setConfiguration, setInstrument, setOptions, setStarted, startConfiguration, startInstruments, stopInstrument, stopInstruments
public static final String[] JMX_INSTRUMENT_ALIASES
public static final String MBEAN_DOMAIN
protected void registerMBean(JMXInstrument mBean)
public Set<MBeanServer> getMBeanServer()
public void start()
InstrumentationProvider
start
in interface InstrumentationProvider
start
in class AbstractInstrumentationProvider
public void stop()
stop
in interface InstrumentationProvider
stop
in class AbstractInstrumentationProvider
public static ObjectName createObjectName(JMXInstrument instrument, Map<String,String> props) throws Exception
instrument
- the instrumentprops
- additional key propertiesException
- a generic JMX-type exceptionpublic void startInstrument(Instrument instrument)
instrument
- this instrument to startpublic void stopInstrument(Instrument instrument, boolean force)
instrument
- the instrument to stopforce
- forces the stop if the instrument does not stop gracefully.public String[] getInstrumentAliases()
getInstrumentAliases
in interface InstrumentationProvider
getInstrumentAliases
in class AbstractInstrumentationProvider
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.