org.elasticsearch.index.gateway.cloud
Class CloudIndexGateway

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.gateway.cloud.CloudIndexGateway
All Implemented Interfaces:
org.elasticsearch.index.gateway.IndexGateway, org.elasticsearch.index.IndexComponent, org.elasticsearch.util.component.CloseableIndexComponent

public class CloudIndexGateway
extends org.elasticsearch.index.AbstractIndexComponent
implements org.elasticsearch.index.gateway.IndexGateway


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
CloudIndexGateway(org.elasticsearch.index.Index index, org.elasticsearch.util.settings.Settings indexSettings, CloudBlobStoreService blobStoreService, org.elasticsearch.gateway.Gateway gateway)
           
 
Method Summary
 org.elasticsearch.util.SizeValue chunkSize()
           
 void close(boolean delete)
           
 java.lang.String indexContainer()
           
 org.jclouds.domain.Location indexLocation()
           
 java.lang.Class<? extends org.elasticsearch.index.gateway.IndexShardGateway> shardGatewayClass()
           
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 

Constructor Detail

CloudIndexGateway

@Inject
public CloudIndexGateway(org.elasticsearch.index.Index index,
                                @IndexSettings
                                org.elasticsearch.util.settings.Settings indexSettings,
                                CloudBlobStoreService blobStoreService,
                                org.elasticsearch.gateway.Gateway gateway)
Method Detail

indexLocation

public org.jclouds.domain.Location indexLocation()

indexContainer

public java.lang.String indexContainer()

chunkSize

public org.elasticsearch.util.SizeValue chunkSize()

shardGatewayClass

public java.lang.Class<? extends org.elasticsearch.index.gateway.IndexShardGateway> shardGatewayClass()
Specified by:
shardGatewayClass in interface org.elasticsearch.index.gateway.IndexGateway

close

public void close(boolean delete)
           throws org.elasticsearch.ElasticSearchException
Specified by:
close in interface org.elasticsearch.util.component.CloseableIndexComponent
Throws:
org.elasticsearch.ElasticSearchException