public class ShardStateAction extends AbstractComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
SHARD_FAILED_ACTION_NAME |
static String |
SHARD_STARTED_ACTION_NAME |
componentSettings, logger, settings| Constructor and Description |
|---|
ShardStateAction(Settings settings,
ClusterService clusterService,
TransportService transportService,
AllocationService allocationService,
RoutingService routingService) |
| Modifier and Type | Method and Description |
|---|---|
void |
resendShardFailed(ShardRouting shardRouting,
String indexUUID,
String reason,
DiscoveryNode masterNode) |
void |
shardFailed(ShardRouting shardRouting,
String indexUUID,
String reason) |
void |
shardStarted(ShardRouting shardRouting,
String indexUUID,
String reason) |
void |
shardStarted(ShardRouting shardRouting,
String indexUUID,
String reason,
DiscoveryNode masterNode) |
nodeNamepublic static final String SHARD_STARTED_ACTION_NAME
public static final String SHARD_FAILED_ACTION_NAME
@Inject public ShardStateAction(Settings settings, ClusterService clusterService, TransportService transportService, AllocationService allocationService, RoutingService routingService)
public void shardFailed(ShardRouting shardRouting, String indexUUID, String reason) throws ElasticsearchException
ElasticsearchExceptionpublic void resendShardFailed(ShardRouting shardRouting, String indexUUID, String reason, DiscoveryNode masterNode) throws ElasticsearchException
ElasticsearchExceptionpublic void shardStarted(ShardRouting shardRouting, String indexUUID, String reason) throws ElasticsearchException
ElasticsearchExceptionpublic void shardStarted(ShardRouting shardRouting, String indexUUID, String reason, DiscoveryNode masterNode) throws ElasticsearchException
ElasticsearchExceptionCopyright © 2009–2016. All rights reserved.