org.apache.activemq.kaha.impl.container
Class BaseContainerImpl
java.lang.Object
org.apache.activemq.kaha.impl.container.BaseContainerImpl
- Direct Known Subclasses:
- ListContainerImpl, MapContainerImpl
public abstract class BaseContainerImpl
- extends java.lang.Object
Implementation of a ListContainer
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
indexType
protected java.lang.String indexType
BaseContainerImpl
protected BaseContainerImpl(ContainerId id,
IndexItem root,
IndexManager indexManager,
DataManager dataManager,
java.lang.String indexType)
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 java.lang.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 java.lang.Object getId()
getDataManager
public DataManager getDataManager()
getIndexManager
public IndexManager getIndexManager()
expressDataInterest
public final void expressDataInterest()
throws java.io.IOException
- Throws:
java.io.IOException
doClear
protected final void doClear()
delete
protected final void delete(IndexItem key,
IndexItem prev,
IndexItem next)
checkClosed
protected final void checkClosed()
storeIndex
protected void storeIndex(IndexItem item)
throws java.io.IOException
- Throws:
java.io.IOException
updateIndexes
protected void updateIndexes(IndexItem item)
throws java.io.IOException
- Throws:
java.io.IOException
isRoot
protected final boolean isRoot(StoreEntry item)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.