FileSystemBLOBStore
ResourceBasedBLOBStore
FileSystem
Note that The DataStore should nowadays be used instead of the BLOBStore.
145146147148149150151152153
*/ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); initialized = true; }
242243244245246247248249250251252
*/ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); } else { /** * store BLOBs in db */ blobStore = new DbBLOBStore();
414415416417418419420421422
301302303304305306307308309310311
((LocalFileSystem) blobFS).setRoot(new File(context.getHomeDir(), "blobs")); } else { blobFS = new MemoryFileSystem(); } blobFS.init(); blobStore = new FileSystemBLOBStore(blobFS); if (persistent) { // deserialize contents of state and refs stores loadContents(); }
390391392393394395396397398399400
// Choose a FileSystem for the BlobStore based on whether data is persistent or not if (useFileBlobStore) { blobFS = new LocalFileSystem(); ((LocalFileSystem) blobFS).setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); blobStore = new FileSystemBLOBStore(blobFS); } else { blobStore = new InMemBLOBStore(); } wspFS = context.getFileSystem();
247248249250251252253254255256257
418419420421422423424425426