Package org.opennms.netmgt.notifd
Class ClassExecutor
- java.lang.Object
-
- org.opennms.netmgt.notifd.ClassExecutor
-
- All Implemented Interfaces:
ExecutorStrategy
public class ClassExecutor extends Object implements ExecutorStrategy
Implementation of Executor strategy that instantiates a Java class.- Version:
- $Id: $
- Author:
- David Hustace , OpenNMS , David Hustace , OpenNMS
-
-
Constructor Summary
Constructors Constructor Description ClassExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(String className, List<Argument> arguments)
Implement this method to support execute style commands such as a system command or to instantiate a Java class.
-
-
-
Method Detail
-
execute
public int execute(String className, List<Argument> arguments)
Implement this method to support execute style commands such as a system command or to instantiate a Java class. This method calls the send method of the specified class in- Specified by:
execute
in interfaceExecutorStrategy
- Parameters:
className
- the command/class to execute/instantiatearguments
- a list of Argument objects that need to be passed to the command line call or the class execute method- Returns:
- int, the return code of the command/execute method
-
-