Constructor and Description |
---|
CommonStats(IndexShard indexShard,
CommonStatsFlags flags) |
Modifier and Type | Method and Description |
---|---|
static TransportReplicationAction.WriteResult<DeleteResponse> |
TransportDeleteAction.executeDeleteRequestOnPrimary(DeleteRequest request,
IndexShard indexShard) |
static Engine.Delete |
TransportDeleteAction.executeDeleteRequestOnReplica(DeleteRequest request,
IndexShard indexShard) |
Modifier and Type | Method and Description |
---|---|
static TransportReplicationAction.WriteResult<IndexResponse> |
TransportIndexAction.executeIndexRequestOnPrimary(BulkShardRequest shardRequest,
IndexRequest request,
IndexShard indexShard,
MappingUpdatedAction mappingUpdatedAction)
Execute the given
IndexRequest on a primary shard, throwing a
RetryOnPrimaryException if the operation needs to be re-tried. |
static Engine.IndexingOperation |
TransportIndexAction.executeIndexRequestOnReplica(IndexRequest request,
IndexShard indexShard)
Execute the given
IndexRequest on a replica shard, throwing a
RetryOnReplicaException if the operation needs to be re-tried. |
static Engine.IndexingOperation |
TransportIndexAction.prepareIndexOperationOnPrimary(BulkShardRequest shardRequest,
IndexRequest request,
IndexShard indexShard)
Utility method to create either an index or a create operation depending
on the
IndexRequest.OpType of the request. |
Modifier and Type | Method and Description |
---|---|
protected void |
TransportReplicationAction.processAfterWrite(boolean refresh,
IndexShard indexShard,
Translog.Location location) |
Modifier and Type | Method and Description |
---|---|
UpdateHelper.Result |
UpdateHelper.prepare(UpdateRequest request,
IndexShard indexShard)
Prepares an update request by converting it into an index or delete request or an update response (no action).
|
Modifier and Type | Method and Description |
---|---|
IndexShard |
IndexService.createShard(ShardRouting routing) |
IndexShard |
IndexService.shard(int shardId)
Return the shard with the provided id, or null if there is no such shard.
|
IndexShard |
IndexService.shardSafe(int shardId)
Return the shard with the provided id, or throw an exception if it doesn't exist.
|
Modifier and Type | Method and Description |
---|---|
Iterator<IndexShard> |
IndexService.iterator() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Engine.IndexingOperation.execute(IndexShard shard)
Execute this operation against the provided
IndexShard and
return whether the document was created. |
boolean |
Engine.Create.execute(IndexShard shard) |
boolean |
Engine.Index.execute(IndexShard shard) |
Constructor and Description |
---|
ShardGetService(IndexShard indexShard,
MapperService mapperService) |
Modifier and Type | Class and Description |
---|---|
class |
ShadowIndexShard
ShadowIndexShard extends
IndexShard to add file synchronization
from the primary when a flush happens. |
Modifier and Type | Method and Description |
---|---|
IndexShard |
IndexShard.postRecovery(String reason) |
IndexShard |
IndexShard.relocated(String reason) |
Modifier and Type | Method and Description |
---|---|
void |
StoreRecoveryService.recover(IndexShard indexShard,
boolean indexShouldExists,
StoreRecoveryService.RecoveryListener listener)
Recovers the state of the shard from the gateway.
|
Modifier and Type | Method and Description |
---|---|
ShardTermVectorsService |
ShardTermVectorsService.setIndexShard(IndexShard indexShard) |
Constructor and Description |
---|
TranslogService(ShardId shardId,
IndexSettingsService indexSettingsService,
ThreadPool threadPool,
IndexShard indexShard) |
Modifier and Type | Method and Description |
---|---|
void |
IndicesLifecycle.Listener.afterIndexShardClosed(ShardId shardId,
IndexShard indexShard,
Settings indexSettings)
Called after the index shard has been closed.
|
void |
InternalIndicesLifecycle.afterIndexShardClosed(ShardId shardId,
IndexShard indexShard,
Settings indexSettings) |
void |
IndicesLifecycle.Listener.afterIndexShardCreated(IndexShard indexShard)
Called after the index shard has been created.
|
void |
InternalIndicesLifecycle.afterIndexShardCreated(IndexShard indexShard) |
void |
IndicesLifecycle.Listener.afterIndexShardPostRecovery(IndexShard indexShard)
Called right after the shard is moved into POST_RECOVERY mode
|
void |
InternalIndicesLifecycle.afterIndexShardPostRecovery(IndexShard indexShard) |
void |
IndicesLifecycle.Listener.afterIndexShardStarted(IndexShard indexShard)
Called after the index shard has been started.
|
void |
InternalIndicesLifecycle.afterIndexShardStarted(IndexShard indexShard) |
void |
IndicesLifecycle.Listener.beforeIndexShardClosed(ShardId shardId,
IndexShard indexShard,
Settings indexSettings)
Called before the index shard gets closed.
|
void |
InternalIndicesLifecycle.beforeIndexShardClosed(ShardId shardId,
IndexShard indexShard,
Settings indexSettings) |
void |
IndicesLifecycle.Listener.beforeIndexShardPostRecovery(IndexShard indexShard)
Called right before the shard is moved into POST_RECOVERY mode.
|
void |
InternalIndicesLifecycle.beforeIndexShardPostRecovery(IndexShard indexShard) |
void |
IndicesLifecycle.Listener.indexShardStateChanged(IndexShard indexShard,
IndexShardState previousState,
IndexShardState currentState,
String reason)
Called after a shard's
IndexShardState changes. |
void |
InternalIndicesLifecycle.indexShardStateChanged(IndexShard indexShard,
IndexShardState previousState,
String reason) |
void |
IndicesLifecycle.Listener.onShardInactive(IndexShard indexShard)
Called when a shard is marked as inactive
|
void |
InternalIndicesLifecycle.onShardInactive(IndexShard indexShard) |
void |
IndicesLifecycle.Listener.shardRoutingChanged(IndexShard indexShard,
ShardRouting oldRouting,
ShardRouting newRouting)
Called when the shard routing has changed state.
|
void |
InternalIndicesLifecycle.shardRoutingChanged(IndexShard indexShard,
ShardRouting oldRouting,
ShardRouting newRouting) |
abstract IndicesWarmer.TerminationHandle |
IndicesWarmer.Listener.warmNewReaders(IndexShard indexShard,
IndexMetaData indexMetaData,
IndicesWarmer.WarmerContext context,
ThreadPool threadPool)
Queue tasks to warm-up the given segments and return handles that allow to wait for termination of the execution of those tasks.
|
abstract IndicesWarmer.TerminationHandle |
IndicesWarmer.Listener.warmTopReader(IndexShard indexShard,
IndexMetaData indexMetaData,
IndicesWarmer.WarmerContext context,
ThreadPool threadPool) |
Modifier and Type | Field and Description |
---|---|
IndexShard |
IndicesRequestCache.Key.shard |
Modifier and Type | Method and Description |
---|---|
void |
IndicesRequestCache.clear(IndexShard shard) |
Modifier and Type | Method and Description |
---|---|
protected List<IndexShard> |
IndexingMemoryController.availableShards() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
IndexingMemoryController.checkIdle(IndexShard shard,
long inactiveTimeNS)
ask this shard to check now whether it is inactive, and reduces its indexing and translog buffers if so.
|
protected boolean |
IndexingMemoryController.shardAvailable(IndexShard shard)
returns true if shard exists and is availabe for updates
|
protected void |
IndexingMemoryController.updateShardBuffers(IndexShard shard,
ByteSizeValue shardIndexingBufferSize,
ByteSizeValue shardTranslogBufferSize)
set new indexing and translog buffers on this shard.
|
Modifier and Type | Method and Description |
---|---|
IndexShard |
RecoveryStatus.indexShard() |
Modifier and Type | Method and Description |
---|---|
long |
RecoveriesCollection.startRecovery(IndexShard indexShard,
DiscoveryNode sourceNode,
RecoveryTarget.RecoveryListener listener,
TimeValue activityTimeout)
Starts are new recovery for the given shard, source node and state
|
void |
RecoveryTarget.startRecovery(IndexShard indexShard,
RecoveryState.Type recoveryType,
DiscoveryNode sourceNode,
RecoveryTarget.RecoveryListener listener) |
Constructor and Description |
---|
RecoverySourceHandler(IndexShard shard,
StartRecoveryRequest request,
RecoverySettings recoverySettings,
TransportService transportService,
ESLogger logger) |
RecoveryStatus(IndexShard indexShard,
DiscoveryNode sourceNode,
RecoveryTarget.RecoveryListener listener) |
SharedFSRecoverySourceHandler(IndexShard shard,
StartRecoveryRequest request,
RecoverySettings recoverySettings,
TransportService transportService,
ESLogger logger) |
Modifier and Type | Method and Description |
---|---|
IndexShard |
PercolateContext.indexShard() |
Constructor and Description |
---|
PercolateContext(PercolateShardRequest request,
SearchShardTarget searchShardTarget,
IndexShard indexShard,
IndexService indexService,
PageCacheRecycler pageCacheRecycler,
BigArrays bigArrays,
ScriptService scriptService,
org.apache.lucene.search.Query aliasFilter,
ParseFieldMatcher parseFieldMatcher) |
Modifier and Type | Method and Description |
---|---|
IndexShard |
FilteredSearchContext.indexShard() |
abstract IndexShard |
SearchContext.indexShard() |
IndexShard |
DefaultSearchContext.indexShard() |
Constructor and Description |
---|
DefaultSearchContext(long id,
ShardSearchRequest request,
SearchShardTarget shardTarget,
Engine.Searcher engineSearcher,
IndexService indexService,
IndexShard indexShard,
ScriptService scriptService,
PageCacheRecycler pageCacheRecycler,
BigArrays bigArrays,
org.apache.lucene.util.Counter timeEstimateCounter,
ParseFieldMatcher parseFieldMatcher,
TimeValue timeout) |
Copyright © 2009–2016. All rights reserved.