public class JobExecutor extends Object
Note: under no case ever two different jobs should access the same files at the same time, even if just for reading. Piece-of-crap OS like Windows do put locks on files based on processes accessing them... for multi-process applications running on same host, that is a recipe for disaster...
| Modifier and Type | Field and Description |
|---|---|
protected CtgConfiguration |
configuration |
| Constructor and Description |
|---|
JobExecutor(StorageManager storage,
String projectClassPath,
CtgConfiguration conf)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
doneWithJob(JobDefinition job) |
protected long |
execute(List<JobDefinition> jobs) |
void |
executeJobs(List<JobDefinition> jobs,
int cores)
Do a separate search with EvoSuite for all jobs in the given list.
|
String |
getProjectClassPath() |
protected long |
getRemainingTimeInMs() |
StorageManager |
getStorage() |
protected void |
initExecution(List<JobDefinition> jobs) |
JobDefinition |
pollJob() |
void |
waitForJobs() |
protected final CtgConfiguration configuration
public JobExecutor(StorageManager storage, String projectClassPath, CtgConfiguration conf) throws IllegalArgumentException
IllegalArgumentExceptionprotected long getRemainingTimeInMs()
public void executeJobs(List<JobDefinition> jobs, int cores) throws IllegalStateException
jobs - IllegalStateException - if we are already executing some jobsprotected void initExecution(List<JobDefinition> jobs)
protected long execute(List<JobDefinition> jobs)
public JobDefinition pollJob() throws InterruptedException
InterruptedExceptionpublic void doneWithJob(JobDefinition job)
public void waitForJobs()
public String getProjectClassPath()
public StorageManager getStorage()
Copyright © 2010–2016 EvoSuite. All rights reserved.