org.elasticsearch.index.gateway.blobstore
Class BlobStoreIndexGateway

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.gateway.blobstore.BlobStoreIndexGateway
All Implemented Interfaces:
CloseableIndexComponent, IndexGateway, IndexComponent
Direct Known Subclasses:
FsIndexGateway

public abstract class BlobStoreIndexGateway
extends AbstractIndexComponent
implements IndexGateway


Field Summary
protected  ByteSizeValue chunkSize
           
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
protected BlobStoreIndexGateway(Index index, Settings indexSettings, Gateway gateway)
           
 
Method Summary
 BlobStore blobStore()
           
 ByteSizeValue chunkSize()
           
 void close(boolean delete)
          Closes the index component.
static BlobPath shardPath(BlobPath basePath, String index, int shardId)
           
 BlobPath shardPath(int shardId)
           
 String toString()
           
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.gateway.IndexGateway
shardGatewayClass, type
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 

Field Detail

chunkSize

protected ByteSizeValue chunkSize
Constructor Detail

BlobStoreIndexGateway

protected BlobStoreIndexGateway(Index index,
                                @IndexSettings
                                Settings indexSettings,
                                Gateway gateway)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

blobStore

public BlobStore blobStore()

chunkSize

public ByteSizeValue chunkSize()

shardPath

public BlobPath shardPath(int shardId)

shardPath

public static BlobPath shardPath(BlobPath basePath,
                                 String index,
                                 int shardId)

close

public void close(boolean delete)
           throws ElasticSearchException
Description copied from interface: CloseableIndexComponent
Closes the index component. A boolean indicating if its part of an actual index deletion or not is passed.

Specified by:
close in interface CloseableIndexComponent
Parameters:
delete - true if the index is being deleted.
Throws:
ElasticSearchException


Copyright © 2009-2012. All Rights Reserved.