org.elasticsearch.gateway.local.state.meta
Class LocalGatewayMetaState

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.gateway.local.state.meta.LocalGatewayMetaState
All Implemented Interfaces:
ClusterStateListener

public class LocalGatewayMetaState
extends AbstractComponent
implements ClusterStateListener


Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
LocalGatewayMetaState(Settings settings, ThreadPool threadPool, NodeEnvironment nodeEnv, TransportNodesListGatewayMetaState nodesListGatewayMetaState, LocalAllocateDangledIndices allocateDangledIndices)
           
 
Method Summary
 void clusterChanged(ClusterChangedEvent event)
          Called when cluster state changes.
 boolean isDangling(String index)
           
 MetaData loadMetaState()
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalGatewayMetaState

@Inject
public LocalGatewayMetaState(Settings settings,
                                    ThreadPool threadPool,
                                    NodeEnvironment nodeEnv,
                                    TransportNodesListGatewayMetaState nodesListGatewayMetaState,
                                    LocalAllocateDangledIndices allocateDangledIndices)
                      throws Exception
Throws:
Exception
Method Detail

loadMetaState

public MetaData loadMetaState()
                       throws Exception
Throws:
Exception

isDangling

public boolean isDangling(String index)

clusterChanged

public void clusterChanged(ClusterChangedEvent event)
Description copied from interface: ClusterStateListener
Called when cluster state changes.

Specified by:
clusterChanged in interface ClusterStateListener


Copyright © 2009-2012. All Rights Reserved.