vura.async.jobs

_get-phases

(_get-phases machine)

get-job-phases

(get-job-phases job)

get-next-phase

(get-next-phase job phase)

get-previous-phase

(get-previous-phase job phase)

JobActions

protocol

members

start!

(start! this)(start! this data)
Starts Job. That is sends-off job-agent to do the job. If Job
was previously stoped than it continues from last phase.

stop!

(stop! this)
Stops running Job. Job will allways try to complete current phase.
If validator doesn't allow execution to continue than Job is stoped
at current phase.

JobInfo

protocol

members

active?

(active? this)
Returns true if job is running

after-phase?

(after-phase? this phase)
Returns boolean true if current phase that job-agent is working on is before input phase

at-phase?

(at-phase? this)
Returns current phase that job-agent is working on

before-phase?

(before-phase? this phase)
Returns boolean true if current phase that job-agent is working on is before input phase

duration?

(duration? this)
Returns duration of job in milliseconds

ended-at?

(ended-at? this)
Returns org.joda.time.DateTime timestamp

finished?

(finished? this)
Returns true is job is in ::end state

get-phases

(get-phases this)
Lists all Job phases

in-error?

(in-error? this)
Returns error exception if it happend. Otherwise nil

started-at?

(started-at? this)
Returns org.joda.time.DateTime timestamp

started?

(started? thsi)
Returns true if job is not in phase start

make-job

(make-job phases)

make-job-shell

(make-job-shell phases)

start-state