public DeaAgent(ILog log, IDeaConfig config, INatsClient natsClient, IFilesManager filesManager, IConfigManager configManager, IDropletManager dropletManager, IWebServerAdministrationProvider webServerAdministrationProvider, IVarzProvider varzProvider) { this.log = log; this.config = config; this.natsClient = natsClient; this.filesManager = filesManager; this.configManager = configManager; this.dropletManager = dropletManager; this.webServerProvider = webServerAdministrationProvider; this.varzProvider = varzProvider; helloMessage = new Hello(natsClient.UniqueIdentifier, config.LocalIPAddress, config.FilesServicePort); processTask = new Task(ProcessLoop); heartbeatTask = new Task(HeartbeatLoop); advertiseTask = new Task(AdvertiseLoop); varzTask = new Task(SnapshotVarz); monitorAppsTask = new Task(MonitorLoop); this.maxMemoryMB = config.MaxMemoryMB; }
public Agent(ILog log, IConfig config, IMessagingProvider messagingProvider, IFilesManager filesManager, IConfigManager configManager, IDropletManager dropletManager, IWebServerAdministrationProvider webServerAdministrationProvider, IVarzProvider varzProvider) { this.log = log; this.config = config; this.messagingProvider = messagingProvider; this.filesManager = filesManager; this.configManager = configManager; this.dropletManager = dropletManager; this.webServerProvider = webServerAdministrationProvider; this.varzProvider = varzProvider; helloMessage = new Hello(messagingProvider.UniqueIdentifier, config.LocalIPAddress, config.FilesServicePort); heartbeatTask = new Task(HeartbeatLoop); varzTask = new Task(SnapshotVarz); monitorAppsTask = new Task(MonitorApps); this.maxMemoryMB = config.MaxMemoryMB; }