Class UnsafeBootstrapMasterCommand

All Implemented Interfaces:
Closeable, AutoCloseable

public class UnsafeBootstrapMasterCommand extends ElasticsearchNodeCommand
  • Method Details

    • validateBeforeLock

      protected boolean validateBeforeLock(Terminal terminal, Environment env)
      Description copied from class: ElasticsearchNodeCommand
      Validate that the command can run before taking any locks.
      Overrides:
      validateBeforeLock in class ElasticsearchNodeCommand
      Parameters:
      terminal - the terminal to print to
      env - the env to validate.
      Returns:
      true to continue, false to stop (must print message in validate).
    • processDataPaths

      protected void processDataPaths(Terminal terminal, Path[] dataPaths, int nodeLockId, joptsimple.OptionSet options, Environment env) throws IOException
      Description copied from class: ElasticsearchNodeCommand
      Process the paths. Locks for the paths is held during this method invocation.
      Specified by:
      processDataPaths in class ElasticsearchNodeCommand
      Parameters:
      terminal - the terminal to use for messages
      dataPaths - the paths of the node to process
      options - the command line options
      env - the env of the node to process
      Throws:
      IOException