| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.instrumentation.AbstractInstrumentationProvider
org.apache.openjpa.instrumentation.jmx.JMXProvider
public class JMXProvider
A simple MBean JMX instrumentation provider
| Field Summary | |
|---|---|
| static String[] | JMX_INSTRUMENT_ALIASES | 
| static String | MBEAN_DOMAINThe MBean domain for OpenJPA | 
| Constructor Summary | |
|---|---|
| JMXProvider() | |
| Method Summary | |
|---|---|
| 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. | 
| Methods inherited from class org.apache.openjpa.lib.instrumentation.AbstractInstrumentationProvider | 
|---|
| addInstrument, endConfiguration, getConfiguration, getInstrument, getInstrumentByName, getInstruments, getOptions, initializeInstrument, initializeInstrument, isStarted, removeInstrumentByName, setConfiguration, setInstrument, setOptions, setStarted, startConfiguration, startInstruments, stopInstrument, stopInstruments | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String[] JMX_INSTRUMENT_ALIASES
public static final String MBEAN_DOMAIN
| Constructor Detail | 
|---|
public JMXProvider()
| Method Detail | 
|---|
protected void registerMBean(JMXInstrument mBean)
mBean - public Set<MBeanServer> getMBeanServer()
public void start()
InstrumentationProvider
start in interface InstrumentationProviderstart in class AbstractInstrumentationProviderpublic void stop()
stop in interface InstrumentationProviderstop in class AbstractInstrumentationProvider
public static ObjectName createObjectName(JMXInstrument instrument,
                                          Map<String,String> props)
                                   throws Exception
instrument - the instrumentprops - additional key properties
Exception - a generic JMX-type exceptionpublic void startInstrument(Instrument instrument)
instrument - this instrument to start
public 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 InstrumentationProvidergetInstrumentAliases in class AbstractInstrumentationProvider| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||