public class SSHExecutor extends Object implements csbase.sga.executor.JobExecutor
JobExecutor using SSH as the execution layer
to talk to the execution environment.| Constructor and Description |
|---|
SSHExecutor(Properties pluginProperties,
SGADriver driver,
SSHClientPool sshClientPool)
Initialize the executor with a properties set and a
SGADriver tied
to an execution environment. |
| Modifier and Type | Method and Description |
|---|---|
void |
controlJob(csbase.sga.executor.JobData data,
String child,
sgaidl.JobControlAction action) |
csbase.sga.executor.JobData |
executeJob(String jobCommand,
Map<String,String> extraParams,
csbase.sga.executor.JobObserver observer) |
csbase.sga.executor.JobInfo |
getJobInfo(csbase.sga.executor.JobData data) |
void |
recoverJob(csbase.sga.executor.JobData data,
csbase.sga.executor.JobObserver observer) |
void |
searchAndNotifyFinishedJobs() |
public SSHExecutor(Properties pluginProperties, SGADriver driver, SSHClientPool sshClientPool)
SGADriver tied
to an execution environment.pluginProperties - the propertiesdriver - the execution environment driverpublic csbase.sga.executor.JobData executeJob(String jobCommand, Map<String,String> extraParams, csbase.sga.executor.JobObserver observer)
executeJob in interface csbase.sga.executor.JobExecutorpublic void recoverJob(csbase.sga.executor.JobData data,
csbase.sga.executor.JobObserver observer)
recoverJob in interface csbase.sga.executor.JobExecutorpublic void controlJob(csbase.sga.executor.JobData data,
String child,
sgaidl.JobControlAction action)
throws sgaidl.InvalidActionException,
sgaidl.ActionNotSupportedException
controlJob in interface csbase.sga.executor.JobExecutorsgaidl.InvalidActionExceptionsgaidl.ActionNotSupportedExceptionpublic csbase.sga.executor.JobInfo getJobInfo(csbase.sga.executor.JobData data)
getJobInfo in interface csbase.sga.executor.JobExecutorpublic void searchAndNotifyFinishedJobs()
searchAndNotifyFinishedJobs in interface csbase.sga.executor.JobExecutorCopyright © 2016. All rights reserved.