Package org.jolokia.server.core.util.jmx
Interface MBeanServerAccess.MBeanEachCallback
- Enclosing interface:
- MBeanServerAccess
public static interface MBeanServerAccess.MBeanEachCallback
This callback is used together with
MBeanServerAccess.each(ObjectName, MBeanEachCallback) for iterating over all
active MBeanServers. The callback is responsible on its own to collect the information queried.-
Method Summary
Modifier and TypeMethodDescriptionvoidcallback(MBeanServerConnection pConn, ObjectName pName) Callback call for a specific MBeanServer for a given object name.
-
Method Details
-
callback
void callback(MBeanServerConnection pConn, ObjectName pName) throws ReflectionException, InstanceNotFoundException, IOException, MBeanException Callback call for a specific MBeanServer for a given object name.- Parameters:
pConn- MBeanServerpName- object name as given by the surroundingMBeanServerAccess.each(ObjectName, MBeanEachCallback)call, which can be either a pattern or null (in which case the names are searched for before) or a direct name.- Throws:
ReflectionExceptionInstanceNotFoundException- if the provided full-ObjectName is not registered at the MBeanServerIOExceptionMBeanException- if an operation of an MBean fails
-