Exemple #1
0
 public ApplicationHandler(ApplicationHandlerConfig applicationHandlerConfig)
 {
     Logger          = LogManager.GetLogger("WatchdogServer");
     ProcessHandlers = new List <ProcessHandler>();
     Set(applicationHandlerConfig);
     _heartbeatServer = HeartbeatServer.Instance;
     ;
 }
Exemple #2
0
 public void Set(ApplicationHandlerConfig applicationHandlerConfig)
 {
     ApplicationName         = applicationHandlerConfig.ApplicationName;
     ApplicationPath         = applicationHandlerConfig.ApplicationPath;
     NonResponsiveInterval   = applicationHandlerConfig.NonResponsiveInterval;
     HeartbeatInterval       = applicationHandlerConfig.HeartbeatInterval;
     MinProcesses            = applicationHandlerConfig.MinProcesses;
     MaxProcesses            = applicationHandlerConfig.MaxProcesses;
     KeepExistingNoProcesses = applicationHandlerConfig.KeepExistingNoProcesses;
     UseHeartbeat            = applicationHandlerConfig.UseHeartbeat;
     GrantKillRequest        = applicationHandlerConfig.GrantKillRequest;
     Active = applicationHandlerConfig.Active;
     StartupMonitorDelay = applicationHandlerConfig.StartupMonitorDelay;
     Active = applicationHandlerConfig.Active;
 }