Package org.opensearch.env
Class OverrideNodeVersionCommand
java.lang.Object
org.opensearch.cli.Command
org.opensearch.cli.EnvironmentAwareCommand
org.opensearch.cluster.coordination.OpenSearchNodeCommand
org.opensearch.env.OverrideNodeVersionCommand
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class OverrideNodeVersionCommand extends OpenSearchNodeCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.cluster.coordination.OpenSearchNodeCommand
OpenSearchNodeCommand.UnknownCondition, OpenSearchNodeCommand.UnknownMetadataCustom
-
Field Summary
Fields inherited from class org.opensearch.cluster.coordination.OpenSearchNodeCommand
ABORTED_BY_USER_MSG, CS_MISSING_MSG, DELIMITER, FAILED_TO_OBTAIN_NODE_LOCK_MSG, namedXContentRegistry
-
Constructor Summary
Constructors Constructor Description OverrideNodeVersionCommand()
-
Method Summary
Modifier and Type Method Description protected void
processNodePaths(org.opensearch.cli.Terminal terminal, java.nio.file.Path[] dataPaths, int nodeLockId, joptsimple.OptionSet options, Environment env)
Process the paths.Methods inherited from class org.opensearch.cluster.coordination.OpenSearchNodeCommand
clusterState, confirm, createPersistedClusterStateService, execute, loadTermAndClusterState, processNodePaths, toNodePaths, validateBeforeLock
Methods inherited from class org.opensearch.cli.EnvironmentAwareCommand
createEnv, createEnv, execute
-
Constructor Details
-
OverrideNodeVersionCommand
public OverrideNodeVersionCommand()
-
-
Method Details
-
processNodePaths
protected void processNodePaths(org.opensearch.cli.Terminal terminal, java.nio.file.Path[] dataPaths, int nodeLockId, joptsimple.OptionSet options, Environment env) throws java.io.IOExceptionDescription copied from class:OpenSearchNodeCommand
Process the paths. Locks for the paths is held during this method invocation.- Specified by:
processNodePaths
in classOpenSearchNodeCommand
- Parameters:
terminal
- the terminal to use for messagesdataPaths
- the paths of the node to processoptions
- the command line optionsenv
- the env of the node to process- Throws:
java.io.IOException
-