namespace ZB.MOM.WW.OtOpcUa.Commons.Messages.Admin;
///
/// Shared DPS topic for driver-control commands (,
/// ). Publishers (AdminOperationsActor) and subscribers
/// (DriverHostActor) reference this single constant so renames can't silently
/// desynchronise.
///
public static class DriverControlTopic
{
public const string Name = "driver-control";
}
///
/// AdminUI → AdminOperationsActor: restart the driver actor for one instance.
/// A restart fully stops and respawns the actor — loses in-memory state, may briefly
/// interrupt active subscriptions. The driver actor's supervisor performs the work.
///
/// Cluster scope identifier (for audit).
/// The driver instance to restart.
/// The authenticated admin user who triggered the restart.
/// Round-trip correlation token.
public sealed record RestartDriver(
string ClusterId,
string DriverInstanceId,
string ActorByUserName,
Guid CorrelationId);
/// Reply for .
/// True iff the operation was dispatched without error.
/// Failure reason; null on success.
/// Echoes the request's correlation token.
public sealed record RestartDriverResult(
bool Ok,
string? Message,
Guid CorrelationId);