Class InputAbstract

java.lang.Object
org.apache.activemq.artemis.cli.commands.ActionAbstract
org.apache.activemq.artemis.cli.commands.InputAbstract
All Implemented Interfaces:
Runnable, Action
Direct Known Subclasses:
ConnectionConfigurationAbtract, InstallAbstract, Transfer

public class InputAbstract extends ActionAbstract
  • Constructor Details

    • InputAbstract

      public InputAbstract()
  • Method Details

    • enableInput

      public static void enableInput()
      Test cases validating or using the CLI cannot deal with inputs, so they are generally disabled, however the main method from the CLI will enable it back.
    • isSilentInput

      public boolean isSilentInput()
    • setSilentInput

      public void setSilentInput(boolean isSilent)
    • inputBoolean

      protected boolean inputBoolean(String propertyName, String prompt, boolean silentDefault)
    • inputInteger

      public int inputInteger(String propertyName, String prompt, String silentDefault)
    • input

      protected String input(String propertyName, String prompt, String silentDefault)
    • input

      protected String input(String propertyName, String prompt, String silentDefault, boolean acceptNull)
    • inputPassword

      protected String inputPassword(String propertyName, String prompt, String silentDefault)
    • execute

      public Object execute(ActionContext context) throws Exception
      Specified by:
      execute in interface Action
      Overrides:
      execute in class ActionAbstract
      Throws:
      Exception