JobsController class

Implemented types

Constructors

JobsController()

Properties

commandSet JobsCommandSet
read / write
persistence IJobsPersistence
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

abortJob(String correlationId, String jobId) → Future<JobV1>
Aborts job [...]
override
addJob(String correlationId, NewJobV1 newJob) → Future<JobV1>
Add new job from newJob. [...]
override
addUniqJob(String correlationId, NewJobV1 newJob) → Future<JobV1>
Add new job if not exist with same type and ref_jobId [...]
override
cleanJobs(String correlationId) → Future
Clean completed and expiration jobs [...]
override
close(String correlationId) → Future
Closes component and frees used resources. [...]
completeJob(String correlationId, String jobId) → Future<JobV1>
Completes job [...]
override
configure(ConfigParams config) → void
Configures component by passing configuration parameters. [...]
deleteJobById(String correlationId, String jobId) → Future<JobV1>
Deletes a job by it's unique jobId. [...]
override
deleteJobs(String correlationId) → Future
Removes all jobs [...]
override
extendJob(String correlationId, String jobId, num timeout) → Future<JobV1>
Extends job execution limit on timeout value [...]
override
getCommandSet() → CommandSet
Gets a command set. [...]
getJobById(String correlationId, String id) → Future<JobV1>
Gets a job by its unique jobId. [...]
override
getJobs(String correlationId, FilterParams filter, PagingParams paging) → Future<DataPage<JobV1>>
Gets a page of jobs retrieved by a given filter. [...]
override
isOpen() → bool
Checks if the component is opened. [...]
open(String correlationId) → Future
Opens the session. [...]
setReferences(IReferences references) → void
Set references to component. [...]
startJobById(String correlationId, String jobId, num timeout) → Future<JobV1>
Starts a job by its unique jobId. [...]
override
startJobByType(String correlationId, String jobType, num timeout, num maxRetries) → Future<JobV1>
Start fist free job by type [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited