-
Notifications
You must be signed in to change notification settings - Fork 188
/
SingularityExecutorShellCommandDescriptor.java
62 lines (46 loc) · 1.32 KB
/
SingularityExecutorShellCommandDescriptor.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.hubspot.singularity.executor.shells;
import java.util.Collections;
import java.util.List;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class SingularityExecutorShellCommandDescriptor {
@JsonProperty
@NotNull
private String name;
@JsonProperty
@NotNull
// Options are : {PID}
private List<String> command;
@JsonProperty
@NotNull
private List<SingularityExecutorShellCommandOptionDescriptor> options = Collections.emptyList();
@JsonProperty
@NotNull
private boolean runAsTaskUser = true;
public List<SingularityExecutorShellCommandOptionDescriptor> getOptions() {
return options;
}
public void setOptions(List<SingularityExecutorShellCommandOptionDescriptor> options) {
this.options = options;
}
public void setName(String name) {
this.name = name;
}
public void setCommand(List<String> command) {
this.command = command;
}
public String getName() {
return name;
}
public List<String> getCommand() {
return command;
}
public boolean isRunAsTaskUser() {
return runAsTaskUser;
}
public void setRunAsTaskUser(boolean runAsTaskUser) {
this.runAsTaskUser = runAsTaskUser;
}
}