Uses of Interface
org.elasticsearch.action.ActionListener
-
-
Uses of ActionListener in org.elasticsearch.action
Classes in org.elasticsearch.action that implement ActionListener Modifier and Type Class Description classLatchedActionListener<T>An action listener that allows passing in aCountDownLatchthat will be counted down after onResponse or onFailure is calledclassNotifyOnceListener<Response>A listener that ensures that only one of onResponse or onFailure is called.classStepListener<Response>AStepListenerprovides a simple way to write a flow consisting of multiple asynchronous steps without having nested callbacks.Fields in org.elasticsearch.action declared as ActionListener Modifier and Type Field Description protected ActionListener<Response>ActionRunnable. listenerMethods in org.elasticsearch.action that return ActionListener Modifier and Type Method Description static <T,R>
ActionListener<T>ActionListener. delegateFailure(ActionListener<R> delegate, BiConsumer<ActionListener<R>,T> bc)Creates a listener that delegates all exceptions it receives to another listener.static <T> ActionListener<T>ActionListener. delegateResponse(ActionListener<T> delegate, BiConsumer<ActionListener<T>,Exception> bc)Creates a listener that delegates all responses it receives to another listener.static <T,Response>
ActionListener<Response>ActionListener. map(ActionListener<T> listener, CheckedFunction<Response,T,Exception> fn)Creates a listener that wraps another listener, mapping response values via the given mapping function and passing along exceptions to the delegate.static <Response> ActionListener<Response>ActionListener. notifyOnce(ActionListener<Response> delegate)Wraps a given listener and returns a new listener which makes sureonResponse(Object)andonFailure(Exception)of the provided listener will be called at most once.static <Response> ActionListener<Response>ActionListener. runAfter(ActionListener<Response> delegate, Runnable runAfter)Wraps a given listener and returns a new listener which executes the providedrunAftercallback when the listener is notified via either#onResponseor#onFailure.static <Response> ActionListener<Response>ActionListener. runBefore(ActionListener<Response> delegate, CheckedRunnable<?> runBefore)Wraps a given listener and returns a new listener which executes the providedrunBeforecallback before the listener is notified via either#onResponseor#onFailure.static <Response> ActionListener<Response>ActionListener. wrap(Runnable runnable)Creates a listener that listens for a response (or failure) and executes the corresponding runnable when the response (or failure) is received.static <Response> ActionListener<Response>ActionListener. wrap(CheckedConsumer<Response,? extends Exception> onResponse, Consumer<Exception> onFailure)Creates a listener that listens for a response (or failure) and executes the corresponding consumer when the response (or failure) is received.Methods in org.elasticsearch.action with parameters of type ActionListener Modifier and Type Method Description voidListenableActionFuture. addListener(ActionListener<T> listener)Add an action listener to be invoked when a response has received.static <Response> voidActionListener. completeWith(ActionListener<Response> listener, CheckedSupplier<Response,? extends Exception> supplier)Completes the given listener with the result from the provided supplier accordingly.static <T,R>
ActionListener<T>ActionListener. delegateFailure(ActionListener<R> delegate, BiConsumer<ActionListener<R>,T> bc)Creates a listener that delegates all exceptions it receives to another listener.static <T> ActionListener<T>ActionListener. delegateResponse(ActionListener<T> delegate, BiConsumer<ActionListener<T>,Exception> bc)Creates a listener that delegates all responses it receives to another listener.voidActionRequestBuilder. execute(ActionListener<Response> listener)voidTransportActionNodeProxy. execute(DiscoveryNode node, Request request, ActionListener<Response> listener)static <T,Response>
ActionListener<Response>ActionListener. map(ActionListener<T> listener, CheckedFunction<Response,T,Exception> fn)Creates a listener that wraps another listener, mapping response values via the given mapping function and passing along exceptions to the delegate.static <Response> ActionListener<Response>ActionListener. notifyOnce(ActionListener<Response> delegate)Wraps a given listener and returns a new listener which makes sureonResponse(Object)andonFailure(Exception)of the provided listener will be called at most once.static <T> ActionRunnable<T>ActionRunnable. run(ActionListener<T> listener, CheckedRunnable<Exception> runnable)Creates aRunnablethat invokes the given listener withnullafter the given runnable has executed.static <Response> ActionListener<Response>ActionListener. runAfter(ActionListener<Response> delegate, Runnable runAfter)Wraps a given listener and returns a new listener which executes the providedrunAftercallback when the listener is notified via either#onResponseor#onFailure.static <Response> ActionListener<Response>ActionListener. runBefore(ActionListener<Response> delegate, CheckedRunnable<?> runBefore)Wraps a given listener and returns a new listener which executes the providedrunBeforecallback before the listener is notified via either#onResponseor#onFailure.static <T> ActionRunnable<T>ActionRunnable. supply(ActionListener<T> listener, CheckedSupplier<T,Exception> supplier)Creates aRunnablethat invokes the given listener with the return of the given supplier.static <Response> BiConsumer<Response,Exception>ActionListener. toBiConsumer(ActionListener<Response> listener)Converts a listener to aBiConsumerfor compatibility with theCompletableFutureapi.static <T> ActionRunnable<T>ActionRunnable. wrap(ActionListener<T> listener, CheckedConsumer<ActionListener<T>,Exception> consumer)Method parameters in org.elasticsearch.action with type arguments of type ActionListener Modifier and Type Method Description static <T,R>
ActionListener<T>ActionListener. delegateFailure(ActionListener<R> delegate, BiConsumer<ActionListener<R>,T> bc)Creates a listener that delegates all exceptions it receives to another listener.static <T> ActionListener<T>ActionListener. delegateResponse(ActionListener<T> delegate, BiConsumer<ActionListener<T>,Exception> bc)Creates a listener that delegates all responses it receives to another listener.static <Response> voidActionListener. onFailure(Iterable<ActionListener<Response>> listeners, Exception failure)Notifies every given listener with the failure passed toonFailure(Exception).static <Response> voidActionListener. onResponse(Iterable<ActionListener<Response>> listeners, Response response)Notifies every given listener with the response passed toonResponse(Object).static <T> ActionRunnable<T>ActionRunnable. wrap(ActionListener<T> listener, CheckedConsumer<ActionListener<T>,Exception> consumer)Constructors in org.elasticsearch.action with parameters of type ActionListener Constructor Description ActionListenerResponseHandler(ActionListener<? super Response> listener, Writeable.Reader<Response> reader)ActionListenerResponseHandler(ActionListener<? super Response> listener, Writeable.Reader<Response> reader, String executor)ActionRunnable(ActionListener<Response> listener)LatchedActionListener(ActionListener<T> delegate, CountDownLatch latch) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.allocation
Methods in org.elasticsearch.action.admin.cluster.allocation with parameters of type ActionListener Modifier and Type Method Description protected voidTransportClusterAllocationExplainAction. masterOperation(ClusterAllocationExplainRequest request, ClusterState state, ActionListener<ClusterAllocationExplainResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.configuration
Methods in org.elasticsearch.action.admin.cluster.configuration with parameters of type ActionListener Modifier and Type Method Description protected voidTransportAddVotingConfigExclusionsAction. masterOperation(AddVotingConfigExclusionsRequest request, ClusterState state, ActionListener<AddVotingConfigExclusionsResponse> listener)protected voidTransportClearVotingConfigExclusionsAction. masterOperation(ClearVotingConfigExclusionsRequest request, ClusterState initialState, ActionListener<ClearVotingConfigExclusionsResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.health
Methods in org.elasticsearch.action.admin.cluster.health with parameters of type ActionListener Modifier and Type Method Description protected voidTransportClusterHealthAction. masterOperation(ClusterHealthRequest request, ClusterState state, ActionListener<ClusterHealthResponse> listener)protected voidTransportClusterHealthAction. masterOperation(Task task, ClusterHealthRequest request, ClusterState unusedState, ActionListener<ClusterHealthResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.node.tasks.cancel
Methods in org.elasticsearch.action.admin.cluster.node.tasks.cancel with parameters of type ActionListener Modifier and Type Method Description protected voidTransportCancelTasksAction. taskOperation(CancelTasksRequest request, CancellableTask cancellableTask, ActionListener<TaskInfo> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.node.tasks.get
Methods in org.elasticsearch.action.admin.cluster.node.tasks.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetTaskAction. doExecute(Task thisTask, GetTaskRequest request, ActionListener<GetTaskResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.node.tasks.list
Methods in org.elasticsearch.action.admin.cluster.node.tasks.list with parameters of type ActionListener Modifier and Type Method Description protected voidTransportListTasksAction. taskOperation(ListTasksRequest request, Task task, ActionListener<TaskInfo> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.remote
Methods in org.elasticsearch.action.admin.cluster.remote with parameters of type ActionListener Modifier and Type Method Description protected voidTransportRemoteInfoAction. doExecute(Task task, RemoteInfoRequest remoteInfoRequest, ActionListener<RemoteInfoResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.repositories.cleanup
Methods in org.elasticsearch.action.admin.cluster.repositories.cleanup with parameters of type ActionListener Modifier and Type Method Description protected voidTransportCleanupRepositoryAction. masterOperation(CleanupRepositoryRequest request, ClusterState state, ActionListener<CleanupRepositoryResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.repositories.delete
Methods in org.elasticsearch.action.admin.cluster.repositories.delete with parameters of type ActionListener Modifier and Type Method Description protected voidTransportDeleteRepositoryAction. masterOperation(DeleteRepositoryRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.repositories.get
Methods in org.elasticsearch.action.admin.cluster.repositories.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetRepositoriesAction. masterOperation(GetRepositoriesRequest request, ClusterState state, ActionListener<GetRepositoriesResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.repositories.put
Methods in org.elasticsearch.action.admin.cluster.repositories.put with parameters of type ActionListener Modifier and Type Method Description protected voidTransportPutRepositoryAction. masterOperation(PutRepositoryRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.repositories.verify
Methods in org.elasticsearch.action.admin.cluster.repositories.verify with parameters of type ActionListener Modifier and Type Method Description protected voidTransportVerifyRepositoryAction. masterOperation(VerifyRepositoryRequest request, ClusterState state, ActionListener<VerifyRepositoryResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.reroute
Methods in org.elasticsearch.action.admin.cluster.reroute with parameters of type ActionListener Modifier and Type Method Description protected voidTransportClusterRerouteAction. masterOperation(ClusterRerouteRequest request, ClusterState state, ActionListener<ClusterRerouteResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.settings
Methods in org.elasticsearch.action.admin.cluster.settings with parameters of type ActionListener Modifier and Type Method Description protected voidTransportClusterUpdateSettingsAction. masterOperation(ClusterUpdateSettingsRequest request, ClusterState state, ActionListener<ClusterUpdateSettingsResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.shards
Methods in org.elasticsearch.action.admin.cluster.shards with parameters of type ActionListener Modifier and Type Method Description protected voidTransportClusterSearchShardsAction. masterOperation(ClusterSearchShardsRequest request, ClusterState state, ActionListener<ClusterSearchShardsResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.snapshots.create
Methods in org.elasticsearch.action.admin.cluster.snapshots.create with parameters of type ActionListener Modifier and Type Method Description protected voidTransportCreateSnapshotAction. masterOperation(CreateSnapshotRequest request, ClusterState state, ActionListener<CreateSnapshotResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.snapshots.delete
Methods in org.elasticsearch.action.admin.cluster.snapshots.delete with parameters of type ActionListener Modifier and Type Method Description protected voidTransportDeleteSnapshotAction. masterOperation(DeleteSnapshotRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.snapshots.get
Methods in org.elasticsearch.action.admin.cluster.snapshots.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetSnapshotsAction. masterOperation(GetSnapshotsRequest request, ClusterState state, ActionListener<GetSnapshotsResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.snapshots.restore
Methods in org.elasticsearch.action.admin.cluster.snapshots.restore with parameters of type ActionListener Modifier and Type Method Description static voidRestoreClusterStateListener. createAndRegisterListener(ClusterService clusterService, RestoreService.RestoreCompletionResponse response, ActionListener<RestoreSnapshotResponse> listener)Creates a cluster state listener and registers it with the cluster service.protected voidTransportRestoreSnapshotAction. masterOperation(RestoreSnapshotRequest request, ClusterState state, ActionListener<RestoreSnapshotResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.snapshots.status
Methods in org.elasticsearch.action.admin.cluster.snapshots.status with parameters of type ActionListener Modifier and Type Method Description protected voidTransportSnapshotsStatusAction. masterOperation(SnapshotsStatusRequest request, ClusterState state, ActionListener<SnapshotsStatusResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.state
Methods in org.elasticsearch.action.admin.cluster.state with parameters of type ActionListener Modifier and Type Method Description protected voidTransportClusterStateAction. masterOperation(ClusterStateRequest request, ClusterState state, ActionListener<ClusterStateResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.storedscripts
Methods in org.elasticsearch.action.admin.cluster.storedscripts with parameters of type ActionListener Modifier and Type Method Description protected voidTransportDeleteStoredScriptAction. masterOperation(DeleteStoredScriptRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)protected voidTransportGetStoredScriptAction. masterOperation(GetStoredScriptRequest request, ClusterState state, ActionListener<GetStoredScriptResponse> listener)protected voidTransportPutStoredScriptAction. masterOperation(PutStoredScriptRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.cluster.tasks
Methods in org.elasticsearch.action.admin.cluster.tasks with parameters of type ActionListener Modifier and Type Method Description protected voidTransportPendingClusterTasksAction. masterOperation(PendingClusterTasksRequest request, ClusterState state, ActionListener<PendingClusterTasksResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.alias
Methods in org.elasticsearch.action.admin.indices.alias with parameters of type ActionListener Modifier and Type Method Description protected voidTransportIndicesAliasesAction. masterOperation(IndicesAliasesRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.alias.exists
Methods in org.elasticsearch.action.admin.indices.alias.exists with parameters of type ActionListener Modifier and Type Method Description protected voidTransportAliasesExistAction. masterOperation(GetAliasesRequest request, ClusterState state, ActionListener<AliasesExistResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.alias.get
Methods in org.elasticsearch.action.admin.indices.alias.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetAliasesAction. masterOperation(GetAliasesRequest request, ClusterState state, ActionListener<GetAliasesResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.close
-
Uses of ActionListener in org.elasticsearch.action.admin.indices.create
Methods in org.elasticsearch.action.admin.indices.create with parameters of type ActionListener Modifier and Type Method Description protected voidTransportCreateIndexAction. masterOperation(CreateIndexRequest request, ClusterState state, ActionListener<CreateIndexResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.delete
Methods in org.elasticsearch.action.admin.indices.delete with parameters of type ActionListener Modifier and Type Method Description protected voidTransportDeleteIndexAction. doExecute(Task task, DeleteIndexRequest request, ActionListener<AcknowledgedResponse> listener)protected voidTransportDeleteIndexAction. masterOperation(DeleteIndexRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.exists.indices
Methods in org.elasticsearch.action.admin.indices.exists.indices with parameters of type ActionListener Modifier and Type Method Description protected voidTransportIndicesExistsAction. masterOperation(IndicesExistsRequest request, ClusterState state, ActionListener<IndicesExistsResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.exists.types
Methods in org.elasticsearch.action.admin.indices.exists.types with parameters of type ActionListener Modifier and Type Method Description protected voidTransportTypesExistsAction. masterOperation(TypesExistsRequest request, ClusterState state, ActionListener<TypesExistsResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.flush
Methods in org.elasticsearch.action.admin.indices.flush with parameters of type ActionListener Modifier and Type Method Description protected voidTransportSyncedFlushAction. doExecute(Task task, SyncedFlushRequest request, ActionListener<SyncedFlushResponse> listener)protected voidTransportShardFlushAction. shardOperationOnPrimary(ShardFlushRequest shardRequest, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<ShardFlushRequest,ReplicationResponse>> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.get
Methods in org.elasticsearch.action.admin.indices.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetIndexAction. doMasterOperation(GetIndexRequest request, String[] concreteIndices, ClusterState state, ActionListener<GetIndexResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.mapping.get
Methods in org.elasticsearch.action.admin.indices.mapping.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetFieldMappingsAction. doExecute(Task task, GetFieldMappingsRequest request, ActionListener<GetFieldMappingsResponse> listener)protected voidTransportGetMappingsAction. doMasterOperation(GetMappingsRequest request, String[] concreteIndices, ClusterState state, ActionListener<GetMappingsResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.mapping.put
Methods in org.elasticsearch.action.admin.indices.mapping.put with parameters of type ActionListener Modifier and Type Method Description protected voidTransportPutMappingAction. masterOperation(PutMappingRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.open
Methods in org.elasticsearch.action.admin.indices.open with parameters of type ActionListener Modifier and Type Method Description protected voidTransportOpenIndexAction. doExecute(Task task, OpenIndexRequest request, ActionListener<OpenIndexResponse> listener)protected voidTransportOpenIndexAction. masterOperation(OpenIndexRequest request, ClusterState state, ActionListener<OpenIndexResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.refresh
Methods in org.elasticsearch.action.admin.indices.refresh with parameters of type ActionListener Modifier and Type Method Description protected voidTransportShardRefreshAction. shardOperationOnPrimary(BasicReplicationRequest shardRequest, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<BasicReplicationRequest,ReplicationResponse>> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.rollover
Methods in org.elasticsearch.action.admin.indices.rollover with parameters of type ActionListener Modifier and Type Method Description protected voidTransportRolloverAction. masterOperation(RolloverRequest request, ClusterState state, ActionListener<RolloverResponse> listener)protected voidTransportRolloverAction. masterOperation(Task task, RolloverRequest rolloverRequest, ClusterState state, ActionListener<RolloverResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.settings.get
Methods in org.elasticsearch.action.admin.indices.settings.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetSettingsAction. masterOperation(GetSettingsRequest request, ClusterState state, ActionListener<GetSettingsResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.settings.put
Methods in org.elasticsearch.action.admin.indices.settings.put with parameters of type ActionListener Modifier and Type Method Description protected voidTransportUpdateSettingsAction. masterOperation(UpdateSettingsRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.shards
Methods in org.elasticsearch.action.admin.indices.shards with parameters of type ActionListener Modifier and Type Method Description protected voidTransportIndicesShardStoresAction. masterOperation(IndicesShardStoresRequest request, ClusterState state, ActionListener<IndicesShardStoresResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.shrink
Methods in org.elasticsearch.action.admin.indices.shrink with parameters of type ActionListener Modifier and Type Method Description protected voidTransportResizeAction. masterOperation(ResizeRequest resizeRequest, ClusterState state, ActionListener<ResizeResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.template.delete
Methods in org.elasticsearch.action.admin.indices.template.delete with parameters of type ActionListener Modifier and Type Method Description protected voidTransportDeleteIndexTemplateAction. masterOperation(DeleteIndexTemplateRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.template.get
Methods in org.elasticsearch.action.admin.indices.template.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetIndexTemplatesAction. masterOperation(GetIndexTemplatesRequest request, ClusterState state, ActionListener<GetIndexTemplatesResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.template.put
Methods in org.elasticsearch.action.admin.indices.template.put with parameters of type ActionListener Modifier and Type Method Description protected voidTransportPutIndexTemplateAction. masterOperation(PutIndexTemplateRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.upgrade.post
Methods in org.elasticsearch.action.admin.indices.upgrade.post with parameters of type ActionListener Modifier and Type Method Description protected voidTransportUpgradeAction. doExecute(Task task, UpgradeRequest request, ActionListener<UpgradeResponse> listener)protected voidTransportUpgradeSettingsAction. masterOperation(UpgradeSettingsRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.admin.indices.validate.query
Methods in org.elasticsearch.action.admin.indices.validate.query with parameters of type ActionListener Modifier and Type Method Description protected voidTransportValidateQueryAction. doExecute(Task task, ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.bulk
Methods in org.elasticsearch.action.bulk that return ActionListener Modifier and Type Method Description static <Response extends ReplicationResponse & WriteResponse>
ActionListener<BulkResponse>TransportSingleItemBulkWriteAction. wrapBulkResponse(ActionListener<Response> listener)Deprecated.Methods in org.elasticsearch.action.bulk with parameters of type ActionListener Modifier and Type Method Description protected voidTransportBulkAction. doExecute(Task task, BulkRequest bulkRequest, ActionListener<BulkResponse> listener)protected voidTransportSingleItemBulkWriteAction. doExecute(Task task, Request request, ActionListener<Response> listener)Deprecated.static voidTransportShardBulkAction. performOnPrimary(BulkShardRequest request, IndexShard primary, UpdateHelper updateHelper, LongSupplier nowInMillisSupplier, MappingUpdatePerformer mappingUpdater, Consumer<ActionListener<Void>> waitForMappingUpdate, ActionListener<TransportReplicationAction.PrimaryResult<BulkShardRequest,BulkShardResponse>> listener, ThreadPool threadPool)protected voidTransportShardBulkAction. shardOperationOnPrimary(BulkShardRequest request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<BulkShardRequest,BulkShardResponse>> listener)voidMappingUpdatePerformer. updateMappings(Mapping update, ShardId shardId, String type, ActionListener<Void> listener)Update the mappings on the master.static <Response extends ReplicationResponse & WriteResponse>
ActionListener<BulkResponse>TransportSingleItemBulkWriteAction. wrapBulkResponse(ActionListener<Response> listener)Deprecated.Method parameters in org.elasticsearch.action.bulk with type arguments of type ActionListener Modifier and Type Method Description static voidTransportShardBulkAction. performOnPrimary(BulkShardRequest request, IndexShard primary, UpdateHelper updateHelper, LongSupplier nowInMillisSupplier, MappingUpdatePerformer mappingUpdater, Consumer<ActionListener<Void>> waitForMappingUpdate, ActionListener<TransportReplicationAction.PrimaryResult<BulkShardRequest,BulkShardResponse>> listener, ThreadPool threadPool) -
Uses of ActionListener in org.elasticsearch.action.explain
Methods in org.elasticsearch.action.explain with parameters of type ActionListener Modifier and Type Method Description protected voidTransportExplainAction. asyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener)protected voidTransportExplainAction. doExecute(Task task, ExplainRequest request, ActionListener<ExplainResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.fieldcaps
Methods in org.elasticsearch.action.fieldcaps with parameters of type ActionListener Modifier and Type Method Description protected voidTransportFieldCapabilitiesAction. doExecute(Task task, FieldCapabilitiesRequest request, ActionListener<FieldCapabilitiesResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.get
Methods in org.elasticsearch.action.get with parameters of type ActionListener Modifier and Type Method Description protected voidTransportGetAction. asyncShardOperation(GetRequest request, ShardId shardId, ActionListener<GetResponse> listener)protected voidTransportShardMultiGetAction. asyncShardOperation(MultiGetShardRequest request, ShardId shardId, ActionListener<MultiGetShardResponse> listener)protected voidTransportMultiGetAction. doExecute(Task task, MultiGetRequest request, ActionListener<MultiGetResponse> listener)protected voidTransportMultiGetAction. executeShardAction(ActionListener<MultiGetResponse> listener, AtomicArray<MultiGetItemResponse> responses, Map<ShardId,MultiGetShardRequest> shardRequests) -
Uses of ActionListener in org.elasticsearch.action.ingest
Methods in org.elasticsearch.action.ingest with parameters of type ActionListener Modifier and Type Method Description protected voidSimulatePipelineTransportAction. doExecute(Task task, SimulatePipelineRequest request, ActionListener<SimulatePipelineResponse> listener)voidIngestActionForwarder. forwardIngestRequest(ActionType<?> action, ActionRequest request, ActionListener<?> listener)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 ActionListener in org.elasticsearch.action.main
Methods in org.elasticsearch.action.main with parameters of type ActionListener Modifier and Type Method Description protected voidTransportMainAction. doExecute(Task task, MainRequest request, ActionListener<MainResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.resync
Methods in org.elasticsearch.action.resync with parameters of type ActionListener Modifier and Type Method Description protected voidTransportResyncReplicationAction. shardOperationOnPrimary(ResyncReplicationRequest request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<ResyncReplicationRequest,ResyncReplicationResponse>> listener)voidTransportResyncReplicationAction. sync(ResyncReplicationRequest request, Task parentTask, String primaryAllocationId, long primaryTerm, ActionListener<ResyncReplicationResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.search
Classes in org.elasticsearch.action.search that implement ActionListener Modifier and Type Class Description classSearchExecutionStatsCollectorA wrapper of search action listeners (search results) that unwraps the query result to get the piggybacked queue size and service time EWMA, adding those values to the coordinating nodes'ResponseCollectorService.Methods in org.elasticsearch.action.search that return types with arguments of type ActionListener Modifier and Type Method Description static BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener>SearchExecutionStatsCollector. makeWrapper(ResponseCollectorService service)Methods in org.elasticsearch.action.search with parameters of type ActionListener Modifier and Type Method Description protected voidTransportClearScrollAction. doExecute(Task task, ClearScrollRequest request, ActionListener<ClearScrollResponse> listener)protected voidTransportMultiSearchAction. doExecute(Task task, MultiSearchRequest request, ActionListener<MultiSearchResponse> listener)protected voidTransportSearchAction. doExecute(Task task, SearchRequest searchRequest, ActionListener<SearchResponse> listener)protected voidTransportSearchScrollAction. doExecute(Task task, SearchScrollRequest request, ActionListener<SearchResponse> listener)voidSearchTransportService. sendCanMatch(Transport.Connection connection, ShardSearchRequest request, SearchTask task, ActionListener<SearchService.CanMatchResponse> listener)voidSearchTransportService. sendClearAllScrollContexts(Transport.Connection connection, ActionListener<TransportResponse> listener)voidSearchTransportService. sendFreeContext(Transport.Connection connection, long contextId, ActionListener<SearchTransportService.SearchFreeContextResponse> listener)Constructor parameters in org.elasticsearch.action.search with type arguments of type ActionListener Constructor Description SearchTransportService(TransportService transportService, BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener> responseWrapper) -
Uses of ActionListener in org.elasticsearch.action.support
Classes in org.elasticsearch.action.support that implement ActionListener Modifier and Type Class Description classAdapterActionFuture<T,L>classChannelActionListener<Response extends TransportResponse,Request extends TransportRequest>classContextPreservingActionListener<R>Restores the givenThreadContext.StoredContextonce the listener is invokedclassGroupedActionListener<T>An action listener that delegates its results to another listener once it has received N results (either successes or failures).classPlainActionFuture<T>classPlainListenableActionFuture<T>classThreadedActionListener<Response>An action listener that wraps another action listener and threading its execution.Methods in org.elasticsearch.action.support that return ActionListener Modifier and Type Method Description <Response> ActionListener<Response>ThreadedActionListener.Wrapper. wrap(ActionListener<Response> listener)Methods in org.elasticsearch.action.support with parameters of type ActionListener Modifier and Type Method Description voidPlainListenableActionFuture. addListener(ActionListener<T> listener)<Request extends ActionRequest,Response extends ActionResponse>
voidActionFilter. apply(Task task, String action, Request request, ActionListener<Response> listener, ActionFilterChain<Request,Response> chain)Enables filtering the execution of an action on the request side, either by sending a response through theActionListeneror by continuing the execution through the givenchainprotected abstract booleanActionFilter.Simple. apply(String action, ActionRequest request, ActionListener<?> listener)Applies this filter and returnstrueif the execution chain should proceed, orfalseif it should be aborted since the filter already handled the request and called the given listener.<Request extends ActionRequest,Response extends ActionResponse>
voidActionFilter.Simple. apply(Task task, String action, Request request, ActionListener<Response> listener, ActionFilterChain<Request,Response> chain)protected abstract voidTransportAction. doExecute(Task task, Request request, ActionListener<Response> listener)voidTransportAction. execute(Task task, Request request, ActionListener<Response> listener)Use this method when the transport action should continue to run in the context of the current taskTaskTransportAction. execute(Request request, ActionListener<Response> listener)Use this method when the transport action call should result in creation of a new task associated with the call.voidActionFilterChain. proceed(Task task, String action, Request request, ActionListener<Response> listener)Continue processing the request.<Response> ActionListener<Response>ThreadedActionListener.Wrapper. wrap(ActionListener<Response> listener)static <R> ContextPreservingActionListener<R>ContextPreservingActionListener. wrapPreservingContext(ActionListener<R> listener, ThreadContext threadContext)Wraps the provided action listener in aContextPreservingActionListenerthat will also copy the response headers when theThreadContext.StoredContextis closedConstructors in org.elasticsearch.action.support with parameters of type ActionListener Constructor Description ContextPreservingActionListener(Supplier<ThreadContext.StoredContext> contextSupplier, ActionListener<R> delegate)GroupedActionListener(ActionListener<Collection<T>> delegate, int groupSize)Creates a new listenerThreadedActionListener(org.apache.logging.log4j.Logger logger, ThreadPool threadPool, String executor, ActionListener<Response> listener, boolean forceExecution) -
Uses of ActionListener in org.elasticsearch.action.support.broadcast
Methods in org.elasticsearch.action.support.broadcast with parameters of type ActionListener Modifier and Type Method Description protected voidTransportBroadcastAction. doExecute(Task task, Request request, ActionListener<Response> listener)Constructors in org.elasticsearch.action.support.broadcast with parameters of type ActionListener Constructor Description AsyncBroadcastAction(Task task, Request request, ActionListener<Response> listener) -
Uses of ActionListener in org.elasticsearch.action.support.broadcast.node
Methods in org.elasticsearch.action.support.broadcast.node with parameters of type ActionListener Modifier and Type Method Description protected voidTransportBroadcastByNodeAction. doExecute(Task task, Request request, ActionListener<Response> listener)Constructors in org.elasticsearch.action.support.broadcast.node with parameters of type ActionListener Constructor Description AsyncAction(Task task, Request request, ActionListener<Response> listener) -
Uses of ActionListener in org.elasticsearch.action.support.master
Methods in org.elasticsearch.action.support.master with parameters of type ActionListener Modifier and Type Method Description protected voidTransportMasterNodeAction. doExecute(Task task, Request request, ActionListener<Response> listener)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 ActionListener in org.elasticsearch.action.support.master.info
Methods in org.elasticsearch.action.support.master.info with parameters of type ActionListener 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 ActionListener in org.elasticsearch.action.support.nodes
Methods in org.elasticsearch.action.support.nodes with parameters of type ActionListener Modifier and Type Method Description protected voidTransportNodesAction. doExecute(Task task, NodesRequest request, ActionListener<NodesResponse> listener) -
Uses of ActionListener in org.elasticsearch.action.support.replication
Methods in org.elasticsearch.action.support.replication with parameters of type ActionListener Modifier and Type Method Description protected voidTransportReplicationAction. acquirePrimaryOperationPermit(IndexShard primary, Request request, ActionListener<Releasable> onAcquired)Executes the logic for acquiring one or more operation permit on a primary shard.protected voidTransportReplicationAction. acquireReplicaOperationPermit(IndexShard replica, ReplicaRequest request, ActionListener<Releasable> onAcquired, long primaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes)Executes the logic for acquiring one or more operation permit on a replica shard.protected voidTransportBroadcastReplicationAction. doExecute(Task task, Request request, ActionListener<Response> listener)protected voidTransportReplicationAction. doExecute(Task task, Request request, ActionListener<Response> listener)voidReplicationOperation.Replicas. failShardIfNeeded(ShardRouting replica, long primaryTerm, String message, Exception exception, ActionListener<Void> listener)Fail the specified shard if needed, removing it from the current set of active shards.voidTransportReplicationAction.ReplicasProxy. failShardIfNeeded(ShardRouting replica, long primaryTerm, String message, Exception exception, ActionListener<Void> listener)voidReplicationOperation.Replicas. markShardCopyAsStaleIfNeeded(ShardId shardId, String allocationId, long primaryTerm, ActionListener<Void> listener)Marks shard copy as stale if needed, removing its allocation id from the set of in-sync allocation ids.voidTransportReplicationAction.ReplicasProxy. markShardCopyAsStaleIfNeeded(ShardId shardId, String allocationId, long primaryTerm, ActionListener<Void> listener)voidReplicationOperation.Primary. perform(RequestT request, ActionListener<PrimaryResultT> listener)Performs the given request on this primary.voidReplicationOperation.Replicas. performOn(ShardRouting replica, RequestT replicaRequest, long primaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes, ActionListener<ReplicationOperation.ReplicaResponse> listener)Performs the specified request on the specified replica.voidTransportReplicationAction.ReplicasProxy. performOn(ShardRouting replica, ReplicaRequest request, long primaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes, ActionListener<ReplicationOperation.ReplicaResponse> listener)voidTransportReplicationAction.PrimaryResult. respond(ActionListener<Response> listener)voidTransportReplicationAction.ReplicaResult. respond(ActionListener<TransportResponse.Empty> listener)voidTransportWriteAction.WritePrimaryResult. respond(ActionListener<Response> listener)voidTransportWriteAction.WriteReplicaResult. respond(ActionListener<TransportResponse.Empty> listener)protected voidTransportBroadcastReplicationAction. shardExecute(Task task, Request request, ShardId shardId, ActionListener<ShardResponse> shardActionListener)protected abstract voidTransportReplicationAction. shardOperationOnPrimary(Request shardRequest, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<ReplicaRequest,Response>> listener)Primary operation on node with primary copy.protected abstract voidTransportWriteAction. shardOperationOnPrimary(Request request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<ReplicaRequest,Response>> listener)Called on the primary with a reference to the primary IndexShard to modify.Constructors in org.elasticsearch.action.support.replication with parameters of type ActionListener Constructor Description ReplicationOperation(Request request, ReplicationOperation.Primary<Request,ReplicaRequest,PrimaryResultT> primary, ActionListener<PrimaryResultT> listener, ReplicationOperation.Replicas<ReplicaRequest> replicas, org.apache.logging.log4j.Logger logger, String opType, long primaryTerm) -
Uses of ActionListener in org.elasticsearch.action.support.single.instance
Methods in org.elasticsearch.action.support.single.instance with parameters of type ActionListener Modifier and Type Method Description protected voidTransportInstanceSingleOperationAction. doExecute(Task task, Request request, ActionListener<Response> listener)protected abstract voidTransportInstanceSingleOperationAction. shardOperation(Request request, ActionListener<Response> listener) -
Uses of ActionListener in org.elasticsearch.action.support.single.shard
Methods in org.elasticsearch.action.support.single.shard with parameters of type ActionListener Modifier and Type Method Description protected voidTransportSingleShardAction. asyncShardOperation(Request request, ShardId shardId, ActionListener<Response> listener)protected voidTransportSingleShardAction. doExecute(Task task, Request request, ActionListener<Response> listener) -
Uses of ActionListener in org.elasticsearch.action.support.tasks
Methods in org.elasticsearch.action.support.tasks with parameters of type ActionListener Modifier and Type Method Description protected voidTransportTasksAction. doExecute(Task task, TasksRequest request, ActionListener<TasksResponse> listener)protected abstract voidTransportTasksAction. taskOperation(TasksRequest request, OperationTask task, ActionListener<TaskResponse> listener)Perform the required operation on the task. -
Uses of ActionListener in org.elasticsearch.action.termvectors
Methods in org.elasticsearch.action.termvectors with parameters of type ActionListener Modifier and Type Method Description protected voidTransportTermVectorsAction. asyncShardOperation(TermVectorsRequest request, ShardId shardId, ActionListener<TermVectorsResponse> listener)protected voidTransportMultiTermVectorsAction. doExecute(Task task, MultiTermVectorsRequest request, ActionListener<MultiTermVectorsResponse> listener)protected voidTransportMultiTermVectorsAction. executeShardAction(ActionListener<MultiTermVectorsResponse> listener, AtomicArray<MultiTermVectorsItemResponse> responses, Map<ShardId,MultiTermVectorsShardRequest> shardRequests) -
Uses of ActionListener in org.elasticsearch.action.update
Methods in org.elasticsearch.action.update with parameters of type ActionListener Modifier and Type Method Description protected voidTransportUpdateAction. doExecute(Task task, UpdateRequest request, ActionListener<UpdateResponse> listener)protected voidTransportUpdateAction. shardOperation(UpdateRequest request, ActionListener<UpdateResponse> listener)protected voidTransportUpdateAction. shardOperation(UpdateRequest request, ActionListener<UpdateResponse> listener, int retryCount) -
Uses of ActionListener in org.elasticsearch.client
Methods in org.elasticsearch.client with parameters of type ActionListener Modifier and Type Method Description CancellableWatcherClient. ackWatchAsync(AckWatchRequest request, RequestOptions options, ActionListener<AckWatchResponse> listener)Asynchronously acknowledges a watch.CancellableWatcherClient. activateWatchAsync(ActivateWatchRequest request, RequestOptions options, ActionListener<ActivateWatchResponse> listener)Asynchronously activates a watch from the cluster See the docs for more.voidIndicesAdminClient. aliases(IndicesAliasesRequest request, ActionListener<AcknowledgedResponse> listener)Allows to add/remove aliases from indices.voidIndicesAdminClient. aliasesExist(GetAliasesRequest request, ActionListener<AliasesExistResponse> listener)Check the existence of specified index aliases.voidClusterAdminClient. allocationExplain(ClusterAllocationExplainRequest request, ActionListener<ClusterAllocationExplainResponse> listener)Explain the allocation of a shardvoidIndicesAdminClient. analyze(AnalyzeAction.Request request, ActionListener<AnalyzeAction.Response> listener)Analyze text under the provided index.CancellableIndicesClient. analyzeAsync(AnalyzeRequest request, RequestOptions options, ActionListener<AnalyzeResponse> listener)Asynchronously calls the analyze API See Analyze API on elastic.coCancellableSecurityClient. authenticateAsync(RequestOptions options, ActionListener<AuthenticateResponse> listener)Authenticate the current user asynchronously and return all the information about the authenticated user.voidClient. bulk(BulkRequest request, ActionListener<BulkResponse> listener)Executes a bulk of index / delete operations.CancellableRestHighLevelClient. bulkAsync(BulkRequest bulkRequest, RequestOptions options, ActionListener<BulkResponse> listener)Asynchronously executes a bulk request using the Bulk API.CancellableTasksClient. cancelAsync(CancelTasksRequest cancelTasksRequest, RequestOptions options, ActionListener<CancelTasksResponse> listener)Asynchronously cancel one or more cluster tasks using the Task Management API.voidClusterAdminClient. cancelTasks(CancelTasksRequest request, ActionListener<CancelTasksResponse> listener)Cancel active tasksCancellableSecurityClient. changePasswordAsync(RequestOptions options, ChangePasswordRequest request, ActionListener<Boolean> listener)Deprecated.CancellableSecurityClient. changePasswordAsync(ChangePasswordRequest request, RequestOptions options, ActionListener<Boolean> listener)Change the password of a user of a native realm or built-in user asynchronously.voidClusterAdminClient. cleanupRepository(CleanupRepositoryRequest repository, ActionListener<CleanupRepositoryResponse> listener)Cleans up repository.CancellableSnapshotClient. cleanupRepositoryAsync(CleanupRepositoryRequest cleanupRepositoryRequest, RequestOptions options, ActionListener<CleanupRepositoryResponse> listener)Asynchronously cleans up a snapshot repository.voidIndicesAdminClient. clearCache(ClearIndicesCacheRequest request, ActionListener<ClearIndicesCacheResponse> listener)Clear indices cache.CancellableIndicesClient. clearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, RequestOptions options, ActionListener<ClearIndicesCacheResponse> listener)Asynchronously clears the cache of one or more indices using the Clear Cache API.CancellableSecurityClient. clearRealmCacheAsync(ClearRealmCacheRequest request, RequestOptions options, ActionListener<ClearRealmCacheResponse> listener)Clears the cache in one or more realms asynchronously.CancellableSecurityClient. clearRolesCacheAsync(ClearRolesCacheRequest request, RequestOptions options, ActionListener<ClearRolesCacheResponse> listener)Clears the roles cache for a set of roles asynchronously.voidClient. clearScroll(ClearScrollRequest request, ActionListener<ClearScrollResponse> listener)Clears the search contexts associated with specified scroll ids.CancellableRestHighLevelClient. clearScrollAsync(ClearScrollRequest clearScrollRequest, RequestOptions options, ActionListener<ClearScrollResponse> listener)Asynchronously clears one or more scroll ids using the Clear Scroll API.CancellableIndicesClient. cloneAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)Asynchronously clones an index using the Clone Index API.voidIndicesAdminClient. close(CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)Closes an index based on the index name.CancellableIndicesClient. closeAsync(CloseIndexRequest closeIndexRequest, RequestOptions options, ActionListener<CloseIndexResponse> listener)Asynchronously closes an index using the Close Index API.CancellableMachineLearningClient. closeJobAsync(CloseJobRequest request, RequestOptions options, ActionListener<CloseJobResponse> listener)Closes one or more Machine Learning Jobs asynchronously, notifies listener on completion A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.voidClusterAdminClient. clusterStats(ClusterStatsRequest request, ActionListener<ClusterStatsResponse> listener)Cluster wide aggregated statsCancellableRestHighLevelClient. countAsync(CountRequest countRequest, RequestOptions options, ActionListener<CountResponse> listener)Asynchronously executes a count request using the Count API.voidIndicesAdminClient. create(CreateIndexRequest request, ActionListener<CreateIndexResponse> listener)Creates an index using an explicit request allowing to specify the settings of the index.CancellableSecurityClient. createApiKeyAsync(CreateApiKeyRequest request, RequestOptions options, ActionListener<CreateApiKeyResponse> listener)Asynchronously creates an API key.
See the docs for more.CancellableIndicesClient. createAsync(CreateIndexRequest createIndexRequest, RequestOptions options, ActionListener<CreateIndexResponse> listener)Deprecated.This method uses an old request object which still refers to types, a deprecated feature.CancellableIndicesClient. createAsync(CreateIndexRequest createIndexRequest, RequestOptions options, ActionListener<CreateIndexResponse> listener)Asynchronously creates an index using the Create Index API.CancellableSnapshotClient. createAsync(CreateSnapshotRequest createSnapshotRequest, RequestOptions options, ActionListener<CreateSnapshotResponse> listener)Asynchronously creates a snapshot.CancellableSnapshotClient. createRepositoryAsync(PutRepositoryRequest putRepositoryRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously creates a snapshot repository.voidClusterAdminClient. createSnapshot(CreateSnapshotRequest request, ActionListener<CreateSnapshotResponse> listener)Creates a new snapshot.CancellableSecurityClient. createTokenAsync(CreateTokenRequest request, RequestOptions options, ActionListener<CreateTokenResponse> listener)Asynchronously creates an OAuth2 token.CancellableWatcherClient. deactivateWatchAsync(DeactivateWatchRequest request, RequestOptions options, ActionListener<DeactivateWatchResponse> listener)Asynchronously deactivate an existing watch See the docs for more.CancellableSecurityClient. delegatePkiAuthenticationAsync(DelegatePkiAuthenticationRequest request, RequestOptions options, ActionListener<DelegatePkiAuthenticationResponse> listener)Asynchronously get an Elasticsearch access token from anX509Certificatechain.voidClient. delete(DeleteRequest request, ActionListener<DeleteResponse> listener)Deletes a document from the index based on the index, type and id.voidIndicesAdminClient. delete(DeleteIndexRequest request, ActionListener<AcknowledgedResponse> listener)Deletes an index based on the index name.CancellableIndicesClient. deleteAsync(DeleteIndexRequest deleteIndexRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously deletes an index using the Delete Index API.CancellableRestHighLevelClient. deleteAsync(DeleteRequest deleteRequest, RequestOptions options, ActionListener<DeleteResponse> listener)Asynchronously deletes a document by id using the Delete API.CancellableSnapshotClient. deleteAsync(DeleteSnapshotRequest deleteSnapshotRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously deletes a snapshot.CancellableCcrClient. deleteAutoFollowPatternAsync(DeleteAutoFollowPatternRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously deletes an auto follow pattern.CancellableRestHighLevelClient. deleteByQueryAsync(DeleteByQueryRequest deleteByQueryRequest, RequestOptions options, ActionListener<BulkByScrollResponse> listener)Asynchronously executes a delete by query request.CancellableRestHighLevelClient. deleteByQueryRethrottleAsync(RethrottleRequest rethrottleRequest, RequestOptions options, ActionListener<ListTasksResponse> listener)Asynchronously execute an delete by query rethrottle request.CancellableMachineLearningClient. deleteCalendarAsync(DeleteCalendarRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning Job asynchronously and notifies the listener on completionCancellableMachineLearningClient. deleteCalendarEventAsync(DeleteCalendarEventRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Removes a Scheduled Event from a calendar, notifies listener when completedCancellableMachineLearningClient. deleteCalendarJobAsync(DeleteCalendarJobRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Removes Machine Learning Job(s) from a calendar, notifies listener when completedCancellableMachineLearningClient. deleteDatafeedAsync(DeleteDatafeedRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning Datafeed asynchronously and notifies the listener on completionCancellableMachineLearningClient. deleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Data Frame Analytics config asynchronously and notifies listener upon completionCancellableMachineLearningClient. deleteExpiredDataAsync(DeleteExpiredDataRequest request, RequestOptions options, ActionListener<DeleteExpiredDataResponse> listener)Deletes expired data from Machine Learning Jobs asynchronously and notifies the listener on completionCancellableMachineLearningClient. deleteFilterAsync(DeleteFilterRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning filter asynchronously and notifies the listener on completionCancellableMachineLearningClient. deleteForecastAsync(DeleteForecastRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes Machine Learning Job Forecasts asynchronouslyCancellableMachineLearningClient. deleteJobAsync(DeleteJobRequest request, RequestOptions options, ActionListener<DeleteJobResponse> listener)Deletes the given Machine Learning Job asynchronously and notifies the listener on completionCancellableLicenseClient. deleteLicenseAsync(DeleteLicenseRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously deletes license from the cluster.CancellableIndexLifecycleClient. deleteLifecyclePolicyAsync(DeleteLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously delete a lifecycle definition SeeCancellableMachineLearningClient. deleteModelSnapshotAsync(DeleteModelSnapshotRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes Machine Learning Model Snapshots asynchronously and notifies the listener on completionvoidClusterAdminClient. deletePipeline(DeletePipelineRequest request, ActionListener<AcknowledgedResponse> listener)Deletes a stored ingest pipelineCancellableIngestClient. deletePipelineAsync(DeletePipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously delete an existing pipeline.CancellableEnrichClient. deletePolicyAsync(DeletePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously executes the delete policy api, which deletes an enrich policy.CancellableSecurityClient. deletePrivilegesAsync(DeletePrivilegesRequest request, RequestOptions options, ActionListener<DeletePrivilegesResponse> listener)Asynchronously removes an application privilege See the docs for more.voidClusterAdminClient. deleteRepository(DeleteRepositoryRequest request, ActionListener<AcknowledgedResponse> listener)Unregisters a repository.CancellableSnapshotClient. deleteRepositoryAsync(DeleteRepositoryRequest deleteRepositoryRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously deletes a snapshot repository.CancellableSecurityClient. deleteRoleAsync(DeleteRoleRequest request, RequestOptions options, ActionListener<DeleteRoleResponse> listener)Removes role from the native realm.CancellableSecurityClient. deleteRoleMappingAsync(DeleteRoleMappingRequest request, RequestOptions options, ActionListener<DeleteRoleMappingResponse> listener)Asynchronously delete a role mapping.CancellableRollupClient. deleteRollupJobAsync(DeleteRollupJobRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously delete a rollup job from the cluster See The docs for details.CancellableRestHighLevelClient. deleteScriptAsync(DeleteStoredScriptRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously delete stored script by id.voidClusterAdminClient. deleteSnapshot(DeleteSnapshotRequest request, ActionListener<AcknowledgedResponse> listener)Delete snapshot.CancellableIndexLifecycleClient. deleteSnapshotLifecyclePolicyAsync(DeleteSnapshotLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously delete a snapshot lifecycle definition SeevoidClusterAdminClient. deleteStoredScript(DeleteStoredScriptRequest request, ActionListener<AcknowledgedResponse> listener)Delete a script from the cluster statevoidIndicesAdminClient. deleteTemplate(DeleteIndexTemplateRequest request, ActionListener<AcknowledgedResponse> listener)Deletes an index template.CancellableIndicesClient. deleteTemplateAsync(DeleteIndexTemplateRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously delete an index template using the Index Templates API See Index Templates API on elastic.coCancellableTransformClient. deleteTransformAsync(DeleteTransformRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Delete a transform asynchronously and notifies listener on completionCancellableSecurityClient. deleteUserAsync(DeleteUserRequest request, RequestOptions options, ActionListener<DeleteUserResponse> listener)Asynchronously deletes a user in the native realm.CancellableWatcherClient. deleteWatchAsync(DeleteWatchRequest request, RequestOptions options, ActionListener<DeleteWatchResponse> listener)Asynchronously deletes a watch from the cluster See the docs for more.CancellableSecurityClient. disableUserAsync(RequestOptions options, DisableUserRequest request, ActionListener<Boolean> listener)Deprecated.CancellableSecurityClient. disableUserAsync(DisableUserRequest request, RequestOptions options, ActionListener<Boolean> listener)Disable a native realm or built-in user asynchronously.protected <Request extends ActionRequest,Response extends ActionResponse>
voidFilterClient. doExecute(ActionType<Response> action, Request request, ActionListener<Response> listener)protected <Request extends ActionRequest,Response extends ActionResponse>
voidOriginSettingClient. doExecute(ActionType<Response> action, Request request, ActionListener<Response> listener)CancellableSecurityClient. enableUserAsync(RequestOptions options, EnableUserRequest request, ActionListener<Boolean> listener)Deprecated.CancellableSecurityClient. enableUserAsync(EnableUserRequest request, RequestOptions options, ActionListener<Boolean> listener)Enable a native realm or built-in user asynchronously.CancellableMachineLearningClient. estimateMemoryUsageAsync(PutDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<EstimateMemoryUsageResponse> listener)Estimates memory usage for the given Data Frame Analytics asynchronously and notifies listener upon completionCancellableMachineLearningClient. evaluateDataFrameAsync(EvaluateDataFrameRequest request, RequestOptions options, ActionListener<EvaluateDataFrameResponse> listener)Evaluates the given Data Frame asynchronously and notifies listener upon completion<Request extends ActionRequest,Response extends ActionResponse>
voidElasticsearchClient. execute(ActionType<Response> action, Request request, ActionListener<Response> listener)Executes a generic action, denoted by anActionType.CancellableEnrichClient. executePolicyAsync(ExecutePolicyRequest request, RequestOptions options, ActionListener<ExecutePolicyResponse> listener)Asynchronously executes the execute policy api, which executes an enrich policy.CancellableIndexLifecycleClient. executeSnapshotLifecyclePolicyAsync(ExecuteSnapshotLifecyclePolicyRequest request, RequestOptions options, ActionListener<ExecuteSnapshotLifecyclePolicyResponse> listener)Asynchronously execute a snapshot lifecycle definition SeeCancellableIndexLifecycleClient. executeSnapshotLifecycleRetentionAsync(ExecuteSnapshotLifecycleRetentionRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously execute snapshot lifecycle retention SeeCancellableWatcherClient. executeWatchAsync(ExecuteWatchRequest request, RequestOptions options, ActionListener<ExecuteWatchResponse> listener)Asynchronously execute a watch on the cluster See the docs for more.voidIndicesAdminClient. exists(IndicesExistsRequest request, ActionListener<IndicesExistsResponse> listener)The status of one or more indices.CancellableIndicesClient. existsAliasAsync(GetAliasesRequest getAliasesRequest, RequestOptions options, ActionListener<Boolean> listener)Asynchronously checks if one or more aliases exist using the Aliases Exist API.CancellableIndicesClient. existsAsync(GetIndexRequest request, RequestOptions options, ActionListener<Boolean> listener)Deprecated.This method uses an old request object which still refers to types, a deprecated feature.CancellableIndicesClient. existsAsync(GetIndexRequest request, RequestOptions options, ActionListener<Boolean> listener)Asynchronously checks if the index (indices) exists or not.CancellableRestHighLevelClient. existsAsync(GetRequest getRequest, RequestOptions options, ActionListener<Boolean> listener)Asynchronously checks for the existence of a document.CancellableRestHighLevelClient. existsSourceAsync(GetRequest getRequest, RequestOptions options, ActionListener<Boolean> listener)Asynchronously checks for the existence of a document with a "_source" field.CancellableIndicesClient. existsTemplateAsync(IndexTemplatesExistRequest indexTemplatesExistRequest, RequestOptions options, ActionListener<Boolean> listener)Uses the Index Templates API to determine if index templates existvoidClient. explain(ExplainRequest request, ActionListener<ExplainResponse> listener)Computes a score explanation for the specified request.CancellableRestHighLevelClient. explainAsync(ExplainRequest explainRequest, RequestOptions options, ActionListener<ExplainResponse> listener)Asynchronously executes a request using the Explain API.CancellableIndexLifecycleClient. explainLifecycleAsync(ExplainLifecycleRequest request, RequestOptions options, ActionListener<ExplainLifecycleResponse> listener)Asynchronously explain the lifecycle state for an index SeeCancellableGraphClient. exploreAsync(GraphExploreRequest graphExploreRequest, RequestOptions options, ActionListener<GraphExploreResponse> listener)Asynchronously executes an exploration request using the Graph API.voidClient. fieldCaps(FieldCapabilitiesRequest request, ActionListener<FieldCapabilitiesResponse> listener)An action that returns the field capabilities from the provided requestCancellableRestHighLevelClient. fieldCapsAsync(FieldCapabilitiesRequest fieldCapabilitiesRequest, RequestOptions options, ActionListener<FieldCapabilitiesResponse> listener)Asynchronously executes a request using the Field Capabilities API.CancellableMachineLearningClient. findFileStructureAsync(FindFileStructureRequest request, RequestOptions options, ActionListener<FindFileStructureResponse> listener)Finds the structure of a file asynchronously and notifies the listener on completionvoidIndicesAdminClient. flush(FlushRequest request, ActionListener<FlushResponse> listener)Explicitly flush one or more indices (releasing memory from the node).CancellableIndicesClient. flushAsync(FlushRequest flushRequest, RequestOptions options, ActionListener<FlushResponse> listener)Asynchronously flush one or more indices using the Flush API.CancellableMachineLearningClient. flushJobAsync(FlushJobRequest request, RequestOptions options, ActionListener<FlushJobResponse> listener)Flushes internally buffered data for the given Machine Learning Job asynchronously ensuring all data sent to the has been processed.CancellableIndicesClient. flushSyncedAsync(SyncedFlushRequest syncedFlushRequest, RequestOptions options, ActionListener<SyncedFlushResponse> listener)Asynchronously initiate a synced flush manually using the synced flush API.voidIndicesAdminClient. forceMerge(ForceMergeRequest request, ActionListener<ForceMergeResponse> listener)Explicitly force merge one or more indices into a the number of segments.CancellableIndicesClient. forcemergeAsync(ForceMergeRequest forceMergeRequest, RequestOptions options, ActionListener<ForceMergeResponse> listener)Asynchronously force merge one or more indices using the Force Merge API.CancellableIndicesClient. forceMergeAsync(ForceMergeRequest forceMergeRequest, RequestOptions options, ActionListener<ForceMergeResponse> listener)Deprecated.CancellableMachineLearningClient. forecastJobAsync(ForecastJobRequest request, RequestOptions options, ActionListener<ForecastJobResponse> listener)Creates a forecast of an existing, opened Machine Learning Job asynchronously This predicts the future behavior of a time series by using its historical behavior.CancellableCcrClient. forgetFollowerAsync(ForgetFollowerRequest request, RequestOptions options, ActionListener<BroadcastResponse> listener)Asynchronously instructs an index acting as a leader index to forget the specified follower index.CancellableIndicesClient. freezeAsync(FreezeIndexRequest request, RequestOptions options, ActionListener<ShardsAcknowledgedResponse> listener)Asynchronously calls the _freeze APIvoidClient. get(GetRequest request, ActionListener<GetResponse> listener)Gets the document that was indexed from an index with a type and id.CancellableIndicesClient. getAliasAsync(GetAliasesRequest getAliasesRequest, RequestOptions options, ActionListener<GetAliasesResponse> listener)Asynchronously gets one or more aliases using the Get Index Aliases API.voidIndicesAdminClient. getAliases(GetAliasesRequest request, ActionListener<GetAliasesResponse> listener)Get specific index aliases that exists in particular indices and / or by name.CancellableSecurityClient. getApiKeyAsync(GetApiKeyRequest request, RequestOptions options, ActionListener<GetApiKeyResponse> listener)Asynchronously retrieve API Key(s) information.
See the docs for more.CancellableIndicesClient. getAsync(GetIndexRequest getIndexRequest, RequestOptions options, ActionListener<GetIndexResponse> listener)Deprecated.This method uses an old request object which still refers to types, a deprecated feature.CancellableIndicesClient. getAsync(GetIndexRequest getIndexRequest, RequestOptions options, ActionListener<GetIndexResponse> listener)Retrieve information about one or more indexes See Indices Get Index API on elastic.coCancellableRestHighLevelClient. getAsync(GetRequest getRequest, RequestOptions options, ActionListener<GetResponse> listener)Asynchronously retrieves a document by id using the Get API.CancellableSnapshotClient. getAsync(GetSnapshotsRequest getSnapshotsRequest, RequestOptions options, ActionListener<GetSnapshotsResponse> listener)Asynchronously get snapshots.CancellableTasksClient. getAsync(GetTaskRequest request, RequestOptions options, ActionListener<Optional<GetTaskResponse>> listener)Get a task using the Task Management API.CancellableCcrClient. getAutoFollowPatternAsync(GetAutoFollowPatternRequest request, RequestOptions options, ActionListener<GetAutoFollowPatternResponse> listener)Asynchronously gets an auto follow pattern.CancellableMachineLearningClient. getBucketsAsync(GetBucketsRequest request, RequestOptions options, ActionListener<GetBucketsResponse> listener)Gets the buckets for a Machine Learning Job, notifies listener once the requested buckets are retrieved.CancellableSecurityClient. getBuiltinPrivilegesAsync(RequestOptions options, ActionListener<GetBuiltinPrivilegesResponse> listener)Asynchronously get builtin (cluster & index) privilege(s).CancellableMachineLearningClient. getCalendarEventsAsync(GetCalendarEventsRequest request, RequestOptions options, ActionListener<GetCalendarEventsResponse> listener)Gets the events for a a machine learning calendar asynchronously, notifies the listener on completionCancellableMachineLearningClient. getCalendarsAsync(GetCalendarsRequest request, RequestOptions options, ActionListener<GetCalendarsResponse> listener)Gets a single or multiple calendars, notifies listener once the requested records are retrieved.CancellableMachineLearningClient. getCategoriesAsync(GetCategoriesRequest request, RequestOptions options, ActionListener<GetCategoriesResponse> listener)Gets the categories for a Machine Learning Job, notifies listener once the requested buckets are retrieved.CancellableCcrClient. getCcrStatsAsync(CcrStatsRequest request, RequestOptions options, ActionListener<CcrStatsResponse> listener)Asynchronously gets all CCR stats.CancellableMachineLearningClient. getDatafeedAsync(GetDatafeedRequest request, RequestOptions options, ActionListener<GetDatafeedResponse> listener)Gets one or more Machine Learning datafeed configuration info, asynchronously.CancellableMachineLearningClient. getDatafeedStatsAsync(GetDatafeedStatsRequest request, RequestOptions options, ActionListener<GetDatafeedStatsResponse> listener)Gets statistics for one or more Machine Learning datafeeds, asynchronously.CancellableMachineLearningClient. getDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<GetDataFrameAnalyticsResponse> listener)Gets a single or multiple Data Frame Analytics configs asynchronously and notifies listener upon completionCancellableMachineLearningClient. getDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequest request, RequestOptions options, ActionListener<GetDataFrameAnalyticsStatsResponse> listener)Gets the running statistics of a Data Frame Analytics asynchronously and notifies listener upon completionCancellableMigrationClient. getDeprecationInfoAsync(DeprecationInfoRequest request, RequestOptions options, ActionListener<DeprecationInfoResponse> listener)Asynchronously get deprecation info for one or more indicesCancellableIndicesClient. getFieldMappingAsync(GetFieldMappingsRequest getFieldMappingsRequest, RequestOptions options, ActionListener<GetFieldMappingsResponse> listener)Deprecated.This method uses old request and response objects which still refer to types, a deprecated feature.CancellableIndicesClient. getFieldMappingAsync(GetFieldMappingsRequest getFieldMappingsRequest, RequestOptions options, ActionListener<GetFieldMappingsResponse> listener)Asynchronously retrieves the field mappings on an index or indices using the Get Field Mapping API.voidIndicesAdminClient. getFieldMappings(GetFieldMappingsRequest request, ActionListener<GetFieldMappingsResponse> listener)Get the mappings of specific fieldsCancellableMachineLearningClient. getFilterAsync(GetFiltersRequest request, RequestOptions options, ActionListener<GetFiltersResponse> listener)Gets Machine Learning Filters asynchronously and notifies listener on completionCancellableCcrClient. getFollowInfoAsync(FollowInfoRequest request, RequestOptions options, ActionListener<FollowInfoResponse> listener)Asynchronously gets follow info for specific indices.CancellableCcrClient. getFollowStatsAsync(FollowStatsRequest request, RequestOptions options, ActionListener<FollowStatsResponse> listener)Asynchronously gets follow stats for specific indices.voidIndicesAdminClient. getIndex(GetIndexRequest request, ActionListener<GetIndexResponse> listener)Get index metadata for particular indices.CancellableIndicesClient. getIndexTemplateAsync(GetIndexTemplatesRequest getIndexTemplatesRequest, RequestOptions options, ActionListener<GetIndexTemplatesResponse> listener)Asynchronously gets index templates using the Index Templates API See Index Templates API on elastic.coCancellableMachineLearningClient. getInfluencersAsync(GetInfluencersRequest request, RequestOptions options, ActionListener<GetInfluencersResponse> listener)Gets the influencers for a Machine Learning Job, notifies listener once the requested influencers are retrieved.CancellableMachineLearningClient. getJobAsync(GetJobRequest request, RequestOptions options, ActionListener<GetJobResponse> listener)Gets one or more Machine Learning job configuration info, asynchronously.CancellableMachineLearningClient. getJobStatsAsync(GetJobStatsRequest request, RequestOptions options, ActionListener<GetJobStatsResponse> listener)Gets usage statistics for one or more Machine Learning jobs, asynchronously.CancellableLicenseClient. getLicenseAsync(GetLicenseRequest request, RequestOptions options, ActionListener<GetLicenseResponse> listener)Asynchronously returns the current license for the cluster cluster.CancellableIndexLifecycleClient. getLifecyclePolicyAsync(GetLifecyclePolicyRequest request, RequestOptions options, ActionListener<GetLifecyclePolicyResponse> listener)Asynchronously retrieve one or more lifecycle policy definition.CancellableIndicesClient. getMappingAsync(GetMappingsRequest getMappingsRequest, RequestOptions options, ActionListener<GetMappingsResponse> listener)Deprecated.This method uses old request and response objects which still refer to types, a deprecated feature.CancellableIndicesClient. getMappingAsync(GetMappingsRequest getMappingsRequest, RequestOptions options, ActionListener<GetMappingsResponse> listener)Asynchronously retrieves the mappings on an index on indices using the Get Mapping API.voidIndicesAdminClient. getMappings(GetMappingsRequest request, ActionListener<GetMappingsResponse> listener)Get the complete mappings of one or more typesCancellableMachineLearningClient. getMlInfoAsync(MlInfoRequest request, RequestOptions options, ActionListener<MlInfoResponse> listener)Gets Machine Learning information about default values and limits, asynchronously.CancellableMachineLearningClient. getModelSnapshotsAsync(GetModelSnapshotsRequest request, RequestOptions options, ActionListener<GetModelSnapshotsResponse> listener)Gets the snapshots for a Machine Learning Job, notifies listener once the requested snapshots are retrieved.CancellableMachineLearningClient. getOverallBucketsAsync(GetOverallBucketsRequest request, RequestOptions options, ActionListener<GetOverallBucketsResponse> listener)Gets overall buckets for a set of Machine Learning Jobs, notifies listener once the requested buckets are retrieved.voidClusterAdminClient. getPipeline(GetPipelineRequest request, ActionListener<GetPipelineResponse> listener)Returns a stored ingest pipelineCancellableIngestClient. getPipelineAsync(GetPipelineRequest request, RequestOptions options, ActionListener<GetPipelineResponse> listener)Asynchronously get an existing pipeline.CancellableEnrichClient. getPolicyAsync(GetPolicyRequest request, RequestOptions options, ActionListener<GetPolicyResponse> listener)Asynchronously executes the get policy api, which retrieves an enrich policy.CancellableSecurityClient. getPrivilegesAsync(GetPrivilegesRequest request, RequestOptions options, ActionListener<GetPrivilegesResponse> listener)Asynchronously get application privilege(s).CancellableMachineLearningClient. getRecordsAsync(GetRecordsRequest request, RequestOptions options, ActionListener<GetRecordsResponse> listener)Gets the records for a Machine Learning Job, notifies listener once the requested records are retrieved.voidClusterAdminClient. getRepositories(GetRepositoriesRequest request, ActionListener<GetRepositoriesResponse> listener)Gets repositories.CancellableSnapshotClient. getRepositoryAsync(GetRepositoriesRequest getRepositoriesRequest, RequestOptions options, ActionListener<GetRepositoriesResponse> listener)Asynchronously gets a list of snapshot repositories.CancellableSecurityClient. getRoleMappingsAsync(GetRoleMappingsRequest request, RequestOptions options, ActionListener<GetRoleMappingsResponse> listener)Asynchronously get role mapping(s).CancellableSecurityClient. getRolesAsync(GetRolesRequest request, RequestOptions options, ActionListener<GetRolesResponse> listener)Asynchronously retrieves roles from the native roles store.CancellableRollupClient. getRollupCapabilitiesAsync(GetRollupCapsRequest request, RequestOptions options, ActionListener<GetRollupCapsResponse> listener)Asynchronously Get the Rollup Capabilities of a target (non-rollup) index or pattern See the docs for more.CancellableRollupClient. getRollupIndexCapabilitiesAsync(GetRollupIndexCapsRequest request, RequestOptions options, ActionListener<GetRollupIndexCapsResponse> listener)Asynchronously Get the Rollup Index Capabilities of a rollup index or pattern See the docs for more.CancellableRollupClient. getRollupJobAsync(GetRollupJobRequest request, RequestOptions options, ActionListener<GetRollupJobResponse> listener)Asynchronously get a rollup job from the cluster.CancellableRestHighLevelClient. getScriptAsync(GetStoredScriptRequest request, RequestOptions options, ActionListener<GetStoredScriptResponse> listener)Asynchronously get stored script by id.voidIndicesAdminClient. getSettings(GetSettingsRequest request, ActionListener<GetSettingsResponse> listener)Executed a per index settings get request and returns the settings for the indices specified.CancellableClusterClient. getSettingsAsync(ClusterGetSettingsRequest clusterGetSettingsRequest, RequestOptions options, ActionListener<ClusterGetSettingsResponse> listener)Asynchronously get the cluster wide settings using the Cluster Get Settings API.CancellableIndicesClient. getSettingsAsync(GetSettingsRequest getSettingsRequest, RequestOptions options, ActionListener<GetSettingsResponse> listener)Asynchronously retrieve the settings of one or more indices.CancellableIndexLifecycleClient. getSLMStatusAsync(SnapshotLifecycleManagementStatusRequest request, RequestOptions options, ActionListener<LifecycleManagementStatusResponse> listener)Asynchronously get the status of Snapshot Lifecycle Management.CancellableIndexLifecycleClient. getSnapshotLifecyclePolicyAsync(GetSnapshotLifecyclePolicyRequest request, RequestOptions options, ActionListener<GetSnapshotLifecyclePolicyResponse> listener)Asynchronously retrieve one or more snapshot lifecycle policy definition.CancellableIndexLifecycleClient. getSnapshotLifecycleStatsAsync(GetSnapshotLifecycleStatsRequest request, RequestOptions options, ActionListener<GetSnapshotLifecycleStatsResponse> listener)Asynchronously retrieve snapshot lifecycle statistics.voidClusterAdminClient. getSnapshots(GetSnapshotsRequest request, ActionListener<GetSnapshotsResponse> listener)Get snapshot.CancellableSecurityClient. getSslCertificatesAsync(RequestOptions options, ActionListener<GetSslCertificatesResponse> listener)Asynchronously retrieve the X.509 certificates that are used to encrypt communications in an Elasticsearch cluster.voidClusterAdminClient. getStoredScript(GetStoredScriptRequest request, ActionListener<GetStoredScriptResponse> listener)Get a script from the cluster statevoidClusterAdminClient. getTask(GetTaskRequest request, ActionListener<GetTaskResponse> listener)Get a task.CancellableIndicesClient. getTemplateAsync(GetIndexTemplatesRequest getIndexTemplatesRequest, RequestOptions options, ActionListener<GetIndexTemplatesResponse> listener)Deprecated.This method uses an old response object which still refers to types, a deprecated feature.voidIndicesAdminClient. getTemplates(GetIndexTemplatesRequest request, ActionListener<GetIndexTemplatesResponse> listener)Gets an index template.CancellableTransformClient. getTransformAsync(GetTransformRequest request, RequestOptions options, ActionListener<GetTransformResponse> listener)Get one or more transform configurations asynchronously and notifies listener on completionCancellableTransformClient. getTransformStatsAsync(GetTransformStatsRequest request, RequestOptions options, ActionListener<GetTransformStatsResponse> listener)Get the running statistics of a transform asynchronously and notifies listener on completionCancellableSecurityClient. getUserPrivilegesAsync(RequestOptions options, ActionListener<GetUserPrivilegesResponse> listener)Asynchronously retrieve the set of effective privileges held by the current user.CancellableSecurityClient. getUsersAsync(GetUsersRequest request, RequestOptions options, ActionListener<GetUsersResponse> listener)Get a user, or list of users, in the native realm asynchronously.CancellableWatcherClient. getWatchAsync(GetWatchRequest request, RequestOptions options, ActionListener<GetWatchResponse> listener)Asynchronously gets a watch into the cluster See the docs for more.CancellableSecurityClient. hasPrivilegesAsync(HasPrivilegesRequest request, RequestOptions options, ActionListener<HasPrivilegesResponse> listener)Asynchronously determine whether the current user has a specified list of privileges See the docs for more.voidClusterAdminClient. health(ClusterHealthRequest request, ActionListener<ClusterHealthResponse> listener)The health of the cluster.CancellableClusterClient. healthAsync(ClusterHealthRequest healthRequest, RequestOptions options, ActionListener<ClusterHealthResponse> listener)Asynchronously get cluster health using the Cluster Health API.voidClient. index(IndexRequest request, ActionListener<IndexResponse> listener)Index a document associated with a given index and type.CancellableRestHighLevelClient. indexAsync(IndexRequest indexRequest, RequestOptions options, ActionListener<IndexResponse> listener)Asynchronously index a document using the Index API.CancellableXPackClient. infoAsync(XPackInfoRequest request, RequestOptions options, ActionListener<XPackInfoResponse> listener)Asynchronously fetch information about X-Pack from the cluster.CancellableSecurityClient. invalidateApiKeyAsync(InvalidateApiKeyRequest request, RequestOptions options, ActionListener<InvalidateApiKeyResponse> listener)Asynchronously invalidates API key(s).
See the docs for more.CancellableSecurityClient. invalidateTokenAsync(InvalidateTokenRequest request, RequestOptions options, ActionListener<InvalidateTokenResponse> listener)Asynchronously invalidates an OAuth2 token.CancellableIndexLifecycleClient. lifecycleManagementStatusAsync(LifecycleManagementStatusRequest request, RequestOptions options, ActionListener<LifecycleManagementStatusResponse> listener)Asynchronously get the status of index lifecycle management SeeCancellableTasksClient. listAsync(ListTasksRequest request, RequestOptions options, ActionListener<ListTasksResponse> listener)Asynchronously get current tasks using the Task Management API.voidClusterAdminClient. listTasks(ListTasksRequest request, ActionListener<ListTasksResponse> listener)List active tasksCancellableRestHighLevelClient. mgetAsync(MultiGetRequest multiGetRequest, RequestOptions options, ActionListener<MultiGetResponse> listener)Asynchronously retrieves multiple documents by id using the Multi Get API.CancellableRestHighLevelClient. msearchAsync(MultiSearchRequest searchRequest, RequestOptions options, ActionListener<MultiSearchResponse> listener)Asynchronously executes a multi search using the msearch API.CancellableRestHighLevelClient. msearchTemplateAsync(MultiSearchTemplateRequest multiSearchTemplateRequest, RequestOptions options, ActionListener<MultiSearchTemplateResponse> listener)Asynchronously executes a request using the Multi Search Template API See Multi Search Template API on elastic.co.CancellableRestHighLevelClient. mtermvectorsAsync(MultiTermVectorsRequest request, RequestOptions options, ActionListener<MultiTermVectorsResponse> listener)Asynchronously calls the Multi Term Vectors API See Multi Term Vectors API on elastic.covoidClient. multiGet(MultiGetRequest request, ActionListener<MultiGetResponse> listener)Multi get documents.CancellableRestHighLevelClient. multiGetAsync(MultiGetRequest multiGetRequest, RequestOptions options, ActionListener<MultiGetResponse> listener)Deprecated.voidClient. multiSearch(MultiSearchRequest request, ActionListener<MultiSearchResponse> listener)Performs multiple search requests.CancellableRestHighLevelClient. multiSearchAsync(MultiSearchRequest searchRequest, RequestOptions options, ActionListener<MultiSearchResponse> listener)Deprecated.voidClient. multiTermVectors(MultiTermVectorsRequest request, ActionListener<MultiTermVectorsResponse> listener)Multi get term vectors.voidClusterAdminClient. nodesHotThreads(NodesHotThreadsRequest request, ActionListener<NodesHotThreadsResponse> listener)Returns top N hot-threads samples per node.voidClusterAdminClient. nodesInfo(NodesInfoRequest request, ActionListener<NodesInfoResponse> listener)Nodes info of the cluster.voidClusterAdminClient. nodesStats(NodesStatsRequest request, ActionListener<NodesStatsResponse> listener)Nodes stats of the cluster.voidClusterAdminClient. nodesUsage(NodesUsageRequest request, ActionListener<NodesUsageResponse> listener)Nodes usage of the cluster.voidIndicesAdminClient. open(OpenIndexRequest request, ActionListener<OpenIndexResponse> listener)Open an index based on the index name.CancellableIndicesClient. openAsync(OpenIndexRequest openIndexRequest, RequestOptions options, ActionListener<OpenIndexResponse> listener)Asynchronously opens an index using the Open Index API.CancellableMachineLearningClient. openJobAsync(OpenJobRequest request, RequestOptions options, ActionListener<OpenJobResponse> listener)Opens a Machine Learning Job asynchronously, notifies listener on completion.CancellableCcrClient. pauseAutoFollowPatternAsync(PauseAutoFollowPatternRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously pauses an auto follow pattern.CancellableCcrClient. pauseFollowAsync(PauseFollowRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously instruct a follower index to pause the following of a leader index.voidClusterAdminClient. pendingClusterTasks(PendingClusterTasksRequest request, ActionListener<PendingClusterTasksResponse> listener)Returns a list of the pending cluster tasks, that are scheduled to be executed.protected <Req extends ActionRequest,Resp>
CancellableRestHighLevelClient. performRequestAsync(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<Response,Resp,IOException> responseConverter, ActionListener<Resp> listener, Set<Integer> ignores)Deprecated.If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.protected <Req extends Validatable,Resp>
CancellableRestHighLevelClient. performRequestAsync(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<Response,Resp,IOException> responseConverter, ActionListener<Resp> listener, Set<Integer> ignores)Defines a helper method for asynchronously performing a request.protected <Req extends ActionRequest,Resp>
CancellableRestHighLevelClient. performRequestAsyncAndParseEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser, ActionListener<Resp> listener, Set<Integer> ignores)Deprecated.If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.protected <Req extends Validatable,Resp>
CancellableRestHighLevelClient. performRequestAsyncAndParseEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser, ActionListener<Resp> listener, Set<Integer> ignores)Defines a helper method for asynchronously performing a request.protected <Req extends Validatable,Resp>
CancellableRestHighLevelClient. performRequestAsyncAndParseOptionalEntity(Req request, CheckedFunction<Req,Request,IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser,Resp,IOException> entityParser, ActionListener<Optional<Resp>> listener)Asynchronous request which returns emptyOptionals in the case of 404s or parses entity into an OptionalCancellableMachineLearningClient. postCalendarEventAsync(PostCalendarEventRequest request, RequestOptions options, ActionListener<PostCalendarEventResponse> listener)Creates new events for a a machine learning calendar asynchronously, notifies the listener on completionCancellableMachineLearningClient. postDataAsync(PostDataRequest request, RequestOptions options, ActionListener<PostDataResponse> listener)Sends data to an anomaly detection job for analysis, asynchronouslyCancellableMachineLearningClient. previewDatafeedAsync(PreviewDatafeedRequest request, RequestOptions options, ActionListener<PreviewDatafeedResponse> listener)Previews the given Machine Learning Datafeed asynchronously and notifies the listener on completionCancellableTransformClient. previewTransformAsync(PreviewTransformRequest request, RequestOptions options, ActionListener<PreviewTransformResponse> listener)Preview the result of a transform asynchronously and notifies listener on completionCancellableCcrClient. putAutoFollowPatternAsync(PutAutoFollowPatternRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously stores an auto follow pattern.CancellableMachineLearningClient. putCalendarAsync(PutCalendarRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Create a new machine learning calendar, notifies listener with the created calendarCancellableMachineLearningClient. putCalendarJobAsync(PutCalendarJobRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Adds Machine Learning Job(s) to a calendar, notifies listener when completedCancellableMachineLearningClient. putDatafeedAsync(PutDatafeedRequest request, RequestOptions options, ActionListener<PutDatafeedResponse> listener)Creates a new Machine Learning Datafeed asynchronously and notifies listener on completionCancellableMachineLearningClient. putDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<PutDataFrameAnalyticsResponse> listener)Creates a new Data Frame Analytics config asynchronously and notifies listener upon completionCancellableMachineLearningClient. putFilterAsync(PutFilterRequest request, RequestOptions options, ActionListener<PutFilterResponse> listener)Creates a new Machine Learning Filter asynchronously and notifies listener on completionCancellableCcrClient. putFollowAsync(PutFollowRequest request, RequestOptions options, ActionListener<PutFollowResponse> listener)Asynchronously executes the put follow api, which creates a follower index and then the follower index starts following the leader index.CancellableMachineLearningClient. putJobAsync(PutJobRequest request, RequestOptions options, ActionListener<PutJobResponse> listener)Creates a new Machine Learning Job asynchronously and notifies listener on completionCancellableLicenseClient. putLicenseAsync(PutLicenseRequest request, RequestOptions options, ActionListener<PutLicenseResponse> listener)Asynchronously updates license for the cluster.CancellableIndexLifecycleClient. putLifecyclePolicyAsync(PutLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously create or modify a lifecycle definition.voidIndicesAdminClient. putMapping(PutMappingRequest request, ActionListener<AcknowledgedResponse> listener)Add mapping definition for a type into one or more indices.CancellableIndicesClient. putMappingAsync(PutMappingRequest putMappingRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deprecated.This method uses an old request object which still refers to types, a deprecated feature.CancellableIndicesClient. putMappingAsync(PutMappingRequest putMappingRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously updates the mappings on an index using the Put Mapping API.voidClusterAdminClient. putPipeline(PutPipelineRequest request, ActionListener<AcknowledgedResponse> listener)Stores an ingest pipelineCancellableIngestClient. putPipelineAsync(PutPipelineRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously add a pipeline or update an existing pipeline.CancellableEnrichClient. putPolicyAsync(PutPolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously executes the put policy api, which stores an enrich policy.CancellableSecurityClient. putPrivilegesAsync(PutPrivilegesRequest request, RequestOptions options, ActionListener<PutPrivilegesResponse> listener)Asynchronously create or update application privileges.
See the docs for more.voidClusterAdminClient. putRepository(PutRepositoryRequest request, ActionListener<AcknowledgedResponse> listener)Registers a snapshot repository.CancellableSecurityClient. putRoleAsync(PutRoleRequest request, RequestOptions options, ActionListener<PutRoleResponse> listener)Asynchronously creates or updates a role in the native roles store.CancellableSecurityClient. putRoleMappingAsync(PutRoleMappingRequest request, RequestOptions options, ActionListener<PutRoleMappingResponse> listener)Asynchronously create/update a role mapping.CancellableRollupClient. putRollupJobAsync(PutRollupJobRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously put a rollup job into the cluster See the docs for more.CancellableRestHighLevelClient. putScriptAsync(PutStoredScriptRequest putStoredScriptRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously puts an stored script using the Scripting API.CancellableClusterClient. putSettingsAsync(ClusterUpdateSettingsRequest clusterUpdateSettingsRequest, RequestOptions options, ActionListener<ClusterUpdateSettingsResponse> listener)Asynchronously updates cluster wide specific settings using the Cluster Update Settings API.CancellableIndicesClient. putSettingsAsync(UpdateSettingsRequest updateSettingsRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously updates specific index level settings using the Update Indices Settings API.CancellableIndexLifecycleClient. putSnapshotLifecyclePolicyAsync(PutSnapshotLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously create or modify a snapshot lifecycle definition.voidClusterAdminClient. putStoredScript(PutStoredScriptRequest request, ActionListener<AcknowledgedResponse> listener)Store a script in the cluster statevoidIndicesAdminClient. putTemplate(PutIndexTemplateRequest request, ActionListener<AcknowledgedResponse> listener)Puts an index template.CancellableIndicesClient. putTemplateAsync(PutIndexTemplateRequest putIndexTemplateRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deprecated.This old form of request allows types in mappings.CancellableIndicesClient. putTemplateAsync(PutIndexTemplateRequest putIndexTemplateRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously puts an index template using the Index Templates API.CancellableTransformClient. putTransformAsync(PutTransformRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Creates a new transform asynchronously and notifies listener on completionCancellableSecurityClient. putUserAsync(PutUserRequest request, RequestOptions options, ActionListener<PutUserResponse> listener)Asynchronously create/update a user in the native realm.CancellableWatcherClient. putWatchAsync(PutWatchRequest request, RequestOptions options, ActionListener<PutWatchResponse> listener)Asynchronously put a watch into the cluster See the docs for more.CancellableRestHighLevelClient. rankEvalAsync(RankEvalRequest rankEvalRequest, RequestOptions options, ActionListener<RankEvalResponse> listener)Asynchronously executes a request using the Ranking Evaluation API.voidIndicesAdminClient. recoveries(RecoveryRequest request, ActionListener<RecoveryResponse> listener)Indices recoveriesvoidIndicesAdminClient. refresh(RefreshRequest request, ActionListener<RefreshResponse> listener)Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).CancellableIndicesClient. refreshAsync(RefreshRequest refreshRequest, RequestOptions options, ActionListener<RefreshResponse> listener)Asynchronously refresh one or more indices using the Refresh API.CancellableRestHighLevelClient. reindexAsync(ReindexRequest reindexRequest, RequestOptions options, ActionListener<BulkByScrollResponse> listener)Asynchronously executes a reindex request.CancellableRestHighLevelClient. reindexRethrottleAsync(RethrottleRequest rethrottleRequest, RequestOptions options, ActionListener<ListTasksResponse> listener)Executes a reindex rethrottling request.CancellableIndicesClient. reloadAnalyzersAsync(ReloadAnalyzersRequest request, RequestOptions options, ActionListener<ReloadAnalyzersResponse> listener)Asynchronously calls the _reload_search_analyzers APICancellableIndexLifecycleClient. removeIndexLifecyclePolicyAsync(RemoveIndexLifecyclePolicyRequest request, RequestOptions options, ActionListener<RemoveIndexLifecyclePolicyResponse> listener)Asynchronously remove the index lifecycle policy for an index SeevoidClusterAdminClient. reroute(ClusterRerouteRequest request, ActionListener<ClusterRerouteResponse> listener)Reroutes allocation of shards.voidIndicesAdminClient. resizeIndex(ResizeRequest request, ActionListener<ResizeResponse> listener)Shrinks an index using an explicit request allowing to specify the settings, mappings and aliases of the target index of the index.CancellableSnapshotClient. restoreAsync(RestoreSnapshotRequest restoreSnapshotRequest, RequestOptions options, ActionListener<RestoreSnapshotResponse> listener)Asynchronously restores a snapshot.voidClusterAdminClient. restoreSnapshot(RestoreSnapshotRequest request, ActionListener<RestoreSnapshotResponse> listener)Restores a snapshot.CancellableCcrClient. resumeAutoFollowPatternAsync(ResumeAutoFollowPatternRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously resumes an auto follow pattern.CancellableCcrClient. resumeFollowAsync(ResumeFollowRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously instruct a follower index to resume the following of a leader index.CancellableIndexLifecycleClient. retryLifecyclePolicyAsync(RetryLifecyclePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously retry the lifecycle step for given indices SeeCancellableMachineLearningClient. revertModelSnapshotAsync(RevertModelSnapshotRequest request, RequestOptions options, ActionListener<RevertModelSnapshotResponse> listener)Reverts to a particular Machine Learning Model Snapshot asynchronously and notifies the listener on completionCancellableIndicesClient. rolloverAsync(RolloverRequest rolloverRequest, RequestOptions options, ActionListener<RolloverResponse> listener)Deprecated.This method uses deprecated request and response objects.CancellableIndicesClient. rolloverAsync(RolloverRequest rolloverRequest, RequestOptions options, ActionListener<RolloverResponse> listener)Asynchronously rolls over an index using the Rollover Index API.voidIndicesAdminClient. rolloverIndex(RolloverRequest request, ActionListener<RolloverResponse> listener)Swaps the index pointed to by an alias given all provided conditions are satisfiedCancellableRestHighLevelClient. scrollAsync(SearchScrollRequest searchScrollRequest, RequestOptions options, ActionListener<SearchResponse> listener)Asynchronously executes a search using the Search Scroll API.voidClient. search(SearchRequest request, ActionListener<SearchResponse> listener)Search across one or more indices and one or more types with a query.CancellableRestHighLevelClient. searchAsync(SearchRequest searchRequest, RequestOptions options, ActionListener<SearchResponse> listener)Asynchronously executes a search using the Search API.CancellableRollupClient. searchAsync(SearchRequest request, RequestOptions options, ActionListener<SearchResponse> listener)Perform a rollup search.voidClient. searchScroll(SearchScrollRequest request, ActionListener<SearchResponse> listener)A search scroll request to continue searching a previous scrollable search request.CancellableRestHighLevelClient. searchScrollAsync(SearchScrollRequest searchScrollRequest, RequestOptions options, ActionListener<SearchResponse> listener)Deprecated.voidClusterAdminClient. searchShards(ClusterSearchShardsRequest request, ActionListener<ClusterSearchShardsResponse> listener)Returns list of shards the given search would be executed on.CancellableRestHighLevelClient. searchTemplateAsync(SearchTemplateRequest searchTemplateRequest, RequestOptions options, ActionListener<SearchTemplateResponse> listener)Asynchronously executes a request using the Search Template API.voidIndicesAdminClient. segments(IndicesSegmentsRequest request, ActionListener<IndicesSegmentResponse> listener)The segments of one or more indices.CancellableMachineLearningClient. setUpgradeModeAsync(SetUpgradeModeRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Sets the ML cluster setting upgrade_mode asynchronouslyvoidIndicesAdminClient. shardStores(IndicesShardStoresRequest request, ActionListener<IndicesShardStoresResponse> listener)The shard stores info of one or more indices.CancellableIndicesClient. shrinkAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)Asynchronously shrinks an index using the Shrink index API.CancellableIngestClient. simulateAsync(SimulatePipelineRequest request, RequestOptions options, ActionListener<SimulatePipelineResponse> listener)Asynchronously simulate a pipeline on a set of documents provided in the requestvoidClusterAdminClient. simulatePipeline(SimulatePipelineRequest request, ActionListener<SimulatePipelineResponse> listener)Simulates an ingest pipelinevoidClusterAdminClient. snapshotsStatus(SnapshotsStatusRequest request, ActionListener<SnapshotsStatusResponse> listener)Get snapshot status.CancellableIndicesClient. splitAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)Asynchronously splits an index using the Split Index API.CancellableLicenseClient. startBasicAsync(StartBasicRequest request, RequestOptions options, ActionListener<StartBasicResponse> listener)Asynchronously initiates an indefinite basic license.CancellableMachineLearningClient. startDatafeedAsync(StartDatafeedRequest request, RequestOptions options, ActionListener<StartDatafeedResponse> listener)Starts the given Machine Learning Datafeed asynchronously and notifies the listener on completionCancellableMachineLearningClient. startDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Starts Data Frame Analytics asynchronously and notifies listener upon completionCancellableIndexLifecycleClient. startILMAsync(StartILMRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously start the Index Lifecycle Management feature.CancellableRollupClient. startRollupJobAsync(StartRollupJobRequest request, RequestOptions options, ActionListener<StartRollupJobResponse> listener)Asynchronously start a rollup job See the docs for more.CancellableIndexLifecycleClient. startSLMAsync(StartSLMRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously start the Snapshot Lifecycle Management feature.CancellableTransformClient. startTransformAsync(StartTransformRequest request, RequestOptions options, ActionListener<StartTransformResponse> listener)Start a transform asynchronously and notifies listener on completionCancellableLicenseClient. startTrialAsync(StartTrialRequest request, RequestOptions options, ActionListener<StartTrialResponse> listener)Asynchronously starts a trial license on the cluster.CancellableWatcherClient. startWatchServiceAsync(StartWatchServiceRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously start the watch service See the docs for more.voidClusterAdminClient. state(ClusterStateRequest request, ActionListener<ClusterStateResponse> listener)The state of the cluster.voidIndicesAdminClient. stats(IndicesStatsRequest request, ActionListener<IndicesStatsResponse> listener)Indices stats.CancellableEnrichClient. statsAsync(StatsRequest request, RequestOptions options, ActionListener<StatsResponse> listener)Asynchronously executes the enrich stats api, which retrieves enrich related stats.CancellableSnapshotClient. statusAsync(SnapshotsStatusRequest snapshotsStatusRequest, RequestOptions options, ActionListener<SnapshotsStatusResponse> listener)Asynchronously gets the status of requested snapshots.CancellableMachineLearningClient. stopDatafeedAsync(StopDatafeedRequest request, RequestOptions options, ActionListener<StopDatafeedResponse> listener)Stops the given Machine Learning Datafeed asynchronously and notifies the listener on completionCancellableMachineLearningClient. stopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<StopDataFrameAnalyticsResponse> listener)Stops Data Frame Analytics asynchronously and notifies listener upon completionCancellableIndexLifecycleClient. stopILMAsync(StopILMRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously stop the Index Lifecycle Management feature.CancellableRollupClient. stopRollupJobAsync(StopRollupJobRequest request, RequestOptions options, ActionListener<StopRollupJobResponse> listener)Asynchronously stop a rollup job See the docs for more.CancellableIndexLifecycleClient. stopSLMAsync(StopSLMRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously stop the Snapshot Lifecycle Management feature.CancellableTransformClient. stopTransformAsync(StopTransformRequest request, RequestOptions options, ActionListener<StopTransformResponse> listener)Stop a transform asynchronously and notifies listener on completionCancellableWatcherClient. stopWatchServiceAsync(StopWatchServiceRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously stop the watch service See the docs for more.voidIndicesAdminClient. syncedFlush(SyncedFlushRequest request, ActionListener<SyncedFlushResponse> listener)Explicitly sync flush one or more indices (write sync id to shards for faster recovery).voidClient. termVectors(TermVectorsRequest request, ActionListener<TermVectorsResponse> listener)An action that returns the term vectors for a specific document.CancellableRestHighLevelClient. termvectorsAsync(TermVectorsRequest request, RequestOptions options, ActionListener<TermVectorsResponse> listener)Asynchronously calls the Term Vectors API See Term Vectors API on elastic.covoidIndicesAdminClient. typesExists(TypesExistsRequest request, ActionListener<TypesExistsResponse> listener)Deprecated.Types are deprecated and are in the process of being removed.CancellableCcrClient. unfollowAsync(UnfollowRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously instructs a follower index to unfollow and become a regular index.CancellableIndicesClient. unfreezeAsync(UnfreezeIndexRequest request, RequestOptions options, ActionListener<ShardsAcknowledgedResponse> listener)Asynchronously calls the _unfreeze APIvoidClient. update(UpdateRequest request, ActionListener<UpdateResponse> listener)Updates a document based on a script.CancellableIndicesClient. updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously updates aliases using the Index Aliases API.CancellableRestHighLevelClient. updateAsync(UpdateRequest updateRequest, RequestOptions options, ActionListener<UpdateResponse> listener)Asynchronously updates a document using the Update API.CancellableRestHighLevelClient. updateByQueryAsync(UpdateByQueryRequest updateByQueryRequest, RequestOptions options, ActionListener<BulkByScrollResponse> listener)Asynchronously executes an update by query request.CancellableRestHighLevelClient. updateByQueryRethrottleAsync(RethrottleRequest rethrottleRequest, RequestOptions options, ActionListener<ListTasksResponse> listener)Asynchronously execute an update by query rethrottle request.CancellableMachineLearningClient. updateDatafeedAsync(UpdateDatafeedRequest request, RequestOptions options, ActionListener<PutDatafeedResponse> listener)Updates a Machine Learning Datafeed asynchronously and notifies listener on completionCancellableMachineLearningClient. updateFilterAsync(UpdateFilterRequest request, RequestOptions options, ActionListener<PutFilterResponse> listener)Updates a Machine Learning Filter asynchronously and notifies listener on completionCancellableMachineLearningClient. updateJobAsync(UpdateJobRequest request, RequestOptions options, ActionListener<PutJobResponse> listener)Updates a Machine LearningJobasynchronouslyCancellableMachineLearningClient. updateModelSnapshotAsync(UpdateModelSnapshotRequest request, RequestOptions options, ActionListener<UpdateModelSnapshotResponse> listener)Updates a snapshot for a Machine Learning Job, notifies listener once the requested snapshots are retrieved.voidClusterAdminClient. updateSettings(ClusterUpdateSettingsRequest request, ActionListener<ClusterUpdateSettingsResponse> listener)Update settings in the cluster.voidIndicesAdminClient. updateSettings(UpdateSettingsRequest request, ActionListener<AcknowledgedResponse> listener)Updates settings of one or more indices.CancellableTransformClient. updateTransformAsync(UpdateTransformRequest request, RequestOptions options, ActionListener<UpdateTransformResponse> listener)Updates an existing transform asynchronously and notifies listener on completionvoidIndicesAdminClient. upgrade(UpgradeRequest request, ActionListener<UpgradeResponse> listener)Explicitly upgrade one or more indicesvoidIndicesAdminClient. upgradeStatus(UpgradeStatusRequest request, ActionListener<UpgradeStatusResponse> listener)Check upgrade status of one or more indicesCancellableXPackClient. usageAsync(XPackUsageRequest request, RequestOptions options, ActionListener<XPackUsageResponse> listener)Asynchronously fetch usage information about X-Pack features from the cluster.voidIndicesAdminClient. validateQuery(ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener)Validate a query for correctness.CancellableIndicesClient. validateQueryAsync(ValidateQueryRequest validateQueryRequest, RequestOptions options, ActionListener<ValidateQueryResponse> listener)Asynchronously validate a potentially expensive query without executing it.voidClusterAdminClient. verifyRepository(VerifyRepositoryRequest request, ActionListener<VerifyRepositoryResponse> listener)Verifies a repository.CancellableSnapshotClient. verifyRepositoryAsync(VerifyRepositoryRequest verifyRepositoryRequest, RequestOptions options, ActionListener<VerifyRepositoryResponse> listener)Asynchronously verifies a snapshot repository.CancellableWatcherClient. watcherStatsAsync(WatcherStatsRequest request, RequestOptions options, ActionListener<WatcherStatsResponse> listener)Asynchronously get the watcher stats See the docs for more. -
Uses of ActionListener in org.elasticsearch.client.node
Methods in org.elasticsearch.client.node with parameters of type ActionListener Modifier and Type Method Description <Request extends ActionRequest,Response extends ActionResponse>
voidNodeClient. doExecute(ActionType<Response> action, Request request, ActionListener<Response> listener)<Request extends ActionRequest,Response extends ActionResponse>
TaskNodeClient. executeLocally(ActionType<Response> action, Request request, ActionListener<Response> listener) -
Uses of ActionListener in org.elasticsearch.client.support
Methods in org.elasticsearch.client.support with parameters of type ActionListener Modifier and Type Method Description voidAbstractClient. bulk(BulkRequest request, ActionListener<BulkResponse> listener)voidAbstractClient. clearScroll(ClearScrollRequest request, ActionListener<ClearScrollResponse> listener)voidAbstractClient. delete(DeleteRequest request, ActionListener<DeleteResponse> listener)protected abstract <Request extends ActionRequest,Response extends ActionResponse>
voidAbstractClient. doExecute(ActionType<Response> action, Request request, ActionListener<Response> listener)<Request extends ActionRequest,Response extends ActionResponse>
voidAbstractClient. execute(ActionType<Response> action, Request request, ActionListener<Response> listener)This is the single execution point of *all* clients.voidAbstractClient. explain(ExplainRequest request, ActionListener<ExplainResponse> listener)voidAbstractClient. fieldCaps(FieldCapabilitiesRequest request, ActionListener<FieldCapabilitiesResponse> listener)voidAbstractClient. get(GetRequest request, ActionListener<GetResponse> listener)voidAbstractClient. index(IndexRequest request, ActionListener<IndexResponse> listener)voidAbstractClient. multiGet(MultiGetRequest request, ActionListener<MultiGetResponse> listener)voidAbstractClient. multiSearch(MultiSearchRequest request, ActionListener<MultiSearchResponse> listener)voidAbstractClient. multiTermVectors(MultiTermVectorsRequest request, ActionListener<MultiTermVectorsResponse> listener)voidAbstractClient. search(SearchRequest request, ActionListener<SearchResponse> listener)voidAbstractClient. searchScroll(SearchScrollRequest request, ActionListener<SearchResponse> listener)voidAbstractClient. termVectors(TermVectorsRequest request, ActionListener<TermVectorsResponse> listener)voidAbstractClient. update(UpdateRequest request, ActionListener<UpdateResponse> listener) -
Uses of ActionListener in org.elasticsearch.client.transport
Methods in org.elasticsearch.client.transport with parameters of type ActionListener Modifier and Type Method Description protected <Request extends ActionRequest,Response extends ActionResponse>
voidTransportClient. doExecute(ActionType<Response> action, Request request, ActionListener<Response> listener)Deprecated. -
Uses of ActionListener in org.elasticsearch.cluster
Methods in org.elasticsearch.cluster with parameters of type ActionListener Modifier and Type Method Description protected CountDownLatchInternalClusterInfoService. updateIndicesStats(ActionListener<IndicesStatsResponse> listener)Retrieve the latest indices stats, calling the listener when completeprotected CountDownLatchInternalClusterInfoService. updateNodeStats(ActionListener<NodesStatsResponse> listener)Retrieve the latest nodes stats, calling the listener when completeConstructors in org.elasticsearch.cluster with parameters of type ActionListener Constructor Description AckedClusterStateUpdateTask(AckedRequest request, ActionListener<Response> listener)AckedClusterStateUpdateTask(Priority priority, AckedRequest request, ActionListener<Response> listener) -
Uses of ActionListener in org.elasticsearch.cluster.action.index
Methods in org.elasticsearch.cluster.action.index with parameters of type ActionListener Modifier and Type Method Description voidMappingUpdatedAction. updateMappingOnMaster(Index index, String type, Mapping mappingUpdate, ActionListener<Void> listener)Update mappings on the master node, waiting for the change to be committed, but not for the mapping update to be applied on all nodes. -
Uses of ActionListener in org.elasticsearch.cluster.action.shard
Methods in org.elasticsearch.cluster.action.shard with parameters of type ActionListener Modifier and Type Method Description voidShardStateAction. localShardFailed(ShardRouting shardRouting, String message, Exception failure, ActionListener<Void> listener)Send a shard failed request to the master node to update the cluster state when a shard on the local node failed.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. remoteShardFailed(ShardId shardId, String allocationId, long primaryTerm, boolean markAsStale, String message, Exception failure, ActionListener<Void> listener)Send a shard failed request to the master node to update the cluster state with the failure of a shard on another node.voidShardStateAction. shardStarted(ShardRouting shardRouting, long primaryTerm, String message, ActionListener<Void> listener)voidShardStateAction. shardStarted(ShardRouting shardRouting, long primaryTerm, String message, ActionListener<Void> listener, ClusterState currentState)protected voidShardStateAction. waitForNewMasterAndRetry(String actionName, ClusterStateObserver observer, TransportRequest request, ActionListener<Void> listener, Predicate<ClusterState> changePredicate) -
Uses of ActionListener in org.elasticsearch.cluster.coordination
Methods in org.elasticsearch.cluster.coordination with parameters of type ActionListener Modifier and Type Method Description voidClusterStatePublisher. publish(ClusterChangedEvent clusterChangedEvent, ActionListener<Void> publishListener, ClusterStatePublisher.AckListener ackListener)Publish all the changes to the cluster from the master (can be called just by the master).voidCoordinator. publish(ClusterChangedEvent clusterChangedEvent, ActionListener<Void> publishListener, ClusterStatePublisher.AckListener ackListener)protected abstract voidPublication. sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommit, ActionListener<TransportResponse.Empty> responseActionListener)voidPublicationTransportHandler.PublicationContext. sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommitRequest, ActionListener<TransportResponse.Empty> responseActionListener)protected abstract voidPublication. sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> responseActionListener)voidPublicationTransportHandler.PublicationContext. sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> responseActionListener)voidJoinHelper. sendValidateJoinRequest(DiscoveryNode node, ClusterState state, ActionListener<TransportResponse.Empty> listener)Constructor parameters in org.elasticsearch.cluster.coordination with type arguments of type ActionListener Constructor Description PublicationTransportHandler(TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, Function<PublishRequest,PublishWithJoinResponse> handlePublishRequest, BiConsumer<ApplyCommitRequest,ActionListener<Void>> handleApplyCommit) -
Uses of ActionListener in org.elasticsearch.cluster.metadata
-
Uses of ActionListener in org.elasticsearch.cluster.routing
Methods in org.elasticsearch.cluster.routing with parameters of type ActionListener Modifier and Type Method Description voidBatchedRerouteService. reroute(String reason, Priority priority, ActionListener<Void> listener)Initiates a reroute.voidRerouteService. reroute(String reason, Priority priority, ActionListener<Void> listener)Schedule a cluster reroute. -
Uses of ActionListener in org.elasticsearch.cluster.routing.allocation
Methods in org.elasticsearch.cluster.routing.allocation with parameters of type ActionListener Modifier and Type Method Description protected voidDiskThresholdMonitor. updateIndicesReadOnly(Set<String> indicesToUpdate, ActionListener<Void> listener, boolean readOnly) -
Uses of ActionListener in org.elasticsearch.common
Methods in org.elasticsearch.common with parameters of type ActionListener Modifier and Type Method Description voidAsyncBiFunction. apply(T t, U u, ActionListener<C> listener) -
Uses of ActionListener in org.elasticsearch.common.network
Methods in org.elasticsearch.common.network with parameters of type ActionListener Modifier and Type Method Description voidCloseableChannel. addCloseListener(ActionListener<Void> listener)Adds a listener that will be executed when the channel is closed. -
Uses of ActionListener in org.elasticsearch.common.util.concurrent
Classes in org.elasticsearch.common.util.concurrent that implement ActionListener Modifier and Type Class Description classListenableFuture<V>A future implementation that allows for the result to be passed to listeners waiting for notification.Methods in org.elasticsearch.common.util.concurrent with parameters of type ActionListener Modifier and Type Method Description voidListenableFuture. addListener(ActionListener<V> listener, ExecutorService executor)Adds a listener to this future.voidListenableFuture. addListener(ActionListener<V> listener, ExecutorService executor, ThreadContext threadContext)Adds a listener to this future. -
Uses of ActionListener in org.elasticsearch.discovery
Methods in org.elasticsearch.discovery with parameters of type ActionListener Modifier and Type Method Description voidHandshakingTransportAddressConnector. connectToRemoteMasterNode(TransportAddress transportAddress, ActionListener<DiscoveryNode> listener)voidPeerFinder.TransportAddressConnector. connectToRemoteMasterNode(TransportAddress transportAddress, ActionListener<DiscoveryNode> listener)Identify the node at the given address and, if it is a master node and not the local node then establish a full connection to it. -
Uses of ActionListener in org.elasticsearch.discovery.zen
Methods in org.elasticsearch.discovery.zen with parameters of type ActionListener Modifier and Type Method Description voidPublishClusterStateAction.IncomingClusterStateListener. onClusterStateCommitted(String stateUUID, ActionListener<Void> processedListener)called when a cluster state has been committed and is ready to be processedvoidZenDiscovery. onClusterStateCommitted(String stateUUID, ActionListener<Void> processedListener)voidZenDiscovery. publish(ClusterChangedEvent clusterChangedEvent, ActionListener<Void> publishListener, ClusterStatePublisher.AckListener ackListener) -
Uses of ActionListener in org.elasticsearch.gateway
Methods in org.elasticsearch.gateway with parameters of type ActionListener Modifier and Type Method Description voidLocalAllocateDangledIndices. allocateDangled(Collection<IndexMetaData> indices, ActionListener<LocalAllocateDangledIndices.AllocateDangledResponse> listener)voidAsyncShardFetch.Lister. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<NodesResponse> listener)voidTransportNodesListGatewayStartedShards. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards> listener) -
Uses of ActionListener in org.elasticsearch.http
Methods in org.elasticsearch.http with parameters of type ActionListener Modifier and Type Method Description voidHttpChannel. sendResponse(HttpResponse response, ActionListener<Void> listener)Sends an http response to the channel. -
Uses of ActionListener in org.elasticsearch.index.query
Methods in org.elasticsearch.index.query with parameters of type ActionListener Modifier and Type Method Description voidQueryRewriteContext. executeAsyncActions(ActionListener listener)Executes all registered async actions and notifies the listener once it's done.voidQueryShardContext. executeAsyncActions(ActionListener listener)static <T extends Rewriteable<T>>
voidRewriteable. rewriteAndFetch(T original, QueryRewriteContext context, ActionListener<T> rewriteResponse)Rewrites the given rewriteable and fetches pending async tasks for each round before rewriting again.static <T extends Rewriteable<T>>
voidRewriteable. rewriteAndFetch(T original, QueryRewriteContext context, ActionListener<T> rewriteResponse, int iteration)Rewrites the given rewriteable and fetches pending async tasks for each round before rewriting again.Method parameters in org.elasticsearch.index.query with type arguments of type ActionListener Modifier and Type Method Description voidQueryRewriteContext. registerAsyncAction(BiConsumer<Client,ActionListener<?>> asyncAction)Registers an async action that must be executed before the next rewrite round in order to make progress.voidQueryShardContext. registerAsyncAction(BiConsumer<Client,ActionListener<?>> asyncAction) -
Uses of ActionListener in org.elasticsearch.index.reindex
Subinterfaces of ActionListener in org.elasticsearch.index.reindex Modifier and Type Interface Description interfaceRejectAwareActionListener<T>Methods in org.elasticsearch.index.reindex with parameters of type ActionListener Modifier and Type Method Description voidLeaderBulkByScrollTaskState. onSliceFailure(ActionListener<BulkByScrollResponse> listener, int sliceId, Exception e)Record a failure from a slice and respond to the listener if the request is finished.voidLeaderBulkByScrollTaskState. onSliceResponse(ActionListener<BulkByScrollResponse> listener, int sliceId, BulkByScrollResponse response)Record a response from a slice and respond to the listener if the request is finished. -
Uses of ActionListener in org.elasticsearch.index.seqno
Methods in org.elasticsearch.index.seqno with parameters of type ActionListener Modifier and Type Method Description RetentionLeaseReplicationTracker. addPeerRecoveryRetentionLease(String nodeId, long globalCheckpoint, ActionListener<ReplicationResponse> listener)Retention leases for peer recovery have sourceReplicationTracker.PEER_RECOVERY_RETENTION_LEASE_SOURCE, a lease ID containing the persistent node ID calculated byReplicationTracker.getPeerRecoveryRetentionLeaseId(java.lang.String), and retain operations with sequence numbers strictly greater than the given global checkpoint.RetentionLeaseReplicationTracker. addRetentionLease(String id, long retainingSequenceNumber, String source, ActionListener<ReplicationResponse> listener)Adds a new retention lease.RetentionLeaseReplicationTracker. cloneLocalPeerRecoveryRetentionLease(String nodeId, ActionListener<ReplicationResponse> listener)voidReplicationTracker. createMissingPeerRecoveryRetentionLeases(ActionListener<Void> listener)Create any required peer-recovery retention leases that do not currently exist because we just did a rolling upgrade from a version prior toVersion.V_7_4_0that does not create peer-recovery retention leases.voidReplicationTracker. removePeerRecoveryRetentionLease(String nodeId, ActionListener<ReplicationResponse> listener)voidReplicationTracker. removeRetentionLease(String id, ActionListener<ReplicationResponse> listener)Removes an existing retention lease.protected voidGlobalCheckpointSyncAction. shardOperationOnPrimary(GlobalCheckpointSyncAction.Request request, IndexShard indexShard, ActionListener<TransportReplicationAction.PrimaryResult<GlobalCheckpointSyncAction.Request,ReplicationResponse>> listener)protected voidRetentionLeaseBackgroundSyncAction. shardOperationOnPrimary(RetentionLeaseBackgroundSyncAction.Request request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<RetentionLeaseBackgroundSyncAction.Request,ReplicationResponse>> listener)protected voidRetentionLeaseSyncAction. shardOperationOnPrimary(RetentionLeaseSyncAction.Request request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<RetentionLeaseSyncAction.Request,RetentionLeaseSyncAction.Response>> listener)voidRetentionLeaseSyncAction. sync(ShardId shardId, RetentionLeases retentionLeases, ActionListener<ReplicationResponse> listener)Sync the specified retention leases for the specified shard.voidRetentionLeaseSyncer. sync(ShardId shardId, RetentionLeases retentionLeases, ActionListener<ReplicationResponse> listener)Represents a method that when invoked syncs retention leases to replica shards after a new retention lease is added on the primary.Constructor parameters in org.elasticsearch.index.seqno with type arguments of type ActionListener Constructor Description ReplicationTracker(ShardId shardId, String allocationId, IndexSettings indexSettings, long operationPrimaryTerm, long globalCheckpoint, LongConsumer onGlobalCheckpointUpdated, LongSupplier currentTimeMillisSupplier, BiConsumer<RetentionLeases,ActionListener<ReplicationResponse>> onSyncRetentionLeases, Supplier<SafeCommitInfo> safeCommitInfoSupplier)Initialize the global checkpoint service. -
Uses of ActionListener in org.elasticsearch.index.shard
Methods in org.elasticsearch.index.shard with parameters of type ActionListener Modifier and Type Method Description voidIndexShard. acquireAllPrimaryOperationsPermits(ActionListener<Releasable> onPermitAcquired, TimeValue timeout)Acquire all primary operation permits.voidIndexShard. acquireAllReplicaOperationsPermits(long opPrimaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes, ActionListener<Releasable> onPermitAcquired, TimeValue timeout)Acquire all replica operation permits whenever the shard is ready for indexing (seeIndexShard.acquireAllPrimaryOperationsPermits(ActionListener, TimeValue).voidIndexShard. acquirePrimaryOperationPermit(ActionListener<Releasable> onPermitAcquired, String executorOnDelay, Object debugInfo)Acquire a primary operation permit whenever the shard is ready for indexing.voidIndexShard. acquireReplicaOperationPermit(long opPrimaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes, ActionListener<Releasable> onPermitAcquired, String executorOnDelay, Object debugInfo)Acquire a replica operation permit whenever the shard is ready for indexing (seeIndexShard.acquirePrimaryOperationPermit(ActionListener, String, Object)).RetentionLeaseIndexShard. addPeerRecoveryRetentionLease(String nodeId, long globalCheckpoint, ActionListener<ReplicationResponse> listener)RetentionLeaseIndexShard. addRetentionLease(String id, long retainingSequenceNumber, String source, ActionListener<ReplicationResponse> listener)Adds a new retention lease.RetentionLeaseIndexShard. cloneLocalPeerRecoveryRetentionLease(String nodeId, ActionListener<ReplicationResponse> listener)voidIndexShard. removePeerRecoveryRetentionLease(String nodeId, ActionListener<ReplicationResponse> listener)voidIndexShard. removeRetentionLease(String id, ActionListener<ReplicationResponse> listener)Removes an existing retention lease.voidPrimaryReplicaSyncer. resync(IndexShard indexShard, ActionListener<PrimaryReplicaSyncer.ResyncTask> listener)voidPrimaryReplicaSyncer.SyncAction. sync(ResyncReplicationRequest request, Task parentTask, String primaryAllocationId, long primaryTerm, ActionListener<ResyncReplicationResponse> listener)Method parameters in org.elasticsearch.index.shard with type arguments of type ActionListener Modifier and Type Method Description voidIndexShard. updateShardState(ShardRouting newRouting, long newPrimaryTerm, BiConsumer<IndexShard,ActionListener<PrimaryReplicaSyncer.ResyncTask>> primaryReplicaSyncer, long applyingClusterStateVersion, Set<String> inSyncAllocationIds, IndexShardRoutingTable routingTable) -
Uses of ActionListener in org.elasticsearch.indices.cluster
Method parameters in org.elasticsearch.indices.cluster with type arguments of type ActionListener Modifier and Type Method Description voidIndicesClusterStateService.Shard. updateShardState(ShardRouting shardRouting, long primaryTerm, BiConsumer<IndexShard,ActionListener<PrimaryReplicaSyncer.ResyncTask>> primaryReplicaSyncer, long applyingClusterStateVersion, Set<String> inSyncAllocationIds, IndexShardRoutingTable routingTable)Updates the shard state based on an incoming cluster state: - Updates and persists the new routing value. -
Uses of ActionListener in org.elasticsearch.indices.flush
Methods in org.elasticsearch.indices.flush with parameters of type ActionListener Modifier and Type Method Description voidSyncedFlushService. attemptSyncedFlush(String[] aliasesOrIndices, IndicesOptions indicesOptions, ActionListener<SyncedFlushResponse> listener)a utility method to perform a synced flush for all shards of multiple indices.voidSyncedFlushService. attemptSyncedFlush(ShardId shardId, ActionListener<ShardsSyncedFlushResult> actionListener)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 ActionListener in org.elasticsearch.indices.recovery
Methods in org.elasticsearch.indices.recovery with parameters of type ActionListener Modifier and Type Method Description voidRecoveryTarget. cleanFiles(int totalTranslogOps, long globalCheckpoint, Store.MetadataSnapshot sourceMetaData, ActionListener<Void> listener)voidRecoveryTargetHandler. cleanFiles(int totalTranslogOps, long globalCheckpoint, Store.MetadataSnapshot sourceMetaData, ActionListener<Void> listener)After all source files has been sent over, this command is sent to the target so it can clean any local files that are not part of the source storevoidRemoteRecoveryTargetHandler. cleanFiles(int totalTranslogOps, long globalCheckpoint, Store.MetadataSnapshot sourceMetaData, ActionListener<Void> listener)voidRecoveryTarget. finalizeRecovery(long globalCheckpoint, long trimAboveSeqNo, ActionListener<Void> listener)voidRecoveryTargetHandler. finalizeRecovery(long globalCheckpoint, long trimAboveSeqNo, ActionListener<Void> listener)The finalize request refreshes the engine now that new segments are available, enables garbage collection of tombstone files, updates the global checkpoint.voidRemoteRecoveryTargetHandler. finalizeRecovery(long globalCheckpoint, long trimAboveSeqNo, ActionListener<Void> listener)voidRecoveryTarget. indexTranslogOperations(List<Translog.Operation> operations, int totalTranslogOps, long maxSeenAutoIdTimestampOnPrimary, long maxSeqNoOfDeletesOrUpdatesOnPrimary, RetentionLeases retentionLeases, long mappingVersionOnPrimary, ActionListener<Long> listener)voidRecoveryTargetHandler. indexTranslogOperations(List<Translog.Operation> operations, int totalTranslogOps, long maxSeenAutoIdTimestampOnPrimary, long maxSeqNoOfUpdatesOrDeletesOnPrimary, RetentionLeases retentionLeases, long mappingVersionOnPrimary, ActionListener<Long> listener)Index a set of translog operations on the targetvoidRemoteRecoveryTargetHandler. indexTranslogOperations(List<Translog.Operation> operations, int totalTranslogOps, long maxSeenAutoIdTimestampOnPrimary, long maxSeqNoOfDeletesOrUpdatesOnPrimary, RetentionLeases retentionLeases, long mappingVersionOnPrimary, ActionListener<Long> listener)voidRecoveryTarget. prepareForTranslogOperations(int totalTranslogOps, ActionListener<Void> listener)Implementation ofRecoveryTargetHandlervoidRecoveryTargetHandler. prepareForTranslogOperations(int totalTranslogOps, ActionListener<Void> listener)Prepares the target to receive translog operations, after all file have been copiedvoidRemoteRecoveryTargetHandler. prepareForTranslogOperations(int totalTranslogOps, ActionListener<Void> listener)voidRecoveryTarget. receiveFileInfo(List<String> phase1FileNames, List<Long> phase1FileSizes, List<String> phase1ExistingFileNames, List<Long> phase1ExistingFileSizes, int totalTranslogOps, ActionListener<Void> listener)voidRecoveryTargetHandler. receiveFileInfo(List<String> phase1FileNames, List<Long> phase1FileSizes, List<String> phase1ExistingFileNames, List<Long> phase1ExistingFileSizes, int totalTranslogOps, ActionListener<Void> listener)Notifies the target of the files it is going to receivevoidRemoteRecoveryTargetHandler. receiveFileInfo(List<String> phase1FileNames, List<Long> phase1FileSizes, List<String> phase1ExistingFileNames, List<Long> phase1ExistingFileSizes, int totalTranslogOps, ActionListener<Void> listener)voidRecoverySourceHandler. recoverToTarget(ActionListener<RecoveryResponse> listener)performs the recovery from the local engine to the targetvoidRecoveryTarget. writeFileChunk(StoreFileMetaData fileMetaData, long position, BytesReference content, boolean lastChunk, int totalTranslogOps, ActionListener<Void> listener)voidRecoveryTargetHandler. writeFileChunk(StoreFileMetaData fileMetaData, long position, BytesReference content, boolean lastChunk, int totalTranslogOps, ActionListener<Void> listener)writes a partial file chunk to the target storevoidRemoteRecoveryTargetHandler. writeFileChunk(StoreFileMetaData fileMetaData, long position, BytesReference content, boolean lastChunk, int totalTranslogOps, ActionListener<Void> listener) -
Uses of ActionListener in org.elasticsearch.indices.store
Methods in org.elasticsearch.indices.store with parameters of type ActionListener Modifier and Type Method Description voidTransportNodesListShardStoreMetaData. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData> listener) -
Uses of ActionListener in org.elasticsearch.ingest
Methods in org.elasticsearch.ingest with parameters of type ActionListener Modifier and Type Method Description voidIngestService. delete(DeletePipelineRequest request, ActionListener<AcknowledgedResponse> listener)Deletes the pipeline specified by id in the request.voidIngestService. putPipeline(Map<DiscoveryNode,IngestInfo> ingestInfos, PutPipelineRequest request, ActionListener<AcknowledgedResponse> listener)Stores the specified pipeline definition in the request. -
Uses of ActionListener in org.elasticsearch.persistent
Subinterfaces of ActionListener in org.elasticsearch.persistent Modifier and Type Interface Description static interfacePersistentTasksService.WaitForPersistentTaskListener<P extends PersistentTaskParams>Methods in org.elasticsearch.persistent with parameters of type ActionListener Modifier and Type Method Description voidPersistentTasksClusterService. completePersistentTask(String id, long allocationId, Exception failure, ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener)Restarts a record about a running persistent task from cluster state<Params extends PersistentTaskParams>
voidPersistentTasksClusterService. createPersistentTask(String taskId, String taskName, Params taskParams, ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener)Creates a new persistent task on master nodeprotected 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)voidPersistentTasksClusterService. removePersistentTask(String id, ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener)Removes the persistent taskvoidPersistentTasksService. sendCompletionRequest(String taskId, long taskAllocationId, Exception taskFailure, ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener)Notifies the master node about the completion of a persistent task.voidPersistentTasksService. sendRemoveRequest(String taskId, ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener)Notifies the master node to remove a persistent task from the cluster state<Params extends PersistentTaskParams>
voidPersistentTasksService. sendStartRequest(String taskId, String taskName, Params taskParams, ActionListener<PersistentTasksCustomMetaData.PersistentTask<Params>> listener)Notifies the master node to create new persistent task and to assign it to a node.voidPersistentTasksClusterService. unassignPersistentTask(String taskId, long taskAllocationId, String reason, ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener)This unassigns a task from any node, i.e.voidAllocatedPersistentTask. updatePersistentTaskState(PersistentTaskState state, ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener)Updates the persistent state for the corresponding persistent task.voidPersistentTasksClusterService. updatePersistentTaskState(String taskId, long taskAllocationId, PersistentTaskState taskState, ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener)Update the state of a persistent taskvoidPersistentTasksService. waitForPersistentTasksCondition(Predicate<PersistentTasksCustomMetaData> predicate, TimeValue timeout, ActionListener<Boolean> listener)Waits for persistent tasks to comply with a given predicate, then call back the listener accordingly. -
Uses of ActionListener in org.elasticsearch.repositories
Methods in org.elasticsearch.repositories with parameters of type ActionListener Modifier and Type Method Description voidRepository. deleteSnapshot(SnapshotId snapshotId, long repositoryStateId, ActionListener<Void> listener)Deletes snapshotvoidRepository. finalizeSnapshot(SnapshotId snapshotId, List<IndexId> indices, long startTime, String failure, int totalShards, List<SnapshotShardFailure> shardFailures, long repositoryStateId, boolean includeGlobalState, MetaData clusterMetaData, Map<String,Object> userMetadata, ActionListener<SnapshotInfo> listener)Finalizes snapshotting processvoidRepositoriesService. registerRepository(PutRepositoryRequest request, ActionListener<ClusterStateUpdateResponse> listener)Registers new repository in the clustervoidRepository. snapshotShard(Store store, MapperService mapperService, SnapshotId snapshotId, IndexId indexId, IndexCommit snapshotIndexCommit, IndexShardSnapshotStatus snapshotStatus, ActionListener<Void> listener)Creates a snapshot of the shard based on the index commit point.voidRepositoriesService. unregisterRepository(DeleteRepositoryRequest request, ActionListener<ClusterStateUpdateResponse> listener)Unregisters repository in the clustervoidVerifyNodeRepositoryAction. verify(String repository, String verificationToken, ActionListener<List<DiscoveryNode>> listener)voidRepositoriesService. verifyRepository(String repositoryName, ActionListener<List<DiscoveryNode>> listener) -
Uses of ActionListener in org.elasticsearch.repositories.blobstore
Methods in org.elasticsearch.repositories.blobstore with parameters of type ActionListener Modifier and Type Method Description voidBlobStoreRepository. cleanup(long repositoryStateId, ActionListener<RepositoryCleanupResult> listener)Runs cleanup actions on the repository.voidBlobStoreRepository. deleteSnapshot(SnapshotId snapshotId, long repositoryStateId, ActionListener<Void> listener)voidBlobStoreRepository. finalizeSnapshot(SnapshotId snapshotId, List<IndexId> indices, long startTime, String failure, int totalShards, List<SnapshotShardFailure> shardFailures, long repositoryStateId, boolean includeGlobalState, MetaData clusterMetaData, Map<String,Object> userMetadata, ActionListener<SnapshotInfo> listener)voidBlobStoreRepository. snapshotShard(Store store, MapperService mapperService, SnapshotId snapshotId, IndexId indexId, IndexCommit snapshotIndexCommit, IndexShardSnapshotStatus snapshotStatus, ActionListener<Void> listener) -
Uses of ActionListener in org.elasticsearch.rest.action
Classes in org.elasticsearch.rest.action that implement ActionListener Modifier and Type Class Description classRestActionListener<Response>An action listener that requiresRestActionListener.processResponse(Object)to be implemented and will automatically handle failures.static classRestActions.NodesResponseRestListener<NodesResponse extends BaseNodesResponse & ToXContent>NodesResponseRestBuilderListenerautomatically translates anyBaseNodesResponse(multi-node) response that isToXContent-compatible into aRestResponsewith the necessary header info (e.g., "cluster_name").classRestBuilderListener<Response>A REST action listener that builds anXContentBuilderbased response.classRestResponseListener<Response>A REST enabled action listener that has a basic onFailure implementation, and requires sub classes to only implementRestResponseListener.buildResponse(Object).classRestStatusToXContentListener<Response extends StatusToXContentObject>Content listener that extracts thatRestStatusfrom the response.classRestToXContentListener<Response extends ToXContentObject>A REST based action listener that assumes the response is of typeToXContentand automatically builds an XContent based response (wrapping the toXContent in startObject/endObject). -
Uses of ActionListener in org.elasticsearch.rest.action.admin.cluster
Methods in org.elasticsearch.rest.action.admin.cluster that return ActionListener Modifier and Type Method Description static <T extends ListTasksResponse>
ActionListener<T>RestListTasksAction. listTasksResponseListener(Supplier<DiscoveryNodes> nodesInCluster, String groupBy, RestChannel channel)Standard listener for extensions ofListTasksResponsethat supportsgroup_by=nodes. -
Uses of ActionListener in org.elasticsearch.script
Methods in org.elasticsearch.script with parameters of type ActionListener Modifier and Type Method Description voidScriptService. deleteStoredScript(ClusterService clusterService, DeleteStoredScriptRequest request, ActionListener<AcknowledgedResponse> listener)voidScriptService. putStoredScript(ClusterService clusterService, PutStoredScriptRequest request, ActionListener<AcknowledgedResponse> listener) -
Uses of ActionListener in org.elasticsearch.search
-
Uses of ActionListener in org.elasticsearch.snapshots
Methods in org.elasticsearch.snapshots with parameters of type ActionListener Modifier and Type Method Description voidSnapshotsService. createSnapshot(CreateSnapshotRequest request, ActionListener<Snapshot> listener)Initializes the snapshotting process.voidSnapshotsService. deleteSnapshot(String repositoryName, String snapshotName, ActionListener<Void> listener, boolean immediatePriority)Deletes a snapshot from the repository, looking up theSnapshotreference before deleting.voidSnapshotsService. executeSnapshot(CreateSnapshotRequest request, ActionListener<SnapshotInfo> listener)Same asSnapshotsService.createSnapshot(CreateSnapshotRequest, ActionListener)but invokes its callback on completion of the snapshot.voidRestoreService. restoreSnapshot(RestoreSnapshotRequest request, ActionListener<RestoreService.RestoreCompletionResponse> listener)Restores snapshot specified in the restore request. -
Uses of ActionListener in org.elasticsearch.tasks
Methods in org.elasticsearch.tasks with parameters of type ActionListener Modifier and Type Method Description <Response extends ActionResponse>
voidTaskManager. storeResult(Task task, Exception error, ActionListener<Response> listener)Stores the task failure<Response extends ActionResponse>
voidTaskManager. storeResult(Task task, Response response, ActionListener<Response> listener)Stores the task resultvoidTaskResultsService. storeResult(TaskResult taskResult, ActionListener<Void> listener) -
Uses of ActionListener in org.elasticsearch.transport
Methods in org.elasticsearch.transport with parameters of type ActionListener Modifier and Type Method Description voidCloseableConnection. addCloseListener(ActionListener<Void> listener)voidTransport.Connection. addCloseListener(ActionListener<Void> listener)The listener'sonResponse(Object)method will be called when this connection is closed.voidTcpChannel. addConnectListener(ActionListener<Void> listener)Adds a listener that will be executed when the channel is connected.voidRemoteClusterService. collectNodes(Set<String> clusters, ActionListener<BiFunction<String,String,DiscoveryNode>> listener)Collects all nodes of the given clusters and returns / passes a (clusterAlias, nodeId) toDiscoveryNodefunction on success.voidConnectionManager. connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, ConnectionManager.ConnectionValidator connectionValidator, ActionListener<Void> listener)Connects to a node with the given connection profile.voidRemoteConnectionManager. connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, ConnectionManager.ConnectionValidator connectionValidator, ActionListener<Void> listener)voidTransportService. connectToNode(DiscoveryNode node, ActionListener<Void> listener)Connect to the specified node with the given connection profile.voidTransportService. connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Void> listener)Connect to the specified node with the given connection profile.voidTcpTransport. executeHandshake(DiscoveryNode node, TcpChannel channel, ConnectionProfile profile, ActionListener<Version> listener)voidTransportRequestDeduplicator. executeOnce(T request, ActionListener<Void> listener, BiConsumer<T,ActionListener<Void>> callback)Ensures a given request not executed multiple times when another equal request is already in-flight.voidTransportService. handshake(Transport.Connection connection, long handshakeTimeout, Predicate<ClusterName> clusterNamePredicate, ActionListener<TransportService.HandshakeResponse> listener)Executes a high-level handshake using the given connection and returns the discovery node of the node the connection was established with.voidTransportService. handshake(Transport.Connection connection, long handshakeTimeout, ActionListener<DiscoveryNode> listener)Executes a high-level handshake using the given connection and returns the discovery node of the node the connection was established with.voidConnectionManager. openConnection(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Transport.Connection> listener)voidRemoteConnectionManager. openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener)voidTcpTransport. openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener)voidTransport. openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener)Opens a new connection to the given node.voidTransportService. openConnection(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Transport.Connection> listener)Establishes a new connection to the given node.voidTcpChannel. sendMessage(BytesReference reference, ActionListener<Void> listener)Sends a tcp message to the channel.voidConnectionManager.ConnectionValidator. validate(Transport.Connection connection, ConnectionProfile profile, ActionListener<Void> listener)Method parameters in org.elasticsearch.transport with type arguments of type ActionListener Modifier and Type Method Description voidTransportRequestDeduplicator. executeOnce(T request, ActionListener<Void> listener, BiConsumer<T,ActionListener<Void>> callback)Ensures a given request not executed multiple times when another equal request is already in-flight.
-