public class SyncedFlushService extends AbstractComponent
Modifier and Type | Class and Description |
---|---|
static class |
SyncedFlushService.InFlightOpsRequest |
static class |
SyncedFlushService.PreShardSyncedFlushRequest |
static class |
SyncedFlushService.ShardSyncedFlushRequest |
static class |
SyncedFlushService.ShardSyncedFlushResponse
Response for third step of synced flush (writing the sync id) for one shard copy
|
deprecationLogger, logger, settings
Constructor and Description |
---|
SyncedFlushService(Settings settings,
IndicesService indicesService,
ClusterService clusterService,
TransportService transportService,
IndexNameExpressionResolver indexNameExpressionResolver) |
Modifier and Type | Method and Description |
---|---|
void |
attemptSyncedFlush(ShardId shardId,
ActionListener<ShardsSyncedFlushResult> actionListener) |
void |
attemptSyncedFlush(String[] aliasesOrIndices,
IndicesOptions indicesOptions,
ActionListener<SyncedFlushResponse> listener)
a utility method to perform a synced flush for all shards of multiple indices.
|
protected void |
getInflightOpsCount(ShardId shardId,
ClusterState state,
IndexShardRoutingTable shardRoutingTable,
ActionListener<org.elasticsearch.indices.flush.SyncedFlushService.InFlightOpsResponse> listener)
returns the number of in flight operations on primary.
|
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public SyncedFlushService(Settings settings, IndicesService indicesService, ClusterService clusterService, TransportService transportService, IndexNameExpressionResolver indexNameExpressionResolver)
public void attemptSyncedFlush(String[] aliasesOrIndices, IndicesOptions indicesOptions, ActionListener<SyncedFlushResponse> listener)
attemptSyncedFlush(ShardId, ActionListener)
for more details.public void attemptSyncedFlush(ShardId shardId, ActionListener<ShardsSyncedFlushResult> actionListener)
protected void getInflightOpsCount(ShardId shardId, ClusterState state, IndexShardRoutingTable shardRoutingTable, ActionListener<org.elasticsearch.indices.flush.SyncedFlushService.InFlightOpsResponse> listener)
Copyright © 2009–2016. All rights reserved.