Class Upgrade
- java.lang.Object
-
- org.apache.activemq.artemis.cli.commands.ActionAbstract
-
- org.apache.activemq.artemis.cli.commands.InputAbstract
-
- org.apache.activemq.artemis.cli.commands.InstallAbstract
-
- org.apache.activemq.artemis.cli.commands.Upgrade
-
public class Upgrade extends InstallAbstract
-
-
Field Summary
Fields Modifier and Type Field Description static StringOLD_LOGGING_PROPERTIES-
Fields inherited from class org.apache.activemq.artemis.cli.commands.InstallAbstract
data, directory, encoding, etc, home, IS_NIX, IS_WINDOWS, javaMemory, javaOptions, javaUtilityOptions, LOG_DIRNAME, nix, OOM_DUMP_FILENAME, windows
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description Upgrade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckDirectory()Checks that the directory provided either exists and is writable or doesn't exist but can be created.Objectexecute(ActionContext context)protected FilefindBackup(ActionContext context)Objectrun(ActionContext context)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.InstallAbstract
applyFilters, copy, getDirectory, getEncoding, getHome, getInstance, getJavaOptions, getJavaUtilityOptions, isNix, isWindows, openStream, readTextFile, replace, setDirectory, setEncoding, setInstance, setNix, setWindows, write, write
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.InputAbstract
enableInput, 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
-
OLD_LOGGING_PROPERTIES
public static final String OLD_LOGGING_PROPERTIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkDirectory
protected void checkDirectory()
Checks that the directory provided either exists and is writable or doesn't exist but can be created.
-
execute
public Object execute(ActionContext context) throws Exception
- Specified by:
executein interfaceAction- Overrides:
executein classInputAbstract- Throws:
Exception
-
run
public Object run(ActionContext context) throws Exception
- Overrides:
runin classInstallAbstract- Throws:
Exception
-
findBackup
protected File findBackup(ActionContext context) throws IOException
- Throws:
IOException
-
-