|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opensync.schedule.SchedulerEntry
This class reprsents a entry of the scheduler
| Field Summary | |
protected java.util.Date |
date
The date |
protected int |
dayOfMonth
The day of month |
protected int |
dayOfWeek
The day of week |
protected int |
hour
The hour |
protected int |
minute
The minute |
| Constructor Summary | |
SchedulerEntry(java.lang.String name,
java.util.Date date,
java.lang.Runnable runnable)
Construct a schedule entry |
|
SchedulerEntry(java.lang.String name,
int day,
int hour,
int minute,
java.lang.Runnable runnable,
boolean ofWeek)
Construct a schedule entry |
|
SchedulerEntry(java.lang.String name,
java.lang.Runnable runnable)
Construct a schedule entry |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Compare the date of the entry |
java.util.Date |
getDate()
Get the date |
int |
getDayOfMonth()
Get the day of month |
int |
getDayOfWeek()
Get the day of week |
int |
getHour()
Get the hour |
int |
getMinute()
Get the minute |
java.lang.String |
getName()
Get the name of the entry |
java.lang.Runnable |
getRunnable()
Get the runnable object |
long |
getTime()
Get the time |
int |
hashCode()
|
protected boolean |
isPastTime(int hour,
int minute)
Test if the time is a past time |
boolean |
isTimeSchedule()
Is a time scheduling |
void |
setNextTime()
Set next time to start the runnable object |
java.lang.String |
toString()
Use for debug only |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Date date
protected int hour
protected int minute
protected int dayOfWeek
protected int dayOfMonth
| Constructor Detail |
public SchedulerEntry(java.lang.String name,
java.util.Date date,
java.lang.Runnable runnable)
name - the name of the entrydate - the date to start the runnablerunnable - the runnable object to start
public SchedulerEntry(java.lang.String name,
java.lang.Runnable runnable)
name - the name of the entryrunnable - the runnable object to start
public SchedulerEntry(java.lang.String name,
int day,
int hour,
int minute,
java.lang.Runnable runnable,
boolean ofWeek)
name - the name of the entryday - hour - minute - runnable - the runnable object to startofWeek - | Method Detail |
public java.util.Date getDate()
public java.lang.String toString()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the entry to comparepublic int getHour()
public int getMinute()
public int getDayOfWeek()
public long getTime()
public int getDayOfMonth()
public java.lang.Runnable getRunnable()
public int hashCode()
public void setNextTime()
protected boolean isPastTime(int hour,
int minute)
hour - the hout to testminute - public boolean isTimeSchedule()
public java.lang.String getName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||