Save This Page
Home » openjdk-7 » com.sun.jmx » interceptor » [javadoc | source]
com.sun.jmx.interceptor
public class: DefaultMBeanServerInterceptor [javadoc | source]
java.lang.Object
   com.sun.jmx.interceptor.DefaultMBeanServerInterceptor

All Implemented Interfaces:
    MBeanServerInterceptor

This is the default class for MBean manipulation on the agent side. It contains the methods necessary for the creation, registration, and deletion of MBeans as well as the access methods for registered MBeans. This is the core component of the JMX infrastructure.

Every MBean which is added to the MBean server becomes manageable: its attributes and operations become remotely accessible through the connectors/adaptors connected to that MBean server. A Java object cannot be registered in the MBean server unless it is a JMX compliant MBean.

When an MBean is registered or unregistered in the MBean server an MBeanServerNotification Notification is emitted. To register an object as listener to MBeanServerNotifications you should call the MBean server method addNotificationListener with ObjectName the ObjectName of the MBeanServerDelegate . This ObjectName is:
JMImplementation:type=MBeanServerDelegate.

Constructor:
 public DefaultMBeanServerInterceptor(MBeanServer outer,
    MBeanServerDelegate delegate,
    MBeanInstantiator instantiator,
    Repository repository) 
    Creates a DefaultMBeanServerInterceptor with the specified repository instance.

    Do not forget to call initialize(outer,delegate) before using this object.

    Parameters:
    outer - A pointer to the MBeanServer object that must be passed to the MBeans when invoking their javax.management.MBeanRegistration interface.
    delegate - A pointer to the MBeanServerDelegate associated with the new MBeanServer. The new MBeanServer must register this MBean in its MBean repository.
    instantiator - The MBeanInstantiator that will be used to instantiate MBeans and take care of class loading issues.
    repository - The repository to use for this MBeanServer.
Method from com.sun.jmx.interceptor.DefaultMBeanServerInterceptor Summary:
addNotificationListener,   addNotificationListener,   createMBean,   createMBean,   createMBean,   createMBean,   getAttribute,   getAttributes,   getClassLoader,   getClassLoaderFor,   getDefaultDomain,   getDomains,   getMBeanCount,   getMBeanInfo,   getObjectInstance,   invoke,   isInstanceOf,   isRegistered,   queryMBeans,   queryNames,   registerMBean,   removeNotificationListener,   removeNotificationListener,   removeNotificationListener,   removeNotificationListener,   setAttribute,   setAttributes,   unregisterMBean
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.jmx.interceptor.DefaultMBeanServerInterceptor Detail:
 public  void addNotificationListener(ObjectName name,
    NotificationListener listener,
    NotificationFilter filter,
    Object handback) throws InstanceNotFoundException 
 public  void addNotificationListener(ObjectName name,
    ObjectName listener,
    NotificationFilter filter,
    Object handback) throws InstanceNotFoundException 
 public ObjectInstance createMBean(String className,
    ObjectName name) throws MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException, ReflectionException, MBeanException 
 public ObjectInstance createMBean(String className,
    ObjectName name,
    ObjectName loaderName) throws InstanceNotFoundException, MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException, ReflectionException, MBeanException 
 public ObjectInstance createMBean(String className,
    ObjectName name,
    Object[] params,
    String[] signature) throws MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException, ReflectionException, MBeanException 
 public ObjectInstance createMBean(String className,
    ObjectName name,
    ObjectName loaderName,
    Object[] params,
    String[] signature) throws InstanceNotFoundException, MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException, ReflectionException, MBeanException 
 public Object getAttribute(ObjectName name,
    String attribute) throws InstanceNotFoundException, ReflectionException, AttributeNotFoundException, MBeanException 
 public AttributeList getAttributes(ObjectName name,
    String[] attributes) throws InstanceNotFoundException, ReflectionException 
 public ClassLoader getClassLoader(ObjectName loaderName) throws InstanceNotFoundException 
 public ClassLoader getClassLoaderFor(ObjectName mbeanName) throws InstanceNotFoundException 
 public String getDefaultDomain() 
 public String[] getDomains() 
 public Integer getMBeanCount() 
 public MBeanInfo getMBeanInfo(ObjectName name) throws IntrospectionException, InstanceNotFoundException, ReflectionException 
 public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException 
 public Object invoke(ObjectName name,
    String operationName,
    Object[] params,
    String[] signature) throws InstanceNotFoundException, ReflectionException, MBeanException 
 public boolean isInstanceOf(ObjectName name,
    String className) throws InstanceNotFoundException 
 public boolean isRegistered(ObjectName name) 
 public Set queryMBeans(ObjectName name,
    QueryExp query) 
 public Set queryNames(ObjectName name,
    QueryExp query) 
 public ObjectInstance registerMBean(Object object,
    ObjectName name) throws MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException 
 public  void removeNotificationListener(ObjectName name,
    NotificationListener listener) throws ListenerNotFoundException, InstanceNotFoundException 
 public  void removeNotificationListener(ObjectName name,
    ObjectName listener) throws ListenerNotFoundException, InstanceNotFoundException 
 public  void removeNotificationListener(ObjectName name,
    NotificationListener listener,
    NotificationFilter filter,
    Object handback) throws ListenerNotFoundException, InstanceNotFoundException 
 public  void removeNotificationListener(ObjectName name,
    ObjectName listener,
    NotificationFilter filter,
    Object handback) throws ListenerNotFoundException, InstanceNotFoundException 
 public  void setAttribute(ObjectName name,
    Attribute attribute) throws InstanceNotFoundException, InvalidAttributeValueException, ReflectionException, AttributeNotFoundException, MBeanException 
 public AttributeList setAttributes(ObjectName name,
    AttributeList attributes) throws InstanceNotFoundException, ReflectionException 
 public  void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException