Constructor and Description |
---|
CrawlerAgent()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp(IThreadContext threadContext)
Tear down agent environment.
|
void |
cleanUpAgentData(IThreadContext threadContext,
java.lang.String currentProcessID,
java.lang.String cleanupProcessID)
Cleanup after agents process.
|
void |
cleanUpAllAgentData(IThreadContext threadContext,
java.lang.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,
java.lang.String connName)
Request permission from agent to delete an output connection.
|
boolean |
isTransformationConnectionInUse(IThreadContext threadContext,
java.lang.String connName)
Request permission from agent to delete a transformation connection.
|
void |
noteOutputConnectionChange(IThreadContext threadContext,
java.lang.String connectionName)
Note a change in configuration for an output connection.
|
void |
noteOutputConnectorDeregistration(IThreadContext threadContext,
java.lang.String[] connectionNames)
Note the deregistration of a set of output connections.
|
void |
noteOutputConnectorRegistration(IThreadContext threadContext,
java.lang.String[] connectionNames)
Note the registration of a set of output connections.
|
void |
noteTransformationConnectionChange(IThreadContext threadContext,
java.lang.String connectionName)
Note a change in configuration for a transformation connection.
|
void |
noteTransformationConnectorDeregistration(IThreadContext threadContext,
java.lang.String[] connectionNames)
Note the deregistration of a set of transformation connections.
|
void |
noteTransformationConnectorRegistration(IThreadContext threadContext,
java.lang.String[] connectionNames)
Note the registration of a set of transformation connections.
|
void |
startAgent(IThreadContext threadContext,
java.lang.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 java.lang.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 java.lang.String processID
public CrawlerAgent() throws ManifoldCFException
ManifoldCFException
public void initialize(IThreadContext threadContext) throws ManifoldCFException
initialize
in interface IAgent
ManifoldCFException
public void cleanUp(IThreadContext threadContext) throws ManifoldCFException
cleanUp
in interface IAgent
ManifoldCFException
public void install(IThreadContext threadContext) throws ManifoldCFException
install
in interface IAgent
ManifoldCFException
public void deinstall(IThreadContext threadContext) throws ManifoldCFException
deinstall
in interface IAgent
ManifoldCFException
public void clusterInit(IThreadContext threadContext) throws ManifoldCFException
clusterInit
in interface IAgent
ManifoldCFException
public void cleanUpAllAgentData(IThreadContext threadContext, java.lang.String currentProcessID) throws ManifoldCFException
cleanUpAllAgentData
in interface IAgent
currentProcessID
- is the current process ID.ManifoldCFException
public void cleanUpAgentData(IThreadContext threadContext, java.lang.String currentProcessID, java.lang.String cleanupProcessID) throws ManifoldCFException
cleanUpAgentData
in interface IAgent
currentProcessID
- is the current process ID.cleanupProcessID
- is the process ID of the agent to clean up after.ManifoldCFException
public void startAgent(IThreadContext threadContext, java.lang.String processID) throws ManifoldCFException
startAgent
in interface IAgent
processID
- is the process ID to start up an agent for.ManifoldCFException
public void stopAgent(IThreadContext threadContext) throws ManifoldCFException
stopAgent
in interface IAgent
ManifoldCFException
public boolean isOutputConnectionInUse(IThreadContext threadContext, java.lang.String connName) throws ManifoldCFException
isOutputConnectionInUse
in interface IAgent
connName
- is the name of the output connection.ManifoldCFException
public void noteOutputConnectorDeregistration(IThreadContext threadContext, java.lang.String[] connectionNames) throws ManifoldCFException
noteOutputConnectorDeregistration
in interface IAgent
connectionNames
- are the names of the connections being deregistered.ManifoldCFException
public void noteOutputConnectorRegistration(IThreadContext threadContext, java.lang.String[] connectionNames) throws ManifoldCFException
noteOutputConnectorRegistration
in interface IAgent
connectionNames
- are the names of the connections being registered.ManifoldCFException
public void noteOutputConnectionChange(IThreadContext threadContext, java.lang.String connectionName) throws ManifoldCFException
noteOutputConnectionChange
in interface IAgent
connectionName
- is the name of the connections being changed.ManifoldCFException
public boolean isTransformationConnectionInUse(IThreadContext threadContext, java.lang.String connName) throws ManifoldCFException
isTransformationConnectionInUse
in interface IAgent
connName
- is the name of the transformation connection.ManifoldCFException
public void noteTransformationConnectorDeregistration(IThreadContext threadContext, java.lang.String[] connectionNames) throws ManifoldCFException
noteTransformationConnectorDeregistration
in interface IAgent
connectionNames
- are the names of the connections being deregistered.ManifoldCFException
public void noteTransformationConnectorRegistration(IThreadContext threadContext, java.lang.String[] connectionNames) throws ManifoldCFException
noteTransformationConnectorRegistration
in interface IAgent
connectionNames
- are the names of the connections being registered.ManifoldCFException
public void noteTransformationConnectionChange(IThreadContext threadContext, java.lang.String connectionName) throws ManifoldCFException
noteTransformationConnectionChange
in interface IAgent
connectionName
- is the name of the connection being changed.ManifoldCFException
public void startSystem(IThreadContext threadContext) throws ManifoldCFException
ManifoldCFException
public void stopSystem(IThreadContext threadContext) throws ManifoldCFException
ManifoldCFException