Class LoggingAwareCommand

java.lang.Object
org.elasticsearch.cli.Command
org.elasticsearch.cli.LoggingAwareCommand
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class LoggingAwareCommand extends org.elasticsearch.cli.Command
A command that is aware of logging. This class should be preferred over the base Command class for any CLI tools that depend on core Elasticsearch as they could directly or indirectly touch classes that touch logging and as such logging needs to be configured.
  • Field Summary

    Fields inherited from class org.elasticsearch.cli.Command

    description, parser
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct the command with the specified command description.
  • Method Summary

    Methods inherited from class org.elasticsearch.cli.Command

    addShutdownHook, close, execute, exit, main, printAdditionalHelp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoggingAwareCommand

      public LoggingAwareCommand(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