FileSystemBLOBStore
ResourceBasedBLOBStore
FileSystem
Note that The DataStore should nowadays be used instead of the BLOBStore.
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();
428429430431432433434435436
*/ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); initialized = true; }
223224225226227228229230231232233
425426427428429430431432433
214215216217218219220221222223224
386387388389390391392393394395396
// 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();
244245246247248249250251252253254
417418419420421422423424425