Show / Hide Table of Contents

Class JobMonitor

Job monitor.

Inheritance
object
JobMonitor
Implements
IJobMonitor
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DNVGL.One.Compute.Core.PlatformClient
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public class JobMonitor : IJobMonitor

Constructors

View Source

JobMonitor(int, IOneComputePlatformClient)

Initializes a new instance of the JobMonitor class.

Declaration
public JobMonitor(int pollingIntervalSeconds, IOneComputePlatformClient platformClient)
Parameters
Type Name Description
int pollingIntervalSeconds

The polling interval seconds.

IOneComputePlatformClient platformClient

The platform client.

See Also
IJobMonitor

Properties

View Source

PollingIntervalSeconds

Gets or sets the polling interval.

Declaration
public int PollingIntervalSeconds { get; set; }
Property Value
Type Description
int

The polling interval in seconds.

See Also
IJobMonitor

Methods

View Source

AwaitJobTerminationAsync(CancellationToken)

Awaits job termination.

Declaration
public Task<WorkStatus> AwaitJobTerminationAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<WorkStatus>

Terminal job status.

See Also
IJobMonitor
View Source

BeginMonitorJob(string, CancellationToken)

Monitors the job.

Declaration
public void BeginMonitorJob(string jobId, CancellationToken cancellationToken)
Parameters
Type Name Description
string jobId

The job identifier.

CancellationToken cancellationToken

The cancellation token.

See Also
IJobMonitor

Events

View Source

JobProgressChanged

Occurs when a Job changes progress.

Declaration
public event EventHandler<JobEventArgs> JobProgressChanged
Event Type
Type Description
EventHandler<JobEventArgs>
See Also
IJobMonitor
View Source

JobStatusChanged

Occurs when a Job changes status.

Declaration
public event EventHandler<JobEventArgs> JobStatusChanged
Event Type
Type Description
EventHandler<JobEventArgs>
See Also
IJobMonitor
View Source

WorkItemProgressChanged

Occurs when a WorkItem changes progress.

Declaration
public event EventHandler<WorkItemEventArgs> WorkItemProgressChanged
Event Type
Type Description
EventHandler<WorkItemEventArgs>
See Also
IJobMonitor
View Source

WorkItemStatusChanged

Occurs when a WorkItem changes status.

Declaration
public event EventHandler<WorkItemEventArgs> WorkItemStatusChanged
Event Type
Type Description
EventHandler<WorkItemEventArgs>
See Also
IJobMonitor

Implements

IJobMonitor

See Also

IJobMonitor
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.