naive_bayes/resources/ruby/monitor.rb
# Runs the server monitor. Refreshing happens on a separate thread per
# server.
#
# @example Run the monitor.
#   monito.run
#
# @return [ Thread ] The thread the monitor runs on.
#
# @since 3.0.0
Runs the server monitor. Refreshing happens on a separate thread per
server.
Runs the server monitor . Refreshing happens on a separate thread per server .
def run
        Thread.new(interval, server) do |i, s|
          loop do
            s.refresh!
            sleep(i)
          end
        end
      end
def run Thread . new ( interval , server ) do | i , s | loop do s . refresh! sleep ( i ) end end end
Runs the server monitor.
Runs the server monitor .
The thread the monitor runs on.
The thread the monitor runs on .
 Thread 
example
Run the monitor. monito.run
Run the monitor . monito . run
since
None