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 mx4j.persist;
10:
11: import javax.management.InstanceNotFoundException;
12: import javax.management.MBeanException;
13: import javax.management.RuntimeOperationsException;
14:
15: /**
16: * Management interface for components able to persist information to a storage media.
17: *
18: * @version $Revision: 1.6 $
19: */
20: public interface PersisterMBean {
21: /**
22: * Loads the information persisted on the storage media.
23: *
24: * @see #store
25: */
26: public Object load() throws MBeanException,
27: RuntimeOperationsException, InstanceNotFoundException;
28:
29: /**
30: * Store the given information to the storage media.
31: *
32: * @see #load
33: */
34: public void store(Object data) throws MBeanException,
35: RuntimeOperationsException, InstanceNotFoundException;
36: }
|