Constructor and Description |
---|
XmlRpcBatchMgr() |
Modifier and Type | Method and Description |
---|---|
boolean |
executeRemotely(JobSpec jobSpec,
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.
|
protected void |
jobExecuting(JobSpec spec) |
protected void |
jobFailure(JobSpec spec) |
protected void |
jobKilled(JobSpec spec) |
protected void |
jobSuccess(JobSpec spec) |
boolean |
killJob(String jobId,
ResourceNode node) |
protected void |
notifyMonitor(ResourceNode node,
JobSpec jobSpec) |
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 boolean executeRemotely(JobSpec jobSpec, ResourceNode resNode) throws JobExecutionException
Batchmgr
remoteHost
.executeRemotely
in interface Batchmgr
jobSpec
- 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 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 String getExecutionNode(String jobId)
getExecutionNode
in interface Batchmgr
public boolean killJob(String jobId, ResourceNode node)
public List getJobsOnNode(String nodeId)
Batchmgr
getJobsOnNode
in interface Batchmgr
protected void notifyMonitor(ResourceNode node, JobSpec jobSpec)
protected void jobSuccess(JobSpec spec)
protected void jobFailure(JobSpec spec)
protected void jobKilled(JobSpec spec)
protected void jobExecuting(JobSpec spec)
Copyright © 1999–2017 Apache OODT. All rights reserved.