Package org.jboss.as.jmx.model
Class ModelControllerMBeanServerPlugin
- java.lang.Object
-
- org.jboss.as.jmx.BaseMBeanServerPlugin
-
- org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin
-
- All Implemented Interfaces:
MBeanServer,MBeanServerConnection,MBeanServerPlugin
public class ModelControllerMBeanServerPlugin extends BaseMBeanServerPlugin
An MBeanServer wrapper that exposes the ModelController via JMX.- Author:
- Kabir Khan
-
-
Constructor Summary
Constructors Constructor Description ModelControllerMBeanServerPlugin(MBeanServer mbeanServer, ConfiguredDomains configuredDomains, org.jboss.as.controller.ModelController controller, org.jboss.as.controller.notification.NotificationHandlerRegistry notificationHandlerRegistry, MBeanServerDelegate delegate, boolean legacyWithProperPropertyFormat, org.jboss.as.controller.ProcessType processType, ManagementModelIntegration.ManagementModelProvider managementModelProvider, boolean isMasterHc)
-
Method Summary
-
Methods inherited from class org.jboss.as.jmx.BaseMBeanServerPlugin
createMBean, createMBean, createMBean, createMBean, deserialize, deserialize, deserialize, getClassLoaderRepository, getDefaultDomain, instantiate, instantiate, instantiate, instantiate, registerMBean, unregisterMBean
-
-
-
-
Constructor Detail
-
ModelControllerMBeanServerPlugin
public ModelControllerMBeanServerPlugin(MBeanServer mbeanServer, ConfiguredDomains configuredDomains, org.jboss.as.controller.ModelController controller, org.jboss.as.controller.notification.NotificationHandlerRegistry notificationHandlerRegistry, MBeanServerDelegate delegate, boolean legacyWithProperPropertyFormat, org.jboss.as.controller.ProcessType processType, ManagementModelIntegration.ManagementModelProvider managementModelProvider, boolean isMasterHc)
-
-
Method Detail
-
accepts
public boolean accepts(ObjectName objectName)
-
shouldAuditLog
public boolean shouldAuditLog()
-
shouldAuthorize
public boolean shouldAuthorize()
-
getAttribute
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException
-
getAttributes
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException
-
getClassLoader
public ClassLoader getClassLoader(ObjectName loaderName) throws InstanceNotFoundException
- Throws:
InstanceNotFoundException
-
getClassLoaderFor
public ClassLoader getClassLoaderFor(ObjectName mbeanName) throws InstanceNotFoundException
- Throws:
InstanceNotFoundException
-
getDomains
public String[] getDomains()
-
getMBeanCount
public Integer getMBeanCount()
-
getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException
-
getObjectInstance
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException
- Throws:
InstanceNotFoundException
-
invoke
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException
-
isInstanceOf
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException
- Throws:
InstanceNotFoundException
-
isRegistered
public boolean isRegistered(ObjectName name)
-
queryMBeans
public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query)
-
queryNames
public Set<ObjectName> queryNames(ObjectName name, QueryExp query)
-
setAttribute
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
-
setAttributes
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException
-
addNotificationListener
public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException
- Throws:
InstanceNotFoundException
-
addNotificationListener
public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException
- Throws:
InstanceNotFoundException
-
removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException
-
removeNotificationListener
public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException
-
removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException
-
removeNotificationListener
public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException
-
-