public class MavibotInspector extends Object
| Constructor and Description |
|---|
MavibotInspector(File dbFile)
A private class to store a few informations about a btree
private static BtreeInfo btreeInfo;
static
{
btreeInfo = new BtreeInfo();
}
/**
Create an instance of MavibotInspector
|
| Modifier and Type | Method and Description |
|---|---|
static List<Long> |
getFreePages() |
static List<Long> |
getGlobalPages() |
static List<Long> |
getPageOffsets(String pageArrayName)
Gives a list of offsets of pages from the page array associated wit the given name.
|
void |
inspectBTree()
Check a B-tree
|
static void |
main(String[] args)
Main method
|
void |
printBTreeNames()
Print the B-tree's name
|
void |
printFileSize()
Pretty print the file size
|
void |
printNumberOfBTrees()
Print the number of B-trees
|
void |
start()
The entry point method
|
public MavibotInspector(File dbFile)
dbFile - The file to readpublic void printFileSize()
throws IOException
IOExceptionpublic void printNumberOfBTrees()
public void printBTreeNames()
public void inspectBTree()
public static List<Long> getFreePages() throws IOException
IOException#getPageOffsets()public static List<Long> getGlobalPages() throws IOException
IOException#getPageOffsets()public static List<Long> getPageOffsets(String pageArrayName) throws IOException
IOExceptionCopyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.