public final class ShadowIndexShard extends IndexShard
IndexShard to add file synchronization
from the primary when a flush happens. It also ensures that a replica being
promoted to a primary causes the shard to fail, kicking off a re-allocation
of the primary shard.config, currentEngineReference, engineFactory, INDEX_FLUSH_ON_CLOSE, INDEX_REFRESH_INTERVAL, shardRouting, statecomponentSettings, indexSettings, logger, shardId| Constructor and Description |
|---|
ShadowIndexShard(ShardId shardId,
Settings indexSettings,
IndexSettingsService indexSettingsService,
IndicesLifecycle indicesLifecycle,
Store store,
MergeSchedulerProvider mergeScheduler,
Translog translog,
ThreadPool threadPool,
MapperService mapperService,
IndexQueryParserService queryParserService,
IndexCache indexCache,
IndexAliasesService indexAliasesService,
ShardIndexingService indexingService,
ShardGetService getService,
ShardSearchService searchService,
ShardIndexWarmerService shardWarmerService,
ShardFilterCache shardFilterCache,
ShardFieldData shardFieldData,
PercolatorQueriesRegistry percolatorQueriesRegistry,
ShardPercolateService shardPercolateService,
CodecService codecService,
ShardTermVectorService termVectorService,
IndexFieldDataService indexFieldDataService,
IndexService indexService,
ShardSuggestService shardSuggestService,
ShardQueryCache shardQueryCache,
ShardFixedBitSetFilterCache shardFixedBitSetFilterCache,
AnalysisService analysisService,
IndicesWarmer warmer,
SnapshotDeletionPolicy deletionPolicy,
SimilarityService similarityService,
MergePolicyProvider mergePolicyProvider,
EngineFactory factory,
ClusterService clusterService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsPrimaryPromotion()
Returns
true iff this shard allows primary promotion, otherwise false |
protected void |
clearUnreferencedTranslogs() |
protected Engine |
newEngine() |
IndexShard |
routingEntry(ShardRouting newRouting)
In addition to the regular accounting done in
IndexShard.routingEntry(org.elasticsearch.cluster.routing.ShardRouting),
if this shadow replica needs to be promoted to a primary, the shard is
failed in order to allow a new primary to be re-allocated. |
acquireSearcher, acquireSearcher, addFailedEngineListener, close, commitStats, completionStats, create, decrementOperationCounter, delete, deleteByQuery, docStats, engine, engineUnsafe, failShard, fieldData, fieldDataStats, filterCache, filterCacheStats, finalizeRecovery, flush, flushStats, get, getOperationsCount, getService, getStats, idCacheStats, ignoreRecoveryAttempt, incrementOperationCounter, index, indexFieldDataService, indexingService, indexingStats, indexService, isFlushOnClose, mapperService, markAsInactive, mergeScheduler, mergeStats, minimumCompatibleVersion, optimize, percolateRegistry, performRecoveryOperation, performRecoveryRestart, postRecovery, prepareCreate, prepareDelete, prepareDeleteByQuery, prepareForIndexRecovery, prepareForTranslogRecovery, prepareIndex, queryCache, readAllowed, recover, recovering, recovering, recoveryState, recoveryStats, refresh, refreshStats, relocated, routingEntry, searchService, searchStats, segmentStats, shardFixedBitSetFilterCache, shardPercolateService, shardSuggestService, snapshotIndex, state, store, storeStats, suggestStats, syncFlush, termVectorService, translog, translogStats, updateBufferSize, upgrade, verifyStarted, verifyStartedOrRecovering, warmerService, warmerStatsindexSettings, nodeName, shardId@Inject public ShadowIndexShard(ShardId shardId, @IndexSettings Settings indexSettings, IndexSettingsService indexSettingsService, IndicesLifecycle indicesLifecycle, Store store, MergeSchedulerProvider mergeScheduler, Translog translog, ThreadPool threadPool, MapperService mapperService, IndexQueryParserService queryParserService, IndexCache indexCache, IndexAliasesService indexAliasesService, ShardIndexingService indexingService, ShardGetService getService, ShardSearchService searchService, ShardIndexWarmerService shardWarmerService, ShardFilterCache shardFilterCache, ShardFieldData shardFieldData, PercolatorQueriesRegistry percolatorQueriesRegistry, ShardPercolateService shardPercolateService, CodecService codecService, ShardTermVectorService termVectorService, IndexFieldDataService indexFieldDataService, IndexService indexService, ShardSuggestService shardSuggestService, ShardQueryCache shardQueryCache, ShardFixedBitSetFilterCache shardFixedBitSetFilterCache, AnalysisService analysisService, @Nullable IndicesWarmer warmer, SnapshotDeletionPolicy deletionPolicy, SimilarityService similarityService, MergePolicyProvider mergePolicyProvider, EngineFactory factory, ClusterService clusterService)
public IndexShard routingEntry(ShardRouting newRouting)
IndexShard.routingEntry(org.elasticsearch.cluster.routing.ShardRouting),
if this shadow replica needs to be promoted to a primary, the shard is
failed in order to allow a new primary to be re-allocated.routingEntry in class IndexShardprotected Engine newEngine()
newEngine in class IndexShardprotected void clearUnreferencedTranslogs()
clearUnreferencedTranslogs in class IndexShardpublic boolean allowsPrimaryPromotion()
IndexShardtrue iff this shard allows primary promotion, otherwise falseallowsPrimaryPromotion in class IndexShardCopyright © 2009–2016. All rights reserved.