Class: Legion::Transport::Messages::NodeHealth

Inherits:
Legion::Transport::Message show all
Defined in:
lib/legion/transport/messages/node_health.rb

Instance Method Summary collapse

Methods inherited from Legion::Transport::Message

#content_encoding, #content_type, #encode_message, #encrypt?, #encrypt_message, #exchange_name, #expiration, #headers, #initialize, #message, #priority, #publish, #timestamp, #type

Methods included from Common

#channel, #channel_open?, #close, #close!, #deep_merge, #generate_consumer_tag, #open_channel, #options_builder

Constructor Details

This class inherits a constructor from Legion::Transport::Message

Instance Method Details

#exchangeObject



7
8
9
# File 'lib/legion/transport/messages/node_health.rb', line 7

def exchange
  Legion::Transport::Exchanges::Node
end

#routing_keyObject



11
12
13
# File 'lib/legion/transport/messages/node_health.rb', line 11

def routing_key
  'health'
end

#validateObject



15
16
17
# File 'lib/legion/transport/messages/node_health.rb', line 15

def validate
  @valid = true
end