ostore.cache
Class CacheLine

java.lang.Object
  |
  +--ostore.cache.CacheLine

public abstract class CacheLine
extends Object

(toplevel) Line stored in the cache. Contains the Cacheable object, CacheableIdentity id, CacheableHandle handle, number times pinned, and if it has been written to a backing store.

Version:
$ID: CacheLine.java, v 1.0
Author:
Larry H. Tung

Field Summary
protected  CacheableHandle handle
          way in which to access this CacheLine
protected  CacheableIdentity id
          id which indicates how to store the object in the cache
protected  ostore.cache.c_int numPinned
          number of times this CacheLine is currently pinned
protected  Cacheable object
          object cached in the CacheLine
protected  int saved
          saved indicates whether this cacheline has (0) notBackedUp (not yet written to disk) (1) writingToDisk (currently writing to disk) (2) backedUp (finished writing to disk)
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

object

protected Cacheable object
object cached in the CacheLine


id

protected CacheableIdentity id
id which indicates how to store the object in the cache


handle

protected CacheableHandle handle
way in which to access this CacheLine


numPinned

protected ostore.cache.c_int numPinned
number of times this CacheLine is currently pinned


saved

protected int saved
saved indicates whether this cacheline has (0) notBackedUp (not yet written to disk) (1) writingToDisk (currently writing to disk) (2) backedUp (finished writing to disk)

Method Detail

toString

public String toString()
Overrides:
toString in class Object