Method: Roma::Command::SystemCommandReceiver#ev_stat

Defined in:
lib/roma/command/sys_command_receiver.rb

#ev_stat(s) ⇒ Object

stat [regexp]



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/roma/command/sys_command_receiver.rb', line 115

def ev_stat(s)
  regexp = s[1] if s.length == 2
  h = {}
  h['version'] = Roma::VERSION
  send_stat_result(nil,h,regexp)
  send_stat_result(nil,get_config_stat,regexp)
  send_stat_result(nil,@stats.get_stat,regexp)
  @storages.each{|hname,st|
    send_stat_result("storages[#{hname}].",st.get_stat,regexp)
  }
  send_stat_result(nil,$roma.wb_get_stat,regexp)
  send_stat_result(nil,@rttable.get_stat(@stats.ap_str),regexp)
  send_stat_result(nil,conn_get_stat,regexp)
  send_stat_result(nil,DNSCache.instance.get_stat,regexp)
  send_data("END\r\n")
end