Package com.sodius.oslc.server.core.jobs
Class JobSchedule.FixedRateSchedule
java.lang.Object
com.sodius.oslc.server.core.jobs.JobSchedule
com.sodius.oslc.server.core.jobs.JobSchedule.FixedRateSchedule
- All Implemented Interfaces:
Serializable
- Enclosing class:
JobSchedule
Provides information for a job to schedule at a fixed rate.
- Since:
- 3.11.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sodius.oslc.server.core.jobs.JobSchedule
JobSchedule.FixedDelaySchedule, JobSchedule.FixedRateSchedule, JobSchedule.Type -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a description of the schedule, for end-user understanding, typically inserted in audit events.intgetHour()Returns the hour (0 to 23) at which the job must run.intReturns the minute (0 to 59) at which the job must run.getType()ReturnsJobSchedule.Type.FIXED_RATE.inthashCode()Methods inherited from class com.sodius.oslc.server.core.jobs.JobSchedule
atFixedRate, disabled, toString, withFixedDelay
-
Method Details
-
getType
ReturnsJobSchedule.Type.FIXED_RATE.- Specified by:
getTypein classJobSchedule- Returns:
- the type of scheduling.
-
getHour
public int getHour()Returns the hour (0 to 23) at which the job must run.- Returns:
- the hour value
-
getMinute
public int getMinute()Returns the minute (0 to 59) at which the job must run.- Returns:
- the minute value
-
getDescription
Description copied from class:JobScheduleReturns a description of the schedule, for end-user understanding, typically inserted in audit events.- Specified by:
getDescriptionin classJobSchedule- Returns:
- a description of the schedule
-
hashCode
public int hashCode()- Specified by:
hashCodein classJobSchedule
-
equals
- Specified by:
equalsin classJobSchedule
-