|
|||||||||||
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 Schedule
public WeeklySchedule makeWeeklySchedule()
makeWeeklySchedule
in interface Schedule
public DailySchedule makeDailySchedule()
makeDailySchedule
in interface Schedule
public 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 Schedule
public java.util.Calendar getStartTime()
getStartTime
in interface Schedule
Schedule.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 Schedule
start
- Start time of the schedule.Schedule.getStartTime()
public java.util.Calendar getStopTime()
getStopTime
in interface Schedule
Schedule.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 Schedule
stop
- Stop time of the measurement job.Schedule.getStopTime()
public WeeklySchedule getWeeklySchedule()
getWeeklySchedule
in interface Schedule
Schedule.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 Schedule
week
- The weekly schedule of the schedule.Schedule.getWeeklySchedule()
public DailySchedule getDailySchedule()
getDailySchedule
in interface Schedule
Schedule.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 Schedule
daily
- The daily schedule of the schedule.Schedule.getDailySchedule()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |