Class: ASIR::Transport::Subprocess
- Inherits:
-
Local
- Object
- ASIR::Transport
- Local
- ASIR::Transport::Subprocess
- Defined in:
- lib/asir/transport/subprocess.rb
Overview
!SLIDE Subprocess Transport
Send one-way Message to a forked subprocess.
Constant Summary
Constants included from ASIR::ThreadVariable
ASIR::ThreadVariable::DEBUG, ASIR::ThreadVariable::EMPTY_HASH, ASIR::ThreadVariable::SETTER
Instance Attribute Summary
Attributes inherited from ASIR::Transport
#after_invoke_message, #after_receive_message, #before_send_message, #coder_needs_result_message, #decoder, #encoder, #invoker, #message_count, #needs_message_identifier, #needs_message_timestamp, #on_exception, #on_result_exception, #one_way, #running, #verbose
Attributes included from Log
Instance Method Summary collapse
-
#_receive_result(state) ⇒ Object
one-way; no Result.
- #_send_message(state) ⇒ Object
-
#_send_result(state) ⇒ Object
one-way; no Result.
-
#initialize(*args) ⇒ Subprocess
constructor
A new instance of Subprocess.
Methods inherited from ASIR::Transport
#_after_invoke_message, #_subclass_responsibility, #invoke_message!, #needs_message_identifier?, #needs_message_timestamp?, #receive_message, #receive_result, #send_message, #send_result, #serve_message!, #stop!, #with_force_stop!, #with_server_signals!
Methods included from Log
#_log, #_log_enabled=, #_log_enabled?, #_log_format, #_log_result, enabled, enabled=, included
Methods included from AdditionalData
#[], #[]=, #_additional_data, #additional_data, #additional_data!, #additional_data=, included
Methods included from Message::Delay
#relative_message_delay!, #wait_for_delay!
Methods included from ASIR::ThreadVariable
Constructor Details
#initialize(*args) ⇒ Subprocess
Returns a new instance of Subprocess.
10 11 12 |
# File 'lib/asir/transport/subprocess.rb', line 10 def initialize *args @one_way = true; super end |
Instance Method Details
#_receive_result(state) ⇒ Object
one-way; no Result
22 23 |
# File 'lib/asir/transport/subprocess.rb', line 22 def _receive_result state end |
#_send_message(state) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/asir/transport/subprocess.rb', line 14 def state Process.fork do super send_result(state) end end |
#_send_result(state) ⇒ Object
one-way; no Result
26 27 |
# File 'lib/asir/transport/subprocess.rb', line 26 def _send_result state end |