org.apache.manifoldcf.crawler.jobs
Class EventManager

java.lang.Object
  extended by org.apache.manifoldcf.core.database.BaseTable
      extended by 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.


Field Summary
static java.lang.String _rcsid
           
static java.lang.String eventNameField
           
 
Fields inherited from class org.apache.manifoldcf.core.database.BaseTable
dbInterface, tableName
 
Constructor Summary
EventManager(IDBInterface database)
          Constructor.
 
Method Summary
 void createEvent(java.lang.String eventName)
          Atomically create an event - and return false if the event already exists
 void deinstall()
          Uninstall.
 void destroyEvent(java.lang.String eventName)
          Destroy an event
 void install()
          Install or upgrade this table.
 void restart()
          Prepare for restart.
 
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

_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
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()
             throws ManifoldCFException
Prepare for restart.

Throws:
ManifoldCFException

createEvent

public void createEvent(java.lang.String eventName)
                 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