public final class JobUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static 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
|
public static <R extends Resource<JobEntity>> 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 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 completedCopyright © 2017 Pivotal Software, Inc.. All rights reserved.