Class: FFWD::Handler
- Inherits:
-
Connection
- Object
- EM::Connection
- Connection
- FFWD::Handler
- Defined in:
- lib/ffwd/handler.rb
Overview
Handlers are used by output plugins based of the protocol stack.
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Class Method Summary collapse
Instance Method Summary collapse
- #close ⇒ Object
- #connection_completed ⇒ Object
- #send_all(events, metrics) ⇒ Object
- #send_event(event) ⇒ Object
- #send_metric(metric) ⇒ Object
- #unbind ⇒ Object
Methods inherited from Connection
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
21 22 23 |
# File 'lib/ffwd/handler.rb', line 21 def parent @parent end |
Class Method Details
.new(signature, parent, *args) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/ffwd/handler.rb', line 23 def self.new signature, parent, *args instance = super(signature, parent, *args) instance.instance_eval do @parent = parent end instance end |
Instance Method Details
#close ⇒ Object
41 |
# File 'lib/ffwd/handler.rb', line 41 def close; end |
#connection_completed ⇒ Object
37 38 39 |
# File 'lib/ffwd/handler.rb', line 37 def connection_completed @parent.connection_completed end |
#send_all(events, metrics) ⇒ Object
42 |
# File 'lib/ffwd/handler.rb', line 42 def send_all events, metrics; end |
#send_event(event) ⇒ Object
43 |
# File 'lib/ffwd/handler.rb', line 43 def send_event event; end |
#send_metric(metric) ⇒ Object
44 |
# File 'lib/ffwd/handler.rb', line 44 def send_metric metric; end |
#unbind ⇒ Object
33 34 35 |
# File 'lib/ffwd/handler.rb', line 33 def unbind @parent.unbind end |