@ApiOperation(value="Send a heartbeat for the specified engine") @RequestMapping(value="/engine/{engine}/heartbeat",method=RequestMethod.PUT) @ResponseStatus(HttpStatus.NO_CONTENT) @ResponseBody public final void putHeartbeat(@PathVariable("engine") String engineName,@ApiParam(value="This the password for the nodeId being passed in.  The password is stored in the node_security table.") @RequestParam(value=WebConstants.SECURITY_TOKEN) String securityToken,@RequestBody Heartbeat heartbeat){
  ISymmetricEngine engine=getSymmetricEngine(engineName);
  if (securityVerified(heartbeat.getNodeId(),engine,securityToken)) {
    heartbeatImpl(engine,heartbeat);
  }
 else {
    throw new NotAllowedException();
  }
}

@ ApiOperation ( value = "Send a heartbeat for the specified engine" ) @ RequestMapping ( value = "/engine/{engine}/heartbeat" , method = RequestMethod . PUT ) @ ResponseStatus ( HttpStatus . NO_CONTENT ) @ ResponseBody public final void putHeartbeat ( @ PathVariable ( "engine" ) String engineName , @ ApiParam ( value = "This the password for the nodeId being passed in.  The password is stored in the node_security table." ) @ RequestParam ( value = WebConstants . SECURITY_TOKEN ) String securityToken , @ RequestBody Heartbeat heartbeat ) { ISymmetricEngine engine = getSymmetricEngine ( engineName ) ; if ( securityVerified ( heartbeat . getNodeId ( ) , engine , securityToken ) ) { heartbeatImpl ( engine , heartbeat ) ; } else { throw new NotAllowedException ( ) ; } }
sends a heartbeat to the server for the given node .
