Files
lmxopcua/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/Entities/RemoteNamespaceMapping.cs
T
Joseph Doherty b6895c19d4 feat(grpc-data): H2 AddDataConnectionHistory schema; authoring accepts HistoryRead
Migration per plan 6 (HistoryTimeoutMilliseconds 30000; MaxConcurrentHistoryReads 4, MaxHistoryValuesPerPage
10000, MaxHistoryResponseBytes 4 MiB; MaxHistoryAssemblyBytesPerRequest 16 MiB) with non-null defaults and widened
check constraints. Validator known set grows by HistoryRead (mapping bits still subset of connection bits; history
limits positive); scope revision includes the history timeout.
2026-11-23 20:38:31 -05:00

39 lines
2.0 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;
public byte[] RowVersion { get; set; } = [];
}