org.elasticsearch.gateway.blobstore
Class BlobStoreGateway
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<Gateway>
org.elasticsearch.gateway.blobstore.BlobStoreGateway
- All Implemented Interfaces:
- CloseableComponent, LifecycleComponent<Gateway>, Gateway
- Direct Known Subclasses:
- FsGateway
public abstract class BlobStoreGateway
- extends AbstractLifecycleComponent<Gateway>
- implements Gateway
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BlobStoreGateway
protected BlobStoreGateway(Settings settings)
throws java.io.IOException
- Throws:
java.io.IOException
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
- Specified by:
reset
in interface Gateway
- Throws:
java.lang.Exception
doStart
protected void doStart()
throws ElasticSearchException
- Specified by:
doStart
in class AbstractLifecycleComponent<Gateway>
- Throws:
ElasticSearchException
doStop
protected void doStop()
throws ElasticSearchException
- Specified by:
doStop
in class AbstractLifecycleComponent<Gateway>
- Throws:
ElasticSearchException
doClose
protected void doClose()
throws ElasticSearchException
- Specified by:
doClose
in class AbstractLifecycleComponent<Gateway>
- Throws:
ElasticSearchException
read
public MetaData read()
throws GatewayException
- Specified by:
read
in interface Gateway
- Throws:
GatewayException
write
public void write(MetaData metaData)
throws GatewayException
- Specified by:
write
in interface Gateway
- Throws:
GatewayException