// /** // * File: CheckTask.cs // * Author: haraldwolff // * // * This file and it's content is copyrighted by the Author and / or copyright holder. // * Any use wihtout proper permission is illegal and may lead to legal actions. // * // * // **/ using System; using ln.types.threads; using ln.skyscanner.entities; using ln.logging; using ln.skyscanner.services; namespace ln.skyscanner.checks { public class CheckJob : PoolJob { public CheckService CheckService { get; } public Node Node { get; } public CheckJob(CheckService checkService,Node node) { CheckService = checkService; Name = String.Format("Interval check: {0} [{1}]",node.UniqueIdentity,node.PrimaryIP.ToString()); Node = node; } public override void RunJob() { SkyCheck[] checks = SkyCheck.SkyChecks; long startTime = DateTimeOffset.Now.ToUnixTimeMilliseconds(); for (int n=0;n