public HeartBeatResponse getLastHeartBeatResponse() {
    return lastHeartBeatResponse;
  }
After this value is set, the agent will send only those many heartbeats.
A value of 0 means no heartbeats and -1 means keep sending continuously.
@param numberOfHeartbeats
ambari-server/src/test/java/org/apache/ambari/server/agent/LocalAgentSimulator.java