Source:
<code>public TwillSpecification configure() { log.info("Configuring a Fluo instance with " + config.getOracleInstances() + " Oracle instances and " + config.getWorkerInstances() + " Worker instances with following properties:"); log.info("Max memory per oracle = " + config.getOracleMaxMemory() + " MB"); log.info("Max memory per worker = " + config.getWorkerMaxMemory() + " MB"); MoreRunnable moreRunnable = TwillSpecification.Builder.with() .setName(FLUO_APP_NAME).withRunnable(); ResourceSpecification oracleResources = ResourceSpecification.Builder.with() .setVirtualCores(1) .setMemory(config.getOracleMaxMemory(), SizeUnit.MEGA) .setInstances(config.getOracleInstances()).build(); MoreFile moreFile = moreRunnable.add(OracleRunnable.ORACLE_NAME, new OracleRunnable(), oracleResources) <START> .withLocalFiles().add("./conf/fluo.properties", new File(String.format("%s/fluo.properties", fluoConf))); <END> moreFile = addConfigFiles(moreFile); moreRunnable = moreFile.apply(); ResourceSpecification workerResources = ResourceSpecification.Builder.with() .setVirtualCores(1) .setMemory(config.getWorkerMaxMemory(), SizeUnit.MEGA) .setInstances(config.getWorkerInstances()).build(); moreFile = moreRunnable.add(WorkerRunnable.WORKER_NAME, new WorkerRunnable(), workerResources) .withLocalFiles().add("./conf/fluo.properties", new File(String.format("%s/fluo.properties", fluoConf))); moreFile = addConfigFiles(moreFile); return moreFile.apply().withOrder().begin(OracleRunnable.ORACLE_NAME).nextWhenStarted(WorkerRunnable.WORKER_NAME).build(); }</code><technical_language>addConfigFile method add fluo.props</technical_language>

Target:
public TwillSpecification configure() { log.info("Configuring a Fluo instance with Oracle instances and Worker instances with following properties:", config.getOracleInstances(), config.getWorkerInstances()); log.info("{} = {}", FluoConfiguration.ORACLE_MAX_MEMORY_MB_PROP, config.getOracleMaxMemory()); log.info("{} = {}", FluoConfiguration.WORKER_MAX_MEMORY_MB_PROP, config.getWorkerMaxMemory()); log.info("{} = {}", FluoConfiguration.ORACLE_NUM_CORES_PROP, config.getOracleNumCores()); log.info("{} = {}", FluoConfiguration.WORKER_NUM_CORES_PROP, config.getWorkerNumCores()); MoreRunnable moreRunnable = TwillSpecification.Builder.with() .setName(FLUO_APP_NAME).withRunnable(); ResourceSpecification oracleResources = ResourceSpecification.Builder.with() .setVirtualCores(config.getOracleNumCores()) .setMemory(config.getOracleMaxMemory(), SizeUnit.MEGA) .setInstances(config.getOracleInstances()).build(); LocalFileAdder fileAdder = moreRunnable.add(OracleRunnable.ORACLE_NAME, new OracleRunnable(), oracleResources).withLocalFiles(); RunnableSetter runnableSetter = addConfigFiles(fileAdder).apply(); ResourceSpecification workerResources = ResourceSpecification.Builder.with() .setVirtualCores(config.getWorkerNumCores()) .setMemory(config.getWorkerMaxMemory(), SizeUnit.MEGA) .setInstances(config.getWorkerInstances()).build(); fileAdder = runnableSetter.add(WorkerRunnable.WORKER_NAME, new WorkerRunnable(), workerResources).withLocalFiles(); runnableSetter = addConfigFiles(fileAdder).apply(); return runnableSetter.withOrder().begin(OracleRunnable.ORACLE_NAME).nextWhenStarted(WorkerRunnable.WORKER_NAME).build(); }