| Constructor and Description |
|---|
MockBatchManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
executeRemotely(JobSpec job,
ResourceNode resNode) |
JobSpec |
getCurrentJobSpec()
Return the current jobspec, for testing purposes
|
ResourceNode |
getCurrentResourceNode()
Return the current resource node, for testing purposes
|
String |
getExecutionNode(String jobId) |
List<Job> |
getJobsOnNode(String nodeId) |
boolean |
killJob(String jobId,
ResourceNode node) |
void |
setJobRepository(JobRepository repository) |
void |
setMonitor(Monitor monitor) |
public boolean executeRemotely(JobSpec job, ResourceNode resNode) throws JobExecutionException
executeRemotely in interface BatchmgrJobExecutionExceptionpublic void setMonitor(Monitor monitor)
setMonitor in interface Batchmgrpublic void setJobRepository(JobRepository repository)
setJobRepository in interface Batchmgrpublic List<Job> getJobsOnNode(String nodeId)
getJobsOnNode in interface Batchmgrpublic boolean killJob(String jobId, ResourceNode node)
public String getExecutionNode(String jobId)
getExecutionNode in interface Batchmgrpublic JobSpec getCurrentJobSpec()
public ResourceNode getCurrentResourceNode()
Copyright © 1999–2017 Apache OODT. All rights reserved.