FileSystemBLOBStore
ResourceBasedBLOBStore
FileSystem
Note that The DataStore should nowadays be used instead of the BLOBStore.
214215216217218219220221222223224
*/ 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();
393394395396397398399400401
*/ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); initialized = true; }
427428429430431432433434435
297298299300301302303304305306307
*/ 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(); }
146147148149150151152153154
222223224225226227228229230231232
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(); }
149150151152153154155156157
246247248249250251252253254255256
418419420421422423424425426