Package org.elasticsearch.gateway
Class GatewayMetaState.KeepPreviousGeneration
- java.lang.Object
-
- org.elasticsearch.gateway.GatewayMetaState.KeepPreviousGeneration
-
- All Implemented Interfaces:
GatewayMetaState.IndexMetaDataAction
- Enclosing class:
- GatewayMetaState
public static class GatewayMetaState.KeepPreviousGeneration extends java.lang.Object implements GatewayMetaState.IndexMetaDataAction
-
-
Method Detail
-
getIndex
public Index getIndex()
- Specified by:
getIndex
in interfaceGatewayMetaState.IndexMetaDataAction
- Returns:
- index for index metadata.
-
execute
public long execute(org.elasticsearch.gateway.GatewayMetaState.AtomicClusterStateWriter writer)
Description copied from interface:GatewayMetaState.IndexMetaDataAction
Executes this action using providedGatewayMetaState.AtomicClusterStateWriter
.- Specified by:
execute
in interfaceGatewayMetaState.IndexMetaDataAction
- Returns:
- new index metadata state generation, to be used in manifest file.
-
-