01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management;
10:
11: /**
12: * This interface is implemented by MBeans that are able to make themselves persistent.
13: *
14: * @version $Revision: 1.6 $
15: */
16: public interface PersistentMBean {
17: /**
18: * Loads a previously saved MBean state into the MBean itself.
19: *
20: * @throws MBeanException If an exception occurred during loading or if loading is not supported.
21: * @throws InstanceNotFoundException If some MBean needed for loading is not found.
22: * @see #store
23: */
24: public void load() throws MBeanException,
25: InstanceNotFoundException, RuntimeOperationsException;
26:
27: /**
28: * Stores the MBean state into a persistent media.
29: *
30: * @throws MBeanException If an exception occurred during storing or if storing is not supported.
31: * @throws InstanceNotFoundException If some MBean needed for storing is not found.
32: */
33: public void store() throws MBeanException,
34: RuntimeOperationsException, InstanceNotFoundException;
35: }
|