org.elasticsearch.gateway.local.state.shards
Class LocalGatewayShardsState
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.gateway.local.state.shards.LocalGatewayShardsState
- All Implemented Interfaces:
- ClusterStateListener
public class LocalGatewayShardsState
- extends AbstractComponent
- implements ClusterStateListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalGatewayShardsState
@Inject
public LocalGatewayShardsState(Settings settings,
NodeEnvironment nodeEnv,
TransportNodesListGatewayStartedShards listGatewayStartedShards,
LocalGatewayMetaState metaState)
throws Exception
- Throws:
Exception
currentStartedShards
public Map<ShardId,ShardStateInfo> currentStartedShards()
loadShardInfo
public ShardStateInfo loadShardInfo(ShardId shardId)
throws Exception
- Throws:
Exception
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.