public class MetaStateService extends AbstractComponent
MetaData
and IndexMetaData
deprecationLogger, logger, settings
Constructor and Description |
---|
MetaStateService(Settings settings,
NodeEnvironment nodeEnv,
NamedXContentRegistry namedXContentRegistry) |
Modifier and Type | Method and Description |
---|---|
IndexMetaData |
loadIndexState(Index index)
Loads the index state for the provided index name, returning null if doesn't exists.
|
void |
writeIndex(java.lang.String reason,
IndexMetaData indexMetaData)
Writes the index state.
|
logDeprecatedSetting, logRemovedSetting, nodeName
public MetaStateService(Settings settings, NodeEnvironment nodeEnv, NamedXContentRegistry namedXContentRegistry)
@Nullable public IndexMetaData loadIndexState(Index index) throws java.io.IOException
java.io.IOException
public void writeIndex(java.lang.String reason, IndexMetaData indexMetaData) throws java.io.IOException
java.io.IOException