class Nonnative::Server
Attributes
thread[R]
timeout[R]
Public Class Methods
new(service)
click to toggle source
Calls superclass method
Nonnative::Runner::new
# File lib/nonnative/server.rb, line 5 def initialize(service) super service @timeout = Nonnative::Timeout.new(service.timeout) end
Public Instance Methods
start()
click to toggle source
# File lib/nonnative/server.rb, line 11 def start unless thread proxy.start @thread = Thread.new { perform_start } wait_start end object_id end
stop()
click to toggle source
# File lib/nonnative/server.rb, line 22 def stop if thread perform_stop thread.terminate proxy.stop @thread = nil wait_stop end object_id end