7b0b9c7365
Solution + 23 src projects + 26 test projects renamed; folders, csproj, namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated. ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated. SQL roles/logins, LDAP domains, CLI command name, and CLI config dir (~/.scadalink → ~/.scadabridge) also renamed. Build green; 5 Host.Tests fail awaiting SQL login rename in next commit. Pre-existing StaleTagMonitor timing flakes unchanged. Rename script committed at tools/rename-to-scadabridge.sh.
43 lines
2.3 KiB
C#
43 lines
2.3 KiB
C#
using ZB.MOM.WW.ScadaBridge.Commons.Messages.Artifacts;
|
|
using ZB.MOM.WW.ScadaBridge.StoreAndForward;
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.SiteRuntime.Messages;
|
|
|
|
// Outbound messages — sent by local DeploymentManagerActor/S&F service
|
|
// to the local SiteReplicationActor for forwarding to the peer node.
|
|
|
|
/// <summary>Outbound: replicate a deployed instance config (create or update) to the peer node.</summary>
|
|
public record ReplicateConfigDeploy(
|
|
string InstanceName, string ConfigJson, string DeploymentId, string RevisionHash, bool IsEnabled);
|
|
|
|
/// <summary>Outbound: replicate removal of a deployed instance config to the peer node.</summary>
|
|
public record ReplicateConfigRemove(string InstanceName);
|
|
|
|
/// <summary>Outbound: replicate an instance enabled/disabled flag change to the peer node.</summary>
|
|
public record ReplicateConfigSetEnabled(string InstanceName, bool IsEnabled);
|
|
|
|
/// <summary>Outbound: replicate a system-wide artifact deployment (shared scripts, external systems, etc.) to the peer node.</summary>
|
|
public record ReplicateArtifacts(DeployArtifactsCommand Command);
|
|
|
|
/// <summary>Outbound: replicate a store-and-forward buffer mutation (enqueue/dequeue/park/etc.) to the peer node.</summary>
|
|
public record ReplicateStoreAndForward(ReplicationOperation Operation);
|
|
|
|
// Inbound messages — received from the peer's SiteReplicationActor
|
|
// and applied to local SQLite storage.
|
|
|
|
/// <summary>Inbound: apply a peer-replicated instance config (create or update) to local SQLite.</summary>
|
|
public record ApplyConfigDeploy(
|
|
string InstanceName, string ConfigJson, string DeploymentId, string RevisionHash, bool IsEnabled);
|
|
|
|
/// <summary>Inbound: apply peer-replicated removal of a deployed instance config to local SQLite.</summary>
|
|
public record ApplyConfigRemove(string InstanceName);
|
|
|
|
/// <summary>Inbound: apply a peer-replicated instance enabled/disabled flag change to local SQLite.</summary>
|
|
public record ApplyConfigSetEnabled(string InstanceName, bool IsEnabled);
|
|
|
|
/// <summary>Inbound: apply a peer-replicated system-wide artifact deployment to local SQLite.</summary>
|
|
public record ApplyArtifacts(DeployArtifactsCommand Command);
|
|
|
|
/// <summary>Inbound: apply a peer-replicated store-and-forward buffer mutation to the local buffer.</summary>
|
|
public record ApplyStoreAndForward(ReplicationOperation Operation);
|