Class CreateIndexClusterStateUpdateRequest
- java.lang.Object
-
- org.elasticsearch.cluster.ack.ClusterStateUpdateRequest<CreateIndexClusterStateUpdateRequest>
-
- org.elasticsearch.action.admin.indices.create.CreateIndexClusterStateUpdateRequest
-
- All Implemented Interfaces:
AckedRequest
public class CreateIndexClusterStateUpdateRequest extends ClusterStateUpdateRequest<CreateIndexClusterStateUpdateRequest>
Cluster state update request that allows to create an index
-
-
Constructor Summary
Constructors Constructor Description CreateIndexClusterStateUpdateRequest(String cause, String index, String providedName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Alias>aliases()CreateIndexClusterStateUpdateRequestaliases(Set<Alias> aliases)Set<ClusterBlock>blocks()Stringcause()booleancopySettings()CreateIndexClusterStateUpdateRequestcopySettings(boolean copySettings)StringgetProvidedName()The name that was provided by the user.Stringindex()Map<String,String>mappings()CreateIndexClusterStateUpdateRequestmappings(Map<String,String> mappings)IndexrecoverFrom()CreateIndexClusterStateUpdateRequestrecoverFrom(Index recoverFrom)ResizeTyperesizeType()Returns the resize type or null if this is an ordinary create index requestCreateIndexClusterStateUpdateRequestresizeType(ResizeType resizeType)Settingssettings()CreateIndexClusterStateUpdateRequestsettings(Settings settings)ActiveShardCountwaitForActiveShards()CreateIndexClusterStateUpdateRequestwaitForActiveShards(ActiveShardCount waitForActiveShards)-
Methods inherited from class org.elasticsearch.cluster.ack.ClusterStateUpdateRequest
ackTimeout, ackTimeout, masterNodeTimeout, masterNodeTimeout
-
-
-
-
Method Detail
-
settings
public CreateIndexClusterStateUpdateRequest settings(Settings settings)
-
mappings
public CreateIndexClusterStateUpdateRequest mappings(Map<String,String> mappings)
-
aliases
public CreateIndexClusterStateUpdateRequest aliases(Set<Alias> aliases)
-
recoverFrom
public CreateIndexClusterStateUpdateRequest recoverFrom(Index recoverFrom)
-
waitForActiveShards
public CreateIndexClusterStateUpdateRequest waitForActiveShards(ActiveShardCount waitForActiveShards)
-
resizeType
public CreateIndexClusterStateUpdateRequest resizeType(ResizeType resizeType)
-
copySettings
public CreateIndexClusterStateUpdateRequest copySettings(boolean copySettings)
-
cause
public String cause()
-
index
public String index()
-
settings
public Settings settings()
-
blocks
public Set<ClusterBlock> blocks()
-
recoverFrom
public Index recoverFrom()
-
getProvidedName
public String getProvidedName()
The name that was provided by the user. This might contain a date math expression.
-
waitForActiveShards
public ActiveShardCount waitForActiveShards()
-
resizeType
public ResizeType resizeType()
Returns the resize type or null if this is an ordinary create index request
-
copySettings
public boolean copySettings()
-
-