|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The UpdatePolicy models the data feeder update policy in terms of when to start, stop, and update interval.
| Field Summary | |
static int |
UPDATE_FRI |
static int |
UPDATE_MONConstants for setting update days |
static int |
UPDATE_SAT |
static int |
UPDATE_SUN |
static int |
UPDATE_THU |
static int |
UPDATE_TUE |
static int |
UPDATE_WED |
static int |
UPDATE_WEEKENDS |
static int |
UPDATE_WORKDAYS |
| Method Summary | |
int |
getBatchSize()Get the batch size to use for downloads |
int |
getEndTimeHour()Get the end time hour portion |
int |
getEndTimeMin()Get the end time minute portion |
int |
getEndTimeSec()Get the end time seconds portion |
java.util.Date |
getNextUpdateEnd()Get the date/time of the next update cycle end, relative to right now. |
java.util.Date |
getNextUpdateStart()Get the date/time of the next update cycle start, relative to right now. |
int |
getStartTimeHour()Get the start time hour portion |
int |
getStartTimeMin()Get the start time minute portion |
int |
getStartTimeSec()Get the start time seconds portion |
int |
getUpdateDays()Get the days of the week to run |
long |
getUpdateInterval()Get the interval between updates, in seconds |
void |
setBatchSize(int batchSize)Set the batch size to use for downloads |
void |
setEndTime(int hour, int minute, int sec)set the time that the data feeder should stop run. |
void |
setStartTime(int hour, int minute, int sec)set the start time that the data feeder should run. |
void |
setUpdateDays(int bitmask)Set the days of the week to run The days are specified as an bitmask; for example in order to update on Mondays and Wednesdays you would do the following: updatePolicy.setUpdateDays(UpdatePolicy.UPDATE_MON | UpdatePolicy.UPDATE_WED); |
void |
setUpdateInterval(long interval)Set the interval between updates, in seconds |
| Field Detail |
public static final int UPDATE_MON
The notion of 'Workdays' is hard-wired: UPDATE_WORKDAYS means Monday through Friday UPDATE_WEEKENDS means Saturday and Sunday, Constant Field Valuespublic static final int UPDATE_TUE
public static final int UPDATE_WED
public static final int UPDATE_THU
public static final int UPDATE_FRI
public static final int UPDATE_SAT
public static final int UPDATE_SUN
public static final int UPDATE_WORKDAYS
public static final int UPDATE_WEEKENDS
| Method Detail |
public void setStartTime(int hour,
int minute,
int sec)
hour - start hour, 0-23minute - start minute, 0-59public int getStartTimeHour()
public int getStartTimeMin()
public int getStartTimeSec()
public void setEndTime(int hour,
int minute,
int sec)
hour - end hour, 0-23minute - end minute, 0-59public int getEndTimeHour()
public int getEndTimeMin()
public int getEndTimeSec()
public long getUpdateInterval()
public void setUpdateInterval(long interval)
interval - the new update intervalpublic int getBatchSize()
public void setBatchSize(int batchSize)
batchSize - the new batch sizepublic void setUpdateDays(int bitmask)
updatePolicy.setUpdateDays(UpdatePolicy.UPDATE_MON | UpdatePolicy.UPDATE_WED);bitmask - specifying which days to runpublic int getUpdateDays()
public java.util.Date getNextUpdateStart()
public java.util.Date getNextUpdateEnd()
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||