import org.argeo.slc.runtime.SlcAgentDescriptor;
/** Implements the base methods of an SLC agent. */
+@SuppressWarnings("deprecation")
public class DefaultAgent implements SlcAgent, ExecutionProcessNotifier {
private SlcAgentDescriptor agentDescriptor;
private ExecutionModulesManager modulesManager;
/*
* LIFECYCLE
*/
+ /** Initialization */
public void init() {
try {
agentDescriptor = new SlcAgentDescriptor();
new HashMap<String, String>());
}
- public void dispose() {
+ /** Clean up (needs to be called by overriding method) */
+ public void destroy() {
modulesManager.unregisterProcessNotifier(this,
new HashMap<String, String>());
}
/*
* SLC AGENT
*/
- public void runSlcExecution(SlcExecution slcExecution) {
- process(slcExecution);
- }
-
public void process(ExecutionProcess process) {
ProcessThread processThread = createProcessThread(processesThreadGroup,
modulesManager, process);