org.elasticsearch.gateway.fs
Class FsGateway
java.lang.Object
org.elasticsearch.util.component.AbstractComponent
org.elasticsearch.util.component.AbstractLifecycleComponent<Gateway>
org.elasticsearch.gateway.fs.FsGateway
- All Implemented Interfaces:
- Gateway, CloseableComponent, LifecycleComponent<Gateway>
public class FsGateway
- extends AbstractLifecycleComponent<Gateway>
- implements Gateway
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FsGateway
@Inject
public FsGateway(Settings settings,
Environment environment,
ClusterName clusterName)
throws java.io.IOException
- Throws:
java.io.IOException
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
gatewayHome
public java.io.File gatewayHome()
write
public void write(MetaData metaData)
throws GatewayException
- Specified by:
write
in interface Gateway
- Throws:
GatewayException
read
public MetaData read()
throws GatewayException
- Specified by:
read
in interface Gateway
- Throws:
GatewayException
suggestIndexGateway
public java.lang.Class<? extends com.google.inject.Module> suggestIndexGateway()
- Specified by:
suggestIndexGateway
in interface Gateway
reset
public void reset()
- Specified by:
reset
in interface Gateway