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 Batchmgr
JobExecutionException
public void setMonitor(Monitor monitor)
setMonitor
in interface Batchmgr
public void setJobRepository(JobRepository repository)
setJobRepository
in interface Batchmgr
public List<Job> getJobsOnNode(String nodeId)
getJobsOnNode
in interface Batchmgr
public boolean killJob(String jobId, ResourceNode node)
public String getExecutionNode(String jobId)
getExecutionNode
in interface Batchmgr
public JobSpec getCurrentJobSpec()
public ResourceNode getCurrentResourceNode()
Copyright © 1999–2017 Apache OODT. All rights reserved.