Changeset 408 for gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java
- Timestamp:
- 08/18/12 00:20:34 (13 years ago)
- Location:
- gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/DatabaseHelper.java
r370 r408 56 56 */ 57 57 protected String jdOutputLocation = "$OUTPUT_LOCATION"; 58 59 /** 60 * Properties input data location 61 */ 62 protected String pInputLocation = "$INPUT"; 58 63 } -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java
r407 r408 161 161 162 162 @BlazeDsMethod() 163 public GSSimStudioModel uploadAndSubmitExperiment(String destFileName, String fileContent ) throws IOException {163 public GSSimStudioModel uploadAndSubmitExperiment(String destFileName, String fileContent, String workload, String resources, String topology) throws IOException { 164 164 GSSimStudioModel model = getModel(); 165 165 … … 168 168 Integer expId = addExperimentToDb(expName, metaexpName); 169 169 fileContent += "experiment.id="+expId.toString(); 170 String uniqueFolderName = "tmp" + String.valueOf(new Date().getTime()); 171 fileContent = fileContent.replace(pInputLocation, uniqueFolderName) 170 172 uploadPropertyFile(destFileName, fileContent); 171 173 … … 250 252 String destination = gssimInput + "/" + uniqueFolderName + "/"; 251 253 copyFile(gssimInput + "/" + destFileName, destination); 254 if (workload != null && !workload.isEmpty()) { 255 copyFile(gssimInput + "/workloads/" + workload, destination); 256 } 257 if (resources != null && !resources.isEmpty()) { 258 copyFile(gssimInput + "/resources/" + resources, destination); 259 } 260 if (topology != null && !topology.isEmpty()) { 261 copyFile(gssimInput + "/topologies/" + topology, destination); 262 } 252 263 253 264 } catch (SQLException e) {
Note: See TracChangeset
for help on using the changeset viewer.