1 7 package org.jboss.cache.loader.rmi; 8 9 import org.jboss.cache.CacheImpl; 10 import org.jboss.cache.Fqn; 11 import org.jboss.cache.Node; 12 13 import java.rmi.RemoteException ; 14 import java.rmi.server.UnicastRemoteObject ; 15 import java.util.Map ; 16 import java.util.Set ; 17 18 24 public class RemoteTreeCacheImpl extends UnicastRemoteObject implements RemoteTreeCache 25 { 26 27 private static final long serialVersionUID = 3096209368650710385L; 28 29 private CacheImpl cache; 31 32 35 public RemoteTreeCacheImpl(CacheImpl cache) throws RemoteException 37 { 38 this.cache = cache; 39 } 40 41 44 public Set getChildrenNames(Fqn fqn) throws Exception , RemoteException 45 { 46 return this.cache.getChildrenNames(fqn); 47 } 48 49 52 public Object get(Fqn name, Object key) throws Exception , RemoteException 53 { 54 return this.cache.get(name, key); 55 } 56 57 60 public Node get(Fqn name) throws Exception , RemoteException 61 { 62 return this.cache.get(name); 63 } 64 65 68 public boolean exists(Fqn name) throws Exception , RemoteException 69 { 70 return this.cache.exists(name); 71 } 72 73 76 public Object put(Fqn name, Object key, Object value) throws Exception , RemoteException 77 { 78 return this.cache.put(name, key, value); 79 } 80 81 84 public void put(Fqn name, Map attributes) throws Exception , RemoteException 85 { 86 this.cache.put(name, attributes); 87 } 88 89 92 public Object remove(Fqn name, Object key) throws Exception , RemoteException 93 { 94 return this.cache.remove(name, key); 95 } 96 97 100 public void remove(Fqn name) throws Exception , RemoteException 101 { 102 this.cache.remove(name); 103 } 104 105 108 public void removeData(Fqn name) throws Exception , RemoteException 109 { 110 this.cache.removeData(name); 111 } 112 } 113 | Popular Tags |