Table of Contents

Class CellLoadPipeline

Namespace
KernLab.Cell
Assembly
KernLab.Cell.dll

宿主侧装载管线(C206——spec→spawn→握手→ready→池化;drain 窗口与世代轮换)。

public sealed class CellLoadPipeline
Inheritance
CellLoadPipeline
Inherited Members

Constructors

CellLoadPipeline()

public CellLoadPipeline()

Methods

RotateGenerationAsync(CellPoolEntry, CellSpec, CellProcessStartOptions, string, CellProcess?, CancellationToken)

世代轮换(§5.1——包集变更=新世代新容器):新容器 Ready 后入池,旧容器 drain; 准出:轮换不残留旧实例(旧进程退场)。

public static Task<CellPoolEntry> RotateGenerationAsync(CellPoolEntry oldEntry, CellSpec newSpec, CellProcessStartOptions options, string expectedInstanceLabel, CellProcess? oldProcess, CancellationToken cancellationToken = default)

Parameters

oldEntry CellPoolEntry
newSpec CellSpec
options CellProcessStartOptions
expectedInstanceLabel string
oldProcess CellProcess
cancellationToken CancellationToken

Returns

Task<CellPoolEntry>

StartAsync(CellSpec, CellProcessStartOptions, string?, CancellationToken)

spawn+握手+池化(§5.3 生命周期前半)。

public static Task<(CellProcess Process, CellChannel Channel, ReadyFrame Ready)> StartAsync(CellSpec spec, CellProcessStartOptions options, string? expectedInstanceLabel = null, CancellationToken cancellationToken = default)

Parameters

spec CellSpec
options CellProcessStartOptions
expectedInstanceLabel string
cancellationToken CancellationToken

Returns

Task<(CellProcess Process, CellChannel Channel, ReadyFrame Ready)>