public class SystemCommandJob extends Object implements IJob
| Constructor and Description | 
|---|
| SystemCommandJob(String id,
                String... commands)Creates a JEF job for executing system commands. | 
| SystemCommandJob(String id,
                com.norconex.commons.lang.exec.SystemCommand... commands)Creates a JEF job for executing system commands. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | execute(JobStatusUpdater statusUpdater,
       JobSuite suite)Executes this job. | 
| String | getId()Gets the job unique identifier. | 
| void | stop(IJobStatus status,
    JobSuite suite)Default implementation of this method will check if the 
  SystemCommandit runs is currently holding to aProcessprocess instance and destroys them. | 
public SystemCommandJob(String id, String... commands)
SystemCommand instances
 internally.id - job idcommands - array of individual commands to be executedSystemCommandJob(String, SystemCommand[])public SystemCommandJob(String id, com.norconex.commons.lang.exec.SystemCommand... commands)
id - job idcommands - commands to be executedpublic String getId()
IJobpublic void execute(JobStatusUpdater statusUpdater, JobSuite suite)
IJobJobProgress.public void stop(IJobStatus status, JobSuite suite)
SystemCommand it runs is currently holding to a 
 Process process instance and destroys them.
 If no such instance is found, and even if one is found, there are 
 no guarantees what will happen.  Implementors having better ways to
 stop the invoked command should overwrite this method.Copyright © 2007–2021 Norconex Inc.. All rights reserved.