/** * Sets the indices to be closed * * @param indices the indices to be closed * @return the request itself */ public CloseIndexRequestBuilder setIndices(String... indices) { request.indices(indices); return this; }
static Request closeIndex(CloseIndexRequest closeIndexRequest) { String endpoint = RequestConverters.endpoint(closeIndexRequest.indices(), "_close"); Request request = new Request(HttpPost.METHOD_NAME, endpoint); RequestConverters.Params parameters = new RequestConverters.Params(request); parameters.withTimeout(closeIndexRequest.timeout()); parameters.withMasterTimeout(closeIndexRequest.masterNodeTimeout()); parameters.withIndicesOptions(closeIndexRequest.indicesOptions()); return request; }
static Request closeIndex(CloseIndexRequest closeIndexRequest) { String endpoint = RequestConverters.endpoint(closeIndexRequest.indices(), "_close"); Request request = new Request(HttpPost.METHOD_NAME, endpoint); RequestConverters.Params parameters = new RequestConverters.Params(request); parameters.withTimeout(closeIndexRequest.timeout()); parameters.withMasterTimeout(closeIndexRequest.masterNodeTimeout()); parameters.withIndicesOptions(closeIndexRequest.indicesOptions()); return request; }
@Override protected void doExecute(Task task, CloseIndexRequest request, ActionListener<AcknowledgedResponse> listener) { destructiveOperations.failDestructive(request.indices()); if (closeIndexEnabled == false) { throw new IllegalStateException("closing indices is disabled - set [" + CLUSTER_INDICES_CLOSE_ENABLE_SETTING.getKey() + ": true] to enable it. NOTE: closed indices still consume a significant amount of diskspace"); } super.doExecute(task, request, listener); }
static Request closeIndex(CloseIndexRequest closeIndexRequest) { String endpoint = endpoint(closeIndexRequest.indices(), Strings.EMPTY_ARRAY, "_close"); Params parameters = Params.builder(); parameters.withTimeout(closeIndexRequest.timeout()); parameters.withMasterTimeout(closeIndexRequest.masterNodeTimeout()); parameters.withIndicesOptions(closeIndexRequest.indicesOptions()); return new Request(HttpPost.METHOD_NAME, endpoint, parameters.getParams(), null); }
/** * Sets the indices to be closed * * @param indices the indices to be closed * @return the request itself */ public CloseIndexRequestBuilder setIndices(String... indices) { request.indices(indices); return this; }
/** * Sets the indices to be closed * * @param indices the indices to be closed * @return the request itself */ public CloseIndexRequestBuilder setIndices(String... indices) { request.indices(indices); return this; }
/** * Sets the indices to be closed * * @param indices the indices to be closed * @return the request itself */ public CloseIndexRequestBuilder setIndices(String... indices) { request.indices(indices); return this; }
/** * Sets the indices to be closed * * @param indices the indices to be closed * @return the request itself */ public CloseIndexRequestBuilder setIndices(String... indices) { request.indices(indices); return this; }
@Override protected void doExecute(Task task, CloseIndexRequest request, ActionListener<CloseIndexResponse> listener) { destructiveOperations.failDestructive(request.indices()); if (closeIndexEnabled == false) { throw new IllegalStateException("closing indices is disabled - set [" + SETTING_CLUSTER_INDICES_CLOSE_ENABLE + ": true] to enable it. NOTE: closed indices still consume a significant amount of diskspace"); } super.doExecute(task, request, listener); }
@Override protected void doExecute(Task task, CloseIndexRequest request, ActionListener<CloseIndexResponse> listener) { destructiveOperations.failDestructive(request.indices()); if (closeIndexEnabled == false) { throw new IllegalStateException("closing indices is disabled - set [" + CLUSTER_INDICES_CLOSE_ENABLE_SETTING.getKey() + ": true] to enable it. NOTE: closed indices still consume a significant amount of diskspace"); } super.doExecute(task, request, listener); }
@Override protected void doExecute(Task task, CloseIndexRequest request, ActionListener<AcknowledgedResponse> listener) { destructiveOperations.failDestructive(request.indices()); if (closeIndexEnabled == false) { throw new IllegalStateException("closing indices is disabled - set [" + CLUSTER_INDICES_CLOSE_ENABLE_SETTING.getKey() + ": true] to enable it. NOTE: closed indices still consume a significant amount of diskspace"); } super.doExecute(task, request, listener); }
@Override protected void doExecute(Task task, CloseIndexRequest request, ActionListener<CloseIndexResponse> listener) { destructiveOperations.failDestructive(request.indices()); if (closeIndexEnabled == false) { throw new IllegalStateException("closing indices is disabled - set [" + CLUSTER_INDICES_CLOSE_ENABLE_SETTING.getKey() + ": true] to enable it. NOTE: closed indices still consume a significant amount of diskspace"); } super.doExecute(task, request, listener); }