public class CtgConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
callHome
Should we call home to upload status/usage statistics?
|
String |
extraArgs
Extra parameters for the test data generation jobs.
|
protected int |
MINIMUM_MEMORY_PER_JOB_MB
To run a job, you need a minimum of RAM.
|
int |
minMinutesPerJob
The minimum amount of minutes a search/job should run.
|
int |
numberOfCores
Number of cores CTG is allowed to use
|
Properties.AvailableSchedule |
schedule
The type of job scheduler CTG will use
|
int |
timeInMinutes
for how long CTG is allowed to run
|
int |
totalMemoryInMB
how much max memory should be used at the same time
among all the parallel CTG runs?
|
| Constructor and Description |
|---|
CtgConfiguration(int totalMemoryInMB,
int numberOfCores,
int timeInMinutes,
int minMinutesPerJob,
boolean callHome,
Properties.AvailableSchedule schedule) |
CtgConfiguration(int totalMemoryInMB,
int numberOfCores,
int timeInMinutes,
int minMinutesPerJob,
boolean callHome,
Properties.AvailableSchedule schedule,
String extraArgs) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConstantMemoryPerJob() |
static CtgConfiguration |
getFromParameters()
Get instance based on values in
Properties |
int |
getNumberOfUsableCores() |
CtgConfiguration |
getWithChangedTime(int minutesPerClass,
int numberOfCUTs)
Get new configuration with budget time proportional to the number of classes (and available cores)
|
protected final int MINIMUM_MEMORY_PER_JOB_MB
public final int totalMemoryInMB
public final int numberOfCores
public final int timeInMinutes
public final int minMinutesPerJob
public final boolean callHome
public final Properties.AvailableSchedule schedule
public final String extraArgs
public CtgConfiguration(int totalMemoryInMB,
int numberOfCores,
int timeInMinutes,
int minMinutesPerJob,
boolean callHome,
Properties.AvailableSchedule schedule)
public CtgConfiguration(int totalMemoryInMB,
int numberOfCores,
int timeInMinutes,
int minMinutesPerJob,
boolean callHome,
Properties.AvailableSchedule schedule,
String extraArgs)
public static CtgConfiguration getFromParameters()
Propertiespublic CtgConfiguration getWithChangedTime(int minutesPerClass, int numberOfCUTs) throws IllegalArgumentException
minutesPerClass - numberOfCUTs - IllegalArgumentExceptionpublic int getNumberOfUsableCores()
public int getConstantMemoryPerJob()
Copyright © 2010–2016 EvoSuite. All rights reserved.