public abstract class AbstractFreespaceManager extends java.lang.Object implements FreespaceManager
| Modifier and Type | Field and Description |
|---|---|
protected Procedure4<Slot> |
_slotFreedCallback |
static byte |
FM_BTREE |
static byte |
FM_DEBUG |
static byte |
FM_DEFAULT |
static byte |
FM_IX |
static byte |
FM_LEGACY_RAM |
static byte |
FM_RAM |
static int |
REMAINDER_SIZE_LIMIT |
| Constructor and Description |
|---|
AbstractFreespaceManager(Procedure4<Slot> slotFreedCallback,
int discardLimit,
int remainderSizeLimit) |
| Modifier and Type | Method and Description |
|---|---|
static byte |
checkType(byte systemType) |
static AbstractFreespaceManager |
createNew(LocalObjectContainer file) |
static AbstractFreespaceManager |
createNew(LocalObjectContainer file,
byte systemType) |
void |
debugCheckIntegrity() |
protected int |
discardLimit() |
static int |
initSlot(LocalObjectContainer file) |
static void |
migrate(FreespaceManager oldFM,
FreespaceManager newFM) |
void |
migrateTo(FreespaceManager fm) |
static boolean |
migrationRequired(byte systemType) |
void |
slotFreed(Slot slot) |
protected boolean |
splitRemainder(int length) |
int |
totalFreespace() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallocateSafeSlot, allocateSlot, allocateTransactionLogSlot, beginCommit, commit, endCommit, free, freeSafeSlot, freeSelf, isStarted, listener, read, slotCount, start, systemType, traverse, writepublic static final byte FM_DEBUG
public static final byte FM_DEFAULT
public static final byte FM_LEGACY_RAM
public static final byte FM_RAM
public static final byte FM_IX
public static final byte FM_BTREE
public static final int REMAINDER_SIZE_LIMIT
protected Procedure4<Slot> _slotFreedCallback
public AbstractFreespaceManager(Procedure4<Slot> slotFreedCallback, int discardLimit, int remainderSizeLimit)
public static byte checkType(byte systemType)
public static AbstractFreespaceManager createNew(LocalObjectContainer file)
public static AbstractFreespaceManager createNew(LocalObjectContainer file, byte systemType)
public static int initSlot(LocalObjectContainer file)
public void migrateTo(FreespaceManager fm)
migrateTo in interface FreespaceManagerpublic int totalFreespace()
totalFreespace in interface FreespaceManagerprotected int discardLimit()
protected final boolean splitRemainder(int length)
public static void migrate(FreespaceManager oldFM, FreespaceManager newFM)
public void debugCheckIntegrity()
public static boolean migrationRequired(byte systemType)
public void slotFreed(Slot slot)
slotFreed in interface FreespaceManager