|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.management.oss.impl.pm.util.ScheduleImpl
Title: JSR090 Reference Implementation Description: Copyright: Copyright 2001 Ericsson Radio Systems AB Company: Ericsson
| Constructor Summary | |
ScheduleImpl()
|
|
| Method Summary | |
java.lang.Object |
clone()
Deep copy of this instance. |
DailySchedule |
getDailySchedule()
Gets the daily schedule of the schedule. |
java.util.Calendar |
getStartTime()
Returns the start time. |
java.util.Calendar |
getStopTime()
Returns the stop time of the schedule. |
WeeklySchedule |
getWeeklySchedule()
Gets the weekly schedule of the schedule. |
boolean |
isActive()
Checks if the schedule is active or not. |
DailySchedule |
makeDailySchedule()
Creates a new instance of the DailySchedule interface. |
WeeklySchedule |
makeWeeklySchedule()
Creates a new instance of the WeeklySchedule interface. |
void |
setDailySchedule(DailySchedule daily)
Sets the daily schedule of the schedule. |
void |
setStartTime(java.util.Calendar start)
Sets the start time of the schedule. |
void |
setStopTime(java.util.Calendar stop)
Sets the stop time of the schedule. |
void |
setWeeklySchedule(WeeklySchedule week)
Sets the weekly schedule of the schedule. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ScheduleImpl()
| Method Detail |
public java.lang.Object clone()
Schedule
clone in interface Schedulepublic WeeklySchedule makeWeeklySchedule()
makeWeeklySchedule in interface Schedulepublic DailySchedule makeDailySchedule()
makeDailySchedule in interface Schedulepublic boolean isActive()
If the current date and time is within the defined schedule this method will return true. If the current date and time is outside the schedule false will be returned.
isActive in interface Schedulepublic java.util.Calendar getStartTime()
getStartTime in interface ScheduleSchedule.setStartTime(java.util.Calendar)public void setStartTime(java.util.Calendar start)
The start time specifies when the schedule shall start to be active. If no start time is provided, the schedule is active immediately.
If start time is null the start time will be cleared.
setStartTime in interface Schedulestart - Start time of the schedule.Schedule.getStartTime()public java.util.Calendar getStopTime()
getStopTime in interface ScheduleSchedule.setStopTime(java.util.Calendar)public void setStopTime(java.util.Calendar stop)
The stop time specifies when the schedule shall stop. The schedule will remain active until the stop time - if set - is reached. If no stop time is specified the schedule will be active indefinitely.
If stop time is null the stop time will be cleared.
setStopTime in interface Schedulestop - Stop time of the measurement job.Schedule.getStopTime()public WeeklySchedule getWeeklySchedule()
getWeeklySchedule in interface ScheduleSchedule.setWeeklySchedule(com.sun.management.oss.pm.util.WeeklySchedule)public void setWeeklySchedule(WeeklySchedule week)
The weekly schedule specifies which day of the week the schedule will be active. If weekly schedule is omitted the schedule will run all days of the week.
If weekly schedule is null the weekly schedule will be cleared.
setWeeklySchedule in interface Scheduleweek - The weekly schedule of the schedule.Schedule.getWeeklySchedule()public DailySchedule getDailySchedule()
getDailySchedule in interface ScheduleSchedule.setDailySchedule(com.sun.management.oss.pm.util.DailySchedule)public void setDailySchedule(DailySchedule daily)
The daily schedule specifies the time frames during the day that the schedule will be active. If daily schedule is omitted, the schedule will run continuously through the day.
If daily schedule is null the daily schedule will be cleared.
setDailySchedule in interface Scheduledaily - The daily schedule of the schedule.Schedule.getDailySchedule()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||