Class InstallAbstract
java.lang.Object
org.apache.activemq.artemis.cli.commands.ActionAbstract
org.apache.activemq.artemis.cli.commands.InputAbstract
org.apache.activemq.artemis.cli.commands.InstallAbstract
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Fileprotected Stringprotected Stringprotected Fileprotected booleanprotected booleanprotected Stringprotected static final Stringprotected booleanprotected static final Stringprotected booleanFields inherited from class ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringapplyFilters(String content, Map<String, String> filters) protected static voidcopy(InputStream is, OutputStream os) getHome()protected Stringprotected StringbooleanisNix()booleanprotected static InputStreamopenStream(String source) protected static StringreadTextFile(String source, Map<String, String> filters) protected static Stringrun(ActionContext context) setDirectory(File directory) voidsetEncoding(String encoding) voidsetInstance(File directory) setNix(boolean nix) setWindows(boolean windows) protected voidprotected voidMethods inherited from class InputAbstract
enableInput, execute, input, input, inputBoolean, inputInteger, inputPassword, isSilentInput, setSilentInputMethods inherited from class ActionAbstract
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
Field Details
-
LOG_DIRNAME
- See Also:
-
OOM_DUMP_FILENAME
- See Also:
-
directory
-
etc
-
data
-
home
-
encoding
-
windows
protected boolean windows -
nix
protected boolean nix -
javaOptions
-
javaUtilityOptions
-
javaMemory
-
IS_WINDOWS
protected boolean IS_WINDOWS -
IS_NIX
protected boolean IS_NIX
-
-
Constructor Details
-
InstallAbstract
public InstallAbstract()
-
-
Method Details
-
getJavaOptions
-
getJavaUtilityOptions
-
getEncoding
-
setEncoding
-
getInstance
-
setInstance
-
getHome
-
getDirectory
-
setDirectory
-
isWindows
public boolean isWindows() -
setWindows
-
isNix
public boolean isNix() -
setNix
-
run
- Throws:
Exception
-
applyFilters
-
replace
-
copy
- Throws:
IOException
-
write
-
readTextFile
- Throws:
IOException
-
write
- Throws:
IOException
-
openStream
-