Package com.dtolabs.launcher
Class Setup
- java.lang.Object
-
- com.dtolabs.launcher.Setup
-
- All Implemented Interfaces:
CLIToolLogger
,BaseLogger
public class Setup extends java.lang.Object implements CLIToolLogger
Setup which replaces old command line parsing at the shell layer which leaves the old setup/setup.bat to only blindly pass arguments along with the java.home, rdeck.base.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Setup.Parameters
static class
Setup.SetupException
Exception class
-
Field Summary
Fields Modifier and Type Field Description static boolean
FORCE_FLAG
force a rewrite of the framework configuration files.static org.slf4j.Logger
logger
static java.lang.String
RDECK_BASE
basic bootstrapped rdeck.basestatic java.lang.String
SETUP_USAGE
setup usage statementstatic java.lang.String
TEMPLATE_RESOURCES_PATH
-
Constructor Summary
Constructors Constructor Description Setup()
default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String message)
Logs debug message via implementation specific log facilityvoid
error(java.lang.String message)
Logs error message via implementation specific log facilityvoid
execute(java.lang.String[] args)
Validates the install, generates preference data and then invokes the adminCmd.xmlSetup.Parameters
getParameters()
void
log(java.lang.String message)
Logs message via implementation specific log facilitystatic void
main(java.lang.String[] args)
called from setup shell/bat script.void
performSetup()
static void
printUsage()
void
verbose(java.lang.String message)
Logs verbose message via implementation specific log facilityvoid
warn(java.lang.String message)
Logs warning message via implementation specific log facility
-
-
-
Field Detail
-
logger
public static final org.slf4j.Logger logger
-
RDECK_BASE
public static java.lang.String RDECK_BASE
basic bootstrapped rdeck.base
-
SETUP_USAGE
public static final java.lang.String SETUP_USAGE
setup usage statement- See Also:
- Constant Field Values
-
FORCE_FLAG
public static final boolean FORCE_FLAG
force a rewrite of the framework configuration files. always true- See Also:
- Constant Field Values
-
TEMPLATE_RESOURCES_PATH
public static final java.lang.String TEMPLATE_RESOURCES_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
called from setup shell/bat script. Calls theexecute(java.lang.String[])
method.- Parameters:
args
- args
-
execute
public void execute(java.lang.String[] args) throws Setup.SetupException
Validates the install, generates preference data and then invokes the adminCmd.xml- Parameters:
args
- Command line args- Throws:
Setup.SetupException
- thrown if error
-
performSetup
public void performSetup() throws Setup.SetupException
- Throws:
Setup.SetupException
-
printUsage
public static void printUsage()
-
log
public void log(java.lang.String message)
Description copied from interface:BaseLogger
Logs message via implementation specific log facility- Specified by:
log
in interfaceBaseLogger
- Parameters:
message
- message to log
-
error
public void error(java.lang.String message)
Description copied from interface:BaseLogger
Logs error message via implementation specific log facility- Specified by:
error
in interfaceBaseLogger
- Parameters:
message
- message to log
-
warn
public void warn(java.lang.String message)
Description copied from interface:BaseLogger
Logs warning message via implementation specific log facility- Specified by:
warn
in interfaceBaseLogger
- Parameters:
message
- message to log
-
verbose
public void verbose(java.lang.String message)
Description copied from interface:BaseLogger
Logs verbose message via implementation specific log facility- Specified by:
verbose
in interfaceBaseLogger
- Parameters:
message
- message to log
-
debug
public void debug(java.lang.String message)
Description copied from interface:BaseLogger
Logs debug message via implementation specific log facility- Specified by:
debug
in interfaceBaseLogger
- Parameters:
message
- message to log
-
getParameters
public Setup.Parameters getParameters()
-
-