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(TransportMessage originalMessage, java.lang.String cause, java.lang.String index, java.lang.String providedName)
-
Method Summary
-
Methods inherited from class org.elasticsearch.cluster.ack.ClusterStateUpdateRequest
ackTimeout, ackTimeout, masterNodeTimeout, masterNodeTimeout
-
-
-
-
Constructor Detail
-
CreateIndexClusterStateUpdateRequest
public CreateIndexClusterStateUpdateRequest(TransportMessage originalMessage, java.lang.String cause, java.lang.String index, java.lang.String providedName)
-
-
Method Detail
-
settings
public CreateIndexClusterStateUpdateRequest settings(Settings settings)
-
mappings
public CreateIndexClusterStateUpdateRequest mappings(java.util.Map<java.lang.String,java.lang.String> mappings)
-
aliases
public CreateIndexClusterStateUpdateRequest aliases(java.util.Set<Alias> aliases)
-
blocks
public CreateIndexClusterStateUpdateRequest blocks(java.util.Set<ClusterBlock> blocks)
-
state
public CreateIndexClusterStateUpdateRequest state(IndexMetaData.State state)
-
recoverFrom
public CreateIndexClusterStateUpdateRequest recoverFrom(Index recoverFrom)
-
waitForActiveShards
public CreateIndexClusterStateUpdateRequest waitForActiveShards(ActiveShardCount waitForActiveShards)
-
resizeType
public CreateIndexClusterStateUpdateRequest resizeType(ResizeType resizeType)
-
copySettings
public CreateIndexClusterStateUpdateRequest copySettings(boolean copySettings)
-
originalMessage
public TransportMessage originalMessage()
-
cause
public java.lang.String cause()
-
index
public java.lang.String index()
-
state
public IndexMetaData.State state()
-
settings
public Settings settings()
-
mappings
public java.util.Map<java.lang.String,java.lang.String> mappings()
-
aliases
public java.util.Set<Alias> aliases()
-
blocks
public java.util.Set<ClusterBlock> blocks()
-
recoverFrom
public Index recoverFrom()
-
getProvidedName
public java.lang.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()
-
-