b2fab8b075
The origin item sees a hub eviction only at its next hub read: Reset if the last snapshot chunk is still undelivered, otherwise a silent fresh snapshot on the same stream (both per A2, both loss-free since the A3 consumer swaps a buffered re-snapshot in as a full replacement). Since A2 review S5 the 3,000-record snapshot is 59 chunks and the silent path wins when run alone (fails 3/3 alone at the A2 merge too; passes in its class). No product change. Also fixes the stale ack/confirm/shelve comment on ConditionMethodTimeoutMilliseconds.
47 lines
2.8 KiB
C#
47 lines
2.8 KiB
C#
using ZB.MOM.WW.OtOpcUa.Core.Abstractions.DataConnections;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.Configuration.Entities;
|
|
|
|
/// <summary>A local realm-qualified branch projection, not a synthetic locally owned tag.</summary>
|
|
public sealed class RemoteNamespaceMapping
|
|
{
|
|
public Guid RemoteNamespaceMappingRowId { get; set; }
|
|
public string RemoteNamespaceMappingId { get; set; } = "";
|
|
public string ClusterId { get; set; } = "";
|
|
public string DataConnectionId { get; set; } = "";
|
|
public long Revision { get; set; } = 1;
|
|
public bool Enabled { get; set; }
|
|
public List<string> ConsumerNodeIds { get; set; } = [];
|
|
public DataRealm Realm { get; set; }
|
|
public DataRealm RemoteRealm { get; set; }
|
|
public string LocalParentKind { get; set; } = "";
|
|
public string LocalParentId { get; set; } = "";
|
|
public string BranchName { get; set; } = "";
|
|
public string RemoteRootEntityId { get; set; } = "";
|
|
public string RemoteNamespaceUri { get; set; } = "";
|
|
public string RemoteIdentifierKind { get; set; } = "";
|
|
public string RemoteIdentifier { get; set; } = "";
|
|
/// <summary>Optional leaf type expectation; branch types are verified as catalog metadata arrives.</summary>
|
|
public DataValueKind? ExpectedValueKind { get; set; }
|
|
public DataValueKind? ExpectedArrayElementKind { get; set; }
|
|
public DataOperations AllowedOperations { get; set; }
|
|
public bool WriteThrough { get; set; }
|
|
public int MaxProjectionNodes { get; set; } = 10000;
|
|
public int MaxProjectionDepth { get; set; } = 32;
|
|
public int MetadataLeaseMilliseconds { get; set; } = 15000;
|
|
public int StaleTimeoutMilliseconds { get; set; } = 30000;
|
|
public int SamplingIntervalMilliseconds { get; set; } = 1000;
|
|
public int PublishingIntervalMilliseconds { get; set; } = 1000;
|
|
/// <summary>H2 (used by H3): per-request budget for assembling chunked remote Processed/AtTime answers.</summary>
|
|
public int MaxHistoryAssemblyBytesPerRequest { get; set; } = 16 * 1024 * 1024;
|
|
/// <summary>A2: conditions this mapping may import; a remote scope over it is <c>Unavailable(ConditionCapacity)</c> (plan §5.5).</summary>
|
|
public int MaxConditions { get; set; } = 1000;
|
|
/// <summary>A2: after a disconnect lasting this long, imported conditions report <c>BadNoCommunication</c>.</summary>
|
|
public int ConditionStaleTimeoutMilliseconds { get; set; } = 30000;
|
|
/// <summary>A2 (used by A2b): ceiling of one remote condition method call (Acknowledge, AddComment, Confirm; Shelve is not forwarded).</summary>
|
|
public int ConditionMethodTimeoutMilliseconds { get; set; } = 5000;
|
|
/// <summary>A2: how long a condition snapshot may take before the incomplete mapping is <c>Unavailable</c>.</summary>
|
|
public int ConditionSnapshotTimeoutMilliseconds { get; set; } = 30000;
|
|
public byte[] RowVersion { get; set; } = [];
|
|
}
|