class DCell::Message::Heartbeat
Heartbeat
messages inform other nodes this node is healthy
Public Class Methods
new()
click to toggle source
# File lib/dcell/messages.rb, line 13 def initialize @id = DCell.id end
Public Instance Methods
dispatch()
click to toggle source
# File lib/dcell/messages.rb, line 17 def dispatch node = DCell::Node[@id] node.handle_heartbeat if node end