Package org.apache.storm.blobstore
Class LocalFsBlobStoreFile
java.lang.Object
org.apache.storm.blobstore.BlobStoreFile
org.apache.storm.blobstore.LocalFsBlobStoreFile
-
Field Summary
Fields inherited from class org.apache.storm.blobstore.BlobStoreFile
BLOBSTORE_DATA_FILE, LOG, TMP_EXT, TMP_NAME_PATTERN -
Constructor Summary
ConstructorsConstructorDescriptionLocalFsBlobStoreFile(File base, boolean isTmp, boolean mustBeNew) LocalFsBlobStoreFile(File base, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidcommit()voiddelete()longgetKey()longlongbooleanisTmp()voidsetMetadata(SettableBlobMeta meta) toString()
-
Constructor Details
-
LocalFsBlobStoreFile
-
LocalFsBlobStoreFile
-
-
Method Details
-
delete
- Specified by:
deletein classBlobStoreFile- Throws:
IOException
-
isTmp
public boolean isTmp()- Specified by:
isTmpin classBlobStoreFile
-
getKey
- Specified by:
getKeyin classBlobStoreFile
-
getVersion
- Overrides:
getVersionin classBlobStoreFile- Throws:
IOException
-
getModTime
- Specified by:
getModTimein classBlobStoreFile- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin classBlobStoreFile- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin classBlobStoreFile- Throws:
IOException
-
commit
- Specified by:
commitin classBlobStoreFile- Throws:
IOException
-
cancel
- Specified by:
cancelin classBlobStoreFile- Throws:
IOException
-
getMetadata
- Specified by:
getMetadatain classBlobStoreFile
-
setMetadata
- Specified by:
setMetadatain classBlobStoreFile
-
toString
-
getFileLength
public long getFileLength()- Specified by:
getFileLengthin classBlobStoreFile
-