| 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 Jobs are executing. |
void |
setMonitor(Monitor monitor)
Sets the
Monitor to be used by this Batchmgr. |
public boolean executeRemotely(JobSpec jobSpec, ResourceNode resNode) throws JobExecutionException
BatchmgrremoteHost.executeRemotely in interface BatchmgrjobSpec - The JobSpec to execute.JobExecutionException - If there is an exception executing the job on the remote
host.public void setMonitor(Monitor monitor)
BatchmgrMonitor to be used by this Batchmgr.setMonitor in interface Batchmgrmonitor - The Monitor to be used.public void setJobRepository(JobRepository repository)
BatchmgrJobRepository that this Batchmgr will use to persist
Job information while Jobs are executing.setJobRepository in interface Batchmgrpublic String getExecutionNode(String jobId)
getExecutionNode in interface Batchmgrpublic boolean killJob(String jobId, ResourceNode node)
public List getJobsOnNode(String nodeId)
BatchmgrgetJobsOnNode in interface Batchmgrprotected 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.