public class DeploymentGroup extends Descriptor
{
"name":"foo-group",
"job":"foo:0.1.0",
"hostSelectors":[
{
"label":"foo",
"operator":"EQUALS"
"operand":"bar",
},
{
"label":"baz",
"operator":"EQUALS"
"operand":"qux",
}
],
"rolloutOptions":{
"migrate":false,
"parallelism":2,
"timeout":1000
}
}
| Modifier and Type | Class and Description |
|---|---|
static class |
DeploymentGroup.Builder |
| Modifier and Type | Field and Description |
|---|---|
static JobId |
EMPTY_JOB_ID |
static String |
EMPTY_NAME |
| Constructor and Description |
|---|
DeploymentGroup(String name,
List<HostSelector> hostSelectors,
JobId jobId,
RolloutOptions rolloutOptions)
Create a Job.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<HostSelector> |
getHostSelectors() |
JobId |
getJobId() |
String |
getName() |
RolloutOptions |
getRolloutOptions() |
int |
hashCode() |
static DeploymentGroup.Builder |
newBuilder() |
DeploymentGroup.Builder |
toBuilder() |
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic static final String EMPTY_NAME
public static final JobId EMPTY_JOB_ID
public DeploymentGroup(String name, List<HostSelector> hostSelectors, @Nullable JobId jobId, @Nullable RolloutOptions rolloutOptions)
name - The docker name to use.jobId - The job ID for the deployment group.hostSelectors - The selectors that determine which agents are part of the deployment
group.public String getName()
public JobId getJobId()
public List<HostSelector> getHostSelectors()
public RolloutOptions getRolloutOptions()
public static DeploymentGroup.Builder newBuilder()
public DeploymentGroup.Builder toBuilder()
Copyright © 2015. All rights reserved.