1
|
package eu.dnetlib.data.hadoop.utils;
|
2
|
|
3
|
import java.util.Map;
|
4
|
import java.util.Set;
|
5
|
|
6
|
import com.google.common.collect.Maps;
|
7
|
import com.google.common.collect.Sets;
|
8
|
|
9
|
import eu.dnetlib.data.hadoop.rmi.HadoopJobType;
|
10
|
|
11
|
public class JobProfile {
|
12
|
|
13
|
private final Map<String, String> jobDefinition = Maps.newHashMap();
|
14
|
private final Set<String> requiredParams = Sets.newHashSet();
|
15
|
private ScanProperties scanProperties;
|
16
|
|
17
|
private String name;
|
18
|
|
19
|
private String description = "";
|
20
|
|
21
|
private HadoopJobType jobType;
|
22
|
|
23
|
public boolean isEmpty() {
|
24
|
return getJobDefinition().isEmpty();
|
25
|
}
|
26
|
|
27
|
public Map<String, String> getJobDefinition() {
|
28
|
return jobDefinition;
|
29
|
}
|
30
|
|
31
|
public Set<String> getRequiredParams() {
|
32
|
return requiredParams;
|
33
|
}
|
34
|
|
35
|
public String getName() {
|
36
|
return name;
|
37
|
}
|
38
|
|
39
|
public void setName(String name) {
|
40
|
this.name = name;
|
41
|
}
|
42
|
|
43
|
public String getDescription() {
|
44
|
return description;
|
45
|
}
|
46
|
|
47
|
public void setDescription(String description) {
|
48
|
this.description = description;
|
49
|
}
|
50
|
|
51
|
public ScanProperties getScanProperties() {
|
52
|
return scanProperties;
|
53
|
}
|
54
|
|
55
|
public void setScanProperties(ScanProperties scanProperties) {
|
56
|
this.scanProperties = scanProperties;
|
57
|
}
|
58
|
|
59
|
public HadoopJobType getJobType() {
|
60
|
return jobType;
|
61
|
}
|
62
|
|
63
|
public void setJobType(HadoopJobType jobType) {
|
64
|
this.jobType = jobType;
|
65
|
}
|
66
|
|
67
|
}
|