org.apache.activemq.kaha.impl.index
Class IndexManager
java.lang.Object
org.apache.activemq.kaha.impl.index.IndexManager
public final class IndexManager
- extends java.lang.Object
Optimized Store reader
- Version:
- $Revision: 1.1.1.1 $
Constructor Summary |
IndexManager(java.io.File directory,
java.lang.String name,
java.lang.String mode,
DataManager redoLog)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NAME_PREFIX
public static final java.lang.String NAME_PREFIX
- See Also:
- Constant Field Values
IndexManager
public IndexManager(java.io.File directory,
java.lang.String name,
java.lang.String mode,
DataManager redoLog)
throws java.io.IOException
- Throws:
java.io.IOException
isEmpty
public boolean isEmpty()
getIndex
public IndexItem getIndex(long offset)
throws java.io.IOException
- Throws:
java.io.IOException
refreshIndex
public IndexItem refreshIndex(IndexItem item)
throws java.io.IOException
- Throws:
java.io.IOException
freeIndex
public void freeIndex(IndexItem item)
throws java.io.IOException
- Throws:
java.io.IOException
storeIndex
public void storeIndex(IndexItem index)
throws java.io.IOException
- Throws:
java.io.IOException
updateIndexes
public void updateIndexes(IndexItem index)
throws java.io.IOException
- Throws:
java.io.IOException
redo
public void redo(RedoStoreIndexItem redo)
throws java.io.IOException
- Throws:
java.io.IOException
createNewIndex
public IndexItem createNewIndex()
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
force
public void force()
throws java.io.IOException
- Throws:
java.io.IOException
delete
public boolean delete()
throws java.io.IOException
- Throws:
java.io.IOException
setLength
public void setLength(long value)
getLock
public java.nio.channels.FileLock getLock()
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
initialize
protected void initialize()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2009 Apache Software Foundation. All Rights Reserved.