fix(comm): route Search/Verify/WriteTag commands through SiteCommunicationActor + DeploymentManager (M7 end-to-end)
This commit is contained in:
@@ -161,6 +161,22 @@ public class SiteCommunicationActor : ReceiveActor, IWithTimers
|
||||
// children holding the live OPC UA sessions.
|
||||
Receive<ReadTagValuesCommand>(msg => _deploymentManagerProxy.Forward(msg));
|
||||
|
||||
// OPC UA tag-picker address-space search (T15) and secured-write execute
|
||||
// (T14) — same singleton routing rationale as BrowseNodeCommand above: the
|
||||
// DataConnectionActor children that own the live OPC UA sessions exist only
|
||||
// on the singleton's (active) node, so these must hop through the Deployment
|
||||
// Manager proxy too. Without these forwards the commands dead-letter and the
|
||||
// central Ask times out. Forward preserves the central Ask sender so the
|
||||
// result routes straight back to the waiting Ask.
|
||||
Receive<SearchAddressSpaceCommand>(msg => _deploymentManagerProxy.Forward(msg));
|
||||
Receive<Commons.Messages.DataConnection.WriteTagRequest>(msg => _deploymentManagerProxy.Forward(msg));
|
||||
|
||||
// OPC UA endpoint Verify (T17) — probes a (possibly unsaved) endpoint config
|
||||
// WITHOUT persisting it. The Deployment Manager singleton's dcl-manager runs
|
||||
// the probe directly (no existing connection required), so — like the
|
||||
// commands above — Verify routes through the singleton's active node.
|
||||
Receive<VerifyEndpointCommand>(msg => _deploymentManagerProxy.Forward(msg));
|
||||
|
||||
// OPC UA server-certificate trust management (T17 / D6) — forward to the
|
||||
// Deployment Manager singleton, which owns the cross-node trust broadcast.
|
||||
// The trusted-peer PKI store is node-wide per site node, so a trust/remove
|
||||
|
||||
@@ -168,6 +168,20 @@ public class DeploymentManagerActor : ReceiveActor, IWithTimers
|
||||
Receive<ReadTagValuesCommand>(msg =>
|
||||
Context.ActorSelection("/user/dcl-manager").Tell(msg, Sender));
|
||||
|
||||
// OPC UA tag-picker address-space search (T15), secured-write execute (T14),
|
||||
// and endpoint Verify (T17) — same singleton-only re-forward as the browse
|
||||
// handler above. SiteCommunicationActor routes these to this singleton
|
||||
// (active node) so the local dcl-manager is the one holding the live
|
||||
// DataConnectionActor children (Search/Write route there by connection name;
|
||||
// Verify runs a temp probe in the manager). Tell with Sender preserved is
|
||||
// semantically identical to Forward (ActorSelection has no Forward()).
|
||||
Receive<SearchAddressSpaceCommand>(msg =>
|
||||
Context.ActorSelection("/user/dcl-manager").Tell(msg, Sender));
|
||||
Receive<Commons.Messages.DataConnection.WriteTagRequest>(msg =>
|
||||
Context.ActorSelection("/user/dcl-manager").Tell(msg, Sender));
|
||||
Receive<VerifyEndpointCommand>(msg =>
|
||||
Context.ActorSelection("/user/dcl-manager").Tell(msg, Sender));
|
||||
|
||||
// T17 / D6 — OPC UA server-certificate trust. Trust is site-local: the
|
||||
// trusted-peer PKI store is per-node, so a trust/remove MUST reach BOTH
|
||||
// site nodes (node-a + node-b) or they diverge across failover. This
|
||||
|
||||
Reference in New Issue
Block a user