Class: FFWD::FlushingOutputHook

Inherits:
Object
  • Object
show all
Defined in:
lib/ffwd/flushing_output_hook.rb

Instance Method Summary collapse

Instance Method Details

#active?Boolean

Return true if connection is accessible, false otherwise.

Returns:

  • (Boolean)


29
30
31
# File 'lib/ffwd/flushing_output_hook.rb', line 29

def active?
  raise "not implemented: active?"
end

#closeObject

Close any open connections.



24
25
26
# File 'lib/ffwd/flushing_output_hook.rb', line 24

def close
  raise "not implemented: close"
end

#connectObject

Establish connections.



19
20
21
# File 'lib/ffwd/flushing_output_hook.rb', line 19

def connect
  raise "not implemented: connect"
end

#reporter_metaObject



44
45
46
# File 'lib/ffwd/flushing_output_hook.rb', line 44

def reporter_meta
  {}
end

#send(metrics) ⇒ Object

Send the specified batch of metrics.

Must return a callback object with the following attributes. callback - That accepts a block that will be run on successful execution. errback - That accepts a block that will be run on failed execution. error - If errback has been triggered, should contain the error that occured.



40
41
42
# File 'lib/ffwd/flushing_output_hook.rb', line 40

def send metrics
  raise "not implemented: send"
end