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
-
public class InstallAbstract extends InputAbstract
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdataprotected Filedirectoryprotected Stringencodingprotected Stringetcprotected Filehomeprotected booleanIS_NIXprotected booleanIS_WINDOWSprotected StringjavaMemoryprotected List<String>javaOptionsprotected List<String>javaUtilityOptionsprotected static StringLOG_DIRNAMEprotected booleannixprotected static StringOOM_DUMP_FILENAMEprotected booleanwindows-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description InstallAbstract()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringapplyFilters(String content, Map<String,String> filters)protected static voidcopy(InputStream is, OutputStream os)FilegetDirectory()StringgetEncoding()FilegetHome()FilegetInstance()protected StringgetJavaOptions()protected StringgetJavaUtilityOptions()booleanisNix()booleanisWindows()protected static InputStreamopenStream(String source)protected static StringreadTextFile(String source, Map<String,String> filters)protected static Stringreplace(String content, String key, String value)Objectrun(ActionContext context)InstallAbstractsetDirectory(File directory)voidsetEncoding(String encoding)voidsetInstance(File directory)InstallAbstractsetNix(boolean nix)InstallAbstractsetWindows(boolean windows)protected voidwrite(String source, boolean force)protected voidwrite(String source, File target, HashMap<String,String> filters, boolean unixTarget, boolean force)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.InputAbstract
enableInput, execute, input, input, inputBoolean, inputInteger, inputPassword, isSilentInput, setSilentInput
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
-
-
-
Field Detail
-
LOG_DIRNAME
protected static final String LOG_DIRNAME
- See Also:
- Constant Field Values
-
OOM_DUMP_FILENAME
protected static final String OOM_DUMP_FILENAME
- See Also:
- Constant Field Values
-
directory
protected File directory
-
etc
protected String etc
-
data
protected String data
-
home
protected File home
-
encoding
protected String encoding
-
windows
protected boolean windows
-
nix
protected boolean nix
-
javaMemory
protected String javaMemory
-
IS_WINDOWS
protected boolean IS_WINDOWS
-
IS_NIX
protected boolean IS_NIX
-
-
Method Detail
-
getJavaOptions
protected String getJavaOptions()
-
getJavaUtilityOptions
protected String getJavaUtilityOptions()
-
getEncoding
public String getEncoding()
-
setEncoding
public void setEncoding(String encoding)
-
getInstance
public File getInstance()
-
setInstance
public void setInstance(File directory)
-
getHome
public File getHome()
-
getDirectory
public File getDirectory()
-
setDirectory
public InstallAbstract setDirectory(File directory)
-
isWindows
public boolean isWindows()
-
setWindows
public InstallAbstract setWindows(boolean windows)
-
isNix
public boolean isNix()
-
setNix
public InstallAbstract setNix(boolean nix)
-
run
public Object run(ActionContext context) throws Exception
- Throws:
Exception
-
copy
protected static void copy(InputStream is, OutputStream os) throws IOException
- Throws:
IOException
-
write
protected void write(String source, File target, HashMap<String,String> filters, boolean unixTarget, boolean force) throws Exception
- Throws:
Exception
-
readTextFile
protected static String readTextFile(String source, Map<String,String> filters) throws IOException
- Throws:
IOException
-
write
protected void write(String source, boolean force) throws IOException
- Throws:
IOException
-
openStream
protected static InputStream openStream(String source)
-
-