Drop ping/list discovery, WinRM scripts, and heavy Java probing so only KnownContainers + MBean restart remain. Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
1.5 KiB
C#
40 lines
1.5 KiB
C#
namespace ZA.CoreService.ESBCertificateManager.Models;
|
|
|
|
/// <summary>
|
|
/// Sonic-Verbindung für MfApi-Container-Restart (wie SMC).
|
|
/// </summary>
|
|
public sealed class SonicConnection
|
|
{
|
|
/// <summary>Alias; referenziert von DeploymentTarget.SonicConnectionName.</summary>
|
|
public required string Name { get; init; }
|
|
|
|
/// <summary>Sonic-Domain, z.B. proalpha-test.</summary>
|
|
public required string DomainName { get; init; }
|
|
|
|
/// <summary>Broker-/Management-URL wie in der SMC, z.B. tcp://host:13070.</summary>
|
|
public required string ConnectionUrl { get; init; }
|
|
|
|
public required string Username { get; init; }
|
|
public required string Password { get; init; }
|
|
|
|
/// <summary>Installationsroot (optional; Libs oft unter lib).</summary>
|
|
public string SonicHome { get; init; } = @"C:\Sonic\MQ10.0";
|
|
|
|
/// <summary>Optional: JRE/JDK-Home.</summary>
|
|
public string JavaHome { get; init; } = string.Empty;
|
|
|
|
/// <summary>Optional: direkter Pfad zu java.exe.</summary>
|
|
public string JavaPath { get; init; } = string.Empty;
|
|
|
|
/// <summary>Ordner mit mgmt_client.jar / mfcontext.jar / …</summary>
|
|
public string MfClientLibPath { get; init; } = string.Empty;
|
|
|
|
/// <summary>Container-Kurznamen, z.B. ct-ZADBService.</summary>
|
|
public List<string> KnownContainers { get; init; } = [];
|
|
|
|
public int TimeoutSeconds { get; init; } = 120;
|
|
public int PostRestartDelaySeconds { get; init; } = 20;
|
|
|
|
public string ManagementModeDisplay => "MfApi (SMC Restart)";
|
|
}
|