org.elasticsearch.gateway.fs
Class FsGateway

java.lang.Object
  extended by org.elasticsearch.util.component.AbstractComponent
      extended by org.elasticsearch.util.component.AbstractLifecycleComponent<Gateway>
          extended by org.elasticsearch.gateway.fs.FsGateway
All Implemented Interfaces:
Gateway, CloseableComponent, LifecycleComponent<Gateway>

public class FsGateway
extends AbstractLifecycleComponent<Gateway>
implements Gateway


Field Summary
 
Fields inherited from class org.elasticsearch.util.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.util.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
FsGateway(Settings settings, Environment environment, ClusterName clusterName)
           
 
Method Summary
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 java.io.File gatewayHome()
           
 MetaData read()
           
 void reset()
           
 java.lang.Class<? extends com.google.inject.Module> suggestIndexGateway()
           
 void write(MetaData metaData)
           
 
Methods inherited from class org.elasticsearch.util.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from class org.elasticsearch.util.component.AbstractComponent
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.util.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.util.component.CloseableComponent
close
 

Constructor Detail

FsGateway

@Inject
public FsGateway(Settings settings,
                        Environment environment,
                        ClusterName clusterName)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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