Class: Cuboid::RPC::Client::Scheduler
- Inherits:
-
Object
- Object
- Cuboid::RPC::Client::Scheduler
show all
- Defined in:
- lib/cuboid/rpc/client/scheduler.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(url, options = nil) ⇒ Scheduler
15
16
17
|
# File 'lib/cuboid/rpc/client/scheduler.rb', line 15
def initialize( url, options = nil )
@client = Base.new( url, nil, options )
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
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
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
23
24
25
|
# File 'lib/cuboid/rpc/client/scheduler.rb', line 23
def address
@client.address
end
|
31
32
33
|
# File 'lib/cuboid/rpc/client/scheduler.rb', line 31
def close
@client.close
end
|
27
28
29
|
# File 'lib/cuboid/rpc/client/scheduler.rb', line 27
def port
@client.port
end
|
19
20
21
|
# File 'lib/cuboid/rpc/client/scheduler.rb', line 19
def url
@client.url
end
|