public void addWatchdog(WatchdogConfig config) throws ConfigException { if (_resin.findClient(config.getId()) != null) { throw new ConfigException( L.l( "<server id='{0}'> is a duplicate server. servers must have unique ids.", config.getId())); } _resin.addClient(new WatchdogClient(_system, _resin, config)); }
public WatchdogConfig createWatchdog() { BootClusterConfig cluster = null; WatchdogConfig config = new WatchdogConfig( "", cluster, _resin.getArgs(), _resin.getRootDirectory(), _resin.getNextIndex()); for (int i = 0; i < _watchdogDefaultList.size(); i++) _watchdogDefaultList.get(i).configure(config); return config; }
public String getResinSystemAuthKey() { return _bootManager.getResinSystemAuthKey(); }
public Path getResinDataDirectory() { return _bootManager.getResinDataDirectory(); }
Path getRootDirectory() { return _bootManager.getRootDirectory(); }
Path getResinHome() { return _bootManager.getResinHome(); }
public void setWatchdogPort(int watchdogPort) { if (_resin.getArgs().getWatchdogPort() == 0) _resin.getArgs().setWatchdogPort(watchdogPort); }