Package org.apache.storm.blobstore
Class LocalFsBlobStoreFile
- java.lang.Object
-
- org.apache.storm.blobstore.BlobStoreFile
-
- org.apache.storm.blobstore.LocalFsBlobStoreFile
-
public class LocalFsBlobStoreFile extends BlobStoreFile
-
-
Field Summary
-
Fields inherited from class org.apache.storm.blobstore.BlobStoreFile
BLOBSTORE_DATA_FILE, LOG, TMP_EXT, TMP_NAME_PATTERN
-
-
Constructor Summary
Constructors Constructor Description LocalFsBlobStoreFile(File base, boolean isTmp, boolean mustBeNew)LocalFsBlobStoreFile(File base, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidcommit()voiddelete()longgetFileLength()InputStreamgetInputStream()StringgetKey()SettableBlobMetagetMetadata()longgetModTime()OutputStreamgetOutputStream()longgetVersion()booleanisTmp()voidsetMetadata(SettableBlobMeta meta)StringtoString()
-
-
-
Method Detail
-
delete
public void delete() throws IOException- Specified by:
deletein classBlobStoreFile- Throws:
IOException
-
isTmp
public boolean isTmp()
- Specified by:
isTmpin classBlobStoreFile
-
getKey
public String getKey()
- Specified by:
getKeyin classBlobStoreFile
-
getVersion
public long getVersion() throws IOException- Overrides:
getVersionin classBlobStoreFile- Throws:
IOException
-
getModTime
public long getModTime() throws IOException- Specified by:
getModTimein classBlobStoreFile- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin classBlobStoreFile- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin classBlobStoreFile- Throws:
IOException
-
commit
public void commit() throws IOException- Specified by:
commitin classBlobStoreFile- Throws:
IOException
-
cancel
public void cancel() throws IOException- Specified by:
cancelin classBlobStoreFile- Throws:
IOException
-
getMetadata
public SettableBlobMeta getMetadata()
- Specified by:
getMetadatain classBlobStoreFile
-
setMetadata
public void setMetadata(SettableBlobMeta meta)
- Specified by:
setMetadatain classBlobStoreFile
-
getFileLength
public long getFileLength()
- Specified by:
getFileLengthin classBlobStoreFile
-
-