类 GetIndexTemplatesRequest
java.lang.Object
org.easysearch.client.indices.GetIndexTemplatesRequest
- 所有已实现的接口:
Validatable
- 直接已知子类:
IndexTemplatesExistRequest
public class GetIndexTemplatesRequest extends java.lang.Object implements Validatable
A request to read the content of index templates
-
字段概要
从接口继承的字段 org.easysearch.client.Validatable
EMPTY -
构造器概要
构造器 构造器 说明 GetIndexTemplatesRequest(java.lang.String... names)Create a request to read the content of one or more index templates.GetIndexTemplatesRequest(java.util.List<java.lang.String> names)Create a request to read the content of one or more index templates. -
方法概要
修饰符和类型 方法 说明 org.easysearch.common.unit.TimeValuegetMasterNodeTimeout()booleanisLocal()java.util.List<java.lang.String>names()voidsetLocal(boolean local)voidsetMasterNodeTimeout(java.lang.String masterNodeTimeout)voidsetMasterNodeTimeout(org.easysearch.common.unit.TimeValue masterNodeTimeout)从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.client.Validatable
validate
-
构造器详细资料
-
GetIndexTemplatesRequest
public GetIndexTemplatesRequest(java.lang.String... names)Create a request to read the content of one or more index templates. If no template names are provided, all templates will be read- 参数:
names- the names of templates to read
-
GetIndexTemplatesRequest
public GetIndexTemplatesRequest(java.util.List<java.lang.String> names)Create a request to read the content of one or more index templates. If no template names are provided, all templates will be read- 参数:
names- the names of templates to read
-
-
方法详细资料
-
names
public java.util.List<java.lang.String> names()- 返回:
- the names of index templates this request is requesting
-
getMasterNodeTimeout
public org.easysearch.common.unit.TimeValue getMasterNodeTimeout()- 返回:
- the timeout for waiting for the master node to respond
-
setMasterNodeTimeout
public void setMasterNodeTimeout(@Nullable org.easysearch.common.unit.TimeValue masterNodeTimeout) -
setMasterNodeTimeout
public void setMasterNodeTimeout(java.lang.String masterNodeTimeout) -
isLocal
public boolean isLocal()- 返回:
- true if this request is to read from the local cluster state, rather than the master node - false otherwise
-
setLocal
public void setLocal(boolean local)
-