Uses of Class
org.elasticsearch.index.shard.IndexShard
-
-
Uses of IndexShard in org.elasticsearch.action.admin.indices.close
-
Uses of IndexShard in org.elasticsearch.action.admin.indices.flush
Methods in org.elasticsearch.action.admin.indices.flush with parameters of type IndexShard Modifier and Type Method Description protected voidTransportShardFlushAction. shardOperationOnPrimary(ShardFlushRequest shardRequest, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<ShardFlushRequest,ReplicationResponse>> listener)protected TransportReplicationAction.ReplicaResultTransportShardFlushAction. shardOperationOnReplica(ShardFlushRequest request, IndexShard replica) -
Uses of IndexShard in org.elasticsearch.action.admin.indices.refresh
Methods in org.elasticsearch.action.admin.indices.refresh with parameters of type IndexShard Modifier and Type Method Description protected voidTransportShardRefreshAction. shardOperationOnPrimary(BasicReplicationRequest shardRequest, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<BasicReplicationRequest,ReplicationResponse>> listener)protected TransportReplicationAction.ReplicaResultTransportShardRefreshAction. shardOperationOnReplica(BasicReplicationRequest request, IndexShard replica) -
Uses of IndexShard in org.elasticsearch.action.admin.indices.stats
Constructors in org.elasticsearch.action.admin.indices.stats with parameters of type IndexShard Constructor Description CommonStats(IndicesQueryCache indicesQueryCache, IndexShard indexShard, CommonStatsFlags flags) -
Uses of IndexShard in org.elasticsearch.action.bulk
Methods in org.elasticsearch.action.bulk with parameters of type IndexShard Modifier and Type Method Description static voidTransportShardBulkAction. performOnPrimary(BulkShardRequest request, IndexShard primary, UpdateHelper updateHelper, LongSupplier nowInMillisSupplier, MappingUpdatePerformer mappingUpdater, Consumer<ActionListener<Void>> waitForMappingUpdate, ActionListener<TransportReplicationAction.PrimaryResult<BulkShardRequest,BulkShardResponse>> listener, ThreadPool threadPool)static Translog.LocationTransportShardBulkAction. performOnReplica(BulkShardRequest request, IndexShard replica)protected voidTransportShardBulkAction. shardOperationOnPrimary(BulkShardRequest request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<BulkShardRequest,BulkShardResponse>> listener)TransportWriteAction.WriteReplicaResult<BulkShardRequest>TransportShardBulkAction. shardOperationOnReplica(BulkShardRequest request, IndexShard replica) -
Uses of IndexShard in org.elasticsearch.action.resync
Methods in org.elasticsearch.action.resync with parameters of type IndexShard Modifier and Type Method Description static Translog.LocationTransportResyncReplicationAction. performOnReplica(ResyncReplicationRequest request, IndexShard replica)protected voidTransportResyncReplicationAction. shardOperationOnPrimary(ResyncReplicationRequest request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<ResyncReplicationRequest,ResyncReplicationResponse>> listener)protected TransportWriteAction.WriteReplicaResult<ResyncReplicationRequest>TransportResyncReplicationAction. shardOperationOnReplica(ResyncReplicationRequest request, IndexShard replica) -
Uses of IndexShard in org.elasticsearch.action.support.replication
Fields in org.elasticsearch.action.support.replication declared as IndexShard Modifier and Type Field Description IndexShardTransportWriteAction.WritePrimaryResult. primaryMethods in org.elasticsearch.action.support.replication with parameters of type IndexShard Modifier and Type Method Description protected voidTransportReplicationAction. acquirePrimaryOperationPermit(IndexShard primary, Request request, ActionListener<Releasable> onAcquired)Executes the logic for acquiring one or more operation permit on a primary shard.protected voidTransportReplicationAction. acquireReplicaOperationPermit(IndexShard replica, ReplicaRequest request, ActionListener<Releasable> onAcquired, long primaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes)Executes the logic for acquiring one or more operation permit on a replica shard.protected abstract voidTransportReplicationAction. shardOperationOnPrimary(Request shardRequest, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<ReplicaRequest,Response>> listener)Primary operation on node with primary copy.protected abstract voidTransportWriteAction. shardOperationOnPrimary(Request request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<ReplicaRequest,Response>> listener)Called on the primary with a reference to the primary IndexShard to modify.protected abstract TransportReplicationAction.ReplicaResultTransportReplicationAction. shardOperationOnReplica(ReplicaRequest shardRequest, IndexShard replica)Synchronously execute the specified replica operation.protected abstract TransportWriteAction.WriteReplicaResult<ReplicaRequest>TransportWriteAction. shardOperationOnReplica(ReplicaRequest request, IndexShard replica)Called once per replica with a reference to the replica IndexShard to modify.Constructors in org.elasticsearch.action.support.replication with parameters of type IndexShard Constructor Description WritePrimaryResult(ReplicaRequest request, Response finalResponse, Translog.Location location, Exception operationFailure, IndexShard primary, org.apache.logging.log4j.Logger logger)WriteReplicaResult(ReplicaRequest request, Translog.Location location, Exception operationFailure, IndexShard replica, org.apache.logging.log4j.Logger logger) -
Uses of IndexShard in org.elasticsearch.action.update
Methods in org.elasticsearch.action.update with parameters of type IndexShard Modifier and Type Method Description UpdateHelper.ResultUpdateHelper. prepare(UpdateRequest request, IndexShard indexShard, LongSupplier nowInMillis)Prepares an update request by converting it into an index or delete request or an update response (no action). -
Uses of IndexShard in org.elasticsearch.index
Methods in org.elasticsearch.index that return IndexShard Modifier and Type Method Description IndexShardIndexService. createShard(ShardRouting routing, Consumer<ShardId> globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer)IndexShardIndexService. getShard(int shardId)Return the shard with the provided id, or throw an exception if it doesn't exist.IndexShardIndexService. getShardOrNull(int shardId)Return the shard with the provided id, or null if there is no such shard.Methods in org.elasticsearch.index that return types with arguments of type IndexShard Modifier and Type Method Description Iterator<IndexShard>IndexService. iterator()Methods in org.elasticsearch.index with parameters of type IndexShard Modifier and Type Method Description IndexWarmer.TerminationHandleIndexWarmer.Listener. warmReader(IndexShard indexShard, ElasticsearchDirectoryReader reader)Queue tasks to warm-up the given segments and return handles that allow to wait for termination of the execution of those tasks. -
Uses of IndexShard in org.elasticsearch.index.get
Constructors in org.elasticsearch.index.get with parameters of type IndexShard Constructor Description ShardGetService(IndexSettings indexSettings, IndexShard indexShard, MapperService mapperService) -
Uses of IndexShard in org.elasticsearch.index.seqno
-
Uses of IndexShard in org.elasticsearch.index.shard
Methods in org.elasticsearch.index.shard with parameters of type IndexShard Modifier and Type Method Description default voidIndexEventListener. afterIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)Called after the index shard has been closed.default voidIndexEventListener. afterIndexShardCreated(IndexShard indexShard)Called after the index shard has been created.default voidIndexEventListener. afterIndexShardStarted(IndexShard indexShard)Called after the index shard has been started.default voidIndexEventListener. beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)Called before the index shard gets closed.default voidIndexEventListener. indexShardStateChanged(IndexShard indexShard, IndexShardState previousState, IndexShardState currentState, String reason)Called after a shard'sIndexShardStatechanges.default voidIndexEventListener. onShardInactive(IndexShard indexShard)Called when a shard is marked as inactivevoidPrimaryReplicaSyncer. resync(IndexShard indexShard, ActionListener<PrimaryReplicaSyncer.ResyncTask> listener)default voidIndexEventListener. shardRoutingChanged(IndexShard indexShard, ShardRouting oldRouting, ShardRouting newRouting)Called when the shard routing has changed state.Method parameters in org.elasticsearch.index.shard with type arguments of type IndexShard Modifier and Type Method Description booleanIndexShard. recoverFromLocalShards(BiConsumer<String,MappingMetaData> mappingUpdateConsumer, List<IndexShard> localShards)voidIndexShard. updateShardState(ShardRouting newRouting, long newPrimaryTerm, BiConsumer<IndexShard,ActionListener<PrimaryReplicaSyncer.ResyncTask>> primaryReplicaSyncer, long applyingClusterStateVersion, Set<String> inSyncAllocationIds, IndexShardRoutingTable routingTable) -
Uses of IndexShard in org.elasticsearch.index.termvectors
Methods in org.elasticsearch.index.termvectors with parameters of type IndexShard Modifier and Type Method Description static TermVectorsResponseTermVectorsService. getTermVectors(IndexShard indexShard, TermVectorsRequest request) -
Uses of IndexShard in org.elasticsearch.indices
Methods in org.elasticsearch.indices that return IndexShard Modifier and Type Method Description IndexShardIndicesService. createShard(ShardRouting shardRouting, RecoveryState recoveryState, PeerRecoveryTargetService recoveryTargetService, PeerRecoveryTargetService.RecoveryListener recoveryListener, RepositoriesService repositoriesService, Consumer<IndexShard.ShardFailure> onShardFailure, Consumer<ShardId> globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer)Methods in org.elasticsearch.indices that return types with arguments of type IndexShard Modifier and Type Method Description protected List<IndexShard>IndexingMemoryController. availableShards()Methods in org.elasticsearch.indices with parameters of type IndexShard Modifier and Type Method Description protected voidIndexingMemoryController. activateThrottling(IndexShard shard)Asks this shard to throttle indexing to one threadprotected voidIndexingMemoryController. checkIdle(IndexShard shard, long inactiveTimeNS)ask this shard to check now whether it is inactive, and reduces its indexing buffer if so.protected voidIndexingMemoryController. deactivateThrottling(IndexShard shard)Asks this shard to stop throttling indexing to one threadprotected longIndexingMemoryController. getIndexBufferRAMBytesUsed(IndexShard shard)returns how much heap this shard is using for its indexing bufferprotected longIndexingMemoryController. getShardWritingBytes(IndexShard shard)returns how many bytes this shard is currently writing to diskprotected voidIndexingMemoryController. writeIndexingBufferAsync(IndexShard shard)ask this shard to refresh, in the background, to free up heap -
Uses of IndexShard in org.elasticsearch.indices.cluster
Method parameters in org.elasticsearch.indices.cluster with type arguments of type IndexShard Modifier and Type Method Description voidIndicesClusterStateService.Shard. updateShardState(ShardRouting shardRouting, long primaryTerm, BiConsumer<IndexShard,ActionListener<PrimaryReplicaSyncer.ResyncTask>> primaryReplicaSyncer, long applyingClusterStateVersion, Set<String> inSyncAllocationIds, IndexShardRoutingTable routingTable)Updates the shard state based on an incoming cluster state: - Updates and persists the new routing value. -
Uses of IndexShard in org.elasticsearch.indices.flush
Methods in org.elasticsearch.indices.flush with parameters of type IndexShard Modifier and Type Method Description voidSyncedFlushService. onShardInactive(IndexShard indexShard) -
Uses of IndexShard in org.elasticsearch.indices.recovery
Methods in org.elasticsearch.indices.recovery that return IndexShard Modifier and Type Method Description IndexShardRecoveryTarget. indexShard()Methods in org.elasticsearch.indices.recovery with parameters of type IndexShard Modifier and Type Method Description voidPeerRecoverySourceService. beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)voidPeerRecoveryTargetService. beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)voidPeerRecoveryTargetService. startRecovery(IndexShard indexShard, DiscoveryNode sourceNode, PeerRecoveryTargetService.RecoveryListener listener)longRecoveriesCollection. startRecovery(IndexShard indexShard, DiscoveryNode sourceNode, PeerRecoveryTargetService.RecoveryListener listener, TimeValue activityTimeout)Starts are new recovery for the given shard, source node and stateConstructors in org.elasticsearch.indices.recovery with parameters of type IndexShard Constructor Description RecoverySourceHandler(IndexShard shard, RecoveryTargetHandler recoveryTarget, ThreadPool threadPool, StartRecoveryRequest request, int fileChunkSizeInBytes, int maxConcurrentFileChunks)RecoveryTarget(IndexShard indexShard, DiscoveryNode sourceNode, PeerRecoveryTargetService.RecoveryListener listener)Creates a new recovery target object that represents a recovery to the provided shard. -
Uses of IndexShard in org.elasticsearch.repositories
Methods in org.elasticsearch.repositories with parameters of type IndexShard Modifier and Type Method Description default voidRepository. restoreShard(IndexShard shard, Store store, SnapshotId snapshotId, Version version, IndexId indexId, ShardId snapshotShardId, RecoveryState recoveryState)Deprecated. -
Uses of IndexShard in org.elasticsearch.search.internal
Methods in org.elasticsearch.search.internal that return IndexShard Modifier and Type Method Description IndexShardFilteredSearchContext. indexShard()abstract IndexShardSearchContext. indexShard() -
Uses of IndexShard in org.elasticsearch.snapshots
Methods in org.elasticsearch.snapshots with parameters of type IndexShard Modifier and Type Method Description voidSnapshotShardsService. beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)
-