public GeneratorConfig(final GeneratorConfig other) { this.addrs = new ArrayList<>(other.getAddrs()); this.recycleConfig= new RecycleConfig(other.getRecycleConfig()); this.remoteFlag = other.getRemote(); this.shuffleFlag = other.getShuffle(); this.weight = other.getWeight(); }
public LoadConfig(final LoadConfig other) { this.batchConfig = new BatchConfig(other.getBatchConfig()); this.generatorConfig = new GeneratorConfig(other.getGeneratorConfig()); this.limitConfig = new LimitConfig(other.getLimitConfig()); this.serviceConfig = new ServiceConfig(other.getServiceConfig()); this.type = other.getType(); }
weightMap.put(loadGenerator.hashCode(), generatorConfig.getWeight()); itemDataSizes.put(loadGenerator, dataConfig.getSize()); loadConfigMap.put(loadGenerator, loadConfig);
if(isAnyCircular) { final int recycleLimit = firstLoadConfig.getGeneratorConfig().getRecycleConfig().getLimit(); latestIoResultsPerItem = new ConcurrentHashMap<>(recycleLimit); } else {