org.elasticsearch.common.blobstore.fs
Class AbstractFsBlobContainer

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

public abstract class AbstractFsBlobContainer
extends AbstractBlobContainer


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.blobstore.BlobContainer
BlobContainer.BlobNameFilter, BlobContainer.ReadBlobListener
 
Field Summary
protected  FsBlobStore blobStore
           
protected  File path
           
 
Constructor Summary
AbstractFsBlobContainer(FsBlobStore blobStore, BlobPath blobPath, File path)
           
 
Method Summary
 boolean blobExists(String blobName)
           
 boolean deleteBlob(String blobName)
           
 File filePath()
           
 com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobs()
           
 void readBlob(String blobName, BlobContainer.ReadBlobListener listener)
           
 
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
 

Field Detail

blobStore

protected final FsBlobStore blobStore

path

protected final File path
Constructor Detail

AbstractFsBlobContainer

public AbstractFsBlobContainer(FsBlobStore blobStore,
                               BlobPath blobPath,
                               File path)
Method Detail

filePath

public File filePath()

listBlobs

public com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobs()
                                                                      throws IOException
Throws:
IOException

deleteBlob

public boolean deleteBlob(String blobName)
                   throws IOException
Throws:
IOException

blobExists

public boolean blobExists(String blobName)

readBlob

public void readBlob(String blobName,
                     BlobContainer.ReadBlobListener listener)


Copyright © 2009-2012. All Rights Reserved.