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
-
Field Summary
Fields inherited from class ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidTest 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.execute(ActionContext context) protected Stringprotected Stringprotected booleaninputBoolean(String propertyName, String prompt, boolean silentDefault) intinputInteger(String propertyName, String prompt, String silentDefault) protected StringinputPassword(String propertyName, String prompt, String silentDefault) booleanvoidsetSilentInput(boolean isSilent) Methods inherited from class ActionAbstract
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
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
-
inputInteger
-
input
-
input
-
inputPassword
-
execute
- Specified by:
executein interfaceAction- Overrides:
executein classActionAbstract- Throws:
Exception
-