Class EventManager
- java.lang.Object
-
- org.apache.manifoldcf.core.database.BaseTable
-
- org.apache.manifoldcf.crawler.jobs.EventManager
-
public class EventManager extends BaseTable
This class manages the events table. A row in this table indicates that a specific event sequence is in progress. For example, a login sequence for a specific web domain may be underway. During the time that the event is taking place, no documents that depend on that event will be queued for processing.
eventsField Type Description name VARCHAR(255) Primary Key processid VARCHAR(16)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidstatic java.lang.StringeventNameFieldstatic java.lang.StringprocessIDField-
Fields inherited from class org.apache.manifoldcf.core.database.BaseTable
dbInterface, tableName
-
-
Constructor Summary
Constructors Constructor Description EventManager(IDBInterface database)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateEvent(java.lang.String eventName, java.lang.String processID)Atomically create an event - and return false if the event already existsvoiddeinstall()Uninstall.voiddestroyEvent(java.lang.String eventName)Destroy an eventvoidinstall()Install or upgrade this table.voidrestart()Clean up after all processIDs.voidrestart(java.lang.String processID)Prepare for restart.voidrestartCluster()Restart cluster.-
Methods inherited from class org.apache.manifoldcf.core.database.BaseTable
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepFor
-
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
eventNameField
public static final java.lang.String eventNameField
- See Also:
- Constant Field Values
-
processIDField
public static final java.lang.String processIDField
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EventManager
public EventManager(IDBInterface database) throws ManifoldCFException
Constructor.- Parameters:
database- is the database handle.- Throws:
ManifoldCFException
-
-
Method Detail
-
install
public void install() throws ManifoldCFExceptionInstall or upgrade this table.- Throws:
ManifoldCFException
-
deinstall
public void deinstall() throws ManifoldCFExceptionUninstall.- Throws:
ManifoldCFException
-
restart
public void restart(java.lang.String processID) throws ManifoldCFExceptionPrepare for restart.- Parameters:
processID- is the processID to restart.- Throws:
ManifoldCFException
-
restart
public void restart() throws ManifoldCFExceptionClean up after all processIDs.- Throws:
ManifoldCFException
-
restartCluster
public void restartCluster() throws ManifoldCFExceptionRestart cluster.- Throws:
ManifoldCFException
-
createEvent
public void createEvent(java.lang.String eventName, java.lang.String processID) throws ManifoldCFExceptionAtomically create an event - and return false if the event already exists- Throws:
ManifoldCFException
-
destroyEvent
public void destroyEvent(java.lang.String eventName) throws ManifoldCFExceptionDestroy an event- Throws:
ManifoldCFException
-
-