public class FileSystemBlobVaultOld
extends jetbrains.exodus.entitystore.BlobVault
implements jetbrains.exodus.entitystore.DiskBasedBlobVault
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
static java.lang.String |
VERSION_FILE |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
boolean |
delete(long blobHandle) |
void |
flushBlobs(@Nullable jetbrains.exodus.core.dataStructures.hash.LongHashMap<java.io.InputStream> blobStreams,
@Nullable jetbrains.exodus.core.dataStructures.hash.LongHashMap<java.io.File> blobFiles,
@Nullable jetbrains.exodus.core.dataStructures.hash.LongSet deferredBlobsToDelete,
@NotNull jetbrains.exodus.env.Transaction txn) |
@NotNull jetbrains.exodus.backup.BackupStrategy |
getBackupStrategy() |
@NotNull jetbrains.exodus.entitystore.BlobVaultItem |
getBlob(long blobHandle) |
java.lang.String |
getBlobKey(long blobHandle) |
@NotNull java.io.File |
getBlobLocation(long blobHandle) |
@NotNull java.io.File |
getBlobLocation(long blobHandle,
boolean readonly) |
@Nullable java.io.InputStream |
getContent(long blobHandle,
@NotNull jetbrains.exodus.env.Transaction txn) |
long |
getSize(long blobHandle,
@NotNull jetbrains.exodus.env.Transaction txn) |
java.io.File |
getVaultLocation() |
int |
getVersion() |
long |
nextHandle(@NotNull jetbrains.exodus.env.Transaction txn) |
boolean |
requiresTxn() |
long |
size() |
protected static final org.slf4j.Logger logger
@NonNls public static final java.lang.String VERSION_FILE
@NotNull public @NotNull jetbrains.exodus.entitystore.BlobVaultItem getBlob(long blobHandle)
getBlob in class jetbrains.exodus.entitystore.BlobVaultpublic java.io.File getVaultLocation()
public int getVersion()
public long nextHandle(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
nextHandle in interface jetbrains.exodus.entitystore.BlobHandleGenerator@Nullable
public @Nullable java.io.InputStream getContent(long blobHandle,
@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
getContent in interface jetbrains.exodus.entitystore.DiskBasedBlobVaultgetContent in class jetbrains.exodus.entitystore.BlobVaultpublic long getSize(long blobHandle,
@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
getSize in class jetbrains.exodus.entitystore.BlobVaultpublic boolean delete(long blobHandle)
delete in interface jetbrains.exodus.entitystore.DiskBasedBlobVaultdelete in class jetbrains.exodus.entitystore.BlobVaultpublic boolean requiresTxn()
requiresTxn in class jetbrains.exodus.entitystore.BlobVaultpublic void flushBlobs(@Nullable
@Nullable jetbrains.exodus.core.dataStructures.hash.LongHashMap<java.io.InputStream> blobStreams,
@Nullable
@Nullable jetbrains.exodus.core.dataStructures.hash.LongHashMap<java.io.File> blobFiles,
@Nullable
@Nullable jetbrains.exodus.core.dataStructures.hash.LongSet deferredBlobsToDelete,
@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
throws java.lang.Exception
flushBlobs in class jetbrains.exodus.entitystore.BlobVaultjava.lang.Exceptionpublic long size()
size in interface jetbrains.exodus.entitystore.DiskBasedBlobVaultsize in class jetbrains.exodus.entitystore.BlobVaultpublic void clear()
clear in class jetbrains.exodus.entitystore.BlobVaultpublic void close()
close in interface jetbrains.exodus.entitystore.DiskBasedBlobVaultclose in class jetbrains.exodus.entitystore.BlobVault@NotNull public @NotNull jetbrains.exodus.backup.BackupStrategy getBackupStrategy()
getBackupStrategy in interface jetbrains.exodus.backup.Backupable@NotNull public @NotNull java.io.File getBlobLocation(long blobHandle)
getBlobLocation in interface jetbrains.exodus.entitystore.DiskBasedBlobVaultgetBlobLocation in class jetbrains.exodus.entitystore.BlobVaultpublic java.lang.String getBlobKey(long blobHandle)
getBlobKey in interface jetbrains.exodus.entitystore.DiskBasedBlobVaultgetBlobKey in class jetbrains.exodus.entitystore.BlobVault@NotNull
public @NotNull java.io.File getBlobLocation(long blobHandle,
boolean readonly)
getBlobLocation in interface jetbrains.exodus.entitystore.DiskBasedBlobVault