Class AgentManager
- java.lang.Object
-
- org.apache.manifoldcf.core.database.BaseTable
-
- org.apache.manifoldcf.agents.agentmanager.AgentManager
-
- All Implemented Interfaces:
IAgentManager
public class AgentManager extends BaseTable implements IAgentManager
This is the implementation of IAgentManager.
agentsField Type Description classname VARCHAR(255) Primary Key
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected static java.lang.StringclassNameFieldprotected IThreadContextthreadContext-
Fields inherited from class org.apache.manifoldcf.core.database.BaseTable
dbInterface, tableName
-
-
Constructor Summary
Constructors Constructor Description AgentManager(IThreadContext threadContext, IDBInterface database)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeinstall()Uninstall.java.lang.String[]getAllAgents()Get a list of all registered agent class names.voidinstall()Install or upgrade.voidregisterAgent(java.lang.String className)Register an agent.voidremoveAgent(java.lang.String className)Remove an agent.voidunregisterAgent(java.lang.String className)Unregister an agent.-
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
-
classNameField
protected static final java.lang.String classNameField
- See Also:
- Constant Field Values
-
threadContext
protected IThreadContext threadContext
-
-
Constructor Detail
-
AgentManager
public AgentManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
Constructor.- Parameters:
threadContext- is the thread context.database- is the database instance.- Throws:
ManifoldCFException
-
-
Method Detail
-
install
public void install() throws ManifoldCFExceptionInstall or upgrade.- Specified by:
installin interfaceIAgentManager- Throws:
ManifoldCFException
-
deinstall
public void deinstall() throws ManifoldCFExceptionUninstall. Also uninstalls all remaining agents.- Specified by:
deinstallin interfaceIAgentManager- Throws:
ManifoldCFException
-
registerAgent
public void registerAgent(java.lang.String className) throws ManifoldCFExceptionRegister an agent.- Specified by:
registerAgentin interfaceIAgentManager- Parameters:
className- is the class.- Throws:
ManifoldCFException
-
unregisterAgent
public void unregisterAgent(java.lang.String className) throws ManifoldCFExceptionUnregister an agent.- Specified by:
unregisterAgentin interfaceIAgentManager- Parameters:
className- is the class to unregister.- Throws:
ManifoldCFException
-
removeAgent
public void removeAgent(java.lang.String className) throws ManifoldCFExceptionRemove an agent. Use this when the agent cannot be invoked. The agent becomes unavailable, but its schema is not cleaned up.- Specified by:
removeAgentin interfaceIAgentManager- Parameters:
className- is the class to remove.- Throws:
ManifoldCFException
-
getAllAgents
public java.lang.String[] getAllAgents() throws ManifoldCFExceptionGet a list of all registered agent class names.- Specified by:
getAllAgentsin interfaceIAgentManager- Returns:
- the classnames in an array.
- Throws:
ManifoldCFException
-
-