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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcancel()abstract voidcommit()abstract voiddelete()abstract longabstract InputStreamabstract StringgetKey()abstract SettableBlobMetaabstract longabstract OutputStreamabstract booleanisTmp()abstract voidsetMetadata(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
-