public void report ( long arrivalTime ) { checkArgument ( arrivalTime >= 0 , "arrivalTime must not be negative" ) ; long latestHeartbeat = history . latestHeartbeatTime ( ) ; history . samples ( ) . addValue ( arrivalTime - latestHeartbeat ) ; history . setLatestHeartbeatTime ( arrivalTime ) ; }
Report a new heart beat for the specified node id .