Esempio n. 1
0
 public ApplicationHandler(ApplicationHandlerConfig applicationHandlerConfig)
 {
     Logger          = LogManager.GetLogger("WatchdogServer");
     ProcessHandlers = new List <ProcessHandler>();
     Set(applicationHandlerConfig);
     _heartbeatServer = HeartbeatServer.Instance;
     ;
 }
Esempio n. 2
0
        public ApplicationHandler(string applicationName, string applicationPath, int nonResponsiveInterval, uint heartbeatInterval = 15, int minProcesses = 1, int maxProcesses = 1, bool keepExistingNoProcesses = false, bool useHeartbeat = false, bool grantKillRequest = true, uint startupMonitorDelay = 20, bool active = true)
        {
            Logger                  = LogManager.GetLogger("WatchdogServer");
            ProcessHandlers         = new List <ProcessHandler>();
            ApplicationName         = applicationName;
            ApplicationPath         = applicationPath;
            NonResponsiveInterval   = nonResponsiveInterval;
            HeartbeatInterval       = heartbeatInterval;
            MinProcesses            = minProcesses;
            MaxProcesses            = maxProcesses;
            KeepExistingNoProcesses = keepExistingNoProcesses;
            UseHeartbeat            = useHeartbeat;
            GrantKillRequest        = grantKillRequest;
            StartupMonitorDelay     = startupMonitorDelay;

            _heartbeatServer = HeartbeatServer.Instance;
            Active           = active;
        }