public class Deployment extends Descriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
Deployment.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_DEPLOYER_MASTER |
static String |
EMPTY_DEPLOYMENT_GROUP_NAME |
static String |
EMTPY_DEPLOYER_USER |
| Constructor and Description |
|---|
Deployment(JobId jobId,
Goal goal,
String deployerUser,
String deployerMaster,
String deploymentGroupName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDeployerMaster() |
String |
getDeployerUser() |
String |
getDeploymentGroupName() |
Goal |
getGoal() |
JobId |
getJobId() |
int |
hashCode() |
static Deployment.Builder |
newBuilder() |
static Deployment |
of(JobId jobId,
Goal goal) |
static Deployment |
of(JobId jobId,
Goal goal,
String deployerUser) |
static Deployment |
of(JobId jobId,
Goal goal,
String deployerUser,
String deployerMaster,
String deploymentGroupName) |
Deployment.Builder |
toBuilder() |
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic static final String EMTPY_DEPLOYER_USER
public static final String EMPTY_DEPLOYER_MASTER
public static final String EMPTY_DEPLOYMENT_GROUP_NAME
public Deployment(JobId jobId, Goal goal, @Nullable String deployerUser, @Nullable String deployerMaster, @Nullable String deploymentGroupName)
jobId - The id of the job.goal - The desired state (i.e. goal) of the task/deployment.deployerUser - The user doing the deployment.deployerMaster - The master that created this deployment.deploymentGroupName - The deployment group this deployment is created by.public static Deployment of(JobId jobId, Goal goal)
public static Deployment of(JobId jobId, Goal goal, String deployerUser)
public static Deployment of(JobId jobId, Goal goal, String deployerUser, String deployerMaster, String deploymentGroupName)
public JobId getJobId()
public Goal getGoal()
public String getDeployerUser()
public String getDeploymentGroupName()
public String getDeployerMaster()
public Deployment.Builder toBuilder()
public static Deployment.Builder newBuilder()
Copyright © 2016. All rights reserved.