Show / Hide Table of Contents

Class TerminatedWorkMonitor

A IWorkMonitor that wraps work that has already terminated.

Inheritance
System.Object
TerminatedWorkMonitor
Implements
IWorkMonitor
Namespace: DNVGL.One.Compute.Scheduling.WorkScheduling
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public class TerminatedWorkMonitor : object, IWorkMonitor

Constructors

View Source

TerminatedWorkMonitor(String, IEnumerable<WorkUnit>, WorkItemInfo)

Initializes a new instance of the TerminatedWorkMonitor class.

Declaration
public TerminatedWorkMonitor(string batchId, IEnumerable<WorkUnit> monitoredWork, WorkItemInfo workItemInfo)
Parameters
Type Name Description
System.String batchId

The batch identifier.

IEnumerable<WorkUnit> monitoredWork

The monitored work.

WorkItemInfo workItemInfo

The work item information.

Properties

View Source

BatchId

Gets the identifier of the work batch being monitored.

Declaration
public string BatchId { get; }
Property Value
Type Description
System.String

The batch identifier.

View Source

MonitoredWork

Gets the work being monitored.

Declaration
public WorkUnit[] MonitoredWork { get; }
Property Value
Type Description
WorkUnit[]

The monitored work.

Methods

View Source

WaitForCompletion(Int32)

Waits for completion of work.

Declaration
public WorkItemInfo WaitForCompletion(int timeoutMilliseconds)
Parameters
Type Name Description
System.Int32 timeoutMilliseconds

The timeout in milliseconds.

Returns
Type Description
WorkItemInfo

A WorkItemInfo for the current batch

Implements

IWorkMonitor

See Also

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