Class NodeRepurposeCommand

All Implemented Interfaces:
Closeable, AutoCloseable

public class NodeRepurposeCommand extends ElasticsearchNodeCommand
  • Constructor Details

    • NodeRepurposeCommand

      public NodeRepurposeCommand()
  • 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.
      validateBeforeLock in class ElasticsearchNodeCommand
      terminal - the terminal to print to
      env - the env to validate.
      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
      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