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 classSetup.Parametersstatic classSetup.SetupExceptionException class
-
Field Summary
Fields Modifier and Type Field Description static booleanFORCE_FLAGforce a rewrite of the framework configuration files.static org.slf4j.Loggerloggerstatic java.lang.StringRDECK_BASEbasic bootstrapped rdeck.basestatic java.lang.StringSETUP_USAGEsetup usage statementstatic java.lang.StringTEMPLATE_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 voiddebug(java.lang.String message)Logs debug message via implementation specific log facilityvoiderror(java.lang.String message)Logs error message via implementation specific log facilityvoidexecute(java.lang.String[] args)Validates the install, generates preference data and then invokes the adminCmd.xmlSetup.ParametersgetParameters()voidlog(java.lang.String message)Logs message via implementation specific log facilitystatic voidmain(java.lang.String[] args)called from setup shell/bat script.voidperformSetup()static voidprintUsage()voidverbose(java.lang.String message)Logs verbose message via implementation specific log facilityvoidwarn(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.SetupExceptionValidates 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:BaseLoggerLogs message via implementation specific log facility- Specified by:
login interfaceBaseLogger- Parameters:
message- message to log
-
error
public void error(java.lang.String message)
Description copied from interface:BaseLoggerLogs error message via implementation specific log facility- Specified by:
errorin interfaceBaseLogger- Parameters:
message- message to log
-
warn
public void warn(java.lang.String message)
Description copied from interface:BaseLoggerLogs warning message via implementation specific log facility- Specified by:
warnin interfaceBaseLogger- Parameters:
message- message to log
-
verbose
public void verbose(java.lang.String message)
Description copied from interface:BaseLoggerLogs verbose message via implementation specific log facility- Specified by:
verbosein interfaceBaseLogger- Parameters:
message- message to log
-
debug
public void debug(java.lang.String message)
Description copied from interface:BaseLoggerLogs debug message via implementation specific log facility- Specified by:
debugin interfaceBaseLogger- Parameters:
message- message to log
-
getParameters
public Setup.Parameters getParameters()
-
-