Class: Nonnative::Server
Instance Attribute Summary
Attributes inherited from Runner
#proxy
Instance Method Summary
collapse
Methods inherited from Runner
#initialize, #name
Instance Method Details
#start ⇒ Object
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/nonnative/server.rb', line 5
def start
unless thread
proxy.start
@thread = Thread.new { perform_start }
wait_start
end
object_id
end
|
#stop ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/nonnative/server.rb', line 16
def stop
if thread
perform_stop
thread.terminate
proxy.stop
@thread = nil
wait_stop
end
object_id
end
|