Remove get index templates deprecated methods
In 0.90.4, we deprecated some code: * `GetIndexTemplatesRequest#GetIndexTemplatesRequest(String)` moved to `GetIndexTemplatesRequest#GetIndexTemplatesRequest(String...)` * `GetIndexTemplatesRequest#name(String)` moved to `GetIndexTemplatesRequest#names(String...)` * `GetIndexTemplatesRequest#name()` moved to `GetIndexTemplatesRequest#names()` * `GetIndexTemplatesRequestBuilder#GetIndexTemplatesRequestBuilder(IndicesAdminClient, String)` moved to `GetIndexTemplatesRequestBuilder#GetIndexTemplatesRequestBuilder(IndicesAdminClient, String...)` * `IndicesAdminClient#prepareGetTemplates(String)` moved to `IndicesAdminClient#prepareGetTemplates(String...)` * `AbstractIndicesAdminClient#prepareGetTemplates(String)` moved to `AbstractIndicesAdminClient#prepareGetTemplates(String...)` We can now remove that old methods in 1.0. **Note**: it breaks the Java API Relative to #2532. Closes #3681.
This commit is contained in:
parent
ea4988e9dc
commit
a2444e9494
|
@ -38,12 +38,6 @@ public class GetIndexTemplatesRequest extends MasterNodeOperationRequest<GetInde
|
|||
|
||||
public GetIndexTemplatesRequest() {}
|
||||
|
||||
@Deprecated
|
||||
public GetIndexTemplatesRequest(String name) {
|
||||
this.names = new String[1];
|
||||
this.names[0] = name;
|
||||
}
|
||||
|
||||
public GetIndexTemplatesRequest(String... names) {
|
||||
this.names = names;
|
||||
}
|
||||
|
@ -63,27 +57,6 @@ public class GetIndexTemplatesRequest extends MasterNodeOperationRequest<GetInde
|
|||
return validationException;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name of the index template.
|
||||
*/
|
||||
@Deprecated
|
||||
public GetIndexTemplatesRequest name(String name) {
|
||||
this.names = new String[1];
|
||||
this.names[0] = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the index template.
|
||||
*/
|
||||
@Deprecated
|
||||
public String name() {
|
||||
if (this.names != null && this.names.length > 0) {
|
||||
return this.names[0];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the names of the index templates.
|
||||
*/
|
||||
|
|
|
@ -32,11 +32,6 @@ public class GetIndexTemplatesRequestBuilder extends MasterNodeOperationRequestB
|
|||
super((InternalIndicesAdminClient) indicesClient, new GetIndexTemplatesRequest());
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public GetIndexTemplatesRequestBuilder(IndicesAdminClient indicesClient, String name) {
|
||||
super((InternalIndicesAdminClient) indicesClient, new GetIndexTemplatesRequest(name));
|
||||
}
|
||||
|
||||
public GetIndexTemplatesRequestBuilder(IndicesAdminClient indicesClient, String... names) {
|
||||
super((InternalIndicesAdminClient) indicesClient, new GetIndexTemplatesRequest(names));
|
||||
}
|
||||
|
|
|
@ -649,14 +649,6 @@ public interface IndicesAdminClient {
|
|||
*/
|
||||
void getTemplates(GetIndexTemplatesRequest request, ActionListener<GetIndexTemplatesResponse> listener);
|
||||
|
||||
/**
|
||||
* Gets an index template.
|
||||
*
|
||||
* @param name The name of the template.
|
||||
*/
|
||||
@Deprecated
|
||||
GetIndexTemplatesRequestBuilder prepareGetTemplates(String name);
|
||||
|
||||
/**
|
||||
* Gets an index template (optional).
|
||||
*/
|
||||
|
|
|
@ -509,11 +509,6 @@ public abstract class AbstractIndicesAdminClient implements InternalIndicesAdmin
|
|||
execute(GetIndexTemplatesAction.INSTANCE, request, listener);
|
||||
}
|
||||
|
||||
@Override @Deprecated
|
||||
public GetIndexTemplatesRequestBuilder prepareGetTemplates(String name) {
|
||||
return new GetIndexTemplatesRequestBuilder(this, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetIndexTemplatesRequestBuilder prepareGetTemplates(String... names) {
|
||||
return new GetIndexTemplatesRequestBuilder(this, names);
|
||||
|
|
Loading…
Reference in New Issue