Package com.db4o.internal.freespace
Class BTreeFreespaceManager
- java.lang.Object
-
- com.db4o.internal.freespace.AbstractFreespaceManager
-
- com.db4o.internal.freespace.BTreeFreespaceManager
-
- All Implemented Interfaces:
FreespaceManager
public class BTreeFreespaceManager extends AbstractFreespaceManager
-
-
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 BTreeFreespaceManager(LocalObjectContainer file, Procedure4<Slot> slotFreedCallback, 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, int freeSpaceID)
void
read(LocalObjectContainer container, Slot slot)
int
slotCount()
void
start(int id)
byte
systemType()
java.lang.String
toString()
int
totalFreespace()
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
-
-
-
-
Constructor Detail
-
BTreeFreespaceManager
public BTreeFreespaceManager(LocalObjectContainer file, Procedure4<Slot> slotFreedCallback, int discardLimit, int remainderSizeLimit)
-
-
Method Detail
-
allocateSafeSlot
public Slot allocateSafeSlot(int length)
-
beginCommit
public void beginCommit()
-
commit
public void commit()
-
endCommit
public void endCommit()
-
free
public void free(Slot slot)
-
freeSelf
public void freeSelf()
-
freeSafeSlot
public void freeSafeSlot(Slot slot)
-
allocateSlot
public Slot allocateSlot(int length)
-
read
public void read(LocalObjectContainer container, int freeSpaceID)
-
slotCount
public int slotCount()
-
start
public void start(int id)
-
isStarted
public boolean isStarted()
-
systemType
public byte systemType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
totalFreespace
public int totalFreespace()
- Specified by:
totalFreespace
in interfaceFreespaceManager
- Overrides:
totalFreespace
in classAbstractFreespaceManager
-
traverse
public void traverse(Visitor4 visitor)
-
migrateTo
public void migrateTo(FreespaceManager fm)
- Specified by:
migrateTo
in interfaceFreespaceManager
- Overrides:
migrateTo
in classAbstractFreespaceManager
-
write
public void write(LocalObjectContainer container)
-
listener
public void listener(FreespaceListener listener)
-
allocateTransactionLogSlot
public Slot allocateTransactionLogSlot(int length)
-
read
public void read(LocalObjectContainer container, Slot slot)
-
-