| Modifier and Type | Method and Description |
|---|---|
ShardId |
ElasticsearchException.getShardId() |
| Modifier and Type | Method and Description |
|---|---|
void |
ElasticsearchException.setShard(ShardId shardId) |
| Constructor and Description |
|---|
NoShardAvailableActionException(ShardId shardId) |
NoShardAvailableActionException(ShardId shardId,
String msg) |
NoShardAvailableActionException(ShardId shardId,
String msg,
Throwable cause) |
UnavailableShardsException(ShardId shardId,
String message,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<SnapshotId,com.google.common.collect.ImmutableMap<ShardId,SnapshotIndexShardStatus>> |
TransportNodesSnapshotsStatus.NodeSnapshotStatus.status() |
| Constructor and Description |
|---|
TransportNodesSnapshotsStatus.NodeSnapshotStatus(DiscoveryNode node,
com.google.common.collect.ImmutableMap<SnapshotId,com.google.common.collect.ImmutableMap<ShardId,SnapshotIndexShardStatus>> status) |
| Modifier and Type | Method and Description |
|---|---|
protected AnalyzeResponse |
TransportAnalyzeAction.shardOperation(AnalyzeRequest request,
ShardId shardId) |
| Modifier and Type | Method and Description |
|---|---|
protected ShardFlushRequest |
TransportFlushAction.newShardRequest(FlushRequest request,
ShardId shardId) |
| Constructor and Description |
|---|
ShardFlushRequest(FlushRequest request,
ShardId shardId) |
| Modifier and Type | Method and Description |
|---|---|
protected GetFieldMappingsResponse |
TransportGetFieldMappingsIndexAction.shardOperation(GetFieldMappingsIndexRequest request,
ShardId shardId) |
| Modifier and Type | Method and Description |
|---|---|
protected ReplicationRequest |
TransportRefreshAction.newShardRequest(RefreshRequest request,
ShardId shardId) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
IndexShardSegments.getShardId() |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
IndexShardStats.getShardId() |
| Constructor and Description |
|---|
IndexShardStats(ShardId shardId,
ShardStats[] shards) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
IndexShardUpgradeStatus.getShardId() |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
BulkShardResponse.getShardId() |
| Modifier and Type | Method and Description |
|---|---|
protected ExplainResponse |
TransportExplainAction.shardOperation(ExplainRequest request,
ShardId shardId) |
| Constructor and Description |
|---|
FieldStatsShardRequest(ShardId shardId,
FieldStatsRequest request) |
FieldStatsShardResponse(ShardId shardId,
Map<String,FieldStats> fieldStats) |
| Modifier and Type | Method and Description |
|---|---|
protected GetResponse |
TransportGetAction.shardOperation(GetRequest request,
ShardId shardId) |
protected MultiGetShardResponse |
TransportShardMultiGetAction.shardOperation(MultiGetShardRequest request,
ShardId shardId) |
| Modifier and Type | Method and Description |
|---|---|
protected TransportShardMultiPercolateAction.Response |
TransportShardMultiPercolateAction.shardOperation(TransportShardMultiPercolateAction.Request request,
ShardId shardId) |
| Constructor and Description |
|---|
PercolateShardResponse(org.apache.lucene.util.BytesRef[] matches,
List<Map<String,HighlightField>> hls,
long count,
float[] scores,
PercolateContext context,
ShardId shardId) |
PercolateShardResponse(org.apache.lucene.util.BytesRef[] matches,
List<Map<String,HighlightField>> hls,
long count,
PercolateContext context,
ShardId shardId) |
PercolateShardResponse(org.apache.lucene.util.BytesRef[] matches,
long count,
float[] scores,
PercolateContext context,
ShardId shardId) |
PercolateShardResponse(long count,
PercolateContext context,
ShardId shardId) |
PercolateShardResponse(PercolateContext context,
ShardId shardId) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
BroadcastShardRequest.shardId() |
| Constructor and Description |
|---|
BroadcastShardOperationFailedException(ShardId shardId,
String msg) |
BroadcastShardOperationFailedException(ShardId shardId,
String msg,
Throwable cause) |
BroadcastShardOperationFailedException(ShardId shardId,
Throwable cause) |
BroadcastShardRequest(ShardId shardId,
BroadcastRequest request) |
BroadcastShardRequest(ShardId shardId,
OriginalIndices originalIndices) |
BroadcastShardResponse(ShardId shardId) |
| Modifier and Type | Field and Description |
|---|---|
protected ShardId |
ReplicationRequest.shardId
Target shard the request should execute on.
|
| Modifier and Type | Method and Description |
|---|---|
ShardId |
ReplicationRequest.shardId() |
| Modifier and Type | Method and Description |
|---|---|
protected List<ShardId> |
TransportBroadcastReplicationAction.shards(Request request,
ClusterState clusterState) |
| Modifier and Type | Method and Description |
|---|---|
protected Releasable |
TransportReplicationAction.getIndexShardOperationsCounter(ShardId shardId) |
protected abstract ShardRequest |
TransportBroadcastReplicationAction.newShardRequest(Request request,
ShardId shardId) |
T |
ReplicationRequest.setShardId(ShardId shardId)
Sets the target shard id for the request.
|
protected void |
TransportBroadcastReplicationAction.shardExecute(Task task,
Request request,
ShardId shardId,
ActionListener<ShardResponse> shardActionListener) |
| Constructor and Description |
|---|
ReplicationRequest(ActionRequest request,
ShardId shardId)
Creates a new request with resolved shard id
|
TransportReplicationAction.RetryOnPrimaryException(ShardId shardId,
String msg) |
TransportReplicationAction.RetryOnReplicaException(ShardId shardId,
String msg) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Response |
TransportSingleShardAction.shardOperation(Request request,
ShardId shardId) |
| Modifier and Type | Method and Description |
|---|---|
protected MultiTermVectorsShardResponse |
TransportShardMultiTermsVectorAction.shardOperation(MultiTermVectorsShardRequest request,
ShardId shardId) |
protected TermVectorsResponse |
TransportTermVectorsAction.shardOperation(TermVectorsRequest request,
ShardId shardId) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<ShardId,RestoreInProgress.ShardRestoreStatus> |
RestoreInProgress.Entry.shards()
Returns list of shards that being restore and their status
|
com.google.common.collect.ImmutableMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> |
SnapshotsInProgress.Entry.shards() |
com.google.common.collect.ImmutableMap<String,List<ShardId>> |
SnapshotsInProgress.Entry.waitingIndices() |
| Constructor and Description |
|---|
RestoreInProgress.Entry(SnapshotId snapshotId,
RestoreInProgress.State state,
List<String> indices,
com.google.common.collect.ImmutableMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)
Creates new restore metadata
|
SnapshotsInProgress.Entry(SnapshotId snapshotId,
boolean includeGlobalState,
SnapshotsInProgress.State state,
List<String> indices,
long startTime,
com.google.common.collect.ImmutableMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards) |
SnapshotsInProgress.Entry(SnapshotsInProgress.Entry entry,
com.google.common.collect.ImmutableMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards) |
SnapshotsInProgress.Entry(SnapshotsInProgress.Entry entry,
SnapshotsInProgress.State state,
com.google.common.collect.ImmutableMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus> shards) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
IndexShardRoutingTable.getShardId()
Returns the shards id
|
ShardId |
IndexShardRoutingTable.shardId()
Returns the shards id
|
ShardId |
ShardRouting.shardId()
The shard id.
|
ShardId |
ShardIterator.shardId()
The shard id this group relates to.
|
ShardId |
PlainShardIterator.shardId() |
ShardId |
OperationRouting.shardId(ClusterState clusterState,
String index,
String type,
String id,
String routing) |
| Constructor and Description |
|---|
IndexShardRoutingTable.Builder(ShardId shardId) |
PlainShardIterator(ShardId shardId,
List<ShardRouting> shards)
Creates a
PlainShardIterator instance that iterates over a subset of the given shards
this the a given shardId. |
| Modifier and Type | Method and Description |
|---|---|
Map<ShardId,List<AllocationExplanation.NodeExplanation>> |
AllocationExplanation.explanations()
List of explanations involved by this AllocationExplanation
|
| Modifier and Type | Method and Description |
|---|---|
AllocationExplanation |
AllocationExplanation.add(ShardId shardId,
AllocationExplanation.NodeExplanation nodeExplanation)
Create and add a node explanation to this explanation referencing a shard
|
void |
RoutingAllocation.addIgnoreShardForNode(ShardId shardId,
String nodeId) |
Set<String> |
RoutingAllocation.getIgnoreNodes(ShardId shardId) |
boolean |
RoutingAllocation.shouldIgnoreShardForNode(ShardId shardId,
String nodeId) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
MoveAllocationCommand.shardId() |
ShardId |
AllocateAllocationCommand.shardId()
Get the shards id
|
ShardId |
CancelAllocationCommand.shardId()
Get the id of the shard which allocation should be canceled
|
| Constructor and Description |
|---|
AllocateAllocationCommand(ShardId shardId,
String node,
boolean allowPrimary)
Create a new
AllocateAllocationCommand |
CancelAllocationCommand(ShardId shardId,
String node,
boolean allowPrimary)
Creates a new
CancelAllocationCommand |
MoveAllocationCommand(ShardId shardId,
String fromNode,
String toNode) |
| Modifier and Type | Method and Description |
|---|---|
static ESLogger |
Loggers.getLogger(Class clazz,
Settings settings,
ShardId shardId,
String... prefixes) |
static ESLogger |
Loggers.getLogger(String loggerName,
Settings settings,
ShardId shardId,
String... prefixes)
Just like
Loggers.getLogger(Class, org.elasticsearch.common.settings.Settings,ShardId,String...) but String loggerName instead of Class. |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
ShardCoreKeyMap.getShardId(Object coreKey)
Return the
ShardId that holds the given segment, or null
if this segment is not tracked. |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
ElasticsearchLeafReader.shardId()
Returns the shard id this segment belongs to.
|
ShardId |
ElasticsearchDirectoryReader.shardId()
Returns the shard id this index belongs to.
|
| Modifier and Type | Method and Description |
|---|---|
static ElasticsearchDirectoryReader |
ElasticsearchDirectoryReader.wrap(org.apache.lucene.index.DirectoryReader reader,
ShardId shardId)
Wraps the given reader in a
ElasticsearchDirectoryReader as
well as all it's sub-readers in ElasticsearchLeafReader to
expose the given shard Id. |
| Constructor and Description |
|---|
ElasticsearchLeafReader(org.apache.lucene.index.LeafReader in,
ShardId shardId)
Construct a FilterLeafReader based on the specified base reader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MultiDataPathUpgrader.needsUpgrading(ShardId shard)
Returns true iff the given shard needs upgrading.
|
ShardPath |
MultiDataPathUpgrader.pickShardPath(ShardId shard)
Picks a target ShardPath to allocate and upgrade the given shard to.
|
void |
MultiDataPathUpgrader.upgrade(ShardId shard,
ShardPath targetPath)
Upgrades the given shard Id from multiple shard paths into the given target path.
|
| Modifier and Type | Method and Description |
|---|---|
ShardId |
ShardLock.getShardId()
Returns the locks shards Id.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ShardId> |
NodeEnvironment.findAllShardIds(Index index)
Tries to find all allocated shards for the given index
on the current node.
|
Set<ShardId> |
NodeEnvironment.lockedShards()
Returns all currently lock shards
|
| Modifier and Type | Method and Description |
|---|---|
Path[] |
NodeEnvironment.availableShardPaths(ShardId shardId)
Returns all shard paths excluding custom shard path.
|
void |
NodeEnvironment.deleteShardDirectorySafe(ShardId shardId,
Settings indexSettings)
Deletes a shard data directory iff the shards locks were successfully acquired.
|
Path |
NodeEnvironment.NodePath.resolve(ShardId shardId)
Resolves the given shards directory against this NodePath
|
Path |
NodeEnvironment.resolveCustomLocation(Settings indexSettings,
ShardId shardId)
Resolve the custom path for a index's shard.
|
ShardLock |
NodeEnvironment.shardLock(ShardId id)
Tries to lock the given shards ID.
|
ShardLock |
NodeEnvironment.shardLock(ShardId id,
long lockTimeoutMS)
Tries to lock the given shards ID.
|
| Constructor and Description |
|---|
ShardLock(ShardId id) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
TransportNodesListGatewayStartedShards.NodeRequest.getShardId() |
ShardId |
TransportNodesListGatewayStartedShards.Request.shardId() |
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncShardFetch.List.list(ShardId shardId,
IndexMetaData indexMetaData,
String[] nodesIds,
ActionListener<NodesResponse> listener) |
void |
TransportNodesListGatewayStartedShards.list(ShardId shardId,
IndexMetaData indexMetaData,
String[] nodesIds,
ActionListener<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards> listener) |
protected void |
AsyncShardFetch.processAsyncFetch(ShardId shardId,
T[] responses,
FailedNodeException[] failures)
Called by the response handler of the async action to fetch data.
|
protected abstract void |
AsyncShardFetch.reroute(ShardId shardId,
String reason)
Implement this in order to scheduled another round that causes a call to fetch data.
|
| Constructor and Description |
|---|
AsyncShardFetch.FetchResult(ShardId shardId,
Map<DiscoveryNode,T> data,
Set<String> failedNodes,
Set<String> ignoreNodes) |
AsyncShardFetch(ESLogger logger,
String type,
ShardId shardId,
AsyncShardFetch.List<? extends BaseNodesResponse<T>,T> action) |
TransportNodesListGatewayStartedShards.Request(ShardId shardId,
String indexUUID,
String[] nodesIds) |
| Modifier and Type | Method and Description |
|---|---|
void |
BitsetFilterCache.Listener.onCache(ShardId shardId,
org.apache.lucene.util.Accountable accountable)
Called for each cached bitset on the cache event.
|
void |
BitsetFilterCache.Listener.onRemoval(ShardId shardId,
org.apache.lucene.util.Accountable accountable)
Called for each cached bitset on the removal event.
|
| Constructor and Description |
|---|
BitsetFilterCache.Value(org.apache.lucene.util.BitSet bitset,
ShardId shardId) |
ShardBitsetFilterCache(ShardId shardId,
Settings indexSettings) |
| Constructor and Description |
|---|
ShardRequestCache(ShardId shardId,
Settings indexSettings) |
| Constructor and Description |
|---|
KeepLastNDeletionPolicy(ShardId shardId,
IndexSettingsService indexSettingsService) |
KeepOnlyLastDeletionPolicy(ShardId shardId,
IndexSettingsService indexSettingsService) |
KeepOnlyLastDeletionPolicy(ShardId shardId,
Settings indexSettings) |
| Modifier and Type | Field and Description |
|---|---|
protected ShardId |
Engine.shardId |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
EngineConfig.getShardId()
Returns the engines shard ID
|
| Modifier and Type | Method and Description |
|---|---|
void |
Engine.FailedEngineListener.onFailedEngine(ShardId shardId,
String reason,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
void |
IndexFieldDataCache.Listener.onCache(ShardId shardId,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
org.apache.lucene.util.Accountable ramUsage)
Called after the fielddata is loaded during the cache phase
|
void |
ShardFieldData.onCache(ShardId shardId,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
org.apache.lucene.util.Accountable ramUsage) |
void |
IndexFieldDataCache.Listener.onRemoval(ShardId shardId,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
boolean wasEvicted,
long sizeInBytes)
Called after the fielddata is unloaded
|
void |
ShardFieldData.onRemoval(ShardId shardId,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
boolean wasEvicted,
long sizeInBytes) |
| Constructor and Description |
|---|
ShardIndexingService(ShardId shardId,
Settings indexSettings) |
| Constructor and Description |
|---|
PercolatorQueriesRegistry(ShardId shardId,
Settings indexSettings,
IndexQueryParserService queryParserService,
ShardIndexingService indexingService,
IndicesLifecycle indicesLifecycle,
MapperService mapperService,
IndexFieldDataService indexFieldDataService,
ShardPercolateService shardPercolateService) |
| Constructor and Description |
|---|
ShardPercolateService(ShardId shardId,
IndexSettingsService indexSettingsService) |
| Modifier and Type | Field and Description |
|---|---|
protected ShardId |
AbstractIndexShardComponent.shardId |
| Modifier and Type | Method and Description |
|---|---|
static ShardId |
ShardUtils.extractShardId(org.apache.lucene.index.DirectoryReader reader)
Tries to extract the shard id from a reader if possible, when its not possible,
will return null.
|
static ShardId |
ShardUtils.extractShardId(org.apache.lucene.index.LeafReader reader)
Tries to extract the shard id from a reader if possible, when its not possible,
will return null.
|
ShardId |
ShardPath.getShardId() |
static ShardId |
ShardId.readShardId(StreamInput in) |
ShardId |
AbstractIndexShardComponent.shardId() |
ShardId |
IndexShardComponent.shardId() |
| Modifier and Type | Method and Description |
|---|---|
int |
ShardId.compareTo(ShardId o) |
static ShardPath |
ShardPath.loadShardPath(ESLogger logger,
NodeEnvironment env,
ShardId shardId,
Settings indexSettings)
This method walks through the nodes shard paths to find the data and state path for the given shard.
|
static ShardPath |
ShardPath.selectNewPathForShard(NodeEnvironment env,
ShardId shardId,
Settings indexSettings,
long avgShardSizeInBytes,
Map<Path,Integer> dataPathToShardCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
IndexShardRepository.restore(SnapshotId snapshotId,
Version version,
ShardId shardId,
ShardId snapshotShardId,
RecoveryState recoveryState)
Restores snapshot of the shard.
|
void |
IndexShardRepository.snapshot(SnapshotId snapshotId,
ShardId shardId,
SnapshotIndexCommit snapshotIndexCommit,
IndexShardSnapshotStatus snapshotStatus)
Creates a snapshot of the shard based on the index commit point.
|
IndexShardSnapshotStatus |
IndexShardRepository.snapshotStatus(SnapshotId snapshotId,
Version version,
ShardId shardId)
Retrieve shard snapshot status for the stored snapshot
|
| Constructor and Description |
|---|
IndexShardRestoreException(ShardId shardId,
String msg) |
IndexShardRestoreException(ShardId shardId,
String msg,
Throwable cause) |
IndexShardRestoreFailedException(ShardId shardId,
String msg) |
IndexShardRestoreFailedException(ShardId shardId,
String msg,
Throwable cause) |
IndexShardSnapshotException(ShardId shardId,
String msg) |
IndexShardSnapshotException(ShardId shardId,
String msg,
Throwable cause) |
IndexShardSnapshotFailedException(ShardId shardId,
String msg) |
IndexShardSnapshotFailedException(ShardId shardId,
String msg,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
void |
BlobStoreIndexShardRepository.delete(SnapshotId snapshotId,
Version version,
ShardId shardId)
Delete shard snapshot
|
void |
BlobStoreIndexShardRepository.restore(SnapshotId snapshotId,
Version version,
ShardId shardId,
ShardId snapshotShardId,
RecoveryState recoveryState)
Restores snapshot of the shard.
|
void |
BlobStoreIndexShardRepository.snapshot(SnapshotId snapshotId,
ShardId shardId,
SnapshotIndexCommit snapshotIndexCommit,
IndexShardSnapshotStatus snapshotStatus)
Creates a snapshot of the shard based on the index commit point.
|
IndexShardSnapshotStatus |
BlobStoreIndexShardRepository.snapshotStatus(SnapshotId snapshotId,
Version version,
ShardId shardId)
Retrieve shard snapshot status for the stored snapshot
|
| Constructor and Description |
|---|
DirectoryService(ShardId shardId,
Settings indexSettings) |
Store(ShardId shardId,
IndexSettingsService indexSettingsService,
DirectoryService directoryService,
ShardLock shardLock,
Store.OnClose onClose) |
Store(ShardId shardId,
Settings indexSettings,
DirectoryService directoryService,
ShardLock shardLock) |
Store(ShardId shardId,
Settings indexSettings,
DirectoryService directoryService,
ShardLock shardLock,
Store.OnClose onClose) |
| Constructor and Description |
|---|
ShardTermVectorsService(ShardId shardId,
IndexSettingsService indexSettingsService,
MappingUpdatedAction mappingUpdatedAction,
TransportDfsOnlyAction dfsAction) |
| Modifier and Type | Field and Description |
|---|---|
protected ShardId |
TranslogWriter.shardId |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
TranslogConfig.getShardId()
Returns the shard ID this config is created for
|
| Modifier and Type | Method and Description |
|---|---|
abstract TranslogWriter |
TranslogWriter.Type.create(ShardId shardId,
long generation,
org.elasticsearch.index.translog.ChannelReference raf,
int bufferSize) |
static TranslogWriter |
TranslogWriter.create(TranslogWriter.Type type,
ShardId shardId,
String translogUUID,
long fileGeneration,
Path file,
Callback<org.elasticsearch.index.translog.ChannelReference> onClose,
int bufferSize,
org.elasticsearch.index.translog.TranslogWriter.ChannelFactory channelFactory) |
| Constructor and Description |
|---|
BufferingTranslogWriter(ShardId shardId,
long generation,
org.elasticsearch.index.translog.ChannelReference channelReference,
int bufferSize) |
TranslogConfig(ShardId shardId,
Path translogPath,
Settings indexSettings,
Translog.Durabilty durabilty,
BigArrays bigArrays,
ThreadPool threadPool)
Creates a new TranslogConfig instance
|
TranslogException(ShardId shardId,
String msg) |
TranslogException(ShardId shardId,
String msg,
Throwable cause) |
TranslogService(ShardId shardId,
IndexSettingsService indexSettingsService,
ThreadPool threadPool,
IndexShard indexShard) |
TranslogWriter(ShardId shardId,
long generation,
org.elasticsearch.index.translog.ChannelReference channelReference) |
| Constructor and Description |
|---|
ShardIndexWarmerService(ShardId shardId,
Settings indexSettings) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
IndicesWarmer.WarmerContext.shardId() |
| Modifier and Type | Method and Description |
|---|---|
void |
IndicesService.addPendingDelete(ShardId shardId,
Settings settings)
Adds a pending delete for the given index shard.
|
void |
InternalIndicesLifecycle.afterIndexShardClosed(ShardId shardId,
IndexShard indexShard,
Settings indexSettings) |
void |
IndicesLifecycle.Listener.afterIndexShardClosed(ShardId shardId,
IndexShard indexShard,
Settings indexSettings)
Called after the index shard has been closed.
|
void |
InternalIndicesLifecycle.afterIndexShardDeleted(ShardId shardId,
Settings indexSettings) |
void |
IndicesLifecycle.Listener.afterIndexShardDeleted(ShardId shardId,
Settings indexSettings)
Called after the index shard has been deleted from disk.
|
void |
InternalIndicesLifecycle.beforeIndexShardClosed(ShardId shardId,
IndexShard indexShard,
Settings indexSettings) |
void |
IndicesLifecycle.Listener.beforeIndexShardClosed(ShardId shardId,
IndexShard indexShard,
Settings indexSettings)
Called before the index shard gets closed.
|
void |
InternalIndicesLifecycle.beforeIndexShardCreated(ShardId shardId,
Settings indexSettings) |
void |
IndicesLifecycle.Listener.beforeIndexShardCreated(ShardId shardId,
Settings indexSettings)
Called before the index shard gets created.
|
void |
InternalIndicesLifecycle.beforeIndexShardDeleted(ShardId shardId,
Settings indexSettings) |
void |
IndicesLifecycle.Listener.beforeIndexShardDeleted(ShardId shardId,
Settings indexSettings)
Called before the index shard gets deleted from disk
Note: this method is only executed on the first attempt of deleting the shard.
|
boolean |
IndicesService.canDeleteShardContent(ShardId shardId,
IndexMetaData metaData)
Returns
true iff the shards content for the given shard can be deleted. |
void |
IndicesService.deleteShardStore(String reason,
ShardId shardId,
ClusterState clusterState)
This method deletes the shard contents on disk for the given shard ID.
|
| Constructor and Description |
|---|
IndicesWarmer.WarmerContext(ShardId shardId,
Engine.Searcher searcher) |
| Modifier and Type | Method and Description |
|---|---|
QueryCacheStats |
IndicesQueryCache.getStats(ShardId shard)
Get usage statistics for the given shard.
|
void |
IndicesQueryCache.onClose(ShardId shardId) |
| Modifier and Type | Field and Description |
|---|---|
ShardId |
IndicesFieldDataCache.Key.shardId |
| Modifier and Type | Method and Description |
|---|---|
void |
IndicesFieldDataCacheListener.onCache(ShardId shardId,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
org.apache.lucene.util.Accountable fieldData) |
void |
IndicesFieldDataCacheListener.onRemoval(ShardId shardId,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
boolean wasEvicted,
long sizeInBytes) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
ShardsSyncedFlushResult.getShardId() |
ShardId |
ShardsSyncedFlushResult.shardId() |
ShardId |
SyncedFlushService.PreShardSyncedFlushRequest.shardId() |
ShardId |
SyncedFlushService.ShardSyncedFlushRequest.shardId() |
ShardId |
SyncedFlushService.InFlightOpsRequest.shardId() |
| Modifier and Type | Method and Description |
|---|---|
void |
SyncedFlushService.attemptSyncedFlush(ShardId shardId,
ActionListener<ShardsSyncedFlushResult> actionListener) |
protected void |
SyncedFlushService.getInflightOpsCount(ShardId shardId,
ClusterState state,
IndexShardRoutingTable shardRoutingTable,
ActionListener<org.elasticsearch.indices.flush.SyncedFlushService.InFlightOpsResponse> listener)
returns the number of in flight operations on primary.
|
| Constructor and Description |
|---|
ShardsSyncedFlushResult(ShardId shardId,
int totalShards,
String failureReason)
failure constructor
|
ShardsSyncedFlushResult(ShardId shardId,
String syncId,
int totalShards,
Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)
success constructor
|
SyncedFlushService.InFlightOpsRequest(ShardId shardId) |
SyncedFlushService.PreShardSyncedFlushRequest(ShardId shardId) |
SyncedFlushService.ShardSyncedFlushRequest(ShardId shardId,
String syncId,
Engine.CommitId expectedCommitId) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
RecoveryState.getShardId() |
ShardId |
RecoveryFilesInfoRequest.shardId() |
ShardId |
RecoveryPrepareForTranslogOperationsRequest.shardId() |
ShardId |
RecoveryFinalizeRecoveryRequest.shardId() |
ShardId |
RecoveryStatus.shardId() |
ShardId |
RecoveryTranslogOperationsRequest.shardId() |
ShardId |
StartRecoveryRequest.shardId() |
ShardId |
RecoveryCleanFilesRequest.shardId() |
ShardId |
RecoveryFileChunkRequest.shardId() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RecoveriesCollection.cancelRecoveriesForShard(ShardId shardId,
String reason)
cancel all ongoing recoveries for the given shard.
|
boolean |
RecoveriesCollection.cancelRecoveriesForShard(ShardId shardId,
String reason,
com.google.common.base.Predicate<RecoveryStatus> shouldCancel)
cancel all ongoing recoveries for the given shard, if their status match a predicate
|
boolean |
RecoveryTarget.cancelRecoveriesForShard(ShardId shardId,
String reason,
com.google.common.base.Predicate<RecoveryStatus> shouldCancel)
cancel all ongoing recoveries for the given shard, if their status match a predicate
|
RecoveriesCollection.StatusRef |
RecoveriesCollection.getStatusSafe(long id,
ShardId shardId)
Similar to
RecoveriesCollection.getStatus(long) but throws an exception if no recovery is found |
| Constructor and Description |
|---|
RecoverFilesRecoveryException(ShardId shardId,
int numberOfFiles,
ByteSizeValue totalFilesSize,
Throwable cause) |
RecoveryFailedException(ShardId shardId,
DiscoveryNode sourceNode,
DiscoveryNode targetNode,
String extraInfo,
Throwable cause) |
RecoveryFailedException(ShardId shardId,
DiscoveryNode sourceNode,
DiscoveryNode targetNode,
Throwable cause) |
RecoveryFileChunkRequest(long recoveryId,
ShardId shardId,
StoreFileMetaData metaData,
long position,
BytesReference content,
boolean lastChunk,
int totalTranslogOps,
long sourceThrottleTimeInNanos) |
RecoveryState(ShardId shardId,
boolean primary,
RecoveryState.Type type,
DiscoveryNode sourceNode,
DiscoveryNode targetNode) |
RecoveryState(ShardId shardId,
boolean primary,
RecoveryState.Type type,
RestoreSource restoreSource,
DiscoveryNode targetNode) |
StartRecoveryRequest(ShardId shardId,
DiscoveryNode sourceNode,
DiscoveryNode targetNode,
boolean markAsRelocated,
Store.MetadataSnapshot metadataSnapshot,
RecoveryState.Type recoveryType,
long recoveryId)
Start recovery request.
|
| Modifier and Type | Method and Description |
|---|---|
ShardId |
TransportNodesListShardStoreMetaData.StoreFilesMetaData.shardId() |
| Modifier and Type | Method and Description |
|---|---|
void |
TransportNodesListShardStoreMetaData.list(ShardId shardId,
IndexMetaData indexMetaData,
String[] nodesIds,
ActionListener<TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData> listener) |
| Constructor and Description |
|---|
TransportNodesListShardStoreMetaData.Request(ShardId shardId,
boolean unallocated,
Set<String> nodesIds) |
TransportNodesListShardStoreMetaData.Request(ShardId shardId,
boolean unallocated,
String... nodesIds) |
TransportNodesListShardStoreMetaData.StoreFilesMetaData(boolean allocated,
ShardId shardId,
Store.MetadataSnapshot metadataSnapshot) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
PercolateException.getShardId() |
| Constructor and Description |
|---|
PercolateException(ShardId shardId,
String msg,
Throwable cause) |
| Constructor and Description |
|---|
ShardSearchLocalRequest(ShardId shardId,
int numberOfShards,
SearchType searchType,
BytesReference source,
String[] types,
Boolean requestCache) |
| Modifier and Type | Method and Description |
|---|---|
ShardId |
RestoreService.UpdateIndexShardRestoreStatusRequest.shardId() |
ShardId |
SnapshotShardsService.UpdateIndexShardSnapshotStatusRequest.shardId() |
| Modifier and Type | Method and Description |
|---|---|
Map<ShardId,IndexShardSnapshotStatus> |
SnapshotShardsService.currentSnapshotShards(SnapshotId snapshotId)
Returns status of shards that are snapshotted on the node and belong to the given snapshot
|
com.google.common.collect.ImmutableMap<ShardId,IndexShardSnapshotStatus> |
SnapshotsService.snapshotShards(SnapshotId snapshotId)
Returns status of shards currently finished snapshots
|
| Modifier and Type | Method and Description |
|---|---|
void |
RestoreService.failRestore(SnapshotId snapshotId,
ShardId shardId)
Fails the given snapshot restore operation for the given shard
|
void |
RestoreService.indexShardRestoreCompleted(SnapshotId snapshotId,
ShardId shardId)
This method is used by
StoreRecoveryService to notify
RestoreService about shard restore completion. |
void |
SnapshotShardsService.updateIndexShardSnapshotStatus(SnapshotId snapshotId,
ShardId shardId,
SnapshotsInProgress.ShardSnapshotStatus status)
Updates the shard status
|
| Constructor and Description |
|---|
SnapshotShardsService.UpdateIndexShardSnapshotStatusRequest(SnapshotId snapshotId,
ShardId shardId,
SnapshotsInProgress.ShardSnapshotStatus status) |
Copyright © 2009–2017. All rights reserved.