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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate an instance of the class to be run .static voidstatic voidprocess()static voidprocessCommandLineParameters(String[] args) Start the TextAppLauncher ...static voidprocessCommandLineParameters(String[] args, boolean termintateOnBadReturnCode) Start the TextAppLauncher ...static voidsetCommandLineArgs(String[] commandLineArgs) Methods inherited from class com.softwaremining.ui.text.TextUIServer
switchToUser, wakeUpToProgramMethods 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:ScreenServercreate an instance of the class to be run .- Specified by:
getTargetInstancein classScreenServer- Returns:
-
setCommandLineArgs
-
processCommandLineParameters
Start the TextAppLauncher ...- Parameters:
args-
-
processCommandLineParameters
Start the TextAppLauncher ...- Parameters:
args-
-
process
public static void process() -
main
-