22 using System.Collections.Generic;
26 namespace Ntp.Analyzer.Config.Node
37 IEnumerable<ReadingBulkConfiguration> bulks,
38 IEnumerable<ListenerConfiguration> monitors,
39 IEnumerable<LogConfiguration> logs,
40 IEnumerable<HostConfiguration> servers)
44 Heartbeat = heartbeat;
45 Permission = permission;
48 this.bulks =
new List<ReadingBulkConfiguration>(bulks);
49 this.monitors =
new List<ListenerConfiguration>(monitors);
50 this.logs =
new List<LogConfiguration>(logs);
51 this.servers =
new List<HostConfiguration>(servers);
54 private readonly List<ReadingBulkConfiguration>
bulks;
55 private readonly List<LogConfiguration>
logs;
56 private readonly List<ListenerConfiguration>
monitors;
57 private readonly List<HostConfiguration>
servers;
73 public IEnumerable<ListenerConfiguration> Monitors => monitors;
77 public IEnumerable<LogConfiguration> Log => logs;
89 public IEnumerable<ReadingBulkConfiguration> Bulks => bulks;
93 public IEnumerable<HostConfiguration> Servers => servers;
readonly List< LogConfiguration > logs
Configuration(string configName, DatabaseConfiguration database, HeartbeatConfiguration heartbeat, PermissionConfiguration permission, ClusterConfiguration cluster, NotifyConfiguration notify, IEnumerable< ReadingBulkConfiguration > bulks, IEnumerable< ListenerConfiguration > monitors, IEnumerable< LogConfiguration > logs, IEnumerable< HostConfiguration > servers)
readonly List< HostConfiguration > servers
readonly List< ReadingBulkConfiguration > bulks
readonly List< ListenerConfiguration > monitors