org.jboss.cache.loader.rmi
Class RemoteTreeCacheImpl

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byorg.jboss.cache.loader.rmi.RemoteTreeCacheImpl
All Implemented Interfaces:
Remote, RemoteTreeCache, Serializable

public class RemoteTreeCacheImpl
extends UnicastRemoteObject
implements RemoteTreeCache

Implementation of the TreeCache's remote interface.

Version:
$Id: RemoteTreeCacheImpl.java,v 1.1.2.1 2005/04/04 05:44:21 bwang00 Exp $
Author:
Daniel Gredler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteTreeCacheImpl(TreeCache cache)
           
 
Method Summary
 boolean exists(Fqn name)
           
 Node get(Fqn name)
           
 Object get(Fqn name, Object key)
           
 Set getChildrenNames(Fqn fqn)
           
 byte[] getState()
           
 void put(Fqn name, Map attributes)
           
 Object put(Fqn name, Object key, Object value)
           
 void remove(Fqn name)
           
 Object remove(Fqn name, Object key)
           
 void removeData(Fqn name)
           
 void setState(byte[] state)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteTreeCacheImpl

public RemoteTreeCacheImpl(TreeCache cache)
                    throws RemoteException
Throws:
RemoteException
Method Detail

getChildrenNames

public Set getChildrenNames(Fqn fqn)
                     throws Exception,
                            RemoteException
Specified by:
getChildrenNames in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.getChildrenNames(org.jboss.cache.Fqn)

get

public Object get(Fqn name,
                  Object key)
           throws Exception,
                  RemoteException
Specified by:
get in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.get(org.jboss.cache.Fqn, java.lang.Object)

get

public Node get(Fqn name)
         throws Exception,
                RemoteException
Specified by:
get in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.get(org.jboss.cache.Fqn)

exists

public boolean exists(Fqn name)
               throws Exception,
                      RemoteException
Specified by:
exists in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.exists(org.jboss.cache.Fqn)

put

public Object put(Fqn name,
                  Object key,
                  Object value)
           throws Exception,
                  RemoteException
Specified by:
put in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.put(org.jboss.cache.Fqn, java.lang.Object, java.lang.Object)

put

public void put(Fqn name,
                Map attributes)
         throws Exception,
                RemoteException
Specified by:
put in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.put(org.jboss.cache.Fqn, java.util.Map)

remove

public Object remove(Fqn name,
                     Object key)
              throws Exception,
                     RemoteException
Specified by:
remove in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.remove(org.jboss.cache.Fqn, java.lang.Object)

remove

public void remove(Fqn name)
            throws Exception,
                   RemoteException
Specified by:
remove in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.remove(org.jboss.cache.Fqn)

removeData

public void removeData(Fqn name)
                throws Exception,
                       RemoteException
Specified by:
removeData in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.removeData(org.jboss.cache.Fqn)

getState

public byte[] getState()
                throws Exception,
                       RemoteException
Specified by:
getState in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.getState()

setState

public void setState(byte[] state)
              throws Exception,
                     RemoteException
Specified by:
setState in interface RemoteTreeCache
Throws:
Exception
RemoteException
See Also:
RemoteTreeCache.setState(byte[])


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.