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;
  }
Ejemplo n.º 3
0
 public String getResinSystemAuthKey() {
   return _bootManager.getResinSystemAuthKey();
 }
Ejemplo n.º 4
0
 public Path getResinDataDirectory() {
   return _bootManager.getResinDataDirectory();
 }
Ejemplo n.º 5
0
 Path getRootDirectory() {
   return _bootManager.getRootDirectory();
 }
Ejemplo n.º 6
0
 Path getResinHome() {
   return _bootManager.getResinHome();
 }
 public void setWatchdogPort(int watchdogPort) {
   if (_resin.getArgs().getWatchdogPort() == 0) _resin.getArgs().setWatchdogPort(watchdogPort);
 }