Method: DrbDb#setup_client
- Defined in:
- lib/DrbDB.rb
#setup_client ⇒ Object
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/DrbDB.rb', line 90 def setup_client if @connection['client_uri'].length>0 begin @client=DRb::DRbObject.new(nil,@connection['client_uri']) einfo("client is alive?(#{@client}): #{@client.alive?}") =begin @moditems.each_value{|mi| ecode(mi.class.name) mi.update if mi.class == DrbRelationBuilder } =end rescue @client=nil einfo("no client.") end begin @relation_builder.update if @relation_builder && @client rescue => err eexception(err) end end end |