ibis.util
Class Postpone

java.lang.Object
  extended byibis.util.Postpone

public class Postpone
extends java.lang.Object

A class that allows you to postpone starting a program for a specified number of seconds. This may be useful under Windows, which does not have a sleep command.


Constructor Summary
Postpone()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main program.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Postpone

public Postpone()
Method Detail

main

public static void main(java.lang.String[] args)
Main program. It finds the main method in the class specified by the second argument, and invokes it with the rest of the arguments after sleeping for the number of seconds specified by the first argument.

Parameters:
args - the array of arguments. The first argument specifies the number of seconds to sleep, the second argument specifies the name of the class whose main method must be invoked, the rest of the arguments are passed on to the main invocation.


The Ibis project