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
ConstructorDescriptionLocalFsBlobStoreFile
(File base, boolean isTmp, boolean mustBeNew) LocalFsBlobStoreFile
(File base, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
void
commit()
void
delete()
long
getKey()
long
boolean
isTmp()
void
setMetadata
(SettableBlobMeta meta) toString()
-
Constructor Details
-
LocalFsBlobStoreFile
-
LocalFsBlobStoreFile
-
-
Method Details
-
delete
- Specified by:
delete
in classBlobStoreFile
- Throws:
IOException
-
isTmp
public boolean isTmp()- Specified by:
isTmp
in classBlobStoreFile
-
getKey
- Specified by:
getKey
in classBlobStoreFile
-
getModTime
- Specified by:
getModTime
in classBlobStoreFile
- Throws:
IOException
-
getInputStream
- Specified by:
getInputStream
in classBlobStoreFile
- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStream
in classBlobStoreFile
- Throws:
IOException
-
commit
- Specified by:
commit
in classBlobStoreFile
- Throws:
IOException
-
cancel
- Specified by:
cancel
in classBlobStoreFile
- Throws:
IOException
-
getMetadata
- Specified by:
getMetadata
in classBlobStoreFile
-
setMetadata
- Specified by:
setMetadata
in classBlobStoreFile
-
toString
-
getFileLength
public long getFileLength()- Specified by:
getFileLength
in classBlobStoreFile
-