20080903, rgf

org.rexxla.bsf.engines.rexx
Class RexxAndJava.ExitDelayed

java.lang.Object
  extended byorg.rexxla.bsf.engines.rexx.RexxAndJava.ExitDelayed
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
RexxAndJava

class RexxAndJava.ExitDelayed
extends java.lang.Object
implements java.lang.Runnable

Class to exit the JVM, will be executed concurrently, sleeps and then calls System.exit(exit_number). This allows the Rexx side to gain time to shutdown properly.


Field Summary
(package private)  int exitCode
          Holds the return value to be returned.
(package private)  long sleepTime
          Holds the time in milliseconds to wait before terminating the virtual machine.
 
Constructor Summary
(package private) RexxAndJava.ExitDelayed(int exitCode, long sleepTime)
          Saves the exitCode.
 
Method Summary
 void run()
          This makes this thread runnable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exitCode

int exitCode
Holds the return value to be returned.


sleepTime

long sleepTime
Holds the time in milliseconds to wait before terminating the virtual machine. This should allow Rexx time to shutdown properly.

Constructor Detail

RexxAndJava.ExitDelayed

RexxAndJava.ExitDelayed(int exitCode,
                        long sleepTime)
Saves the exitCode.

Method Detail

run

public void run()
This makes this thread runnable. Will wait sleepTime and terminates the Java virtual machine with exitCode.

Specified by:
run in interface java.lang.Runnable

20080903, rgf