Package com.softwaremining
Class SMLauncher
java.lang.Object
com.softwaremining.ui.ScreenServer
com.softwaremining.ui.text.TextUIServer
com.softwaremining.SMLauncher
- All Implemented Interfaces:
Runnable
Allows launching of individual programs (Sub-classes of BaseService). Usage :
Usage: java -Xms150m -Xmx550m com.softwaremining.SMLauncher classname [framework-params] [program-params] where className is the name of the target program ... e.g com.softwaremining.test.Loan [framework-params] can be one of -dbprop=dbxxxx.property (new file will be used instead of default db.properties -propertyfile=sm_NNN.properties (new file will be used instead of default softwaremining.properties -numInstances=nnn (where nnn is a number - e.g. when 3, the system will launch 3 instances. You can tune each instance using program.retrieveInstanceNumber() and [program-params] : data passed to original COBOL programs and accessed using ACCEPT statement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate an instance of the class to be run .static void
static void
process()
static void
processCommandLineParameters
(String[] args) Start the TextAppLauncher ...static void
processCommandLineParameters
(String[] args, boolean termintateOnBadReturnCode) Start the TextAppLauncher ...static void
setCommandLineArgs
(String[] commandLineArgs) Methods inherited from class com.softwaremining.ui.text.TextUIServer
switchToUser, wakeUpToProgram
Methods inherited from class com.softwaremining.ui.ScreenServer
getAcceptResponse, getReturnCode, getScreen, getServiceName, hasQuitedCics, run
-
Constructor Details
-
SMLauncher
public SMLauncher()
-
-
Method Details
-
getTargetInstance
Description copied from class:ScreenServer
create an instance of the class to be run .- Specified by:
getTargetInstance
in classScreenServer
- Returns:
-
setCommandLineArgs
-
processCommandLineParameters
Start the TextAppLauncher ...- Parameters:
args
-
-
processCommandLineParameters
Start the TextAppLauncher ...- Parameters:
args
-
-
process
public static void process() -
main
-