wt.cache
Class SlaveCache

java.lang.Object
  extended bywt.cache.SlaveCache
All Implemented Interfaces:
Runnable

class SlaveCache
extends Object
implements Runnable


Field Summary
(package private)  int id
          Id assigned to this slave cache.
private static Object lock
           
private  CacheManager master
           
private static int nextSlaveId
           
private  Vector notifications
           
private  Thread notifier
           
private  CacheServer slave
           
 
Constructor Summary
(package private) SlaveCache(CacheServer slave, CacheManager master)
          Construct a new slave wrapper and assign a unique slave id.
 
Method Summary
 boolean equals(Object obj)
           
(package private)  Object getSlaveEntry(Object key)
           
(package private)  void notifySlave(Object key)
          Queue notification to a slave cache.
private  boolean notifySlaveServer(Object key)
           
private static void printSlaveException(RemoteException e)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextSlaveId

private static int nextSlaveId

lock

private static Object lock

id

int id
Id assigned to this slave cache. Package access for CacheManager class.


slave

private CacheServer slave

master

private CacheManager master

notifier

private Thread notifier

notifications

private Vector notifications
Constructor Detail

SlaveCache

SlaveCache(CacheServer slave,
           CacheManager master)
Construct a new slave wrapper and assign a unique slave id. Package access for CacheManager class.

Method Detail

equals

public boolean equals(Object obj)

notifySlave

void notifySlave(Object key)
Queue notification to a slave cache. Packege access for CacheManger class.


run

public void run()
Specified by:
run in interface Runnable

notifySlaveServer

private boolean notifySlaveServer(Object key)

getSlaveEntry

Object getSlaveEntry(Object key)

printSlaveException

private static void printSlaveException(RemoteException e)