Class SMLauncher

All Implemented Interfaces:
Runnable

public class SMLauncher extends TextUIServer
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 Details

    • SMLauncher

      public SMLauncher()
  • Method Details

    • getTargetInstance

      public Service getTargetInstance()
      Description copied from class: ScreenServer
      create an instance of the class to be run .
      Specified by:
      getTargetInstance in class ScreenServer
      Returns:
    • setCommandLineArgs

      public static void setCommandLineArgs(String[] commandLineArgs)
    • processCommandLineParameters

      public static void processCommandLineParameters(String[] args)
      Start the TextAppLauncher ...
      Parameters:
      args -
    • processCommandLineParameters

      public static void processCommandLineParameters(String[] args, boolean termintateOnBadReturnCode)
      Start the TextAppLauncher ...
      Parameters:
      args -
    • process

      public static void process()
    • main

      public static void main(String[] args)