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
_rcsid
static java.lang.String
eventNameField
static java.lang.String
processIDField
-
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 void
createEvent(java.lang.String eventName, java.lang.String processID)
Atomically create an event - and return false if the event already existsvoid
deinstall()
Uninstall.void
destroyEvent(java.lang.String eventName)
Destroy an eventvoid
install()
Install or upgrade this table.void
restart()
Clean up after all processIDs.void
restart(java.lang.String processID)
Prepare for restart.void
restartCluster()
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 ManifoldCFException
Install or upgrade this table.- Throws:
ManifoldCFException
-
deinstall
public void deinstall() throws ManifoldCFException
Uninstall.- Throws:
ManifoldCFException
-
restart
public void restart(java.lang.String processID) throws ManifoldCFException
Prepare for restart.- Parameters:
processID
- is the processID to restart.- Throws:
ManifoldCFException
-
restart
public void restart() throws ManifoldCFException
Clean up after all processIDs.- Throws:
ManifoldCFException
-
restartCluster
public void restartCluster() throws ManifoldCFException
Restart cluster.- Throws:
ManifoldCFException
-
createEvent
public void createEvent(java.lang.String eventName, java.lang.String processID) throws ManifoldCFException
Atomically create an event - and return false if the event already exists- Throws:
ManifoldCFException
-
destroyEvent
public void destroyEvent(java.lang.String eventName) throws ManifoldCFException
Destroy an event- Throws:
ManifoldCFException
-
-