public class MappingUpdatedAction extends AbstractComponent
| Modifier and Type | Class and Description |
|---|---|
static interface |
MappingUpdatedAction.MappingUpdateListener
A listener to be notified when the mappings were updated
|
| Modifier and Type | Field and Description |
|---|---|
static String |
INDICES_MAPPING_DYNAMIC_TIMEOUT |
deprecationLogger, logger, settings| Constructor and Description |
|---|
MappingUpdatedAction(Settings settings,
NodeSettingsService nodeSettingsService) |
| Modifier and Type | Method and Description |
|---|---|
void |
setClient(Client client) |
void |
updateMappingOnMaster(String index,
String type,
Mapping mappingUpdate,
TimeValue timeout,
MappingUpdatedAction.MappingUpdateListener listener) |
void |
updateMappingOnMasterAsynchronously(String index,
String type,
Mapping mappingUpdate) |
void |
updateMappingOnMasterSynchronously(String index,
String type,
Mapping mappingUpdate)
Same as
updateMappingOnMasterSynchronously(String, String, Mapping, TimeValue)
using the default timeout. |
void |
updateMappingOnMasterSynchronously(String index,
String type,
Mapping mappingUpdate,
TimeValue timeout)
Update mappings synchronously on the master node, waiting for at most
timeout. |
logDeprecatedSetting, logRemovedSetting, nodeNamepublic static final String INDICES_MAPPING_DYNAMIC_TIMEOUT
@Inject public MappingUpdatedAction(Settings settings, NodeSettingsService nodeSettingsService)
public void setClient(Client client)
public void updateMappingOnMaster(String index, String type, Mapping mappingUpdate, TimeValue timeout, MappingUpdatedAction.MappingUpdateListener listener)
public void updateMappingOnMasterAsynchronously(String index, String type, Mapping mappingUpdate) throws Throwable
Throwablepublic void updateMappingOnMasterSynchronously(String index, String type, Mapping mappingUpdate) throws Throwable
updateMappingOnMasterSynchronously(String, String, Mapping, TimeValue)
using the default timeout.Throwablepublic void updateMappingOnMasterSynchronously(String index, String type, Mapping mappingUpdate, TimeValue timeout) throws Throwable
timeout. When this method returns successfully mappings have
been applied to the master node and propagated to data nodes.ThrowableCopyright © 2009–2017. All rights reserved.