Example #1
0
 public SQLCluster(SQLModule module, SQLSettings.Cluster cluster)
 {
     Module   = module;
     Settings = cluster;
     Nodes    = cluster.Nodes
                .Select(n => new SQLNode(module, this, n))
                .Where(n => n.TryAddToGlobalPollers())
                .ToList();
     RefreshInterval = (cluster.RefreshIntervalSeconds ?? Module.Settings.RefreshIntervalSeconds).Seconds();
 }
Example #2
0
 public SQLNode(SQLModule module, SQLCluster sqlCluster, SQLSettings.Instance node) : base(module, node)
 {
     Cluster = sqlCluster;
 }