|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkrati.core.array.basic.ArrayEntryManager<V>
public class ArrayEntryManager<V extends EntryValue>
Constructor Summary | |
---|---|
ArrayEntryManager(RecoverableArray<V> array,
int maxEntries,
int maxEntrySize)
|
Method Summary | |
---|---|
protected void |
applyEntries(boolean blocking)
Apply accumulated entries to the array file. |
protected void |
applyEntries(List<Entry<V>> entries)
|
void |
clear()
|
protected void |
deleteEntryFiles()
Delete entry log files on disk. |
boolean |
getAutoApplyEntries()
|
File |
getDirectory()
|
EntryFactory<V> |
getEntryFactory()
|
protected String |
getEntryLogName(Entry<V> entry)
|
protected String |
getEntryLogPrefix()
|
protected String |
getEntryLogSuffix()
|
EntryPersistListener |
getEntryPersistListener()
|
long |
getHWMark()
Gets the high water mark. |
long |
getLWMark()
Gets the low water mark. |
int |
getMaxEntries()
|
int |
getMaxEntrySize()
|
protected void |
init(long arrayFileLwmScn,
long arrayFileHwmScn)
|
protected List<Entry<V>> |
loadEntryFiles()
Load entry log files from disk into _entryList. |
void |
persist()
Persist all updates from memory buffer into redo log files in non-blocking mode. |
void |
saveHWMark(long endOfPeriod)
Save the high water mark. |
void |
setAutoApplyEntries(boolean b)
|
void |
setEntryPersistListener(EntryPersistListener listener)
|
void |
setWaterMarks(long lwmScn,
long hwmScn)
|
protected void |
switchEntry(boolean blocking)
Switches to a new entry if _curEntry is not empty. |
void |
sync()
Force all updates from memory buffer and redo log files to synchronize with the underlying persistent file in blocking mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayEntryManager(RecoverableArray<V> array, int maxEntries, int maxEntrySize)
Method Detail |
---|
public int getMaxEntries()
public int getMaxEntrySize()
public File getDirectory()
public EntryFactory<V> getEntryFactory()
public boolean getAutoApplyEntries()
public void setAutoApplyEntries(boolean b)
public void clear()
public long getHWMark()
Persistable
getHWMark
in interface Persistable
public long getLWMark()
Persistable
getLWMark
in interface Persistable
public void saveHWMark(long endOfPeriod) throws Exception
Persistable
saveHWMark
in interface Persistable
Exception
public void setWaterMarks(long lwmScn, long hwmScn)
public void sync() throws IOException
Persistable
sync
in interface Persistable
IOException
public void persist() throws IOException
Persistable
persist
in interface Persistable
IOException
public void setEntryPersistListener(EntryPersistListener listener)
public EntryPersistListener getEntryPersistListener()
protected final String getEntryLogName(Entry<V> entry)
protected final String getEntryLogPrefix()
protected final String getEntryLogSuffix()
protected void switchEntry(boolean blocking) throws IOException
IOException
protected void applyEntries(boolean blocking) throws IOException
IOException
protected List<Entry<V>> loadEntryFiles()
IOException
protected void deleteEntryFiles() throws IOException
IOException
protected void applyEntries(List<Entry<V>> entries) throws IOException
IOException
protected void init(long arrayFileLwmScn, long arrayFileHwmScn) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |