Package org.apache.storm.blobstore
Class BlobStoreFile
java.lang.Object
org.apache.storm.blobstore.BlobStoreFile
- Direct Known Subclasses:
HdfsBlobStoreFile
,LocalFsBlobStoreFile
Provides an base implementation for creating a blobstore based on file backed storage.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
cancel()
abstract void
commit()
abstract void
delete()
abstract long
abstract InputStream
abstract String
getKey()
abstract SettableBlobMeta
abstract long
abstract OutputStream
abstract boolean
isTmp()
abstract void
setMetadata
(SettableBlobMeta meta)
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
TMP_EXT
- See Also:
-
TMP_NAME_PATTERN
-
BLOBSTORE_DATA_FILE
- See Also:
-
-
Constructor Details
-
BlobStoreFile
public BlobStoreFile()
-
-
Method Details
-
delete
- Throws:
IOException
-
getKey
-
isTmp
public abstract boolean isTmp() -
getMetadata
-
setMetadata
-
getModTime
- Throws:
IOException
-
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
commit
- Throws:
IOException
-
cancel
- Throws:
IOException
-
getFileLength
- Throws:
IOException
-