Class NodeRepurposeCommand

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class NodeRepurposeCommand
    extends ElasticsearchNodeCommand
    • Constructor Detail

      • NodeRepurposeCommand

        public NodeRepurposeCommand()
    • Method Detail

      • 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).
      • processNodePaths

        protected void processNodePaths​(Terminal terminal,
                                        java.nio.file.Path[] dataPaths,
                                        Environment env)
                                 throws java.io.IOException
        Description copied from class: ElasticsearchNodeCommand
        Process the paths. Locks for the paths is held during this method invocation.
        Specified by:
        processNodePaths in class ElasticsearchNodeCommand
        Parameters:
        terminal - the terminal to use for messages
        dataPaths - the paths of the node to process
        env - the env of the node to process
        Throws:
        java.io.IOException