com.raritantechnologies.searchApp.scheduler
Class ProcessRunner
java.lang.Object
com.raritantechnologies.searchApp.scheduler.ProcessRunner
- All Implemented Interfaces:
- IConfigurable, IJobProcess
- public class ProcessRunner
- extends java.lang.Object
- implements IJobProcess
Executes an external system process.
XML Configuration Template:
<JobProcess processClass="com.raritantechnologies.searchApp.scheduler.ProcessRunner"
commandLine="[ command line needed to run the system process ]"
logPath="[ path to log file ]"
errorPath="[ path to error file ]"
maximumWaitPeriod="[ maximum period to wait ( in seconds ) for job to finish ]" />
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessRunner
public ProcessRunner()
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IJobProcess
executeJob
public void executeJob(RaritanPageContext rpc)
- Specified by:
executeJob in interface IJobProcess
executeJob
public void executeJob(java.lang.String[] args)
- Specified by:
executeJob in interface IJobProcess
getLogDir
public java.lang.String getLogDir()
getErrorDir
public java.lang.String getErrorDir()
setCommandLine
public void setCommandLine(java.lang.String commandLine)
getCommandLine
public java.lang.String getCommandLine()
getConfigurationXML
public java.lang.String getConfigurationXML()
- Specified by:
getConfigurationXML in interface IJobProcess