nsr.setLeaderVote(model.getLeaderVote(NODE_NAME)); Set targets = getHealthMonitorPeers(nsr.getCommunityName());
nsr.setLeaderVote(model.getLeaderVote(myName)); Set targets = findHealthMonitorPeers(nsr.getCommunityName());
  private void updateAndSendNodeStatus() {    if (model != null) {      String communityName = model.getCommunityName();      // Get status of local agents      AgentStatus agentStatus[] = getLocalAgentStatus(communityName);      // Dissemminate status to peer managers      if (nodeStatusRelay != null) {       NodeStatusRelayImpl nsr = (NodeStatusRelayImpl)nodeStatusRelay.            getContent();        nsr.setAgentStatus(agentStatus);        nsr.setLeaderVote(model.getLeaderVote(NODE_NAME));        Set targets = getHealthMonitorPeers(nsr.getCommunityName());        for (Iterator it1 = targets.iterator(); it1.hasNext(); ) {          MessageAddress target = (MessageAddress)it1.next();          if (!target.equals(agentId))            nodeStatusRelay.addTarget(target);        }        logger.debug("publishChange NodeStatusRelay:" +                     " source=" + nsr.getSource() +                     " targets=" + targetsToString(nodeStatusRelay.getTargets()) +                     " community=" + nsr.getCommunityName() +                     " agents=" + nsr.getAgentStatus().length +                     //" agents=" + agentStatusToString(nsr.getAgentStatus()) +                     " leaderVote=" + nsr.getLeaderVote());        blackboard.publishChange(nodeStatusRelay);      } else {        //logger.info("RelayAdapter not found for community " +        //            communityName);      }    } else {      //logger.info("Community Status Model is null");    }  }