com.pmease.quickbuild.taskschedule.schedule
Class CronSchedule

java.lang.Object
  extended by com.pmease.quickbuild.taskschedule.schedule.Schedule
      extended by com.pmease.quickbuild.taskschedule.schedule.CronSchedule
All Implemented Interfaces:
Validatable, java.io.Serializable, java.lang.Cloneable

public class CronSchedule
extends Schedule
implements Validatable

See Also:
Serialized Form

Constructor Summary
CronSchedule()
           
 
Method Summary
 Schedule cloneSchedule()
           
 boolean equals(java.lang.Object other)
           
 java.lang.String getExpression()
          Get cron expression for this schedule, the format is <seconds> <minutes> <hours> <day-of-month> <month> <day-of-week>.
For example, <em>0 0 1 * * ?</em> means 1:00am every day.
 org.quartz.Trigger getTrigger()
           
 int hashCode()
           
 void setExpression(java.lang.String expression)
           
 java.lang.String toString()
           
 void validate(java.util.Set<java.lang.String> properties, ErrorContext errorContext)
           
 
Methods inherited from class com.pmease.quickbuild.taskschedule.schedule.Schedule
clone, getRandomRange, isPaused, setPaused, setRandomRange
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CronSchedule

public CronSchedule()
Method Detail

getExpression

@NotEmpty
public java.lang.String getExpression()
Get cron expression for this schedule, the format is <seconds> <minutes> <hours> <day-of-month> <month> <day-of-week>.
For example, <em>0 0 1 * * ?</em> means 1:00am every day. For details of the format, refer to http://www.opensymphony.com/quartz/wikidocs/TutorialLesson6.html.


setExpression

public void setExpression(java.lang.String expression)

getTrigger

public org.quartz.Trigger getTrigger()
Specified by:
getTrigger in class Schedule

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate(java.util.Set<java.lang.String> properties,
                     ErrorContext errorContext)
Specified by:
validate in interface Validatable

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

cloneSchedule

public Schedule cloneSchedule()
Specified by:
cloneSchedule in class Schedule


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.