org.apache.activemq.kaha.impl.container
Class BaseContainerImpl

java.lang.Object
  extended by org.apache.activemq.kaha.impl.container.BaseContainerImpl
Direct Known Subclasses:
ListContainerImpl, MapContainerImpl

public abstract class BaseContainerImpl
extends Object

Implementation of a ListContainer


Field Summary
protected  boolean closed
           
protected  ContainerId containerId
           
protected  DataManager dataManager
           
protected  IndexLinkedList indexList
           
protected  IndexManager indexManager
           
protected  boolean initialized
           
protected  boolean loaded
           
protected  boolean persistentIndex
           
protected  IndexItem root
           
 
Constructor Summary
protected BaseContainerImpl(ContainerId id, IndexItem root, IndexManager indexManager, DataManager dataManager, boolean persistentIndex)
           
 
Method Summary
protected  void checkClosed()
           
 void clear()
           
 void close()
           
protected  void delete(IndexItem keyItem, IndexItem prevItem, IndexItem nextItem)
           
protected  void doClear()
           
 void expressDataInterest()
           
 ContainerId getContainerId()
           
 DataManager getDataManager()
           
 Object getId()
           
 IndexManager getIndexManager()
           
protected  IndexLinkedList getInternalList()
           
 IndexLinkedList getList()
           
protected abstract  Object getValue(StoreEntry currentItem)
           
 void init()
           
 boolean isLoaded()
           
protected  boolean isRoot(StoreEntry item)
           
abstract  void load()
           
protected abstract  void remove(IndexItem currentItem)
           
 void setList(IndexLinkedList indexList)
           
abstract  int size()
           
protected  void storeIndex(IndexItem item)
           
abstract  void unload()
           
protected  void updateIndexes(IndexItem item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected IndexItem root

indexList

protected IndexLinkedList indexList

indexManager

protected IndexManager indexManager

dataManager

protected DataManager dataManager

containerId

protected ContainerId containerId

loaded

protected boolean loaded

closed

protected boolean closed

initialized

protected boolean initialized

persistentIndex

protected boolean persistentIndex
Constructor Detail

BaseContainerImpl

protected BaseContainerImpl(ContainerId id,
                            IndexItem root,
                            IndexManager indexManager,
                            DataManager dataManager,
                            boolean persistentIndex)
Method Detail

getContainerId

public ContainerId getContainerId()

init

public void init()

clear

public void clear()

getList

public IndexLinkedList getList()
Returns:
the indexList

setList

public void setList(IndexLinkedList indexList)
Parameters:
indexList - the indexList to set

unload

public abstract void unload()

load

public abstract void load()

size

public abstract int size()

getValue

protected abstract Object getValue(StoreEntry currentItem)

remove

protected abstract void remove(IndexItem currentItem)

getInternalList

protected final IndexLinkedList getInternalList()

close

public final void close()

isLoaded

public final boolean isLoaded()

getId

public final Object getId()

getDataManager

public DataManager getDataManager()

getIndexManager

public IndexManager getIndexManager()

expressDataInterest

public final void expressDataInterest()
                               throws IOException
Throws:
IOException

doClear

protected final void doClear()

delete

protected final void delete(IndexItem keyItem,
                            IndexItem prevItem,
                            IndexItem nextItem)

checkClosed

protected final void checkClosed()

storeIndex

protected void storeIndex(IndexItem item)
                   throws IOException
Throws:
IOException

updateIndexes

protected void updateIndexes(IndexItem item)
                      throws IOException
Throws:
IOException

isRoot

protected final boolean isRoot(StoreEntry item)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.