Class: Nonnative::Server
Direct Known Subclasses
Instance Attribute Summary collapse
-
#proxy ⇒ Object
readonly
Returns the value of attribute proxy.
Instance Method Summary collapse
Methods inherited from Service
Constructor Details
This class inherits a constructor from Nonnative::Service
Instance Attribute Details
#proxy ⇒ Object (readonly)
Returns the value of attribute proxy.
5 6 7 |
# File 'lib/nonnative/server.rb', line 5 def proxy @proxy end |
Instance Method Details
#start ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/nonnative/server.rb', line 7 def start unless thread proxy.start @thread = Thread.new { perform_start } wait_start end object_id end |
#stop ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/nonnative/server.rb', line 18 def stop if thread perform_stop thread.terminate proxy.stop @thread = nil wait_stop end object_id end |