Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.media.mn8.util.cron
Class CronTrigger  view CronTrigger download CronTrigger.java

java.lang.Object
  extended byorg.media.mn8.util.cron.CronTrigger
All Implemented Interfaces:
Trigger

public class CronTrigger
extends java.lang.Object
implements Trigger


Field Summary
protected  int m_dayOfMonth
           
protected  int m_dayOfWeek
           
protected  int m_hour
           
protected  int m_minute
           
protected  int m_month
           
protected  int m_year
           
 
Constructor Summary
CronTrigger(int minute, int hour, int day, int month, int year, boolean isDayOfWeek)
          Constructor for Cron.
 
Method Summary
 long getTimeAfter(long time)
          Retrieve the next time at which this trigger activates.
 void reset()
          Reset the cron-trigger.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_minute

protected final int m_minute

m_hour

protected final int m_hour

m_dayOfMonth

protected final int m_dayOfMonth

m_month

protected final int m_month

m_dayOfWeek

protected final int m_dayOfWeek

m_year

protected final int m_year
Constructor Detail

CronTrigger

public CronTrigger(int minute,
                   int hour,
                   int day,
                   int month,
                   int year,
                   boolean isDayOfWeek)
Constructor for Cron. Day is either day of week or day of month depending on value of isDayOfWeek. if (isDayOfWeek == true) then valid values are 1-7 otherwise the values are 1-31

Method Detail

getTimeAfter

public long getTimeAfter(long time)
Retrieve the next time at which this trigger activates.

Specified by:
getTimeAfter in interface Trigger

reset

public void reset()
Reset the cron-trigger.

Specified by:
reset in interface Trigger

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).