adjustHbSensitivity(hs, 0.1f);
adjustHbSensitivity(hs, 10.0f);
  private void evaluate(HealthStatus hs) {    int status = hs.getStatus();    //log.info("Evaluate: agent=" + hs.getAgentId() + " status=" + hs.getStatus());    switch (status) {      case HealthStatus.DEAD:      case HealthStatus.NO_RESPONSE:        // Agent is most likely dead.  Initiate a restart.        RestartLocationRequest req =          new RestartLocationRequest(RestartLocationRequest.LOCATE_NODE, myUID);        req.addAgent(hs.getAgentId());        bbs.publishAdd(req);        break;      case HealthStatus.DEGRADED:        // Agent is alive but operating under stress.  For now just increase        // the Heartbeat failure rate threshold.  Eventually this should        // include logic to determine if the agent is simply busy or if there        // is a hardware problem or external attack.        adjustHbSensitivity(hs, 0.1f);  // Increase threshold by 10%        hs.setState(HealthStatus.NORMAL);        bbs.publishChange(hs);        break;      default:    }  }