Class ScheduleRecord
- java.lang.Object
-
- org.apache.manifoldcf.crawler.interfaces.ScheduleRecord
-
public class ScheduleRecord extends java.lang.ObjectThis class describes a single scheduling record, which describes a matching date and time for a job to be started or unblocked. It also describes the throttle rate that should be in effect for the interval. This class is immutable.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected EnumeratedValuesdayOfMonthprotected EnumeratedValuesdayOfWeekprotected java.lang.Longdurationprotected EnumeratedValueshourOfDayprotected EnumeratedValuesminutesOfHourprotected EnumeratedValuesmonthOfYearprotected booleanrequestMinimumprotected java.lang.Stringtimezoneprotected EnumeratedValuesyear
-
Constructor Summary
Constructors Constructor Description ScheduleRecord(EnumeratedValues dayOfWeek, EnumeratedValues monthOfYear, EnumeratedValues dayOfMonth, EnumeratedValues year, EnumeratedValues hourOfDay, EnumeratedValues minutesOfHour, java.lang.String timezone, java.lang.Long duration, boolean requestMinimum)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumeratedValuesgetDayOfMonth()Get the day of month.EnumeratedValuesgetDayOfWeek()Get the day of week.java.lang.LonggetDuration()Get the window duration.EnumeratedValuesgetHourOfDay()Get the hour of the day.EnumeratedValuesgetMinutesOfHour()Get the minutes of the hour.EnumeratedValuesgetMonthOfYear()Get the month of year.booleangetRequestMinimum()Get whether the schedule record corresponds to a minimal request or not.java.lang.StringgetTimezone()Get the timezone.EnumeratedValuesgetYear()Get the year.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
dayOfWeek
protected final EnumeratedValues dayOfWeek
-
monthOfYear
protected final EnumeratedValues monthOfYear
-
dayOfMonth
protected final EnumeratedValues dayOfMonth
-
year
protected final EnumeratedValues year
-
hourOfDay
protected final EnumeratedValues hourOfDay
-
minutesOfHour
protected final EnumeratedValues minutesOfHour
-
timezone
protected final java.lang.String timezone
-
duration
protected final java.lang.Long duration
-
requestMinimum
protected final boolean requestMinimum
-
-
Constructor Detail
-
ScheduleRecord
public ScheduleRecord(EnumeratedValues dayOfWeek, EnumeratedValues monthOfYear, EnumeratedValues dayOfMonth, EnumeratedValues year, EnumeratedValues hourOfDay, EnumeratedValues minutesOfHour, java.lang.String timezone, java.lang.Long duration, boolean requestMinimum)
Constructor.- Parameters:
dayOfWeek- is the day-of-week enumeration.monthOfYear- is the month-of-year enumeration.dayOfMonth- is the day-of-month enumeration.year- is the year enumeration.hourOfDay- is the time of day enumeration.minutesOfHour- is the minutes enumeration.timezone- is the timezone.duration- is the window duration, or null if infinite.
-
-
Method Detail
-
getDayOfWeek
public EnumeratedValues getDayOfWeek()
Get the day of week.- Returns:
- the enumeration or null.
-
getMonthOfYear
public EnumeratedValues getMonthOfYear()
Get the month of year.- Returns:
- the enumeration or null.
-
getDayOfMonth
public EnumeratedValues getDayOfMonth()
Get the day of month.- Returns:
- the enumeration or null.
-
getYear
public EnumeratedValues getYear()
Get the year.- Returns:
- the enumeration or null.
-
getHourOfDay
public EnumeratedValues getHourOfDay()
Get the hour of the day.- Returns:
- the enumeration or null.
-
getMinutesOfHour
public EnumeratedValues getMinutesOfHour()
Get the minutes of the hour.- Returns:
- the enumeration or null.
-
getTimezone
public java.lang.String getTimezone()
Get the timezone.- Returns:
- the timezone or null.
-
getDuration
public java.lang.Long getDuration()
Get the window duration.- Returns:
- the duration or null.
-
getRequestMinimum
public boolean getRequestMinimum()
Get whether the schedule record corresponds to a minimal request or not.- Returns:
- true if minimal request.
-
-