9cad9ed0fc
v2-ci / build (push) Failing after 41s
v2-ci / unit-tests (tests/Core/ZB.MOM.WW.OtOpcUa.Cluster.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.ControlPlane.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Security.Tests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests) (push) Has been skipped
Adds <summary>/<param>/<returns>/<inheritdoc> where missing and removes project bookkeeping IDs (task/tracking refs) from shipped code comments, so the docs read cleanly and CommentChecker is quiet except for known false positives (PLC/protocol terms, event/IEqualityComparer inheritdoc). Doc/comment-only; no logic changed; solution builds clean.
28 lines
1.4 KiB
C#
28 lines
1.4 KiB
C#
namespace ZB.MOM.WW.OtOpcUa.Core.Abstractions;
|
|
|
|
/// <summary>
|
|
/// Process-level supervisor contract a Tier C driver's out-of-process topology provides
|
|
/// (e.g. <c>Driver.Galaxy.Proxy/Supervisor/</c>). Concerns: restart the Host process when a
|
|
/// hard fault is detected (memory breach, wedge, scheduled recycle window).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Tier A/B drivers do NOT have a supervisor because they run in-process — recycling would
|
|
/// kill every OPC UA session and every co-hosted driver. The Core.Stability layer only invokes
|
|
/// this interface for Tier C instances after asserting the tier via
|
|
/// <see cref="DriverTypeMetadata.Tier"/>.
|
|
/// </remarks>
|
|
public interface IDriverSupervisor
|
|
{
|
|
/// <summary>Driver instance this supervisor governs.</summary>
|
|
string DriverInstanceId { get; }
|
|
|
|
/// <summary>
|
|
/// Request the supervisor to recycle (terminate + restart) the Host process. Implementations
|
|
/// are expected to be idempotent under repeat calls during an in-flight recycle.
|
|
/// </summary>
|
|
/// <param name="reason">Human-readable reason — flows into the supervisor's logs.</param>
|
|
/// <param name="cancellationToken">Cancels the recycle request; an in-flight restart is not interrupted.</param>
|
|
/// <returns>A task that represents the asynchronous operation.</returns>
|
|
Task RecycleAsync(string reason, CancellationToken cancellationToken);
|
|
}
|