Class ShadowBaseService

java.lang.Object
com.softwaremining.logic.BaseService
com.softwaremining.vendors.shadow.ShadowBaseService
All Implemented Interfaces:
IBaseService, Service, IDisplayable, Runnable

public abstract class ShadowBaseService extends BaseService
  • Field Details

    • FILE_MODE_DIRECT_FORWARDS

      public static final int FILE_MODE_DIRECT_FORWARDS
      See Also:
    • FILE_MODE_DIRECT_BACKWARDS

      public static final int FILE_MODE_DIRECT_BACKWARDS
      See Also:
    • FILE_MODE_SEQUENTIAL_FORWARDS

      public static final int FILE_MODE_SEQUENTIAL_FORWARDS
      See Also:
    • FILE_MODE_SEQUENTIAL_BACKWARDS

      public static final int FILE_MODE_SEQUENTIAL_BACKWARDS
      See Also:
    • FILE_OPTION_POSITION

      public static final int FILE_OPTION_POSITION
      See Also:
    • FILE_OPTION_PROTECT

      public static final int FILE_OPTION_PROTECT
      See Also:
    • FILE_OPTION_NO_BACKOUT

      public static final int FILE_OPTION_NO_BACKOUT
      See Also:
    • FILE_OPTION_APPROXIMATE_KEY

      public static final int FILE_OPTION_APPROXIMATE_KEY
      See Also:
    • FILE_OPTION_LAST_RECORD

      public static final int FILE_OPTION_LAST_RECORD
      See Also:
  • Constructor Details

    • ShadowBaseService

      public ShadowBaseService()
  • Method Details

    • run

      public void run()
      Description copied from class: BaseService
      method is used internally by SoftwareMining framework. Allows the root LAUNCHING programs to be run in a separate thread. This is important for Screen-handling applications.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class BaseService
    • getTcbd

      protected abstract AbstractCBLField getTcbd()
    • getRelocate

      protected abstract AbstractCBLField getRelocate()
    • execute

      public Integer execute()
      Description copied from class: BaseService
      Run the program - transferring any parameters via method "addCallParameter" to the called program. Note that in some COBOL application a very large number of Parameters will be passed between programs. For example, 20 parameters may be used in a call. This makes it impractical to have a a single "execute" method with 20 parameters to receive the calls. After successful execution of program, the parameters passed by reference will have new values.
      Specified by:
      execute in interface IBaseService
      Overrides:
      execute in class BaseService
      Returns:
      '0' represents successful completion of called program
    • shadowPrepareMap

      public void shadowPrepareMap(String mapName, AbstractCBLField mapPointer)
    • shadowPrepareMap

      public void shadowPrepareMap(String mapName)
    • shadowReadMap

      public void shadowReadMap(String mapName, AbstractCBLField mapPointer)
    • shadowReadMap

      public void shadowReadMap(String mapName)
    • shadowWriteMap

      public void shadowWriteMap(String mapName, AbstractCBLField mapPointer, boolean erase)
    • shadowWriteMap

      public void shadowWriteMap(String mapName, boolean erase)
    • clearScreen

      public void clearScreen()
    • shadowWriteToConsole

      public void shadowWriteToConsole(ISMObject toWrite)
    • shadowWriteToConsole

      public void shadowWriteToConsole(String toWrite)
    • shadowWait

      public void shadowWait(long millis)
    • shadowCurrentTime

      public String shadowCurrentTime()
    • shadowCurrentDate

      public String shadowCurrentDate()
    • shadowRead

      public void shadowRead(ISMObject fileName, ISMObject key, int mode, int options, AbstractCBLField to) throws ShadowFileBusyException
      Throws:
      ShadowFileBusyException
    • shadowPoint

      public void shadowPoint(ISMObject fileName, ISMObject key, int mode, int options)
    • shadowWrite

      public void shadowWrite(ISMObject fileName, ISMObject key, int mode, int options, ISMObject size, AbstractCBLField from)
    • shadowRewrite

      public void shadowRewrite(ISMObject fileName, ISMObject key, int mode, int options, ISMObject size, AbstractCBLField from)
    • shadowDelete

      public void shadowDelete(ISMObject fileName, ISMObject key)
    • quit

      public void quit()
      Description copied from class: BaseService
      Gracefully Stop the execution of this program
      Overrides:
      quit in class BaseService