wt.cache
Interface CacheServer

All Superinterfaces:
Remote
All Known Implementing Classes:
CacheManager

public interface CacheServer
extends Remote

Cache manager remote interface. This interface defines the remote methods available between cache managers.


Field Summary
static String versionID
           
 
Method Summary
 Object getEntry(Object key)
           
 void ping()
           
 void putEntry(Object key, Object value, int slave_id)
           
 void reference(CacheServer self)
           
 int registerSlave(CacheServer slave)
           
 void removeEntry(Object key, int slave_id)
           
 void updateEntry(Object cache_key, Object update_key, Object update_value, int slave_id)
           
 

Field Detail

versionID

public static final String versionID
See Also:
Constant Field Values
Method Detail

registerSlave

public int registerSlave(CacheServer slave)
                  throws RemoteException
Throws:
RemoteException

getEntry

public Object getEntry(Object key)
                throws RemoteException
Throws:
RemoteException

putEntry

public void putEntry(Object key,
                     Object value,
                     int slave_id)
              throws RemoteException
Throws:
RemoteException

updateEntry

public void updateEntry(Object cache_key,
                        Object update_key,
                        Object update_value,
                        int slave_id)
                 throws RemoteException
Throws:
RemoteException

removeEntry

public void removeEntry(Object key,
                        int slave_id)
                 throws RemoteException
Throws:
RemoteException

ping

public void ping()
          throws RemoteException
Throws:
RemoteException

reference

public void reference(CacheServer self)
               throws RemoteException
Throws:
RemoteException