FileSystemBLOBStore
ResourceBasedBLOBStore
FileSystem
Note that The DataStore should nowadays be used instead of the BLOBStore.
296297298299300301302303304305306
*/ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); if (persistent) { // deserialize contents of state and refs stores loadContents(); }
389390391392393394395396397398399
// 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();
298299300301302303304305306307308
147148149150151152153154155
*/ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); initialized = true; }
427428429430431432433434435
222223224225226227228229230231232
*/ 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();
417418419420421422423424425
304305306307308309310311312313314
414415416417418419420421422
297298299300301302303304305306307
((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(); }