Class: Gisele::VM::Proxy::Server
- Defined in:
- lib/gisele/vm/proxy/server.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #connect ⇒ Object
- #disconnect ⇒ Object
-
#initialize(options = {}) ⇒ Server
constructor
A new instance of Server.
Methods inherited from Component
#connected!, #connected?, #registered, #registered!, #registered?, #unregistered, #vm
Constructor Details
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/gisele/vm/proxy/server.rb', line 7 def @options end |
Instance Method Details
#connect ⇒ Object
14 15 16 17 18 |
# File 'lib/gisele/vm/proxy/server.rb', line 14 def connect super DRb.start_service [:uri], vm info "VM proxy started at #{DRb.uri}." end |
#disconnect ⇒ Object
20 21 22 23 24 |
# File 'lib/gisele/vm/proxy/server.rb', line 20 def disconnect DRb.stop_service DRb.thread.join if DRb.thread super end |