krati
Interface Persistable

All Known Subinterfaces:
AddressArray, DataCache, ObjectCache<T>, RecoverableArray<V>
All Known Implementing Classes:
AbstractDataArray, ArrayEntryManager, DataCacheImpl, DynamicDataArray, DynamicIntArray, DynamicLongArray, DynamicShortArray, ObjectCacheAgent, SerializableObjectCache, SimpleDataArray, StaticDataArray, StaticIntArray, StaticLongArray, StaticShortArray

public interface Persistable

Persistable

Author:
jwu

Method Summary
 long getHWMark()
          Gets the high water mark.
 long getLWMark()
          Gets the low water mark.
 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 sync()
          Force all updates from memory buffer and redo log files to synchronize with the underlying persistent file in blocking mode.
 

Method Detail

sync

void sync()
          throws IOException
Force all updates from memory buffer and redo log files to synchronize with the underlying persistent file in blocking mode.

Throws:
IOException

persist

void persist()
             throws IOException
Persist all updates from memory buffer into redo log files in non-blocking mode.

Throws:
IOException

getLWMark

long getLWMark()
Gets the low water mark.


getHWMark

long getHWMark()
Gets the high water mark.


saveHWMark

void saveHWMark(long endOfPeriod)
                throws Exception
Save the high water mark.

Parameters:
endOfPeriod -
Throws:
Exception


Copyright © 2011. All Rights Reserved.