Package org.elasticsearch.gateway
Class MockGatewayMetaState
- java.lang.Object
-
- org.elasticsearch.gateway.GatewayMetaState
-
- org.elasticsearch.gateway.MockGatewayMetaState
-
public class MockGatewayMetaState extends GatewayMetaState
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 usableGatewayMetaState
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.
-
-
Constructor Summary
Constructors Constructor Description MockGatewayMetaState(DiscoveryNode localNode)
-
Method Summary
Modifier and Type Method Description void
start(Settings settings, NodeEnvironment nodeEnvironment, NamedXContentRegistry xContentRegistry)
-
Methods inherited from class org.elasticsearch.gateway.GatewayMetaState
getMetaData, getPersistedState, start
-
-
-
-
Constructor Detail
-
MockGatewayMetaState
public MockGatewayMetaState(DiscoveryNode localNode)
-
-
Method Detail
-
start
public void start(Settings settings, NodeEnvironment nodeEnvironment, NamedXContentRegistry xContentRegistry)
-
-