Class ToolRuntime

java.lang.Object
org.apache.solr.cli.ToolRuntime
Direct Known Subclasses:
DefaultToolRuntime

public abstract class ToolRuntime extends Object
An implementation of this class is specified when executing ToolBase to access environment specific methods (mostly to differentiate test from non-test executions for now).
See Also:
  • Constructor Details

    • ToolRuntime

      public ToolRuntime()
  • Method Details

    • print

      public abstract void print(String message)
    • println

      public abstract void println(String message)
    • printError

      public void printError(String message)
      Print an error message, highlighted in red on terminals.
    • printSuccess

      public void printSuccess(String message)
      Print a success message, highlighted in green on terminals.
    • exit

      public void exit(int status)
      Invokes System.exit(int) to force the JVM to immediately quit.