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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidcancel()abstract voidcommit()abstract voiddelete()abstract longabstract InputStreamabstract StringgetKey()abstract SettableBlobMetaabstract longabstract OutputStreamabstract booleanisTmp()abstract voidsetMetadata(SettableBlobMeta meta) 
- 
Field Details- 
LOGpublic static final org.slf4j.Logger LOG
- 
TMP_EXT- See Also:
 
- 
TMP_NAME_PATTERN
- 
BLOBSTORE_DATA_FILE- See Also:
 
 
- 
- 
Constructor Details- 
BlobStoreFilepublic BlobStoreFile()
 
- 
- 
Method Details- 
delete- Throws:
- IOException
 
- 
getKey
- 
isTmppublic abstract boolean isTmp()
- 
getMetadata
- 
setMetadata
- 
getModTime- Throws:
- IOException
 
- 
getInputStream- Throws:
- IOException
 
- 
getOutputStream- Throws:
- IOException
 
- 
commit- Throws:
- IOException
 
- 
cancel- Throws:
- IOException
 
- 
getFileLength- Throws:
- IOException
 
 
-