org.elasticsearch.gateway.blobstore
Class BlobStoreGateway

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.common.component.AbstractLifecycleComponent<Gateway>
          extended by org.elasticsearch.gateway.shared.SharedStorageGateway
              extended by org.elasticsearch.gateway.blobstore.BlobStoreGateway
All Implemented Interfaces:
ClusterStateListener, CloseableComponent, LifecycleComponent<Gateway>, Gateway
Direct Known Subclasses:
FsGateway

public abstract class BlobStoreGateway
extends SharedStorageGateway


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.gateway.Gateway
Gateway.GatewayStateRecoveredListener
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
protected BlobStoreGateway(Settings settings, ClusterService clusterService, MetaDataCreateIndexService createIndexService)
           
 
Method Summary
 BlobPath basePath()
           
 BlobStore blobStore()
           
 ByteSizeValue chunkSize()
           
 CommitPoint findCommitPoint(java.lang.String index, int shardId)
           
protected  void initialize(BlobStore blobStore, ClusterName clusterName, ByteSizeValue defaultChunkSize)
           
 MetaData read()
           
 void reset()
           
 java.lang.String toString()
           
 void write(MetaData metaData)
           
 
Methods inherited from class org.elasticsearch.gateway.shared.SharedStorageGateway
clusterChanged, doClose, doStart, doStop, performStateRecovery
 
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.gateway.Gateway
suggestIndexGateway, type
 
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent
close
 

Constructor Detail

BlobStoreGateway

protected BlobStoreGateway(Settings settings,
                           ClusterService clusterService,
                           MetaDataCreateIndexService createIndexService)
Method Detail

initialize

protected void initialize(BlobStore blobStore,
                          ClusterName clusterName,
                          @Nullable
                          ByteSizeValue defaultChunkSize)
                   throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

blobStore

public BlobStore blobStore()

basePath

public BlobPath basePath()

chunkSize

public ByteSizeValue chunkSize()

reset

public void reset()
           throws java.lang.Exception
Throws:
java.lang.Exception

read

public MetaData read()
              throws GatewayException
Specified by:
read in class SharedStorageGateway
Throws:
GatewayException

findCommitPoint

public CommitPoint findCommitPoint(java.lang.String index,
                                   int shardId)
                            throws java.io.IOException
Throws:
java.io.IOException

write

public void write(MetaData metaData)
           throws GatewayException
Specified by:
write in class SharedStorageGateway
Throws:
GatewayException