KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > persist > PersisterMBean


1 /*
2  * Copyright (C) MX4J.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.persist;
10
11 import javax.management.MBeanException JavaDoc;
12 import javax.management.RuntimeOperationsException JavaDoc;
13 import javax.management.InstanceNotFoundException JavaDoc;
14
15 /**
16  * Management interface for components able to persist information to a storage media.
17  *
18  * @author <a HREF="mailto:biorn_steedom@users.sourceforge.net">Simone Bordet</a>
19  * @version $Revision: 1.4 $
20  */

21 public interface PersisterMBean
22 {
23     /**
24      * Loads the information persisted on the storage media.
25      * @see #store
26      */

27     public Object JavaDoc load() throws MBeanException JavaDoc, RuntimeOperationsException JavaDoc, InstanceNotFoundException JavaDoc;
28
29     /**
30      * Store the given information to the storage media.
31      * @see #load
32      */

33     public void store(Object JavaDoc data) throws MBeanException JavaDoc, RuntimeOperationsException JavaDoc, InstanceNotFoundException JavaDoc;
34 }
35
Popular Tags