org.elasticsearch.gateway.shared
Class SharedStorageGateway
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<Gateway>
org.elasticsearch.gateway.shared.SharedStorageGateway
- All Implemented Interfaces:
- ClusterStateListener, CloseableComponent, LifecycleComponent<Gateway>, Gateway
- Direct Known Subclasses:
- BlobStoreGateway
public abstract class SharedStorageGateway
- extends AbstractLifecycleComponent<Gateway>
- implements Gateway, ClusterStateListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedStorageGateway
public SharedStorageGateway(Settings settings,
ThreadPool threadPool,
ClusterService clusterService)
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
performStateRecovery
public void performStateRecovery(Gateway.GatewayStateRecoveredListener listener)
throws GatewayException
- Specified by:
performStateRecovery
in interface Gateway
- Throws:
GatewayException
clusterChanged
public void clusterChanged(ClusterChangedEvent event)
- Description copied from interface:
ClusterStateListener
- Called when cluster state changes.
- Specified by:
clusterChanged
in interface ClusterStateListener
read
protected abstract MetaData read()
throws ElasticSearchException
- Throws:
ElasticSearchException
write
protected abstract void write(MetaData metaData)
throws ElasticSearchException
- Throws:
ElasticSearchException