Class MockGatewayMetaState

java.lang.Object
org.elasticsearch.gateway.GatewayMetaState
org.elasticsearch.gateway.MockGatewayMetaState
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class MockGatewayMetaState
extends org.elasticsearch.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

    Fields inherited from class org.elasticsearch.gateway.GatewayMetaState

    STALE_STATE_CONFIG_NODE_ID
  • Constructor Summary

    Constructors
    Constructor Description
    MockGatewayMetaState​(org.elasticsearch.cluster.node.DiscoveryNode localNode, org.elasticsearch.common.util.BigArrays bigArrays)  
  • Method Summary

    Modifier and Type Method Description
    void start​(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.env.NodeEnvironment nodeEnvironment, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry)  

    Methods inherited from class org.elasticsearch.gateway.GatewayMetaState

    allPendingAsyncStatesWritten, close, getMetadata, getPersistedState, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockGatewayMetaState

      public MockGatewayMetaState​(org.elasticsearch.cluster.node.DiscoveryNode localNode, org.elasticsearch.common.util.BigArrays bigArrays)
  • Method Details

    • start

      public void start​(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.env.NodeEnvironment nodeEnvironment, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry)