setExpiration(name, (int) getNodeStatusExpiration(name));
setExpiration(name, (int) getTimeout(name));
    public void enter(String name) {      if (isSentinel()) {        if (isCoordinatorEnabled()) {          CoordinatorHelper ch = getCoordinatorHelper();          if (!ch.hasAgent(name)) {            ch.addAgent(name, CoordinatorHelper.LIVE);          } else {            // Cleanup previous restart            ch.opmodeDisabled(name);            // Set current diagnosis to "Live"            ch.setDiagnosis(name, CoordinatorHelper.LIVE);          }        }        checkCommunityReady();      }      if (isLocal(name) || thisAgent.equals(name)) {        setExpiration(name, NEVER);      } else if (isNode(name)) {        setExpiration(name, (int) getNodeStatusExpiration(name));      } else if (isAgent(name)) {        int nodeExpiration = (int) getNodeStatusExpiration(getLocation(name));        int updateInterval = (int) getLongAttribute(            STATUS_UPDATE_INTERVAL_ATTRIBUTE, DEFAULT_STATUS_UPDATE_INTERVAL);        // Increase timeout for agents so they don't timeout before node        int agentExpiration = nodeExpiration + updateInterval * MS_PER_MIN * 2;        setExpiration(name, agentExpiration);      }    }