Class AgentsDaemon.CleanupAgent
- java.lang.Object
-
- org.apache.manifoldcf.agents.system.AgentsDaemon.CleanupAgent
-
- All Implemented Interfaces:
IServiceCleanup
- Enclosing class:
- AgentsDaemon
protected static class AgentsDaemon.CleanupAgent extends java.lang.Object implements IServiceCleanup
Agent cleanup class. This provides functionality to clean up after agents processes that have gone away, or initialize an entire cluster.
-
-
Field Summary
Fields Modifier and Type Field Description protected IAgent
agent
protected java.lang.String
processID
protected IThreadContext
threadContext
-
Fields inherited from interface org.apache.manifoldcf.core.interfaces.IServiceCleanup
_rcsid
-
-
Constructor Summary
Constructors Constructor Description CleanupAgent(IThreadContext threadContext, IAgent agent, java.lang.String processID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUpAllServices()
Clean up after ALL services of the type on the cluster.void
cleanUpService(java.lang.String serviceName)
Clean up after the specified service.void
clusterInit()
Perform cluster initialization - that is, whatever is needed presuming that the cluster has been down for an indeterminate period of time, but is otherwise in a clean state.
-
-
-
Field Detail
-
agent
protected final IAgent agent
-
threadContext
protected final IThreadContext threadContext
-
processID
protected final java.lang.String processID
-
-
Constructor Detail
-
CleanupAgent
public CleanupAgent(IThreadContext threadContext, IAgent agent, java.lang.String processID)
-
-
Method Detail
-
cleanUpService
public void cleanUpService(java.lang.String serviceName) throws ManifoldCFException
Clean up after the specified service. This method will block any startup of the specified service for as long as it runs.- Specified by:
cleanUpService
in interfaceIServiceCleanup
- Parameters:
serviceName
- is the name of the service.- Throws:
ManifoldCFException
-
cleanUpAllServices
public void cleanUpAllServices() throws ManifoldCFException
Clean up after ALL services of the type on the cluster.- Specified by:
cleanUpAllServices
in interfaceIServiceCleanup
- Throws:
ManifoldCFException
-
clusterInit
public void clusterInit() throws ManifoldCFException
Perform cluster initialization - that is, whatever is needed presuming that the cluster has been down for an indeterminate period of time, but is otherwise in a clean state.- Specified by:
clusterInit
in interfaceIServiceCleanup
- Throws:
ManifoldCFException
-
-