|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.database.BaseTable
org.apache.manifoldcf.crawler.jobs.ScheduleManager
public class ScheduleManager
This class manages the "schedules" table, which contains the automatic execution schedule for each job. It's separated from the main jobs table because we will need multiple timeslots per job.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
static java.lang.String |
dayOfMonthField
|
static java.lang.String |
dayOfWeekField
|
static java.lang.String |
hourOfDayField
|
static java.lang.String |
minutesOfHourField
|
static java.lang.String |
monthOfYearField
|
static java.lang.String |
ordinalField
|
static java.lang.String |
ownerIDField
|
static java.lang.String |
timezoneField
|
static java.lang.String |
windowDurationField
|
static java.lang.String |
yearField
|
| Fields inherited from class org.apache.manifoldcf.core.database.BaseTable |
|---|
dbInterface, tableName |
| Constructor Summary | |
|---|---|
ScheduleManager(IThreadContext threadContext,
IDBInterface database)
Constructor. |
|
| Method Summary | |
|---|---|
void |
deinstall()
Uninstall. |
void |
deleteRows(java.lang.Long ownerID)
Delete rows. |
static java.lang.String |
enumeratedValueToString(EnumeratedValues values)
Go from enumerated value to string. |
void |
getRows(java.util.Map returnValues,
java.lang.String ownerIDList,
java.util.ArrayList ownerIDParams)
Fill in a set of schedules corresponding to a set of owner id's. |
void |
getRowsAlternate(java.util.Map returnValues,
java.lang.String ownerIDList,
java.util.ArrayList ownerIDParams)
Fill in a set of schedules corresponding to a set of owner id's. |
void |
install(java.lang.String ownerTable,
java.lang.String owningTablePrimaryKey)
Install or upgrade. |
static EnumeratedValues |
stringToEnumeratedValue(java.lang.String value)
Go from string to enumerated value. |
void |
writeRows(java.lang.Long ownerID,
IJobDescription list)
Write a schedule list into the database. |
| Methods inherited from class org.apache.manifoldcf.core.database.BaseTable |
|---|
addTableIndex, analyzeTable, beginTransaction, constructDistinctOnClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getTableIndexes, getTableName, getTableSchema, getTransactionID, makeTableKey, noteModifications, performAddIndex, performAlter, performCreate, performDelete, performDrop, performInsert, performLock, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
public static final java.lang.String ownerIDField
public static final java.lang.String ordinalField
public static final java.lang.String dayOfWeekField
public static final java.lang.String dayOfMonthField
public static final java.lang.String monthOfYearField
public static final java.lang.String yearField
public static final java.lang.String hourOfDayField
public static final java.lang.String minutesOfHourField
public static final java.lang.String timezoneField
public static final java.lang.String windowDurationField
| Constructor Detail |
|---|
public ScheduleManager(IThreadContext threadContext,
IDBInterface database)
throws ManifoldCFException
threadContext - is the thread context.database - is the database instance.
ManifoldCFException| Method Detail |
|---|
public void install(java.lang.String ownerTable,
java.lang.String owningTablePrimaryKey)
throws ManifoldCFException
ownerTable - is the name of the table that owns this one.owningTablePrimaryKey - is the primary key of the owning table.
ManifoldCFException
public void deinstall()
throws ManifoldCFException
ManifoldCFException
public void getRows(java.util.Map returnValues,
java.lang.String ownerIDList,
java.util.ArrayList ownerIDParams)
throws ManifoldCFException
returnValues - is a map keyed by ownerID, with value of JobDescription.ownerIDList - is the list of owner id's.ownerIDParams - is the corresponding set of owner id parameters.
ManifoldCFException
public void getRowsAlternate(java.util.Map returnValues,
java.lang.String ownerIDList,
java.util.ArrayList ownerIDParams)
throws ManifoldCFException
returnValues - is a map keyed by ownerID, with a value that is an ArrayList of ScheduleRecord objects.ownerIDList - is the list of owner id's.ownerIDParams - is the corresponding set of owner id parameters.
ManifoldCFException
public void writeRows(java.lang.Long ownerID,
IJobDescription list)
throws ManifoldCFException
ownerID - is the owning identifier.list - is the job description that is the source of the schedule.
ManifoldCFException
public void deleteRows(java.lang.Long ownerID)
throws ManifoldCFException
ownerID - is the owner whose rows to delete.
ManifoldCFException
public static EnumeratedValues stringToEnumeratedValue(java.lang.String value)
throws ManifoldCFException
value - is the input.
ManifoldCFExceptionpublic static java.lang.String enumeratedValueToString(EnumeratedValues values)
values - is the enumerated value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||