1 package fr.in2p3.jsaga.impl.job.streaming;
2
3 import java.io.File;
4
5
6
7
8
9
10
11
12
13
14
15
16 public class LocalFileFactory {
17
18 public static File getLocalFile(String uniqId, String suffix) {
19 return new File(System.getProperty("java.io.tmpdir"), "local-" + uniqId + "." + suffix);
20 }
21 public static File getLocalInputFile(String uniqId) {
22 return getLocalFile(uniqId, "input");
23 }
24 public static File getLocalOutputFile(String uniqId) {
25 return getLocalFile(uniqId, "output");
26 }
27 public static File getLocalErrorFile(String uniqId) {
28 return getLocalFile(uniqId, "error");
29 }
30 }