Package org.opensearch.gateway
Class MockGatewayMetaState
java.lang.Object
org.opensearch.gateway.GatewayMetaState
org.opensearch.gateway.MockGatewayMetaState
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class MockGatewayMetaState
extends org.opensearch.gateway.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 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
-
Constructor Summary
Constructors Constructor Description MockGatewayMetaState(org.opensearch.cluster.node.DiscoveryNode localNode, org.opensearch.common.util.BigArrays bigArrays) -
Method Summary
Modifier and Type Method Description voidstart(org.opensearch.common.settings.Settings settings, org.opensearch.env.NodeEnvironment nodeEnvironment, org.opensearch.common.xcontent.NamedXContentRegistry xContentRegistry)
-
Constructor Details
-
MockGatewayMetaState
public MockGatewayMetaState(org.opensearch.cluster.node.DiscoveryNode localNode, org.opensearch.common.util.BigArrays bigArrays)
-
-
Method Details
-
start
public void start(org.opensearch.common.settings.Settings settings, org.opensearch.env.NodeEnvironment nodeEnvironment, org.opensearch.common.xcontent.NamedXContentRegistry xContentRegistry)
-