Class DiskUsageIntegTestCase


public class DiskUsageIntegTestCase extends ESIntegTestCase
An integration test case that allows mocking the disk usage per node. Notice that only Lucene files count towards disk usage and translog and state files are disregarded.
  • Field Details

  • Constructor Details

    • DiskUsageIntegTestCase

      public DiskUsageIntegTestCase()
  • Method Details

    • installFilesystemProvider

      public void installFilesystemProvider()
    • removeFilesystemProvider

      public void removeFilesystemProvider()
    • nodePlugins

      protected Collection<Class<? extends Plugin>> nodePlugins()
      Description copied from class: ESIntegTestCase
      Returns a collection of plugins that should be loaded on each node.
      Overrides:
      nodePlugins in class ESIntegTestCase
    • nodeSettings

      protected Settings nodeSettings(int nodeOrdinal, Settings otherSettings)
      Description copied from class: ESIntegTestCase
      This method is used to obtain settings for the Nth node in the cluster. Nodes in this cluster are associated with an ordinal number such that nodes can be started with specific configurations. This method might be called multiple times with the same ordinal and is expected to return the same value for each invocation. In other words subclasses must ensure this method is idempotent.
      Overrides:
      nodeSettings in class ESIntegTestCase
    • getTestFileStore

      public DiskUsageIntegTestCase.TestFileStore getTestFileStore(String nodeName)