MonitorJobs

class MonitorJobs(val connection: ZOSConnection, var httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Constructors

Link copied to clipboard
fun MonitorJobs(connection: ZOSConnection, httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Determines if a given job is in a running state or not.

Link copied to clipboard
fun waitForJobMessage(job: Job, message: String): Boolean

Given a Job document (has jobname/jobid), waits for the given message from the job. This API will poll for the given message once every 3 seconds for at least 1000 times. If the polling interval/duration is NOT sufficient, use waitForMessageCommon method to adjust.

Link copied to clipboard

Given a Job document (has jobname/jobid), waits for the status of the job to be "OUTPUT". This API will poll for the OUTPUT status once every 3 seconds indefinitely. If the polling interval/duration is NOT sufficient, use waitForStatusCommon to adjust.

fun waitForJobOutputStatus(jobName: String, jobId: String): Job

Given the jobname/jobid, waits for the status of the job to be "OUTPUT". This API will poll for the OUTPUT status once every 3 seconds indefinitely. If the polling interval/duration is NOT sufficient, use waitForStatusCommon to adjust.

Link copied to clipboard
fun waitForJobStatus(job: Job, statusType: Job.Status): Job

Given a Job document (has jobname/jobid), waits for the given status of the job. This API will poll for the given status once every 3 seconds for at least 1000 times. If the polling interval/duration is NOT sufficient, use waitForStatusCommon method to adjust.

fun waitForJobStatus(jobName: String, jobId: String, statusType: Job.Status): Job

Given the jobname/jobid, waits for the given status of the job. This API will poll for the given status once every 3 seconds for at least 1000 times. If the polling interval/duration is NOT sufficient, use waitForStatusCommon method to adjust.

Link copied to clipboard

Given jobname/jobid, checks for the desired message continuously (based on the interval and attempts specified).

Link copied to clipboard

Given jobname/jobid, checks for the desired "status" (default is "OUTPUT") continuously (based on the interval and attempts specified).

Properties

Link copied to clipboard
Link copied to clipboard
var httpClient: OkHttpClient