Package org.elasticsearch.gateway
Class MockGatewayMetaState
java.lang.Object
org.elasticsearch.gateway.GatewayMetaState
org.elasticsearch.gateway.MockGatewayMetaState
- All Implemented Interfaces:
Closeable
,AutoCloseable
GatewayMetaState
constructor accepts a lot of arguments.
It's not always easy / convenient to construct these dependencies.
This class constructor takes far fewer dependencies and constructs usable GatewayMetaState
with 2 restrictions:
no metadata upgrade will be performed and no cluster state updaters will be run. This is sufficient for most of the tests.-
Field Summary
Fields inherited from class org.elasticsearch.gateway.GatewayMetaState
STALE_STATE_CONFIG_NODE_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
start
(Settings settings, NodeEnvironment nodeEnvironment, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) Methods inherited from class org.elasticsearch.gateway.GatewayMetaState
allPendingAsyncStatesWritten, close, getMetadata, getPersistedState, start
-
Constructor Details
-
MockGatewayMetaState
-
-
Method Details
-
start
public void start(Settings settings, NodeEnvironment nodeEnvironment, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry)
-