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) |
List |
getJobsOnNode(String nodeId)
Get a list of the ids of all jobs that are executing on the given node.
|
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.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–2017 Apache OODT. All rights reserved.