class Roma::Watcher

Public Class Methods

new() click to toggle source
   # File lib/roma/tools/sample_watcher.rb
11 def initialize
12   @sender = Roma::Client::Sender.new
13 end

Public Instance Methods

get_node_list(nid) click to toggle source
   # File lib/roma/tools/sample_watcher.rb
15 def get_node_list(nid)
16   @sender.send_command(nid, "nodelist").split(' ')
17 end
watch(nid, command) click to toggle source
   # File lib/roma/tools/sample_watcher2.rb
15 def watch(nid, command)
16   ret = @sender.send_command(nid, command, value = nil, :multiplelines_receiver)
17 end