.setPorts(ports) .setRegistration(registration) .setVolumes(volumes) .setCreatingUser(TEST_USER); final Job job = builder.build();
.setRegistration(registration) .setRegistrationDomain(registrationDomain) .setVolumes(volumes) .setCreatingUser(TEST_USER) .setToken("foo-token")
.setRegistration(emptyMap()) .setGracePeriod(null) .setVolumes(emptyMap()) .setExpires(null) .setRolloutOptions(RolloutOptions.newBuilder().build()) .setRegistration(emptyMap()) .setGracePeriod(null) .setVolumes(emptyMap()) .setExpires(null) .setRolloutOptions(RolloutOptions.newBuilder().build())
.setRegistration(registration) .setGracePeriod(gracePeriod) .setVolumes(volumes) .setExpires(expires) .setRegistrationDomain(registrationDomain)
protected JobId createJob(final String name, final String version, final String image, final String hostname, final List<String> command, final Map<String, String> env, final Map<String, PortMapping> ports, final Map<ServiceEndpoint, ServicePorts> registration, final Integer gracePeriod, final Map<String, String> volumes, final Date expires) throws Exception { return createJob(Job.newBuilder() .setName(name) .setVersion(version) .setImage(image) .setHostname(hostname) .setCommand(command) .setEnv(env) .setPorts(ports) .setRegistration(registration) .setGracePeriod(gracePeriod) .setVolumes(volumes) .setExpires(expires) .build()); }