org.elasticsearch.common.blobstore.fs
Class FsImmutableBlobContainer

java.lang.Object
  extended by org.elasticsearch.common.blobstore.support.AbstractBlobContainer
      extended by org.elasticsearch.common.blobstore.fs.AbstractFsBlobContainer
          extended by org.elasticsearch.common.blobstore.fs.FsImmutableBlobContainer
All Implemented Interfaces:
BlobContainer, ImmutableBlobContainer

public class FsImmutableBlobContainer
extends AbstractFsBlobContainer
implements ImmutableBlobContainer


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.blobstore.ImmutableBlobContainer
ImmutableBlobContainer.WriterListener
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.blobstore.BlobContainer
BlobContainer.BlobNameFilter, BlobContainer.ReadBlobListener
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.blobstore.fs.AbstractFsBlobContainer
blobStore, path
 
Constructor Summary
FsImmutableBlobContainer(FsBlobStore blobStore, BlobPath blobPath, java.io.File path)
           
 
Method Summary
 void writeBlob(java.lang.String blobName, java.io.InputStream is, long sizeInBytes)
           
 void writeBlob(java.lang.String blobName, java.io.InputStream is, long sizeInBytes, ImmutableBlobContainer.WriterListener listener)
           
 
Methods inherited from class org.elasticsearch.common.blobstore.fs.AbstractFsBlobContainer
blobExists, deleteBlob, filePath, listBlobs, readBlob
 
Methods inherited from class org.elasticsearch.common.blobstore.support.AbstractBlobContainer
deleteBlobsByFilter, deleteBlobsByPrefix, listBlobsByPrefix, path, readBlobFully
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.common.blobstore.BlobContainer
blobExists, deleteBlob, deleteBlobsByFilter, deleteBlobsByPrefix, listBlobs, listBlobsByPrefix, path, readBlob, readBlobFully
 

Constructor Detail

FsImmutableBlobContainer

public FsImmutableBlobContainer(FsBlobStore blobStore,
                                BlobPath blobPath,
                                java.io.File path)
Method Detail

writeBlob

public void writeBlob(java.lang.String blobName,
                      java.io.InputStream is,
                      long sizeInBytes,
                      ImmutableBlobContainer.WriterListener listener)
Specified by:
writeBlob in interface ImmutableBlobContainer

writeBlob

public void writeBlob(java.lang.String blobName,
                      java.io.InputStream is,
                      long sizeInBytes)
               throws java.io.IOException
Specified by:
writeBlob in interface ImmutableBlobContainer
Throws:
java.io.IOException