private void appendHelloRecord(int i) throws IOException, InterruptedException {
byte data[] = ("Hello World: " + i).getBytes();
Record batchedRecord = new Record(LogFileManager.DATA_RECORD_TYPE, new ByteArrayPacket(data), null);
batchedRecord.setLocation(logFile.getNextAppendLocation());
BatchedWrite write = new BatchedWrite(new ByteBufferPacket(ByteBuffer.allocate(1024)));
write.append(batchedRecord,null, true);
write.flip();
logFile.append(write);
}