Class DetachClusterCommand
- java.lang.Object
-
- org.elasticsearch.cli.Command
-
- org.elasticsearch.cli.EnvironmentAwareCommand
-
- org.elasticsearch.cluster.coordination.ElasticsearchNodeCommand
-
- org.elasticsearch.cluster.coordination.DetachClusterCommand
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class DetachClusterCommand extends ElasticsearchNodeCommand
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.cluster.coordination.ElasticsearchNodeCommand
ABORTED_BY_USER_MSG, DELIMITER, FAILED_TO_OBTAIN_NODE_LOCK_MSG, GLOBAL_GENERATION_MISSING_MSG
-
Fields inherited from class org.elasticsearch.cli.Command
description, parser
-
-
Constructor Summary
Constructors Constructor Description DetachClusterCommand()
-
Method Summary
Modifier and Type Method Description protected void
processNodePaths(Terminal terminal, java.nio.file.Path[] dataPaths, Environment env)
Process the paths.-
Methods inherited from class org.elasticsearch.cluster.coordination.ElasticsearchNodeCommand
confirm, execute, loadMetaData, processNodePathsWithLock, toNodePaths, validateBeforeLock, writeNewMetaData
-
Methods inherited from class org.elasticsearch.cli.EnvironmentAwareCommand
createEnv, createEnv, execute
-
Methods inherited from class org.elasticsearch.cli.Command
addShutdownHook, close, exit, main, printAdditionalHelp
-
-
-
-
Method Detail
-
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 classElasticsearchNodeCommand
- Parameters:
terminal
- the terminal to use for messagesdataPaths
- the paths of the node to processenv
- the env of the node to process- Throws:
java.io.IOException
-
-