Constructor and Description |
---|
QueueMuxBatchManager(BackendManager bm)
ctor
|
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<Job> |
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 |
setBackendManager(BackendManager backend)
Set the backend manager.
|
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. |
public QueueMuxBatchManager(BackendManager bm)
bm
- - backend managerpublic void setBackendManager(BackendManager backend)
backend
- - backend manager effectively mapping queue's to sets of backends.public boolean executeRemotely(JobSpec job, ResourceNode resNode) throws JobExecutionException
Batchmgr
remoteHost
.executeRemotely
in interface Batchmgr
job
- The JobSpec
to execute.JobExecutionException
- If there is an exception executing the job on the remote
host.public void setMonitor(Monitor monitor)
Batchmgr
Monitor
to be used by this Batchmgr.setMonitor
in interface Batchmgr
monitor
- The Monitor
to be used.public List<Job> getJobsOnNode(String nodeId)
Batchmgr
getJobsOnNode
in interface Batchmgr
public void setJobRepository(JobRepository repository)
Batchmgr
JobRepository
that this Batchmgr will use to persist
Job
information while Job
s are executing.setJobRepository
in interface Batchmgr
public boolean killJob(String jobId, ResourceNode node)
public String getExecutionNode(String jobId)
getExecutionNode
in interface Batchmgr
Copyright © 1999–2017 Apache OODT. All rights reserved.