class RJR::Nodes::Template
Constants
- RJR_NODE_TYPE
Public Class Methods
RJR::Node::new
# File lib/rjr/nodes/template.rb, line 19 def initialize(args = {}) super(args) end
Public Instance Methods
Instructs node to send rpc request, and wait for / return response.
Implementation of RJR::Node#invoke @param [String] optional_destination if the transport requires it, param
to specify the target of this request, if not remove this param
@param [String] rpc_method json-rpc method to invoke on destination @param [Array] args array of arguments to convert to json and invoke remote method wtih
# File lib/rjr/nodes/template.rb, line 49 def invoke(optional_destination, rpc_method, *args) # TODO end
Instruct Node
to start listening for and dispatching rpc requests
Implementation of RJR::Node#listen
# File lib/rjr/nodes/template.rb, line 37 def listen # TODO self end
Instructs node to send rpc notification (immadiately returns / no response is generated)
Implementation of RJR::Node#notify @param [String] optional_destination if the transport requires it, param
to specify the target of this request, if not remove this param
@param [String] rpc_method json-rpc method to invoke on destination @param [Array] args array of arguments to convert to json and invoke remote method wtih
# File lib/rjr/nodes/template.rb, line 60 def notify(optional_destination, rpc_method, *args) # TODO end
Send data using specified connection
Implementation of RJR::Node#send_msg
# File lib/rjr/nodes/template.rb, line 30 def send_msg(data, connection) # TODO end
# File lib/rjr/nodes/template.rb, line 23 def to_s "RJR::Nodes::Template<>" end