Class InputAbstract
- java.lang.Object
-
- org.apache.activemq.artemis.cli.commands.ActionAbstract
-
- org.apache.activemq.artemis.cli.commands.InputAbstract
-
- Direct Known Subclasses:
ConnectionConfigurationAbtract,InstallAbstract,Transfer
public class InputAbstract extends ActionAbstract
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description InputAbstract()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidenableInput()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.Objectexecute(ActionContext context)protected Stringinput(String propertyName, String prompt, String silentDefault)protected Stringinput(String propertyName, String prompt, String silentDefault, boolean acceptNull)protected booleaninputBoolean(String propertyName, String prompt, boolean silentDefault)intinputInteger(String propertyName, String prompt, String silentDefault)protected StringinputPassword(String propertyName, String prompt, String silentDefault)booleanisSilentInput()voidsetSilentInput(boolean isSilent)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
-
-
-
Method Detail
-
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)
-
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:
executein interfaceAction- Overrides:
executein classActionAbstract- Throws:
Exception
-
-