public class MappingUpdatedAction extends AbstractComponent
Modifier and Type | Field and Description |
---|---|
static Setting<TimeValue> |
INDICES_MAPPING_DYNAMIC_TIMEOUT_SETTING |
deprecationLogger, logger, settings
Constructor and Description |
---|
MappingUpdatedAction(Settings settings,
ClusterSettings clusterSettings) |
Modifier and Type | Method and Description |
---|---|
void |
setClient(Client client) |
void |
updateMappingOnMaster(Index index,
java.lang.String type,
Mapping mappingUpdate)
Same as
updateMappingOnMaster(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 most
timeout . |
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public MappingUpdatedAction(Settings settings, ClusterSettings clusterSettings)
public void setClient(Client client)
public void updateMappingOnMaster(Index index, java.lang.String type, Mapping mappingUpdate) throws java.lang.Exception
updateMappingOnMaster(Index, String, Mapping, TimeValue)
using the default timeout.java.lang.Exception
public void updateMappingOnMaster(Index index, java.lang.String type, Mapping mappingUpdate, TimeValue timeout) throws java.lang.Exception
timeout
. When this method returns successfully mappings have
been applied to the master node and propagated to data nodes.java.lang.Exception