Package com.db4o.internal.freespace
Class FreespaceManagerIx
- java.lang.Object
-
- com.db4o.internal.freespace.AbstractFreespaceManager
-
- com.db4o.internal.freespace.FreespaceManagerIx
-
- All Implemented Interfaces:
FreespaceManager
public class FreespaceManagerIx extends AbstractFreespaceManager
Old freespacemanager, before version 7.0. If it is still in use freespace is dropped.BTreeFreespaceManager
should be used instead.
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.freespace.AbstractFreespaceManager
_slotFreedCallback, FM_BTREE, FM_DEBUG, FM_DEFAULT, FM_IX, FM_LEGACY_RAM, FM_RAM, REMAINDER_SIZE_LIMIT
-
-
Constructor Summary
Constructors Constructor Description FreespaceManagerIx(int discardLimit, int remainderSizeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Slot
allocateSafeSlot(int length)
Slot
allocateSlot(int length)
Slot
allocateTransactionLogSlot(int length)
void
beginCommit()
void
commit()
void
endCommit()
void
free(Slot slot)
void
freeSafeSlot(Slot slot)
void
freeSelf()
boolean
isStarted()
void
listener(FreespaceListener listener)
void
migrateTo(FreespaceManager fm)
void
read(LocalObjectContainer container, Slot slot)
int
slotCount()
void
start(int id)
byte
systemType()
void
traverse(Visitor4 visitor)
void
write(LocalObjectContainer container)
-
Methods inherited from class com.db4o.internal.freespace.AbstractFreespaceManager
checkType, createNew, createNew, debugCheckIntegrity, discardLimit, initSlot, migrate, migrationRequired, slotFreed, splitRemainder, totalFreespace
-
-
-
-
Method Detail
-
allocateSafeSlot
public Slot allocateSafeSlot(int length)
-
freeSafeSlot
public void freeSafeSlot(Slot slot)
-
beginCommit
public void beginCommit()
-
endCommit
public void endCommit()
-
slotCount
public int slotCount()
-
free
public void free(Slot slot)
-
freeSelf
public void freeSelf()
-
allocateSlot
public Slot allocateSlot(int length)
-
migrateTo
public void migrateTo(FreespaceManager fm)
- Specified by:
migrateTo
in interfaceFreespaceManager
- Overrides:
migrateTo
in classAbstractFreespaceManager
-
traverse
public void traverse(Visitor4 visitor)
-
start
public void start(int id)
-
systemType
public byte systemType()
-
write
public void write(LocalObjectContainer container)
-
commit
public void commit()
-
listener
public void listener(FreespaceListener listener)
-
isStarted
public boolean isStarted()
-
allocateTransactionLogSlot
public Slot allocateTransactionLogSlot(int length)
-
read
public void read(LocalObjectContainer container, Slot slot)
-
-