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 void
cancel()
void
commit()
void
delete()
long
getFileLength()
InputStream
getInputStream()
String
getKey()
SettableBlobMeta
getMetadata()
long
getModTime()
OutputStream
getOutputStream()
long
getVersion()
boolean
isTmp()
void
setMetadata(SettableBlobMeta meta)
String
toString()
-
-
-
Method Detail
-
delete
public void delete() throws IOException
- Specified by:
delete
in classBlobStoreFile
- Throws:
IOException
-
isTmp
public boolean isTmp()
- Specified by:
isTmp
in classBlobStoreFile
-
getKey
public String getKey()
- Specified by:
getKey
in classBlobStoreFile
-
getVersion
public long getVersion() throws IOException
- Overrides:
getVersion
in classBlobStoreFile
- Throws:
IOException
-
getModTime
public long getModTime() throws IOException
- Specified by:
getModTime
in classBlobStoreFile
- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in classBlobStoreFile
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in classBlobStoreFile
- Throws:
IOException
-
commit
public void commit() throws IOException
- Specified by:
commit
in classBlobStoreFile
- Throws:
IOException
-
cancel
public void cancel() throws IOException
- Specified by:
cancel
in classBlobStoreFile
- Throws:
IOException
-
getMetadata
public SettableBlobMeta getMetadata()
- Specified by:
getMetadata
in classBlobStoreFile
-
setMetadata
public void setMetadata(SettableBlobMeta meta)
- Specified by:
setMetadata
in classBlobStoreFile
-
getFileLength
public long getFileLength()
- Specified by:
getFileLength
in classBlobStoreFile
-
-