Package com.db4o.internal.freespace
Class BlockAwareFreespaceManager
- java.lang.Object
-
- com.db4o.internal.freespace.BlockAwareFreespaceManager
-
- All Implemented Interfaces:
FreespaceManager
public class BlockAwareFreespaceManager extends java.lang.Object implements FreespaceManager
-
-
Constructor Summary
Constructors Constructor Description BlockAwareFreespaceManager(FreespaceManager delegate_, BlockConverter blockConverter)
-
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
slotFreed(Slot slot)
void
start(int id)
byte
systemType()
int
totalFreespace()
void
traverse(Visitor4<Slot> visitor)
void
write(LocalObjectContainer container)
-
-
-
Constructor Detail
-
BlockAwareFreespaceManager
public BlockAwareFreespaceManager(FreespaceManager delegate_, BlockConverter blockConverter)
-
-
Method Detail
-
allocateSlot
public Slot allocateSlot(int length)
- Specified by:
allocateSlot
in interfaceFreespaceManager
-
allocateSafeSlot
public Slot allocateSafeSlot(int length)
- Specified by:
allocateSafeSlot
in interfaceFreespaceManager
-
beginCommit
public void beginCommit()
- Specified by:
beginCommit
in interfaceFreespaceManager
-
commit
public void commit()
- Specified by:
commit
in interfaceFreespaceManager
-
endCommit
public void endCommit()
- Specified by:
endCommit
in interfaceFreespaceManager
-
free
public void free(Slot slot)
- Specified by:
free
in interfaceFreespaceManager
-
freeSelf
public void freeSelf()
- Specified by:
freeSelf
in interfaceFreespaceManager
-
freeSafeSlot
public void freeSafeSlot(Slot slot)
- Specified by:
freeSafeSlot
in interfaceFreespaceManager
-
listener
public void listener(FreespaceListener listener)
- Specified by:
listener
in interfaceFreespaceManager
-
migrateTo
public void migrateTo(FreespaceManager fm)
- Specified by:
migrateTo
in interfaceFreespaceManager
-
slotCount
public int slotCount()
- Specified by:
slotCount
in interfaceFreespaceManager
-
start
public void start(int id)
- Specified by:
start
in interfaceFreespaceManager
-
systemType
public byte systemType()
- Specified by:
systemType
in interfaceFreespaceManager
-
totalFreespace
public int totalFreespace()
- Specified by:
totalFreespace
in interfaceFreespaceManager
-
traverse
public void traverse(Visitor4<Slot> visitor)
- Specified by:
traverse
in interfaceFreespaceManager
-
write
public void write(LocalObjectContainer container)
- Specified by:
write
in interfaceFreespaceManager
-
slotFreed
public void slotFreed(Slot slot)
- Specified by:
slotFreed
in interfaceFreespaceManager
-
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interfaceFreespaceManager
-
allocateTransactionLogSlot
public Slot allocateTransactionLogSlot(int length)
- Specified by:
allocateTransactionLogSlot
in interfaceFreespaceManager
-
read
public void read(LocalObjectContainer container, Slot slot)
- Specified by:
read
in interfaceFreespaceManager
-
-