file = new RandomAccessFile(STORE_FILE_PATH, "rw");
fileBuf = file.getChannel().map(FileChannel.MapMode.READ_WRITE, 0, STORE_CAPACITY);
// initialize the registries
modeRegistry = new StaticModePageRegistry();
inquiryRegistry = new StaticInquiryDataRegistry();
memFactory = new BufferedTaskFactory(memBuf, STORE_BLOCK_SIZE, modeRegistry, inquiryRegistry);
fileFactory =
new BufferedTaskFactory(fileBuf, STORE_BLOCK_SIZE, modeRegistry, inquiryRegistry);