| Constructor and Description |
|---|
CrawlerAgent()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp(IThreadContext threadContext)
Tear down agent environment.
|
void |
cleanUpAgentData(IThreadContext threadContext,
String currentProcessID,
String cleanupProcessID)
Cleanup after agents process.
|
void |
cleanUpAllAgentData(IThreadContext threadContext,
String currentProcessID)
Cleanup after ALL agents processes.
|
void |
clusterInit(IThreadContext threadContext)
Called ONLY when no other active services of this kind are running.
|
void |
deinstall(IThreadContext threadContext)
Uninstall agent.
|
void |
initialize(IThreadContext threadContext)
Initialize agent environment.
|
void |
install(IThreadContext threadContext)
Install agent.
|
boolean |
isOutputConnectionInUse(IThreadContext threadContext,
String connName)
Request permission from agent to delete an output connection.
|
boolean |
isTransformationConnectionInUse(IThreadContext threadContext,
String connName)
Request permission from agent to delete a transformation connection.
|
void |
noteOutputConnectionChange(IThreadContext threadContext,
String connectionName)
Note a change in configuration for an output connection.
|
void |
noteOutputConnectorDeregistration(IThreadContext threadContext,
String[] connectionNames)
Note the deregistration of a set of output connections.
|
void |
noteOutputConnectorRegistration(IThreadContext threadContext,
String[] connectionNames)
Note the registration of a set of output connections.
|
void |
noteTransformationConnectionChange(IThreadContext threadContext,
String connectionName)
Note a change in configuration for a transformation connection.
|
void |
noteTransformationConnectorDeregistration(IThreadContext threadContext,
String[] connectionNames)
Note the deregistration of a set of transformation connections.
|
void |
noteTransformationConnectorRegistration(IThreadContext threadContext,
String[] connectionNames)
Note the registration of a set of transformation connections.
|
void |
startAgent(IThreadContext threadContext,
String processID)
Start the agent.
|
void |
startSystem(IThreadContext threadContext)
Start everything.
|
void |
stopAgent(IThreadContext threadContext)
Stop the agent.
|
void |
stopSystem(IThreadContext threadContext)
Stop the system.
|
public static final String _rcsid
protected JobStartThread jobStartThread
protected StufferThread stufferThread
protected FinisherThread finisherThread
protected JobNotificationThread notificationThread
protected StartupThread startupThread
protected StartDeleteThread startDeleteThread
protected JobDeleteThread jobDeleteThread
protected WorkerThread[] workerThreads
protected ExpireStufferThread expireStufferThread
protected ExpireThread[] expireThreads
protected DocumentDeleteStufferThread deleteStufferThread
protected DocumentDeleteThread[] deleteThreads
protected DocumentCleanupStufferThread cleanupStufferThread
protected DocumentCleanupThread[] cleanupThreads
protected JobResetThread jobResetThread
protected SeedingThread seedingThread
protected IdleCleanupThread idleCleanupThread
protected SetPriorityThread setPriorityThread
protected HistoryCleanupThread historyCleanupThread
protected AssessmentThread assessmentThread
protected WorkerResetManager workerResetManager
protected DocDeleteResetManager docDeleteResetManager
protected DocCleanupResetManager docCleanupResetManager
protected int numWorkerThreads
protected int numDeleteThreads
protected int numCleanupThreads
protected int numExpireThreads
protected float lowWaterFactor
protected float stuffAmtFactor
protected String processID
public CrawlerAgent()
throws ManifoldCFException
threadContext - is the thread context.ManifoldCFExceptionpublic void initialize(IThreadContext threadContext) throws ManifoldCFException
initialize in interface IAgentManifoldCFExceptionpublic void cleanUp(IThreadContext threadContext) throws ManifoldCFException
cleanUp in interface IAgentManifoldCFExceptionpublic void install(IThreadContext threadContext) throws ManifoldCFException
install in interface IAgentManifoldCFExceptionpublic void deinstall(IThreadContext threadContext) throws ManifoldCFException
deinstall in interface IAgentManifoldCFExceptionpublic void clusterInit(IThreadContext threadContext) throws ManifoldCFException
clusterInit in interface IAgentManifoldCFExceptionpublic void cleanUpAllAgentData(IThreadContext threadContext, String currentProcessID) throws ManifoldCFException
cleanUpAllAgentData in interface IAgentprocessID - is the current process ID.ManifoldCFExceptionpublic void cleanUpAgentData(IThreadContext threadContext, String currentProcessID, String cleanupProcessID) throws ManifoldCFException
cleanUpAgentData in interface IAgentcurrentProcessID - is the current process ID.cleanupProcessID - is the process ID of the agent to clean up after.ManifoldCFExceptionpublic void startAgent(IThreadContext threadContext, String processID) throws ManifoldCFException
startAgent in interface IAgentprocessID - is the process ID to start up an agent for.ManifoldCFExceptionpublic void stopAgent(IThreadContext threadContext) throws ManifoldCFException
stopAgent in interface IAgentManifoldCFExceptionpublic boolean isOutputConnectionInUse(IThreadContext threadContext, String connName) throws ManifoldCFException
isOutputConnectionInUse in interface IAgentconnName - is the name of the output connection.ManifoldCFExceptionpublic void noteOutputConnectorDeregistration(IThreadContext threadContext, String[] connectionNames) throws ManifoldCFException
noteOutputConnectorDeregistration in interface IAgentconnectionNames - are the names of the connections being deregistered.ManifoldCFExceptionpublic void noteOutputConnectorRegistration(IThreadContext threadContext, String[] connectionNames) throws ManifoldCFException
noteOutputConnectorRegistration in interface IAgentconnectionNames - are the names of the connections being registered.ManifoldCFExceptionpublic void noteOutputConnectionChange(IThreadContext threadContext, String connectionName) throws ManifoldCFException
noteOutputConnectionChange in interface IAgentconnectionName - is the name of the connections being changed.ManifoldCFExceptionpublic boolean isTransformationConnectionInUse(IThreadContext threadContext, String connName) throws ManifoldCFException
isTransformationConnectionInUse in interface IAgentconnName - is the name of the transformation connection.ManifoldCFExceptionpublic void noteTransformationConnectorDeregistration(IThreadContext threadContext, String[] connectionNames) throws ManifoldCFException
noteTransformationConnectorDeregistration in interface IAgentconnectionNames - are the names of the connections being deregistered.ManifoldCFExceptionpublic void noteTransformationConnectorRegistration(IThreadContext threadContext, String[] connectionNames) throws ManifoldCFException
noteTransformationConnectorRegistration in interface IAgentconnectionNames - are the names of the connections being registered.ManifoldCFExceptionpublic void noteTransformationConnectionChange(IThreadContext threadContext, String connectionName) throws ManifoldCFException
noteTransformationConnectionChange in interface IAgentconnectionName - is the name of the connection being changed.ManifoldCFExceptionpublic void startSystem(IThreadContext threadContext) throws ManifoldCFException
ManifoldCFExceptionpublic void stopSystem(IThreadContext threadContext) throws ManifoldCFException
ManifoldCFException