Uses of Class
org.elasticsearch.cluster.ClusterState
-
-
Uses of ClusterState in org.elasticsearch.action
Methods in org.elasticsearch.action with parameters of type ClusterState Modifier and Type Method Description Optional<Exception>RequestValidators.RequestValidator. validateRequest(T request, ClusterState state, Index[] indices)Validates a given request with its associated concrete indices and the current state.Optional<Exception>RequestValidators. validateRequest(T request, ClusterState state, Index[] indices) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.allocation
Methods in org.elasticsearch.action.admin.cluster.allocation with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportClusterAllocationExplainAction. checkBlock(ClusterAllocationExplainRequest request, ClusterState state)protected voidTransportClusterAllocationExplainAction. masterOperation(ClusterAllocationExplainRequest request, ClusterState state, ActionListener<ClusterAllocationExplainResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.configuration
Methods in org.elasticsearch.action.admin.cluster.configuration with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportAddVotingConfigExclusionsAction. checkBlock(AddVotingConfigExclusionsRequest request, ClusterState state)protected ClusterBlockExceptionTransportClearVotingConfigExclusionsAction. checkBlock(ClearVotingConfigExclusionsRequest request, ClusterState state)protected voidTransportAddVotingConfigExclusionsAction. masterOperation(AddVotingConfigExclusionsRequest request, ClusterState state, ActionListener<AddVotingConfigExclusionsResponse> listener)protected voidTransportClearVotingConfigExclusionsAction. masterOperation(ClearVotingConfigExclusionsRequest request, ClusterState initialState, ActionListener<ClearVotingConfigExclusionsResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.health
Methods in org.elasticsearch.action.admin.cluster.health with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportClusterHealthAction. checkBlock(ClusterHealthRequest request, ClusterState state)protected voidTransportClusterHealthAction. masterOperation(ClusterHealthRequest request, ClusterState state, ActionListener<ClusterHealthResponse> listener)protected voidTransportClusterHealthAction. masterOperation(Task task, ClusterHealthRequest request, ClusterState unusedState, ActionListener<ClusterHealthResponse> listener)Constructors in org.elasticsearch.action.admin.cluster.health with parameters of type ClusterState Constructor Description ClusterHealthResponse(String clusterName, String[] concreteIndices, ClusterState clusterState)needed for plugins BWCClusterHealthResponse(String clusterName, String[] concreteIndices, ClusterState clusterState, int numberOfPendingTasks, int numberOfInFlightFetch, int delayedUnassignedShards, TimeValue taskMaxWaitingTime) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.repositories.cleanup
Methods in org.elasticsearch.action.admin.cluster.repositories.cleanup with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportCleanupRepositoryAction. checkBlock(CleanupRepositoryRequest request, ClusterState state)protected voidTransportCleanupRepositoryAction. masterOperation(CleanupRepositoryRequest request, ClusterState state, ActionListener<CleanupRepositoryResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.repositories.delete
Methods in org.elasticsearch.action.admin.cluster.repositories.delete with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportDeleteRepositoryAction. checkBlock(DeleteRepositoryRequest request, ClusterState state)protected voidTransportDeleteRepositoryAction. masterOperation(DeleteRepositoryRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.repositories.get
Methods in org.elasticsearch.action.admin.cluster.repositories.get with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportGetRepositoriesAction. checkBlock(GetRepositoriesRequest request, ClusterState state)protected voidTransportGetRepositoriesAction. masterOperation(GetRepositoriesRequest request, ClusterState state, ActionListener<GetRepositoriesResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.repositories.put
Methods in org.elasticsearch.action.admin.cluster.repositories.put with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportPutRepositoryAction. checkBlock(PutRepositoryRequest request, ClusterState state)protected voidTransportPutRepositoryAction. masterOperation(PutRepositoryRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.repositories.verify
Methods in org.elasticsearch.action.admin.cluster.repositories.verify with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportVerifyRepositoryAction. checkBlock(VerifyRepositoryRequest request, ClusterState state)protected voidTransportVerifyRepositoryAction. masterOperation(VerifyRepositoryRequest request, ClusterState state, ActionListener<VerifyRepositoryResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.reroute
Methods in org.elasticsearch.action.admin.cluster.reroute that return ClusterState Modifier and Type Method Description ClusterStateClusterRerouteResponse. getState()Returns the cluster state resulted from the cluster reroute request executionMethods in org.elasticsearch.action.admin.cluster.reroute with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportClusterRerouteAction. checkBlock(ClusterRerouteRequest request, ClusterState state)protected voidTransportClusterRerouteAction. masterOperation(ClusterRerouteRequest request, ClusterState state, ActionListener<ClusterRerouteResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.settings
Methods in org.elasticsearch.action.admin.cluster.settings with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportClusterUpdateSettingsAction. checkBlock(ClusterUpdateSettingsRequest request, ClusterState state)protected voidTransportClusterUpdateSettingsAction. masterOperation(ClusterUpdateSettingsRequest request, ClusterState state, ActionListener<ClusterUpdateSettingsResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.shards
Methods in org.elasticsearch.action.admin.cluster.shards with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportClusterSearchShardsAction. checkBlock(ClusterSearchShardsRequest request, ClusterState state)protected voidTransportClusterSearchShardsAction. masterOperation(ClusterSearchShardsRequest request, ClusterState state, ActionListener<ClusterSearchShardsResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.snapshots.create
Methods in org.elasticsearch.action.admin.cluster.snapshots.create with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportCreateSnapshotAction. checkBlock(CreateSnapshotRequest request, ClusterState state)protected voidTransportCreateSnapshotAction. masterOperation(CreateSnapshotRequest request, ClusterState state, ActionListener<CreateSnapshotResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.snapshots.delete
Methods in org.elasticsearch.action.admin.cluster.snapshots.delete with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportDeleteSnapshotAction. checkBlock(DeleteSnapshotRequest request, ClusterState state)protected voidTransportDeleteSnapshotAction. masterOperation(DeleteSnapshotRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.snapshots.get
Methods in org.elasticsearch.action.admin.cluster.snapshots.get with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportGetSnapshotsAction. checkBlock(GetSnapshotsRequest request, ClusterState state)protected voidTransportGetSnapshotsAction. masterOperation(GetSnapshotsRequest request, ClusterState state, ActionListener<GetSnapshotsResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.snapshots.restore
Methods in org.elasticsearch.action.admin.cluster.snapshots.restore with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportRestoreSnapshotAction. checkBlock(RestoreSnapshotRequest request, ClusterState state)protected voidTransportRestoreSnapshotAction. masterOperation(RestoreSnapshotRequest request, ClusterState state, ActionListener<RestoreSnapshotResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.snapshots.status
Methods in org.elasticsearch.action.admin.cluster.snapshots.status with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportSnapshotsStatusAction. checkBlock(SnapshotsStatusRequest request, ClusterState state)protected voidTransportSnapshotsStatusAction. masterOperation(SnapshotsStatusRequest request, ClusterState state, ActionListener<SnapshotsStatusResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.state
Methods in org.elasticsearch.action.admin.cluster.state that return ClusterState Modifier and Type Method Description ClusterStateClusterStateResponse. getState()The requested cluster state.Methods in org.elasticsearch.action.admin.cluster.state with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportClusterStateAction. checkBlock(ClusterStateRequest request, ClusterState state)protected voidTransportClusterStateAction. masterOperation(ClusterStateRequest request, ClusterState state, ActionListener<ClusterStateResponse> listener)Constructors in org.elasticsearch.action.admin.cluster.state with parameters of type ClusterState Constructor Description ClusterStateResponse(ClusterName clusterName, ClusterState clusterState, boolean waitForTimedOut) -
Uses of ClusterState in org.elasticsearch.action.admin.cluster.storedscripts
-
Uses of ClusterState in org.elasticsearch.action.admin.cluster.tasks
Methods in org.elasticsearch.action.admin.cluster.tasks with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportPendingClusterTasksAction. checkBlock(PendingClusterTasksRequest request, ClusterState state)protected voidTransportPendingClusterTasksAction. masterOperation(PendingClusterTasksRequest request, ClusterState state, ActionListener<PendingClusterTasksResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.alias
Methods in org.elasticsearch.action.admin.indices.alias with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportIndicesAliasesAction. checkBlock(IndicesAliasesRequest request, ClusterState state)protected voidTransportIndicesAliasesAction. masterOperation(IndicesAliasesRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.alias.exists
Methods in org.elasticsearch.action.admin.indices.alias.exists with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportAliasesExistAction. checkBlock(GetAliasesRequest request, ClusterState state)protected voidTransportAliasesExistAction. masterOperation(GetAliasesRequest request, ClusterState state, ActionListener<AliasesExistResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.alias.get
Methods in org.elasticsearch.action.admin.indices.alias.get with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportGetAliasesAction. checkBlock(GetAliasesRequest request, ClusterState state)protected voidTransportGetAliasesAction. masterOperation(GetAliasesRequest request, ClusterState state, ActionListener<GetAliasesResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.analyze
Methods in org.elasticsearch.action.admin.indices.analyze with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportAnalyzeAction. checkRequestBlock(ClusterState state, TransportSingleShardAction.InternalRequest request)protected ShardsIteratorTransportAnalyzeAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.cache.clear
Methods in org.elasticsearch.action.admin.indices.cache.clear with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportClearIndicesCacheAction. checkGlobalBlock(ClusterState state, ClearIndicesCacheRequest request)protected ClusterBlockExceptionTransportClearIndicesCacheAction. checkRequestBlock(ClusterState state, ClearIndicesCacheRequest request, String[] concreteIndices)protected ClearIndicesCacheResponseTransportClearIndicesCacheAction. newResponse(ClearIndicesCacheRequest request, int totalShards, int successfulShards, int failedShards, List<TransportBroadcastByNodeAction.EmptyResult> responses, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState)protected ShardsIteratorTransportClearIndicesCacheAction. shards(ClusterState clusterState, ClearIndicesCacheRequest request, String[] concreteIndices)The refresh request works against *all* shards. -
Uses of ClusterState in org.elasticsearch.action.admin.indices.close
Methods in org.elasticsearch.action.admin.indices.close with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportCloseIndexAction. checkBlock(CloseIndexRequest request, ClusterState state)protected voidTransportCloseIndexAction. masterOperation(CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener)protected voidTransportCloseIndexAction. masterOperation(Task task, CloseIndexRequest request, ClusterState state, ActionListener<CloseIndexResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.create
Methods in org.elasticsearch.action.admin.indices.create with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportCreateIndexAction. checkBlock(CreateIndexRequest request, ClusterState state)protected voidTransportCreateIndexAction. masterOperation(CreateIndexRequest request, ClusterState state, ActionListener<CreateIndexResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.delete
Methods in org.elasticsearch.action.admin.indices.delete with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportDeleteIndexAction. checkBlock(DeleteIndexRequest request, ClusterState state)protected voidTransportDeleteIndexAction. masterOperation(DeleteIndexRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.exists.indices
Methods in org.elasticsearch.action.admin.indices.exists.indices with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportIndicesExistsAction. checkBlock(IndicesExistsRequest request, ClusterState state)protected voidTransportIndicesExistsAction. masterOperation(IndicesExistsRequest request, ClusterState state, ActionListener<IndicesExistsResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.exists.types
Methods in org.elasticsearch.action.admin.indices.exists.types with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportTypesExistsAction. checkBlock(TypesExistsRequest request, ClusterState state)protected voidTransportTypesExistsAction. masterOperation(TypesExistsRequest request, ClusterState state, ActionListener<TypesExistsResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.forcemerge
Methods in org.elasticsearch.action.admin.indices.forcemerge with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportForceMergeAction. checkGlobalBlock(ClusterState state, ForceMergeRequest request)protected ClusterBlockExceptionTransportForceMergeAction. checkRequestBlock(ClusterState state, ForceMergeRequest request, String[] concreteIndices)protected ForceMergeResponseTransportForceMergeAction. newResponse(ForceMergeRequest request, int totalShards, int successfulShards, int failedShards, List<TransportBroadcastByNodeAction.EmptyResult> responses, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState)protected ShardsIteratorTransportForceMergeAction. shards(ClusterState clusterState, ForceMergeRequest request, String[] concreteIndices)The refresh request works against *all* shards. -
Uses of ClusterState in org.elasticsearch.action.admin.indices.get
Methods in org.elasticsearch.action.admin.indices.get with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportGetIndexAction. checkBlock(GetIndexRequest request, ClusterState state)protected voidTransportGetIndexAction. doMasterOperation(GetIndexRequest request, String[] concreteIndices, ClusterState state, ActionListener<GetIndexResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.mapping.get
Methods in org.elasticsearch.action.admin.indices.mapping.get with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportGetMappingsAction. checkBlock(GetMappingsRequest request, ClusterState state)protected ClusterBlockExceptionTransportGetFieldMappingsIndexAction. checkRequestBlock(ClusterState state, TransportSingleShardAction.InternalRequest request)protected voidTransportGetMappingsAction. doMasterOperation(GetMappingsRequest request, String[] concreteIndices, ClusterState state, ActionListener<GetMappingsResponse> listener)protected ShardsIteratorTransportGetFieldMappingsIndexAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.mapping.put
Methods in org.elasticsearch.action.admin.indices.mapping.put with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportPutMappingAction. checkBlock(PutMappingRequest request, ClusterState state)protected voidTransportPutMappingAction. masterOperation(PutMappingRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.open
Methods in org.elasticsearch.action.admin.indices.open with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportOpenIndexAction. checkBlock(OpenIndexRequest request, ClusterState state)protected voidTransportOpenIndexAction. masterOperation(OpenIndexRequest request, ClusterState state, ActionListener<OpenIndexResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.recovery
Methods in org.elasticsearch.action.admin.indices.recovery with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportRecoveryAction. checkGlobalBlock(ClusterState state, RecoveryRequest request)protected ClusterBlockExceptionTransportRecoveryAction. checkRequestBlock(ClusterState state, RecoveryRequest request, String[] concreteIndices)protected RecoveryResponseTransportRecoveryAction. newResponse(RecoveryRequest request, int totalShards, int successfulShards, int failedShards, List<RecoveryState> responses, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState)protected ShardsIteratorTransportRecoveryAction. shards(ClusterState state, RecoveryRequest request, String[] concreteIndices) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.rollover
Methods in org.elasticsearch.action.admin.indices.rollover with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportRolloverAction. checkBlock(RolloverRequest request, ClusterState state)protected voidTransportRolloverAction. masterOperation(RolloverRequest request, ClusterState state, ActionListener<RolloverResponse> listener)protected voidTransportRolloverAction. masterOperation(Task task, RolloverRequest rolloverRequest, ClusterState state, ActionListener<RolloverResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.segments
Methods in org.elasticsearch.action.admin.indices.segments with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportIndicesSegmentsAction. checkGlobalBlock(ClusterState state, IndicesSegmentsRequest request)protected ClusterBlockExceptionTransportIndicesSegmentsAction. checkRequestBlock(ClusterState state, IndicesSegmentsRequest countRequest, String[] concreteIndices)protected IndicesSegmentResponseTransportIndicesSegmentsAction. newResponse(IndicesSegmentsRequest request, int totalShards, int successfulShards, int failedShards, List<ShardSegments> results, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState)protected ShardsIteratorTransportIndicesSegmentsAction. shards(ClusterState clusterState, IndicesSegmentsRequest request, String[] concreteIndices)Segments goes across *all* active shards. -
Uses of ClusterState in org.elasticsearch.action.admin.indices.settings.get
Methods in org.elasticsearch.action.admin.indices.settings.get with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportGetSettingsAction. checkBlock(GetSettingsRequest request, ClusterState state)protected voidTransportGetSettingsAction. masterOperation(GetSettingsRequest request, ClusterState state, ActionListener<GetSettingsResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.settings.put
Methods in org.elasticsearch.action.admin.indices.settings.put with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportUpdateSettingsAction. checkBlock(UpdateSettingsRequest request, ClusterState state)protected voidTransportUpdateSettingsAction. masterOperation(UpdateSettingsRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.shards
Methods in org.elasticsearch.action.admin.indices.shards with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportIndicesShardStoresAction. checkBlock(IndicesShardStoresRequest request, ClusterState state)protected voidTransportIndicesShardStoresAction. masterOperation(IndicesShardStoresRequest request, ClusterState state, ActionListener<IndicesShardStoresResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.shrink
Methods in org.elasticsearch.action.admin.indices.shrink with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportResizeAction. checkBlock(ResizeRequest request, ClusterState state)protected voidTransportResizeAction. masterOperation(ResizeRequest resizeRequest, ClusterState state, ActionListener<ResizeResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.stats
Methods in org.elasticsearch.action.admin.indices.stats with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportIndicesStatsAction. checkGlobalBlock(ClusterState state, IndicesStatsRequest request)protected ClusterBlockExceptionTransportIndicesStatsAction. checkRequestBlock(ClusterState state, IndicesStatsRequest request, String[] concreteIndices)protected IndicesStatsResponseTransportIndicesStatsAction. newResponse(IndicesStatsRequest request, int totalShards, int successfulShards, int failedShards, List<ShardStats> responses, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState)protected ShardsIteratorTransportIndicesStatsAction. shards(ClusterState clusterState, IndicesStatsRequest request, String[] concreteIndices)Status goes across *all* shards. -
Uses of ClusterState in org.elasticsearch.action.admin.indices.template.delete
Methods in org.elasticsearch.action.admin.indices.template.delete with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportDeleteIndexTemplateAction. checkBlock(DeleteIndexTemplateRequest request, ClusterState state)protected voidTransportDeleteIndexTemplateAction. masterOperation(DeleteIndexTemplateRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.template.get
Methods in org.elasticsearch.action.admin.indices.template.get with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportGetIndexTemplatesAction. checkBlock(GetIndexTemplatesRequest request, ClusterState state)protected voidTransportGetIndexTemplatesAction. masterOperation(GetIndexTemplatesRequest request, ClusterState state, ActionListener<GetIndexTemplatesResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.template.put
Methods in org.elasticsearch.action.admin.indices.template.put with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportPutIndexTemplateAction. checkBlock(PutIndexTemplateRequest request, ClusterState state)protected voidTransportPutIndexTemplateAction. masterOperation(PutIndexTemplateRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.admin.indices.upgrade.get
Methods in org.elasticsearch.action.admin.indices.upgrade.get with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportUpgradeStatusAction. checkGlobalBlock(ClusterState state, UpgradeStatusRequest request)protected ClusterBlockExceptionTransportUpgradeStatusAction. checkRequestBlock(ClusterState state, UpgradeStatusRequest countRequest, String[] concreteIndices)protected UpgradeStatusResponseTransportUpgradeStatusAction. newResponse(UpgradeStatusRequest request, int totalShards, int successfulShards, int failedShards, List<ShardUpgradeStatus> responses, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState)protected ShardsIteratorTransportUpgradeStatusAction. shards(ClusterState clusterState, UpgradeStatusRequest request, String[] concreteIndices)Getting upgrade stats from *all* active shards. -
Uses of ClusterState in org.elasticsearch.action.admin.indices.upgrade.post
Methods in org.elasticsearch.action.admin.indices.upgrade.post with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportUpgradeSettingsAction. checkBlock(UpgradeSettingsRequest request, ClusterState state)protected ClusterBlockExceptionTransportUpgradeAction. checkGlobalBlock(ClusterState state, UpgradeRequest request)protected ClusterBlockExceptionTransportUpgradeAction. checkRequestBlock(ClusterState state, UpgradeRequest request, String[] concreteIndices)protected voidTransportUpgradeSettingsAction. masterOperation(UpgradeSettingsRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)protected UpgradeResponseTransportUpgradeAction. newResponse(UpgradeRequest request, int totalShards, int successfulShards, int failedShards, List<org.elasticsearch.action.admin.indices.upgrade.post.ShardUpgradeResult> shardUpgradeResults, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState)protected ShardsIteratorTransportUpgradeAction. shards(ClusterState clusterState, UpgradeRequest request, String[] concreteIndices)The upgrade request works against *all* shards. -
Uses of ClusterState in org.elasticsearch.action.admin.indices.validate.query
Methods in org.elasticsearch.action.admin.indices.validate.query with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportValidateQueryAction. checkGlobalBlock(ClusterState state, ValidateQueryRequest request)protected ClusterBlockExceptionTransportValidateQueryAction. checkRequestBlock(ClusterState state, ValidateQueryRequest countRequest, String[] concreteIndices)protected ValidateQueryResponseTransportValidateQueryAction. newResponse(ValidateQueryRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState)protected GroupShardsIteratorTransportValidateQueryAction. shards(ClusterState clusterState, ValidateQueryRequest request, String[] concreteIndices) -
Uses of ClusterState in org.elasticsearch.action.explain
Methods in org.elasticsearch.action.explain with parameters of type ClusterState Modifier and Type Method Description protected voidTransportExplainAction. resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)protected ShardIteratorTransportExplainAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request) -
Uses of ClusterState in org.elasticsearch.action.fieldcaps
Methods in org.elasticsearch.action.fieldcaps with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportFieldCapabilitiesIndexAction. checkRequestBlock(ClusterState state, TransportSingleShardAction.InternalRequest request)protected ShardsIteratorTransportFieldCapabilitiesIndexAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request) -
Uses of ClusterState in org.elasticsearch.action.get
Methods in org.elasticsearch.action.get with parameters of type ClusterState Modifier and Type Method Description protected voidTransportGetAction. resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)protected ShardIteratorTransportGetAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request)protected ShardIteratorTransportShardMultiGetAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request) -
Uses of ClusterState in org.elasticsearch.action.ingest
Methods in org.elasticsearch.action.ingest with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionDeletePipelineTransportAction. checkBlock(DeletePipelineRequest request, ClusterState state)protected ClusterBlockExceptionGetPipelineTransportAction. checkBlock(GetPipelineRequest request, ClusterState state)protected ClusterBlockExceptionPutPipelineTransportAction. checkBlock(PutPipelineRequest request, ClusterState state)protected voidDeletePipelineTransportAction. masterOperation(DeletePipelineRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)protected voidGetPipelineTransportAction. masterOperation(GetPipelineRequest request, ClusterState state, ActionListener<GetPipelineResponse> listener)protected voidPutPipelineTransportAction. masterOperation(PutPipelineRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ClusterState in org.elasticsearch.action.support
Methods in org.elasticsearch.action.support with parameters of type ClusterState Modifier and Type Method Description booleanActiveShardCount. enoughShardsActive(ClusterState clusterState, String... indices)Returns true iff the given cluster state's routing table contains enough active shards for the given indices to meet the required shard count represented by this instance.booleanAutoCreateIndex. shouldAutoCreate(String index, ClusterState state)Should the index be auto created? -
Uses of ClusterState in org.elasticsearch.action.support.broadcast
Methods in org.elasticsearch.action.support.broadcast with parameters of type ClusterState Modifier and Type Method Description protected abstract ClusterBlockExceptionTransportBroadcastAction. checkGlobalBlock(ClusterState state, Request request)protected abstract ClusterBlockExceptionTransportBroadcastAction. checkRequestBlock(ClusterState state, Request request, String[] concreteIndices)protected abstract ResponseTransportBroadcastAction. newResponse(Request request, AtomicReferenceArray shardsResponses, ClusterState clusterState)protected abstract GroupShardsIterator<ShardIterator>TransportBroadcastAction. shards(ClusterState clusterState, Request request, String[] concreteIndices)Determines the shards this operation will be executed on. -
Uses of ClusterState in org.elasticsearch.action.support.broadcast.node
Methods in org.elasticsearch.action.support.broadcast.node with parameters of type ClusterState Modifier and Type Method Description protected abstract ClusterBlockExceptionTransportBroadcastByNodeAction. checkGlobalBlock(ClusterState state, Request request)Executes a global block check before polling the cluster state.protected abstract ClusterBlockExceptionTransportBroadcastByNodeAction. checkRequestBlock(ClusterState state, Request request, String[] concreteIndices)Executes a global request-level check before polling the cluster state.protected abstract ResponseTransportBroadcastByNodeAction. newResponse(Request request, int totalShards, int successfulShards, int failedShards, List<ShardOperationResult> results, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState)Creates a new response to the underlying request.protected abstract ShardsIteratorTransportBroadcastByNodeAction. shards(ClusterState clusterState, Request request, String[] concreteIndices)Determines the shards on which this operation will be executed on. -
Uses of ClusterState in org.elasticsearch.action.support.master
Methods in org.elasticsearch.action.support.master with parameters of type ClusterState Modifier and Type Method Description protected abstract ClusterBlockExceptionTransportMasterNodeAction. checkBlock(Request request, ClusterState state)protected voidTransportMasterNodeAction. masterOperation(Task task, Request request, ClusterState state, ActionListener<Response> listener)Override this operation if access to the task parameter is neededprotected abstract voidTransportMasterNodeAction. masterOperation(Request request, ClusterState state, ActionListener<Response> listener) -
Uses of ClusterState in org.elasticsearch.action.support.master.info
Methods in org.elasticsearch.action.support.master.info with parameters of type ClusterState Modifier and Type Method Description protected abstract voidTransportClusterInfoAction. doMasterOperation(Request request, String[] concreteIndices, ClusterState state, ActionListener<Response> listener)protected voidTransportClusterInfoAction. masterOperation(Request request, ClusterState state, ActionListener<Response> listener) -
Uses of ClusterState in org.elasticsearch.action.support.nodes
Methods in org.elasticsearch.action.support.nodes with parameters of type ClusterState Modifier and Type Method Description protected voidTransportNodesAction. resolveRequest(NodesRequest request, ClusterState clusterState)resolve node ids to concrete nodes of the incoming request -
Uses of ClusterState in org.elasticsearch.action.support.replication
Methods in org.elasticsearch.action.support.replication with parameters of type ClusterState Modifier and Type Method Description protected List<ShardId>TransportBroadcastReplicationAction. shards(Request request, ClusterState clusterState) -
Uses of ClusterState in org.elasticsearch.action.support.single.instance
Methods in org.elasticsearch.action.support.single.instance with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportInstanceSingleOperationAction. checkGlobalBlock(ClusterState state)protected ClusterBlockExceptionTransportInstanceSingleOperationAction. checkRequestBlock(ClusterState state, Request request)protected abstract voidTransportInstanceSingleOperationAction. resolveRequest(ClusterState state, Request request)Resolves the request.protected abstract ShardIteratorTransportInstanceSingleOperationAction. shards(ClusterState clusterState, Request request)Should return an iterator with a single shard! -
Uses of ClusterState in org.elasticsearch.action.support.single.shard
Methods in org.elasticsearch.action.support.single.shard with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionTransportSingleShardAction. checkGlobalBlock(ClusterState state)protected ClusterBlockExceptionTransportSingleShardAction. checkRequestBlock(ClusterState state, TransportSingleShardAction.InternalRequest request)protected voidTransportSingleShardAction. resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)protected abstract ShardsIteratorTransportSingleShardAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request)Returns the candidate shards to execute the operation on ornullthe execute the operation locally (the node that received the request) -
Uses of ClusterState in org.elasticsearch.action.support.tasks
Methods in org.elasticsearch.action.support.tasks with parameters of type ClusterState Modifier and Type Method Description protected String[]TransportTasksAction. resolveNodes(TasksRequest request, ClusterState clusterState) -
Uses of ClusterState in org.elasticsearch.action.termvectors
Methods in org.elasticsearch.action.termvectors with parameters of type ClusterState Modifier and Type Method Description protected voidTransportTermVectorsAction. resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)protected ShardIteratorTransportShardMultiTermsVectorAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request)protected ShardIteratorTransportTermVectorsAction. shards(ClusterState state, TransportSingleShardAction.InternalRequest request) -
Uses of ClusterState in org.elasticsearch.action.update
Methods in org.elasticsearch.action.update with parameters of type ClusterState Modifier and Type Method Description protected voidTransportUpdateAction. resolveRequest(ClusterState state, UpdateRequest request)protected ShardIteratorTransportUpdateAction. shards(ClusterState clusterState, UpdateRequest request) -
Uses of ClusterState in org.elasticsearch.cluster
Fields in org.elasticsearch.cluster declared as ClusterState Modifier and Type Field Description static ClusterStateClusterState. EMPTY_STATEClusterStateClusterStateTaskExecutor.ClusterTasksResult. resultingStateMethods in org.elasticsearch.cluster that return ClusterState Modifier and Type Method Description ClusterStateClusterState.Builder. build()abstract ClusterStateClusterStateUpdateTask. execute(ClusterState currentState)Update the cluster state based on the current state.static ClusterStateClusterModule. filterCustomsForPre63Clients(ClusterState clusterState)For interoperability with transport clients older than 6.3, we need to strip customs from the cluster state that the client might not be able to deserializestatic ClusterStateClusterState.Builder. fromBytes(byte[] data, DiscoveryNode localNode, NamedWriteableRegistry registry)ClusterStateClusterChangedEvent. previousState()The previous cluster state for this change event.static ClusterStateClusterState. readFrom(StreamInput in, DiscoveryNode localNode)ClusterStateClusterStateObserver. setAndGetObservedState()sets the last observed state to the currently applied cluster state and returns itClusterStateClusterChangedEvent. state()The new cluster state that caused this change event.Methods in org.elasticsearch.cluster that return types with arguments of type ClusterState Modifier and Type Method Description static Predicate<ClusterState>MasterNodeChangePredicate. build(ClusterState currentState)builds a predicate that will accept a cluster state only if it was generated after the current has (re-)joined the masterDiff<ClusterState>ClusterState. diff(ClusterState previousState)static Diff<ClusterState>ClusterState. readDiffFrom(StreamInput in, DiscoveryNode localNode)Methods in org.elasticsearch.cluster with parameters of type ClusterState Modifier and Type Method Description ClusterStateTaskExecutor.ClusterTasksResult<T>ClusterStateTaskExecutor.ClusterTasksResult.Builder. build(ClusterState resultingState)static Predicate<ClusterState>MasterNodeChangePredicate. build(ClusterState currentState)builds a predicate that will accept a cluster state only if it was generated after the current has (re-)joined the masterstatic ClusterState.BuilderClusterState. builder(ClusterState state)default voidClusterStateTaskListener. clusterStateProcessed(String source, ClusterState oldState, ClusterState newState)Called when the result of theClusterStateTaskExecutor.execute(ClusterState, List)have been processed properly by all listeners.Diff<ClusterState>ClusterState. diff(ClusterState previousState)ClusterStateTaskExecutor.ClusterTasksResult<T>ClusterStateTaskExecutor. execute(ClusterState currentState, List<T> tasks)Update the cluster state based on the current state and the given tasks.abstract ClusterStateClusterStateUpdateTask. execute(ClusterState currentState)Update the cluster state based on the current state.ClusterStateTaskExecutor.ClusterTasksResult<ClusterStateUpdateTask>ClusterStateUpdateTask. execute(ClusterState currentState, List<ClusterStateUpdateTask> tasks)abstract ClusterStateTaskExecutor.ClusterTasksResult<LocalClusterUpdateTask>LocalClusterUpdateTask. execute(ClusterState currentState)ClusterStateTaskExecutor.ClusterTasksResult<LocalClusterUpdateTask>LocalClusterUpdateTask. execute(ClusterState currentState, List<LocalClusterUpdateTask> tasks)static ClusterStateClusterModule. filterCustomsForPre63Clients(ClusterState clusterState)For interoperability with transport clients older than 6.3, we need to strip customs from the cluster state that the client might not be able to deserializevoidClusterStateObserver.Listener. onNewClusterState(ClusterState state)called when a new state is observedbooleanClusterState. supersedes(ClusterState other)a cluster state supersedes another state if they are from the same master and the version of this state is higher than that of the other state.static byte[]ClusterState.Builder. toBytes(ClusterState state)Method parameters in org.elasticsearch.cluster with type arguments of type ClusterState Modifier and Type Method Description voidClusterStateObserver. waitForNextChange(ClusterStateObserver.Listener listener, Predicate<ClusterState> statePredicate)voidClusterStateObserver. waitForNextChange(ClusterStateObserver.Listener listener, Predicate<ClusterState> statePredicate, TimeValue timeOutValue)Wait for the next cluster state which satisfies statePredicateConstructors in org.elasticsearch.cluster with parameters of type ClusterState Constructor Description Builder(ClusterState state)ClusterChangedEvent(String source, ClusterState state, ClusterState previousState)ClusterState(long version, String stateUUID, ClusterState state)ClusterStateObserver(ClusterState initialState, ClusterApplierService clusterApplierService, TimeValue timeout, org.apache.logging.log4j.Logger logger, ThreadContext contextHolder)ClusterStateObserver(ClusterState initialState, ClusterService clusterService, TimeValue timeout, org.apache.logging.log4j.Logger logger, ThreadContext contextHolder) -
Uses of ClusterState in org.elasticsearch.cluster.action.shard
Methods in org.elasticsearch.cluster.action.shard with parameters of type ClusterState Modifier and Type Method Description ClusterStateTaskExecutor.ClusterTasksResult<ShardStateAction.FailedShardEntry>ShardStateAction.ShardFailedClusterStateTaskExecutor. execute(ClusterState currentState, List<ShardStateAction.FailedShardEntry> tasks)ClusterStateTaskExecutor.ClusterTasksResult<ShardStateAction.StartedShardEntry>ShardStateAction.ShardStartedClusterStateTaskExecutor. execute(ClusterState currentState, List<ShardStateAction.StartedShardEntry> tasks)voidShardStateAction. localShardFailed(ShardRouting shardRouting, String message, Exception failure, ActionListener<Void> listener, ClusterState currentState)Send a shard failed request to the master node to update the cluster state when a shard on the local node failed.voidShardStateAction. shardStarted(ShardRouting shardRouting, long primaryTerm, String message, ActionListener<Void> listener, ClusterState currentState)Method parameters in org.elasticsearch.cluster.action.shard with type arguments of type ClusterState Modifier and Type Method Description protected voidShardStateAction. waitForNewMasterAndRetry(String actionName, ClusterStateObserver observer, TransportRequest request, ActionListener<Void> listener, Predicate<ClusterState> changePredicate) -
Uses of ClusterState in org.elasticsearch.cluster.coordination
Methods in org.elasticsearch.cluster.coordination that return ClusterState Modifier and Type Method Description ClusterStatePublishRequest. getAcceptedState()ClusterStateCoordinator. getApplierState()ClusterStateCoordinationState. getLastAcceptedState()ClusterStateCoordinationState.PersistedState. getLastAcceptedState()Returns the last accepted cluster stateClusterStateCoordinator. getLastAcceptedState()ClusterStateInMemoryPersistedState. getLastAcceptedState()ClusterStateValidateJoinRequest. getState()protected ClusterStateNodeRemovalClusterStateTaskExecutor. remainingNodesClusterState(ClusterState currentState, DiscoveryNodes.Builder remainingNodesBuilder)Methods in org.elasticsearch.cluster.coordination that return types with arguments of type ClusterState Modifier and Type Method Description static Collection<BiConsumer<DiscoveryNode,ClusterState>>JoinTaskExecutor. addBuiltInJoinValidators(Collection<BiConsumer<DiscoveryNode,ClusterState>> onJoinValidators)Collection<BiConsumer<DiscoveryNode,ClusterState>>Coordinator. getOnJoinValidators()Methods in org.elasticsearch.cluster.coordination with parameters of type ClusterState Modifier and Type Method Description voidDiscoveryUpgradeService. activate(Optional<DiscoveryNode> lastKnownLeader, ClusterState lastAcceptedClusterState)protected ClusterState.BuilderJoinTaskExecutor. becomeMasterAndTrimConflictingNodes(ClusterState currentState, List<JoinTaskExecutor.Task> joiningNodes)ClusterStateTaskExecutor.ClusterTasksResult<JoinTaskExecutor.Task>JoinTaskExecutor. execute(ClusterState currentState, List<JoinTaskExecutor.Task> joiningNodes)ClusterStateTaskExecutor.ClusterTasksResult<NodeRemovalClusterStateTaskExecutor.Task>NodeRemovalClusterStateTaskExecutor. execute(ClusterState currentState, List<NodeRemovalClusterStateTaskExecutor.Task> tasks)protected ClusterStateTaskExecutor.ClusterTasksResult<NodeRemovalClusterStateTaskExecutor.Task>NodeRemovalClusterStateTaskExecutor. getTaskClusterTasksResult(ClusterState currentState, List<NodeRemovalClusterStateTaskExecutor.Task> tasks, ClusterState remainingNodesClusterState)PublishRequestCoordinationState. handleClientValue(ClusterState clusterState)May be called in order to prepare publication of the given cluster stateprotected ClusterStateNodeRemovalClusterStateTaskExecutor. remainingNodesClusterState(ClusterState currentState, DiscoveryNodes.Builder remainingNodesBuilder)voidJoinHelper. sendValidateJoinRequest(DiscoveryNode node, ClusterState state, ActionListener<TransportResponse.Empty> listener)static BytesReferencePublicationTransportHandler. serializeFullClusterState(ClusterState clusterState, Version nodeVersion)voidCoordinationState. setInitialState(ClusterState initialState)Used to bootstrap a cluster by injecting the initial state and configuration.voidCoordinationState.PersistedState. setLastAcceptedState(ClusterState clusterState)Sets a new last accepted cluster state.voidInMemoryPersistedState. setLastAcceptedState(ClusterState clusterState)ReleasablePreVoteCollector. start(ClusterState clusterState, Iterable<DiscoveryNode> broadcastNodes)Start a new pre-voting round.Method parameters in org.elasticsearch.cluster.coordination with type arguments of type ClusterState Modifier and Type Method Description static Collection<BiConsumer<DiscoveryNode,ClusterState>>JoinTaskExecutor. addBuiltInJoinValidators(Collection<BiConsumer<DiscoveryNode,ClusterState>> onJoinValidators)Constructors in org.elasticsearch.cluster.coordination with parameters of type ClusterState Constructor Description InMemoryPersistedState(long term, ClusterState acceptedState)PublishRequest(ClusterState acceptedState)ValidateJoinRequest(ClusterState state)Constructor parameters in org.elasticsearch.cluster.coordination with type arguments of type ClusterState Constructor Description Coordinator(String nodeName, Settings settings, ClusterSettings clusterSettings, TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, AllocationService allocationService, MasterService masterService, Supplier<CoordinationState.PersistedState> persistedStateSupplier, SeedHostsProvider seedHostsProvider, ClusterApplier clusterApplier, Collection<BiConsumer<DiscoveryNode,ClusterState>> onJoinValidators, Random random, RerouteService rerouteService, ElectionStrategy electionStrategy) -
Uses of ClusterState in org.elasticsearch.cluster.health
Constructors in org.elasticsearch.cluster.health with parameters of type ClusterState Constructor Description ClusterStateHealth(ClusterState clusterState)Creates a newClusterStateHealthinstance considering the current cluster state and all indices in the cluster.ClusterStateHealth(ClusterState clusterState, String[] concreteIndices)Creates a newClusterStateHealthinstance considering the current cluster state and the provided index names. -
Uses of ClusterState in org.elasticsearch.cluster.metadata
Methods in org.elasticsearch.cluster.metadata that return ClusterState Modifier and Type Method Description ClusterStateMetaDataDeleteIndexService. deleteIndices(ClusterState currentState, Set<Index> indices)Delete some indices from the cluster state.ClusterStateIndexNameExpressionResolver.Context. getState()Methods in org.elasticsearch.cluster.metadata with parameters of type ClusterState Modifier and Type Method Description static voidMetaDataCreateIndexService. checkShardLimit(Settings settings, ClusterState clusterState)Checks whether an index can be created without going over the cluster shard limit.String[]IndexNameExpressionResolver. concreteIndexNames(ClusterState state, IndicesRequest request)Same asIndexNameExpressionResolver.concreteIndexNames(ClusterState, IndicesOptions, String...), but the index expressions and options are encapsulated in the specified request.String[]IndexNameExpressionResolver. concreteIndexNames(ClusterState state, IndicesOptions options, String... indexExpressions)Translates the provided index expression into actual concrete indices, properly deduplicated.Index[]IndexNameExpressionResolver. concreteIndices(ClusterState state, IndicesRequest request)Same asIndexNameExpressionResolver.concreteIndices(ClusterState, IndicesOptions, String...), but the index expressions and options are encapsulated in the specified request.Index[]IndexNameExpressionResolver. concreteIndices(ClusterState state, IndicesOptions options, long startTime, String... indexExpressions)Translates the provided index expression into actual concrete indices, properly deduplicated.Index[]IndexNameExpressionResolver. concreteIndices(ClusterState state, IndicesOptions options, String... indexExpressions)Translates the provided index expression into actual concrete indices, properly deduplicated.IndexIndexNameExpressionResolver. concreteSingleIndex(ClusterState state, IndicesRequest request)Utility method that allows to resolve an index expression to its corresponding single concrete index.IndexIndexNameExpressionResolver. concreteWriteIndex(ClusterState state, IndicesRequest request)Utility method that allows to resolve an index expression to its corresponding single write index.ClusterStateMetaDataDeleteIndexService. deleteIndices(ClusterState currentState, Set<Index> indices)Delete some indices from the cluster state.String[]IndexNameExpressionResolver. filteringAliases(ClusterState state, String index, Set<String> resolvedExpressions)Iterates through the list of indices and selects the effective list of filtering aliases for the given index.booleanIndexNameExpressionResolver. hasIndexOrAlias(String aliasOrIndex, ClusterState state)String[]IndexNameExpressionResolver. indexAliases(ClusterState state, String index, Predicate<AliasMetaData> requiredAlias, boolean skipIdentity, Set<String> resolvedExpressions)Iterates through the list of indices and selects the effective list of required aliases for the given index.Set<String>IndexNameExpressionResolver. resolveExpressions(ClusterState state, String... expressions)Resolve an array of expressions to the set of indices and aliases that these expressions match.Map<String,Set<String>>IndexNameExpressionResolver. resolveSearchRouting(ClusterState state, String routing, String... expressions)Resolves the search routing if in the expression aliases are used.static voidMetaDataCreateIndexService. validateIndexName(String index, ClusterState state)Validate the name for an index against some static rules and a cluster state.Constructors in org.elasticsearch.cluster.metadata with parameters of type ClusterState Constructor Description Context(ClusterState state, IndicesOptions options, long startTime, boolean preserveAliases, boolean resolveToWriteIndex) -
Uses of ClusterState in org.elasticsearch.cluster.routing
Methods in org.elasticsearch.cluster.routing with parameters of type ClusterState Modifier and Type Method Description static longUnassignedInfo. findNextDelayedAllocation(long currentNanoTime, ClusterState state)Finds the next (closest) delay expiration of an delayed shard in nanoseconds based on current time.static intUnassignedInfo. getNumberOfDelayedUnassigned(ClusterState state)Returns the number of shards that are unassigned and currently being delayed.ShardIteratorOperationRouting. getShards(ClusterState clusterState, String index, int shardId, String preference)ShardIteratorOperationRouting. getShards(ClusterState clusterState, String index, String id, String routing, String preference)protected IndexMetaDataOperationRouting. indexMetaData(ClusterState clusterState, String index)protected IndexRoutingTableOperationRouting. indexRoutingTable(ClusterState clusterState, String index)ShardIteratorOperationRouting. indexShards(ClusterState clusterState, String index, String id, String routing)GroupShardsIterator<ShardIterator>OperationRouting. searchShards(ClusterState clusterState, String[] concreteIndices, Map<String,Set<String>> routing, String preference)GroupShardsIterator<ShardIterator>OperationRouting. searchShards(ClusterState clusterState, String[] concreteIndices, Map<String,Set<String>> routing, String preference, ResponseCollectorService collectorService, Map<String,Long> nodeCounts)ShardIdOperationRouting. shardId(ClusterState clusterState, String index, String id, String routing)protected IndexShardRoutingTableOperationRouting. shards(ClusterState clusterState, String index, String id, String routing)Constructors in org.elasticsearch.cluster.routing with parameters of type ClusterState Constructor Description RoutingNodes(ClusterState clusterState)RoutingNodes(ClusterState clusterState, boolean readOnly)Constructor parameters in org.elasticsearch.cluster.routing with type arguments of type ClusterState Constructor Description BatchedRerouteService(ClusterService clusterService, BiFunction<ClusterState,String,ClusterState> reroute)BatchedRerouteService(ClusterService clusterService, BiFunction<ClusterState,String,ClusterState> reroute) -
Uses of ClusterState in org.elasticsearch.cluster.routing.allocation
Methods in org.elasticsearch.cluster.routing.allocation that return ClusterState Modifier and Type Method Description ClusterStateAllocationService. adaptAutoExpandReplicas(ClusterState clusterState)Checks if the are replicas with the auto-expand feature that need to be adapted.ClusterStateAllocationService. applyFailedShard(ClusterState clusterState, ShardRouting failedShard, boolean markAsStale)ClusterStateAllocationService. applyFailedShards(ClusterState clusterState, List<FailedShard> failedShards)ClusterStateAllocationService. applyFailedShards(ClusterState clusterState, List<FailedShard> failedShards, List<StaleShard> staleShards)Applies the failed shards.ClusterStateAllocationService. applyStartedShards(ClusterState clusterState, List<ShardRouting> startedShards)Applies the started shards.protected ClusterStateAllocationService. buildResultAndLogHealthChange(ClusterState oldState, RoutingAllocation allocation, String reason)ClusterStateAllocationService. disassociateDeadNodes(ClusterState clusterState, boolean reroute, String reason)unassigned an shards that are associated with nodes that are no longer part of the cluster, potentially promoting replicas if needed.ClusterStateAllocationService.CommandsResult. getClusterState()the resulting cluster state, after the commands were appliedstatic ClusterStateIndexMetaDataUpdater. removeStaleIdsWithoutRoutings(ClusterState clusterState, List<StaleShard> staleShards, org.apache.logging.log4j.Logger logger)Removes allocation ids from the in-sync set for shard copies for which there is no routing entries in the routing table.ClusterStateAllocationService. reroute(ClusterState clusterState, String reason)Reroutes the routing table based on the live nodes.Methods in org.elasticsearch.cluster.routing.allocation with parameters of type ClusterState Modifier and Type Method Description ClusterStateAllocationService. adaptAutoExpandReplicas(ClusterState clusterState)Checks if the are replicas with the auto-expand feature that need to be adapted.ClusterStateAllocationService. applyFailedShard(ClusterState clusterState, ShardRouting failedShard, boolean markAsStale)ClusterStateAllocationService. applyFailedShards(ClusterState clusterState, List<FailedShard> failedShards)ClusterStateAllocationService. applyFailedShards(ClusterState clusterState, List<FailedShard> failedShards, List<StaleShard> staleShards)Applies the failed shards.ClusterStateAllocationService. applyStartedShards(ClusterState clusterState, List<ShardRouting> startedShards)Applies the started shards.protected ClusterStateAllocationService. buildResultAndLogHealthChange(ClusterState oldState, RoutingAllocation allocation, String reason)ClusterStateAllocationService. disassociateDeadNodes(ClusterState clusterState, boolean reroute, String reason)unassigned an shards that are associated with nodes that are no longer part of the cluster, potentially promoting replicas if needed.static ClusterStateIndexMetaDataUpdater. removeStaleIdsWithoutRoutings(ClusterState clusterState, List<StaleShard> staleShards, org.apache.logging.log4j.Logger logger)Removes allocation ids from the in-sync set for shard copies for which there is no routing entries in the routing table.ClusterStateAllocationService. reroute(ClusterState clusterState, String reason)Reroutes the routing table based on the live nodes.AllocationService.CommandsResultAllocationService. reroute(ClusterState clusterState, AllocationCommands commands, boolean explain, boolean retryFailed)Constructors in org.elasticsearch.cluster.routing.allocation with parameters of type ClusterState Constructor Description RoutingAllocation(AllocationDeciders deciders, RoutingNodes routingNodes, ClusterState clusterState, ClusterInfo clusterInfo, long currentNanoTime)Creates a newRoutingAllocationConstructor parameters in org.elasticsearch.cluster.routing.allocation with type arguments of type ClusterState Constructor Description DiskThresholdMonitor(Settings settings, Supplier<ClusterState> clusterStateSupplier, ClusterSettings clusterSettings, Client client, LongSupplier currentTimeMillisSupplier, RerouteService rerouteService) -
Uses of ClusterState in org.elasticsearch.cluster.service
Methods in org.elasticsearch.cluster.service that return ClusterState Modifier and Type Method Description ClusterStateClusterApplierService. state()The current cluster state.ClusterStateClusterService. state()The currently applied cluster state.Methods in org.elasticsearch.cluster.service with parameters of type ClusterState Modifier and Type Method Description protected voidClusterApplierService. connectToNodesAndWait(ClusterState newClusterState)ClusterState.BuilderMasterService. incrementVersion(ClusterState clusterState)voidClusterApplier. setInitialState(ClusterState initialState)Sets the initial state for this applier.voidClusterApplierService. setInitialState(ClusterState initialState)Method parameters in org.elasticsearch.cluster.service with type arguments of type ClusterState Modifier and Type Method Description voidClusterApplier. onNewClusterState(String source, Supplier<ClusterState> clusterStateSupplier, ClusterApplier.ClusterApplyListener listener)Method to invoke when a new cluster state is available to be appliedvoidClusterApplierService. onNewClusterState(String source, Supplier<ClusterState> clusterStateSupplier, ClusterApplier.ClusterApplyListener listener)voidClusterApplierService. runOnApplierThread(String source, Consumer<ClusterState> clusterStateConsumer, ClusterApplier.ClusterApplyListener listener)voidClusterApplierService. runOnApplierThread(String source, Consumer<ClusterState> clusterStateConsumer, ClusterApplier.ClusterApplyListener listener, Priority priority)voidMasterService. setClusterStateSupplier(Supplier<ClusterState> clusterStateSupplier) -
Uses of ClusterState in org.elasticsearch.common.logging
Methods in org.elasticsearch.common.logging with parameters of type ClusterState Modifier and Type Method Description voidNodeAndClusterIdStateListener. onNewClusterState(ClusterState state) -
Uses of ClusterState in org.elasticsearch.discovery.zen
Methods in org.elasticsearch.discovery.zen that return ClusterState Modifier and Type Method Description ClusterStatePingContextProvider. clusterState()return the current cluster state of the nodeClusterStateZenDiscovery. clusterState()ClusterStatePendingClusterStatesQueue. getNextClusterStateToProcess()Gets the next committed state to process.ClusterStatePendingClusterStatesQueue. markAsCommitted(String stateUUID, org.elasticsearch.discovery.zen.PendingClusterStatesQueue.StateProcessedListener listener)Mark a previously added cluster state as committed.ClusterState[]PendingClusterStatesQueue. pendingClusterStates()returns all pending states, committed or notClusterState[]ZenDiscovery. pendingClusterStates()Methods in org.elasticsearch.discovery.zen that return types with arguments of type ClusterState Modifier and Type Method Description Collection<BiConsumer<DiscoveryNode,ClusterState>>ZenDiscovery. getOnJoinValidators()Methods in org.elasticsearch.discovery.zen with parameters of type ClusterState Modifier and Type Method Description voidPendingClusterStatesQueue. addPending(ClusterState state)Add an incoming, not yet committed cluster statevoidElectMasterService. logMinimumMasterNodesWarningIfNecessary(ClusterState oldState, ClusterState newState)voidPendingClusterStatesQueue. markAsFailed(ClusterState state, Exception reason)mark that the processing of the given state has failed.voidPendingClusterStatesQueue. markAsProcessed(ClusterState state)indicates that a cluster state was successfully processed.voidNodeJoinController.ElectionCallback. onElectedAsMaster(ClusterState state)called when the local node is successfully elected as master Guaranteed to be called on the cluster state update threadvoidPublishClusterStateAction.IncomingClusterStateListener. onIncomingClusterState(ClusterState incomingState)called when a new incoming cluster state has been received.voidZenDiscovery. onIncomingClusterState(ClusterState incomingState)voidMembershipAction. sendValidateJoinRequestBlocking(DiscoveryNode node, ClusterState state, TimeValue timeout)Validates the join request, throwing a failure if it failed.static BytesReferencePublishClusterStateAction. serializeFullClusterState(ClusterState clusterState, Version nodeVersion)static booleanZenDiscovery. shouldIgnoreOrRejectNewClusterState(org.apache.logging.log4j.Logger logger, ClusterState currentState, ClusterState newClusterState)In the case we follow an elected master the new cluster state needs to have the same elected master and the new cluster state version needs to be equal or higher than our cluster state version.voidNodesFaultDetection. updateNodesAndPing(ClusterState clusterState)make sure that nodes in clusterState are pinged.static voidZenDiscovery. validateStateIsFromCurrentMaster(org.apache.logging.log4j.Logger logger, DiscoveryNodes currentNodes, ClusterState newClusterState)In the case we follow an elected master the new cluster state needs to have the same elected master This method checks for this and throws an exception if neededConstructors in org.elasticsearch.discovery.zen with parameters of type ClusterState Constructor Description PingResponse(DiscoveryNode node, DiscoveryNode master, ClusterState state) -
Uses of ClusterState in org.elasticsearch.gateway
Methods in org.elasticsearch.gateway that return ClusterState Modifier and Type Method Description static ClusterStateClusterStateUpdaters. addStateNotRecoveredBlock(ClusterState state)static ClusterStateClusterStateUpdaters. hideStateIfNotRecovered(ClusterState state)Methods in org.elasticsearch.gateway with parameters of type ClusterState Modifier and Type Method Description static ClusterStateClusterStateUpdaters. addStateNotRecoveredBlock(ClusterState state)static ClusterStateClusterStateUpdaters. hideStateIfNotRecovered(ClusterState state)voidGateway.GatewayStateRecoveredListener. onSuccess(ClusterState build) -
Uses of ClusterState in org.elasticsearch.indices
Methods in org.elasticsearch.indices with parameters of type ClusterState Modifier and Type Method Description AliasFilterIndicesService. buildAliasFilter(ClusterState state, String index, Set<String> resolvedExpressions)static Optional<String>IndicesService. checkShardLimit(int newShards, ClusterState state)Checks to see if an operation can be performed without taking the cluster over the cluster-wide shard limit.voidIndicesService. deleteShardStore(String reason, ShardId shardId, ClusterState clusterState)This method deletes the shard contents on disk for the given shard ID.voidIndicesService. deleteUnassignedIndex(String reason, IndexMetaData metaData, ClusterState clusterState)Deletes an index that is not assigned to this node.IndexMetaDataIndicesService. verifyIndexIsDeleted(Index index, ClusterState clusterState)Verify that the contents on disk for the given index is deleted; if not, delete the contents. -
Uses of ClusterState in org.elasticsearch.indices.cluster
Methods in org.elasticsearch.indices.cluster with parameters of type ClusterState Modifier and Type Method Description voidIndicesClusterStateService.AllocatedIndices. deleteUnassignedIndex(String reason, IndexMetaData metaData, ClusterState clusterState)Deletes an index that is not assigned to this node.IndexMetaDataIndicesClusterStateService.AllocatedIndices. verifyIndexIsDeleted(Index index, ClusterState clusterState)Verify that the contents on disk for the given index is deleted; if not, delete the contents. -
Uses of ClusterState in org.elasticsearch.indices.flush
Methods in org.elasticsearch.indices.flush with parameters of type ClusterState Modifier and Type Method Description protected voidSyncedFlushService. getInflightOpsCount(ShardId shardId, ClusterState state, IndexShardRoutingTable shardRoutingTable, ActionListener<org.elasticsearch.indices.flush.SyncedFlushService.InFlightOpsResponse> listener)returns the number of in flight operations on primary. -
Uses of ClusterState in org.elasticsearch.ingest
Methods in org.elasticsearch.ingest that return ClusterState Modifier and Type Method Description static ClusterStateIngestService. innerPut(PutPipelineRequest request, ClusterState currentState)Methods in org.elasticsearch.ingest with parameters of type ClusterState Modifier and Type Method Description static List<PipelineConfiguration>IngestService. getPipelines(ClusterState clusterState, String... ids)static ClusterStateIngestService. innerPut(PutPipelineRequest request, ClusterState currentState)Method parameters in org.elasticsearch.ingest with type arguments of type ClusterState Modifier and Type Method Description voidIngestService. addIngestClusterStateListener(Consumer<ClusterState> listener)Adds a listener that gets invoked with the current cluster state before processor factories get invoked. -
Uses of ClusterState in org.elasticsearch.persistent
Methods in org.elasticsearch.persistent that return ClusterState Modifier and Type Method Description static ClusterStatePersistentTasksCustomMetaData. disassociateDeadNodes(ClusterState clusterState)Unassign any persistent tasks executing on nodes that are no longer in the cluster.Methods in org.elasticsearch.persistent with parameters of type ClusterState Modifier and Type Method Description protected ClusterBlockExceptionCompletionPersistentTaskAction.TransportAction. checkBlock(CompletionPersistentTaskAction.Request request, ClusterState state)protected ClusterBlockExceptionRemovePersistentTaskAction.TransportAction. checkBlock(RemovePersistentTaskAction.Request request, ClusterState state)protected ClusterBlockExceptionStartPersistentTaskAction.TransportAction. checkBlock(StartPersistentTaskAction.Request request, ClusterState state)protected ClusterBlockExceptionUpdatePersistentTaskStatusAction.TransportAction. checkBlock(UpdatePersistentTaskStatusAction.Request request, ClusterState state)static ClusterStatePersistentTasksCustomMetaData. disassociateDeadNodes(ClusterState clusterState)Unassign any persistent tasks executing on nodes that are no longer in the cluster.PersistentTasksCustomMetaData.AssignmentPersistentTasksExecutor. getAssignment(Params params, ClusterState clusterState)Returns the node id where the params has to be executed,static PersistentTasksCustomMetaDataPersistentTasksCustomMetaData. getPersistentTasksCustomMetaData(ClusterState clusterState)static <Params extends PersistentTaskParams>
PersistentTasksCustomMetaData.PersistentTask<Params>PersistentTasksCustomMetaData. getTaskWithId(ClusterState clusterState, String taskId)protected voidCompletionPersistentTaskAction.TransportAction. masterOperation(CompletionPersistentTaskAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)protected voidRemovePersistentTaskAction.TransportAction. masterOperation(RemovePersistentTaskAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)protected voidStartPersistentTaskAction.TransportAction. masterOperation(StartPersistentTaskAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)protected voidUpdatePersistentTaskStatusAction.TransportAction. masterOperation(UpdatePersistentTaskStatusAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)protected DiscoveryNodePersistentTasksExecutor. selectLeastLoadedNode(ClusterState clusterState, Predicate<DiscoveryNode> selector)Finds the least loaded node that satisfies the selector criteriavoidPersistentTasksExecutor. validate(Params params, ClusterState clusterState)Checks the current cluster state for compatibility with the params -
Uses of ClusterState in org.elasticsearch.plugins
Methods in org.elasticsearch.plugins that return types with arguments of type ClusterState Modifier and Type Method Description default BiConsumer<DiscoveryNode,ClusterState>DiscoveryPlugin. getJoinValidator()Returns a consumer that validate the initial join cluster state. -
Uses of ClusterState in org.elasticsearch.script
Methods in org.elasticsearch.script with parameters of type ClusterState Modifier and Type Method Description StoredScriptSourceScriptService. getStoredScript(ClusterState state, GetStoredScriptRequest request) -
Uses of ClusterState in org.elasticsearch.search
Methods in org.elasticsearch.search with parameters of type ClusterState Modifier and Type Method Description AliasFilterSearchService. buildAliasFilter(ClusterState state, String index, Set<String> resolvedExpressions) -
Uses of ClusterState in org.elasticsearch.snapshots
Methods in org.elasticsearch.snapshots with parameters of type ClusterState Modifier and Type Method Description static booleanRestoreService. isRepositoryInUse(ClusterState clusterState, String repository)Checks if a repository is currently in use by one of the snapshotsstatic booleanSnapshotsService. isRepositoryInUse(ClusterState clusterState, String repository)Checks if a repository is currently in use by one of the snapshotsstatic RestoreInProgress.EntryRestoreService. restoreInProgress(ClusterState state, String restoreUUID)static Set<Index>RestoreService. restoringIndices(ClusterState currentState, Set<Index> indicesToCheck)Returns the indices that are currently being restored and that are contained in the indices-to-check set.static Set<Index>SnapshotsService. snapshottingIndices(ClusterState currentState, Set<Index> indicesToCheck)Returns the indices that are currently being snapshotted (with partial == false) and that are contained in the indices-to-check set.
-