ostore.cache
Class MemoryCache
java.lang.Object
  |
  +--ostore.cache.MemoryCache
- All Implemented Interfaces: 
 - EventHandlerIF, ProfilableIF, SingleThreadedEventHandlerIF
 
- public class MemoryCache
- extends Object
- implements SingleThreadedEventHandlerIF, EventHandlerIF, ProfilableIF
   
Stage that sends and receives messages to the cache.
 One would send/receive messages through MemoryCache if one is willing to 
 wait - Thread running this thread may block when going to disk. 
 Currently supports the following messages:
 CacheBlockRequestMessage, CacheBlockReplyMessage,
 CachePinnedRequest, CachePinnedReply,
 CacheInsertMessage, CacheInsertDone, 
 CacheReserveSpaceMessage, CacheReserveSpaceDone.
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MemoryCache
public MemoryCache()
handleEvent
public void handleEvent(QueueElementIF element)
                 throws EventHandlerException
- Specified by: 
 handleEvent in interface EventHandlerIF
 
EventHandlerException
 
handleEvents
public void handleEvents(QueueElementIF[] element_array)
                  throws EventHandlerException
- Specified by: 
 handleEvents in interface EventHandlerIF
 
EventHandlerException
 
init
public void init(ConfigDataIF config)
          throws Exception
- Specified by: 
 init in interface EventHandlerIF
 
Exception
 
destroy
public void destroy()
             throws Exception
- Specified by: 
 destroy in interface EventHandlerIF
 
Exception
 
profileSize
public int profileSize()
- Specified by: 
 profileSize in interface ProfilableIF