Class: Cuboid::RPC::Client::Scheduler
- Defined in:
- lib/cuboid/rpc/client/scheduler.rb
Overview
RPC Scheduler client
Instance Attribute Summary collapse
-
#pid ⇒ Object
Not always available, set by the parent.
Instance Method Summary collapse
- #address ⇒ Object
- #close ⇒ Object
-
#initialize(url, options = nil) ⇒ Scheduler
constructor
A new instance of Scheduler.
- #port ⇒ Object
- #url ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object (private)
Used to provide the illusion of locality for remote methods
38 39 40 |
# File 'lib/cuboid/rpc/client/scheduler.rb', line 38 def method_missing( sym, *args, &block ) @client.call( "scheduler.#{sym.to_s}", *args, &block ) end |
Instance Attribute Details
#pid ⇒ Object
Not always available, set by the parent.
13 14 15 |
# File 'lib/cuboid/rpc/client/scheduler.rb', line 13 def pid @pid end |
Instance Method Details
#address ⇒ Object
23 24 25 |
# File 'lib/cuboid/rpc/client/scheduler.rb', line 23 def address @client.address end |
#close ⇒ Object
31 32 33 |
# File 'lib/cuboid/rpc/client/scheduler.rb', line 31 def close @client.close end |
#port ⇒ Object
27 28 29 |
# File 'lib/cuboid/rpc/client/scheduler.rb', line 27 def port @client.port end |
#url ⇒ Object
19 20 21 |
# File 'lib/cuboid/rpc/client/scheduler.rb', line 19 def url @client.url end |