Java Code Examples for javax.management.ServiceNotFoundException#getMessage()

The following examples show how to use javax.management.ServiceNotFoundException#getMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RequiredModelMBean.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 * <p>Captures the current state of this MBean instance and writes
 * it out to the persistent store.  The state stored could include
 * attribute and operation values.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * <p>Persistence policy from the MBean and attribute descriptor
 * is used to guide execution of this method. The MBean should be
 * stored if 'persistPolicy' field is:</p>
 *
 * <PRE>{@literal  != "never"
 *   = "always"
 *   = "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "onUnregister"
 * }</PRE>
 *
 * <p>Do not store the MBean if 'persistPolicy' field is:</p>
 * <PRE>{@literal
 *    = "never"
 *    = "onUpdate"
 *    = "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
 * }</PRE>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find/access the
 * persistent store
 */
public void store()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 2
Source File: RequiredModelMBean.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 3
Source File: RequiredModelMBean.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * <p>Captures the current state of this MBean instance and writes
 * it out to the persistent store.  The state stored could include
 * attribute and operation values.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * <p>Persistence policy from the MBean and attribute descriptor
 * is used to guide execution of this method. The MBean should be
 * stored if 'persistPolicy' field is:</p>
 *
 * <PRE>{@literal  != "never"
 *   = "always"
 *   = "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "onUnregister"
 * }</PRE>
 *
 * <p>Do not store the MBean if 'persistPolicy' field is:</p>
 * <PRE>{@literal
 *    = "never"
 *    = "onUpdate"
 *    = "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
 * }</PRE>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find/access the
 * persistent store
 */
public void store()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 4
Source File: RequiredModelMBean.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 5
Source File: RequiredModelMBean.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Captures the current state of this MBean instance and writes
 * it out to the persistent store.  The state stored could include
 * attribute and operation values.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * <p>Persistence policy from the MBean and attribute descriptor
 * is used to guide execution of this method. The MBean should be
 * stored if 'persistPolicy' field is:</p>
 *
 * <PRE>{@literal  != "never"
 *   = "always"
 *   = "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "onUnregister"
 * }</PRE>
 *
 * <p>Do not store the MBean if 'persistPolicy' field is:</p>
 * <PRE>{@literal
 *    = "never"
 *    = "onUpdate"
 *    = "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
 * }</PRE>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find/access the
 * persistent store
 */
public void store()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 6
Source File: RequiredModelMBean.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 7
Source File: RequiredModelMBean.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Captures the current state of this MBean instance and writes
 * it out to the persistent store.  The state stored could include
 * attribute and operation values.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * <p>Persistence policy from the MBean and attribute descriptor
 * is used to guide execution of this method. The MBean should be
 * stored if 'persistPolicy' field is:</p>
 *
 * <PRE>{@literal  != "never"
 *   = "always"
 *   = "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "onUnregister"
 * }</PRE>
 *
 * <p>Do not store the MBean if 'persistPolicy' field is:</p>
 * <PRE>{@literal
 *    = "never"
 *    = "onUpdate"
 *    = "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
 * }</PRE>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find/access the
 * persistent store
 */
public void store()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 8
Source File: RequiredModelMBean.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 9
Source File: RequiredModelMBean.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Captures the current state of this MBean instance and writes
 * it out to the persistent store.  The state stored could include
 * attribute and operation values.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * <p>Persistence policy from the MBean and attribute descriptor
 * is used to guide execution of this method. The MBean should be
 * stored if 'persistPolicy' field is:</p>
 *
 * <PRE>{@literal  != "never"
 *   = "always"
 *   = "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "onUnregister"
 * }</PRE>
 *
 * <p>Do not store the MBean if 'persistPolicy' field is:</p>
 * <PRE>{@literal
 *    = "never"
 *    = "onUpdate"
 *    = "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
 * }</PRE>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find/access the
 * persistent store
 */
public void store()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 10
Source File: RequiredModelMBean.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 11
Source File: RequiredModelMBean.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Captures the current state of this MBean instance and writes
 * it out to the persistent store.  The state stored could include
 * attribute and operation values.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * <p>Persistence policy from the MBean and attribute descriptor
 * is used to guide execution of this method. The MBean should be
 * stored if 'persistPolicy' field is:</p>
 *
 * <PRE>{@literal  != "never"
 *   = "always"
 *   = "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "onUnregister"
 * }</PRE>
 *
 * <p>Do not store the MBean if 'persistPolicy' field is:</p>
 * <PRE>{@literal
 *    = "never"
 *    = "onUpdate"
 *    = "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
 * }</PRE>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find/access the
 * persistent store
 */
public void store()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 12
Source File: RequiredModelMBean.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 13
Source File: RequiredModelMBean.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Captures the current state of this MBean instance and writes
 * it out to the persistent store.  The state stored could include
 * attribute and operation values.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * <p>Persistence policy from the MBean and attribute descriptor
 * is used to guide execution of this method. The MBean should be
 * stored if 'persistPolicy' field is:</p>
 *
 * <PRE>{@literal  != "never"
 *   = "always"
 *   = "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "onUnregister"
 * }</PRE>
 *
 * <p>Do not store the MBean if 'persistPolicy' field is:</p>
 * <PRE>{@literal
 *    = "never"
 *    = "onUpdate"
 *    = "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
 * }</PRE>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find/access the
 * persistent store
 */
public void store()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 14
Source File: RequiredModelMBean.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 15
Source File: RequiredModelMBean.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 16
Source File: RequiredModelMBean.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 17
Source File: RequiredModelMBean.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Captures the current state of this MBean instance and writes
 * it out to the persistent store.  The state stored could include
 * attribute and operation values.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * <p>Persistence policy from the MBean and attribute descriptor
 * is used to guide execution of this method. The MBean should be
 * stored if 'persistPolicy' field is:</p>
 *
 * <PRE>{@literal  != "never"
 *   = "always"
 *   = "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
 *   = "onUnregister"
 * }</PRE>
 *
 * <p>Do not store the MBean if 'persistPolicy' field is:</p>
 * <PRE>{@literal
 *    = "never"
 *    = "onUpdate"
 *    = "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
 * }</PRE>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find/access the
 * persistent store
 */
public void store()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 18
Source File: RequiredModelMBean.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 19
Source File: RequiredModelMBean.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}
 
Example 20
Source File: RequiredModelMBean.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * <p>Instantiates this MBean instance with the data found for
 * the MBean in the persistent store.  The data loaded could include
 * attribute and operation values.</p>
 *
 * <p>This method should be called during construction or
 * initialization of this instance, and before the MBean is
 * registered with the MBeanServer.</p>
 *
 * <p>If the implementation of this class does not support
 * persistence, an {@link MBeanException} wrapping a {@link
 * ServiceNotFoundException} is thrown.</p>
 *
 * @exception MBeanException Wraps another exception, or
 * persistence is not supported
 * @exception RuntimeOperationsException Wraps exceptions from the
 * persistence mechanism
 * @exception InstanceNotFoundException Could not find or load
 * this MBean from persistent storage
 */
public void load()
    throws MBeanException, RuntimeOperationsException,
           InstanceNotFoundException {
    final ServiceNotFoundException x = new ServiceNotFoundException(
                            "Persistence not supported for this MBean");
    throw new MBeanException(x, x.getMessage());
}