Show / Hide Table of Contents

Class JobOrchestrator

Orchestrates execution of a particular Job

Inheritance
System.Object
JobOrchestrator
Namespace: DNVGL.One.Compute.Scheduling.Orchestrator
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public class JobOrchestrator : object

Constructors

View Source

JobOrchestrator(Job, IJobEventPublisher, OrchestrationEnvironment, CancellationToken)

Initializes a new instance of the JobOrchestrator class.

Declaration
public JobOrchestrator(Job job, IJobEventPublisher eventPublisher, OrchestrationEnvironment orchestrationEnvironment, CancellationToken cancellationToken)
Parameters
Type Name Description
Job job

The job.

IJobEventPublisher eventPublisher

The job event publisher.

OrchestrationEnvironment orchestrationEnvironment

The orchestration environment.

CancellationToken cancellationToken

The cancellation token.

Properties

View Source

SchedulingOptions

Gets or sets the scheduling options.

Declaration
public SchedulingOptions SchedulingOptions { get; set; }
Property Value
Type Description
SchedulingOptions

The scheduling options.

View Source

TaskMonitoringInterval

Gets or sets the task monitoring interval (seconds). Default is 10 seconds.

Declaration
public int TaskMonitoringInterval { get; set; }
Property Value
Type Description
System.Int32

The task monitoring interval in seconds.

Methods

View Source

MonitorWork()

Monitors the work.

Declaration
public JobOrchestrator.WorkMonitorInfo MonitorWork()
Returns
Type Description
JobOrchestrator.WorkMonitorInfo

Work status

View Source

Orchestrate()

Orchestrates the specified job.

Declaration
public WorkStatus Orchestrate()
Returns
Type Description
WorkStatus

The end status of the job

View Source

ProcessWork()

Processes the work.

Declaration
public WorkStatus ProcessWork()
Returns
Type Description
WorkStatus

The status of the current job.

View Source

ScheduleWork()

Schedules the work.

Declaration
public IEnumerable<WorkUnit> ScheduleWork()
Returns
Type Description
IEnumerable<WorkUnit>

Scheduled work

  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.