Class PipelineRuntimeContext
- Namespace
- Pipelinez.Core.Distributed
- Assembly
- Pipelinez.dll
Describes the current runtime identity and owned work for a running pipeline.
public sealed class PipelineRuntimeContext
- Inheritance
-
PipelineRuntimeContext
- Inherited Members
Constructors
PipelineRuntimeContext(string, PipelineExecutionMode, string, string, IReadOnlyList<PipelinePartitionLease>?, IReadOnlyList<PipelinePartitionExecutionState>?)
Initializes a new runtime context snapshot.
public PipelineRuntimeContext(string pipelineName, PipelineExecutionMode executionMode, string instanceId, string workerId, IReadOnlyList<PipelinePartitionLease>? ownedPartitions = null, IReadOnlyList<PipelinePartitionExecutionState>? partitionExecution = null)
Parameters
pipelineNamestringexecutionModePipelineExecutionModeinstanceIdstringworkerIdstringownedPartitionsIReadOnlyList<PipelinePartitionLease>partitionExecutionIReadOnlyList<PipelinePartitionExecutionState>
Properties
ExecutionMode
Gets the configured execution mode.
public PipelineExecutionMode ExecutionMode { get; }
Property Value
InstanceId
Gets the current host instance identifier.
public string InstanceId { get; }
Property Value
OwnedPartitions
Gets the partitions currently owned by the worker.
public IReadOnlyList<PipelinePartitionLease> OwnedPartitions { get; }
Property Value
PartitionExecution
Gets the current execution state of owned partitions.
public IReadOnlyList<PipelinePartitionExecutionState> PartitionExecution { get; }
Property Value
PipelineName
Gets the logical pipeline name.
public string PipelineName { get; }
Property Value
WorkerId
Gets the current worker identifier.
public string WorkerId { get; }