Methods
- C
- I
- N
- R
- S
- U
Included Modules
Attributes
[RW] | uri |
Class Public methods
command()
Link
command=(cmd)
Link
new()
Link
Instance Public methods
regist(name, ro)
Link
service(name)
Link
unregist(name)
Link
Instance Private methods
invoke_service(name)
Link
invoke_service_command(name, command)
Link
# File ../ruby/lib/drb/extservm.rb, line 75 def invoke_service_command(name, command) raise "invalid command. name: #{name}" unless command synchronize do return if @servers.include?(name) @servers[name] = false end uri = @uri || DRb.uri if command.respond_to? :to_ary command = command.to_ary + [uri, name] pid = spawn(*command) else pid = spawn("#{command} #{uri} #{name}") end th = Process.detach(pid) th[:drb_service] = name th end