Package com.db4o.ext
Interface SystemInfo
-
- All Known Implementing Classes:
SystemInfoFileImpl
public interface SystemInfo
provides information about system state and system settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
freespaceEntryCount()
returns the number of entries in the Freespace Manager.long
freespaceSize()
returns the freespace size in the database in bytes.long
totalSize()
Returns the total size of the database on disk.
-
-
-
Method Detail
-
freespaceEntryCount
int freespaceEntryCount()
returns the number of entries in the Freespace Manager.
A high value for the number of freespace entries is an indication that the database is fragmented and that defragment should be run.- Returns:
- the number of entries in the Freespace Manager.
-
freespaceSize
long freespaceSize()
returns the freespace size in the database in bytes.
When db4o stores modified objects, it allocates a new slot for it. During commit the old slot is freed. Free slots are collected in the freespace manager, so they can be reused for other objects.
This method returns a sum of the size of all free slots in the database file.
To reclaim freespace run defragment.- Returns:
- the freespace size in the database in bytes.
-
totalSize
long totalSize()
Returns the total size of the database on disk.- Returns:
- total size of database on disk
-
-