Class: ITRP::Cmd_probe
Instance Attribute Summary
Attributes inherited from Cmd
#attach_cmd, #children, #enabled_in_state, #trigger
Instance Method Summary collapse
- #enter(cmdline) ⇒ Object
-
#initialize(e) ⇒ Cmd_probe
constructor
A new instance of Cmd_probe.
Methods inherited from Cmd
#appstate, #completions, #find_node, #is_root?, #place_node, #print_state, #set_time_window, #treeprint
Constructor Details
#initialize(e) ⇒ Cmd_probe
Returns a new instance of Cmd_probe.
4 5 6 7 8 9 |
# File 'lib/handlers/probe.rb', line 4 def initialize (e) super(e) @enabled_in_state = :any @attach_cmd = '' @trigger = 'probe' end |
Instance Method Details
#enter(cmdline) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/handlers/probe.rb', line 11 def enter(cmdline) req =TrisulRP::Protocol.mk_request(TRP::Message::Command::PROBE_STATS_REQUEST, :param => "nothing" ) rows = [] TrisulRP::Protocol.get_response_zmq(@appenv.zmq_endpt,req) do |resp| p resp end end |