org.apache.catalina.mbeans
Class ContextResourceMBean
java.lang.Object
   org.apache.tomcat.util.modeler.BaseModelMBean
org.apache.tomcat.util.modeler.BaseModelMBean
       org.apache.catalina.mbeans.ContextResourceMBean
org.apache.catalina.mbeans.ContextResourceMBean
- All Implemented Interfaces: 
- javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster
- public class ContextResourceMBean 
- extends BaseModelMBean
A ModelMBean implementation for the
 org.apache.catalina.deploy.ContextResource component.
- Author:
- Amy Roh
 
 
| Constructor Summary | 
| ContextResourceMBean()Construct a
 ModelMBeanwith defaultModelMBeanInfoinformation. | 
 
| Method Summary | 
|  java.lang.Object | getAttribute(java.lang.String name)Obtain and return the value of a specific attribute of this MBean.
 | 
|  void | setAttribute(javax.management.Attribute attribute)Set the value of a specific attribute of this MBean.
 | 
 
| Methods inherited from class org.apache.tomcat.util.modeler.BaseModelMBean | 
| addAttributeChangeNotificationListener, addNotificationListener, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttributes, setManagedBean, setManagedResource, toString | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
ContextResourceMBean
public ContextResourceMBean()
                     throws javax.management.MBeanException,
                            javax.management.RuntimeOperationsException
- Construct a ModelMBeanwith defaultModelMBeanInfoinformation.
 
- Throws:
- javax.management.MBeanException- if the initializer of an object
  throws an exception
- javax.management.RuntimeOperationsException- if an IllegalArgumentException
  occurs
 
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
                              throws javax.management.AttributeNotFoundException,
                                     javax.management.MBeanException,
                                     javax.management.ReflectionException
- Obtain and return the value of a specific attribute of this MBean.
 
- 
- Specified by:
- getAttributein interface- javax.management.DynamicMBean
- Overrides:
- getAttributein class- BaseModelMBean
 
- 
- Parameters:
- name- Name of the requested attribute
- Throws:
- javax.management.AttributeNotFoundException- if this attribute is not
  supported by this MBean
- javax.management.MBeanException- if the initializer of an object
  throws an exception
- javax.management.ReflectionException- if a Java reflection exception
  occurs when invoking the getter
 
setAttribute
public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
- Set the value of a specific attribute of this MBean.
 
- 
- Specified by:
- setAttributein interface- javax.management.DynamicMBean
- Overrides:
- setAttributein class- BaseModelMBean
 
- 
- Parameters:
- attribute- The identification of the attribute to be set
  and the new value
- Throws:
- javax.management.AttributeNotFoundException- if this attribute is not
  supported by this MBean
- javax.management.MBeanException- if the initializer of an object
  throws an exception
- javax.management.ReflectionException- if a Java reflection exception
  occurs when invoking the getter
 
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.