gui.run
Class RunJobUtils

java.lang.Object
  extended by gui.run.RunJobUtils

public class RunJobUtils
extends java.lang.Object

Copyright DocJava, inc. User: lyon

Date: Nov 15, 2004

Time: 5:59:55 AM


Constructor Summary
RunJobUtils()
           
 
Method Summary
static void killJvmIfFileExists(java.io.File f)
          Kill the JVM if the file exists.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunJobUtils

public RunJobUtils()
Method Detail

main

public static void main(java.lang.String[] args)

killJvmIfFileExists

public static void killJvmIfFileExists(java.io.File f)
Kill the JVM if the file exists. Great for an asynchronous kill of the present JVM by another JVM. Better make sure you clean up your mess on exit, since this is SUDDEN DEATH. This program has the side-effect of deleting the lock file, on exit.

Parameters:
f - the lock file to signal the kill.