Class UnsafeBootstrapMasterCommand
java.lang.Object
org.elasticsearch.cli.Command
org.elasticsearch.cli.EnvironmentAwareCommand
org.elasticsearch.cluster.coordination.ElasticsearchNodeCommand
org.elasticsearch.cluster.coordination.UnsafeBootstrapMasterCommand
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.cluster.coordination.ElasticsearchNodeCommand
ElasticsearchNodeCommand.UnknownCondition, ElasticsearchNodeCommand.UnknownMetadataCustom
-
Field Summary
Fields inherited from class org.elasticsearch.cluster.coordination.ElasticsearchNodeCommand
ABORTED_BY_USER_MSG, CS_MISSING_MSG, DELIMITER, FAILED_TO_OBTAIN_NODE_LOCK_MSG, namedXContentRegistry
Fields inherited from class org.elasticsearch.cli.Command
description, parser
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
processNodePaths(org.elasticsearch.cli.Terminal terminal, Path dataPath, joptsimple.OptionSet options, Environment env)
Process the paths.protected boolean
validateBeforeLock(org.elasticsearch.cli.Terminal terminal, Environment env)
Validate that the command can run before taking any locks.Methods inherited from class org.elasticsearch.cluster.coordination.ElasticsearchNodeCommand
clusterState, confirm, createNodePath, createPersistedClusterStateService, execute, loadTermAndClusterState, processNodePaths
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 Details
-
validateBeforeLock
Description copied from class:ElasticsearchNodeCommand
Validate that the command can run before taking any locks.- Overrides:
validateBeforeLock
in classElasticsearchNodeCommand
- Parameters:
terminal
- the terminal to print toenv
- the env to validate.- Returns:
- true to continue, false to stop (must print message in validate).
-
processNodePaths
protected void processNodePaths(org.elasticsearch.cli.Terminal terminal, Path dataPath, joptsimple.OptionSet options, Environment env) throws IOExceptionDescription 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 messagesdataPath
- the path of the node to processoptions
- the command line optionsenv
- the env of the node to process- Throws:
IOException
-