Class: MiqVimBroker::VimBrokerIdConv

Inherits:
DRb::DRbIdConv
  • Object
show all
Defined in:
lib/VMwareWebService/MiqVimBroker.rb

Instance Method Summary collapse

Instance Method Details

#to_obj(ref) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/VMwareWebService/MiqVimBroker.rb', line 11

def to_obj(ref)
  obj = super(ref)
  if obj.respond_to?(:connectionRemoved?) && obj.connectionRemoved?
    $vim_log.info "VimBrokerIdConv: #{obj.class.name} - connection removed"
    raise RangeError, "#{ref} is recycled object"
  end
  obj
end