Class TerminatedWorkMonitor
A IWorkMonitor that wraps work that has already terminated.
Inheritance
System.Object
TerminatedWorkMonitor
Implements
Namespace: DNVGL.One.Compute.Scheduling.WorkScheduling
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public class TerminatedWorkMonitor : object, IWorkMonitor
Constructors
View SourceTerminatedWorkMonitor(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 SourceBackendId
Gets the backend identifier.
Declaration
public string BackendId { get; }
Property Value
Type | Description |
---|---|
System.String | The backend identifier. |
BatchId
Gets the identifier of the work batch being monitored.
Declaration
public string BatchId { get; }
Property Value
Type | Description |
---|---|
System.String | The batch identifier. |
MonitoredWork
Gets the work being monitored.
Declaration
public WorkUnit[] MonitoredWork { get; }
Property Value
Type | Description |
---|---|
WorkUnit[] | The monitored work. |
Methods
View SourceWaitForCompletion(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. |