Class BlockBasedDataStoreTools
- java.lang.Object
-
- net.timewalker.ffmq4.storage.data.impl.BlockBasedDataStoreTools
-
public class BlockBasedDataStoreTools extends Object
BlockFileDataStoreTools
-
-
Constructor Summary
Constructors Constructor Description BlockBasedDataStoreTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate(String baseName, File dataFolder, int blockCount, int blockSize, boolean forceSync)Create the filesystem for a new storestatic voiddelete(String baseName, File dataFolder, boolean force)Delete the filesystem of a storestatic File[]findJournalFiles(String baseName, File dataFolder)Find existing journal files for a given base namestatic File[]findRecycledJournalFiles(String baseName, File dataFolder)Find recycled journal files for a given base name
-
-
-
Method Detail
-
create
public static void create(String baseName, File dataFolder, int blockCount, int blockSize, boolean forceSync) throws DataStoreException
Create the filesystem for a new store- Throws:
DataStoreException
-
delete
public static void delete(String baseName, File dataFolder, boolean force) throws DataStoreException
Delete the filesystem of a store- Throws:
DataStoreException
-
findJournalFiles
public static File[] findJournalFiles(String baseName, File dataFolder)
Find existing journal files for a given base name- Parameters:
baseName-dataFolder-- Returns:
- an array of journal files
-
-