BlobStore blobStore, final File directory, NodeState initial,
int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)
throws IOException {
checkNotNull(directory).mkdirs();
if (cacheSizeMB > 0) {
this.tracker = new SegmentTracker(this, cacheSizeMB);
} else {
this.tracker = new SegmentTracker(this);
}
this.blobStore = blobStore;
this.directory = directory;
this.maxFileSize = maxFileSizeMB * MB;
this.memoryMapping = memoryMapping;