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 IAgentagentprotected java.lang.StringprocessIDprotected IThreadContextthreadContext-
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 voidcleanUpAllServices()Clean up after ALL services of the type on the cluster.voidcleanUpService(java.lang.String serviceName)Clean up after the specified service.voidclusterInit()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 ManifoldCFExceptionClean up after the specified service. This method will block any startup of the specified service for as long as it runs.- Specified by:
cleanUpServicein interfaceIServiceCleanup- Parameters:
serviceName- is the name of the service.- Throws:
ManifoldCFException
-
cleanUpAllServices
public void cleanUpAllServices() throws ManifoldCFExceptionClean up after ALL services of the type on the cluster.- Specified by:
cleanUpAllServicesin interfaceIServiceCleanup- Throws:
ManifoldCFException
-
clusterInit
public void clusterInit() throws ManifoldCFExceptionPerform 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:
clusterInitin interfaceIServiceCleanup- Throws:
ManifoldCFException
-
-