class FFWD::FlushingOutputHook

Public Instance Methods

active?() click to toggle source

Return true if connection is accessible, false otherwise.

# File lib/ffwd/flushing_output_hook.rb, line 29
def active?
  raise "not implemented: active?"
end
close() click to toggle source

Close any open connections.

# File lib/ffwd/flushing_output_hook.rb, line 24
def close
  raise "not implemented: close"
end
connect() click to toggle source

Establish connections.

# File lib/ffwd/flushing_output_hook.rb, line 19
def connect
  raise "not implemented: connect"
end
reporter_meta() click to toggle source
# File lib/ffwd/flushing_output_hook.rb, line 44
def reporter_meta
  {}
end
send(metrics) click to toggle source

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.

# File lib/ffwd/flushing_output_hook.rb, line 40
def send metrics
  raise "not implemented: send"
end