Class MappingUpdatedAction
- java.lang.Object
-
- org.elasticsearch.cluster.action.index.MappingUpdatedAction
-
public class MappingUpdatedAction extends java.lang.Object
Called by shards in the cluster when their mapping was dynamically updated and it needs to be updated in the cluster state meta data (and broadcast to all members).
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<TimeValue>
INDICES_MAPPING_DYNAMIC_TIMEOUT_SETTING
-
Constructor Summary
Constructors Constructor Description MappingUpdatedAction(Settings settings, ClusterSettings clusterSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setClient(Client client)
void
updateMappingOnMaster(Index index, java.lang.String type, Mapping mappingUpdate)
Same asupdateMappingOnMaster(Index, String, Mapping, TimeValue)
using the default timeout.void
updateMappingOnMaster(Index index, java.lang.String type, Mapping mappingUpdate, TimeValue timeout)
Update mappings synchronously on the master node, waiting for at mosttimeout
.
-
-
-
Constructor Detail
-
MappingUpdatedAction
@Inject public MappingUpdatedAction(Settings settings, ClusterSettings clusterSettings)
-
-
Method Detail
-
setClient
public void setClient(Client client)
-
updateMappingOnMaster
public void updateMappingOnMaster(Index index, java.lang.String type, Mapping mappingUpdate)
Same asupdateMappingOnMaster(Index, String, Mapping, TimeValue)
using the default timeout.
-
updateMappingOnMaster
public void updateMappingOnMaster(Index index, java.lang.String type, Mapping mappingUpdate, TimeValue timeout)
Update mappings synchronously on the master node, waiting for at mosttimeout
. When this method returns successfully mappings have been applied to the master node and propagated to data nodes.
-
-