public interface Batchmgr
A batchmgr interface.
Modifier and Type | Method and Description |
---|---|
boolean |
executeRemotely(JobSpec job,
ResourceNode resNode)
Executes a job remotely on the specified
remoteHost . |
String |
getExecutionNode(String jobId) |
boolean |
killJob(String jobId,
ResourceNode node) |
void |
setJobRepository(JobRepository repository)
Sets the
JobRepository that this Batchmgr will use to persist
Job information while Job s are executing. |
void |
setMonitor(Monitor monitor)
Sets the
Monitor to be used by this Batchmgr. |
boolean executeRemotely(JobSpec job, ResourceNode resNode) throws JobExecutionException
remoteHost
.job
- The JobSpec
to execute.remoteHost
- A URL
pointer to the remote host to execute the job
on.JobExecutionException
- If there is an exception executing the job on the remote
host.void setMonitor(Monitor monitor)
Monitor
to be used by this Batchmgr.monitor
- The Monitor
to be used.void setJobRepository(JobRepository repository)
JobRepository
that this Batchmgr will use to persist
Job
information while Job
s are executing.repository
- boolean killJob(String jobId, ResourceNode node)
jobId
- node
- Copyright © 1999-2014 Apache OODT. All Rights Reserved.