public final class JobUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static reactor.core.publisher.Mono<Void> |
waitForCompletion(CloudFoundryClient cloudFoundryClient,
Duration completionTimeout,
JobEntity jobEntity)
Waits for a job to complete
|
static <R extends Resource<JobEntity>> |
waitForCompletion(CloudFoundryClient cloudFoundryClient,
Duration completionTimeout,
R resource)
Waits for a job to complete
|
static reactor.core.publisher.Mono<Void> |
waitForCompletion(CloudFoundryClient cloudFoundryClient,
Duration completionTimeout,
String jobId)
Waits for a job V3 to complete
|
public static <R extends Resource<JobEntity>> reactor.core.publisher.Mono<Void> waitForCompletion(CloudFoundryClient cloudFoundryClient, Duration completionTimeout, R resource)
R - the Job resource typecloudFoundryClient - the client to use to request job statuscompletionTimeout - the amount of time to wait for the job to complete.resource - the resource representing the jobonComplete once job has completedpublic static reactor.core.publisher.Mono<Void> waitForCompletion(CloudFoundryClient cloudFoundryClient, Duration completionTimeout, JobEntity jobEntity)
cloudFoundryClient - the client to use to request job statuscompletionTimeout - the amount of time to wait for the job to complete.jobEntity - the entity representing the jobonComplete once job has completedpublic static reactor.core.publisher.Mono<Void> waitForCompletion(CloudFoundryClient cloudFoundryClient, Duration completionTimeout, String jobId)
cloudFoundryClient - the client to use to request job statuscompletionTimeout - the amount of time to wait for the job to complete.jobId - the id of the jobonComplete once job has completedCopyright © 2019. All rights reserved.