Class EnvironmentAwareCommand

java.lang.Object
org.elasticsearch.cli.Command
org.elasticsearch.common.cli.EnvironmentAwareCommand
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
ElasticsearchNodeCommand, KeyStoreAwareCommand

public abstract class EnvironmentAwareCommand extends Command
A cli command which requires an Environment to use current paths and settings.
  • Constructor Details

    • EnvironmentAwareCommand

      public EnvironmentAwareCommand(String description)
      Construct the command with the specified command description. This command will have logging configured without reading Elasticsearch configuration files.
      Parameters:
      description - the command description
  • Method Details