public class LocalGatewayShardsState extends AbstractComponent implements ClusterStateListener
| Modifier and Type | Field and Description |
|---|---|
static MetaDataStateFormat<ShardStateInfo> |
FORMAT |
componentSettings, logger, settings| Constructor and Description |
|---|
LocalGatewayShardsState(Settings settings,
NodeEnvironment nodeEnv,
TransportNodesListGatewayStartedShards listGatewayStartedShards) |
| Modifier and Type | Method and Description |
|---|---|
void |
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.
|
ShardStateInfo |
loadShardInfo(ShardId shardId) |
nodeNamepublic static final MetaDataStateFormat<ShardStateInfo> FORMAT
@Inject public LocalGatewayShardsState(Settings settings, NodeEnvironment nodeEnv, TransportNodesListGatewayStartedShards listGatewayStartedShards) throws Exception
Exceptionpublic ShardStateInfo loadShardInfo(ShardId shardId) throws Exception
Exceptionpublic void clusterChanged(ClusterChangedEvent event)
ClusterStateListenerclusterChanged in interface ClusterStateListenerCopyright © 2009–2016. All rights reserved.