KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > loader > rmi > RemoteTreeCache


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.cache.loader.rmi;
8
9 import org.jboss.cache.Fqn;
10 import org.jboss.cache.Node;
11
12 import java.rmi.Remote JavaDoc;
13 import java.rmi.RemoteException JavaDoc;
14 import java.util.Map JavaDoc;
15 import java.util.Set JavaDoc;
16
17 /**
18  * Remote interface to a {@link org.jboss.cache.CacheImpl} instance. Used by
19  * {@link org.jboss.cache.loader.RmiDelegatingCacheLoader}.
20  *
21  * @author Daniel Gredler
22  * @version $Id: RemoteTreeCache.java,v 1.9 2006/12/30 17:50:00 msurtani Exp $
23  */

24 public interface RemoteTreeCache extends Remote JavaDoc
25 {
26    public Set JavaDoc getChildrenNames(Fqn fqn) throws Exception JavaDoc, RemoteException JavaDoc;
27
28    public Object JavaDoc get(Fqn name, Object JavaDoc key) throws Exception JavaDoc, RemoteException JavaDoc;
29
30    public Node get(Fqn name) throws Exception JavaDoc, RemoteException JavaDoc;
31
32    public boolean exists(Fqn name) throws Exception JavaDoc, RemoteException JavaDoc;
33
34    public Object JavaDoc put(Fqn name, Object JavaDoc key, Object JavaDoc value) throws Exception JavaDoc, RemoteException JavaDoc;
35
36    public void put(Fqn name, Map JavaDoc attributes) throws Exception JavaDoc, RemoteException JavaDoc;
37 // public void put(List modifications) throws Exception, RemoteException;
38

39    public Object JavaDoc remove(Fqn name, Object JavaDoc key) throws Exception JavaDoc, RemoteException JavaDoc;
40
41    public void remove(Fqn name) throws Exception JavaDoc, RemoteException JavaDoc;
42
43    public void removeData(Fqn name) throws Exception JavaDoc, RemoteException JavaDoc;
44 }
45
Popular Tags