class RJR::Nodes::Template

Constants

RJR_NODE_TYPE

Public Class Methods

new(args = {}) click to toggle source

Template Node Initializer

Calls superclass method RJR::Node::new
# File lib/rjr/nodes/template.rb, line 19
def initialize(args = {})
   super(args)
end

Public Instance Methods

invoke(optional_destination, rpc_method, *args) click to toggle source

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
listen() click to toggle source

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
notify(optional_destination, rpc_method, *args) click to toggle source

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_msg(data, connection) click to toggle source

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
to_s() click to toggle source
# File lib/rjr/nodes/template.rb, line 23
def to_s
  "RJR::Nodes::Template<>"
end