com.ibm.di.util
Class Schedule

java.lang.Object
  extended by com.ibm.di.util.Schedule

public class Schedule
extends java.lang.Object

Class used to compute the next date a Scheduler will be run


Constructor Summary
Schedule(java.lang.String schedule)
          Constructor.
 
Method Summary
 java.util.Date getNext(java.util.Date current)
          Computes the next date after the given date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schedule

public Schedule(java.lang.String schedule)
         throws java.lang.Exception
Constructor. The schedule parameter must be similar to crontab format, with 6 fields, separated by space.

Parameters:
schedule -
Throws:
java.lang.Exception
Method Detail

getNext

public java.util.Date getNext(java.util.Date current)
                       throws java.lang.Exception
Computes the next date after the given date.

Parameters:
current - - If null, uses current date instead.
Returns:
Throws:
java.lang.Exception - If no date can be found.