Class: Ap4r::Dispatchers::Druby

Inherits:
Base show all
Defined in:
lib/ap4r/dispatcher.rb

Overview

Dispatches via druby protocol with the implementation DRb.

The call result is judged as

  • “success” if finishes normally (without an exception)

  • “failuer” if finishes with an exception

Instance Method Summary collapse

Methods inherited from Base

#call, dispatch_mode, #initialize, #modify_message, #response, #validate_response

Constructor Details

This class inherits a constructor from Ap4r::Dispatchers::Base

Instance Method Details

#invokeObject



341
342
343
344
# File 'lib/ap4r/dispatcher.rb', line 341

def invoke
  object = DRbObject.new_with_uri(@message[:target_url])
  object.method_missing(@message[:target_method].to_sym, @message.object)
end