public abstract class BaseContainerImpl extends Object
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
protected |
BaseContainerImpl(ContainerId id,
IndexItem root,
IndexManager indexManager,
DataManager dataManager,
boolean persistentIndex) |
Modifier and Type | Method and Description |
---|---|
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) |
protected IndexItem root
protected IndexLinkedList indexList
protected IndexManager indexManager
protected DataManager dataManager
protected ContainerId containerId
protected boolean loaded
protected boolean closed
protected boolean initialized
protected boolean persistentIndex
protected BaseContainerImpl(ContainerId id, IndexItem root, IndexManager indexManager, DataManager dataManager, boolean persistentIndex)
public ContainerId getContainerId()
public void init()
public void clear()
public IndexLinkedList getList()
public void setList(IndexLinkedList indexList)
indexList
- the indexList to setpublic abstract void unload()
public abstract void load()
public abstract int size()
protected abstract Object getValue(StoreEntry currentItem)
protected abstract void remove(IndexItem currentItem)
protected final IndexLinkedList getInternalList()
public final void close()
public final boolean isLoaded()
public final Object getId()
public DataManager getDataManager()
public IndexManager getIndexManager()
public final void expressDataInterest() throws IOException
IOException
protected final void doClear()
protected final void checkClosed()
protected void storeIndex(IndexItem item) throws IOException
IOException
protected void updateIndexes(IndexItem item) throws IOException
IOException
protected final boolean isRoot(StoreEntry item)
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.