Class: OnesnooperServer::Datagrams::FailureDatagram

Inherits:
OnesnooperServer::Datagram show all
Defined in:
lib/onesnooper_server/datagrams/failure_datagram.rb

Overview

Handles processing of datagrams with FAILED monitoring messages. Doesn't perform any backend operations.

Instance Method Summary collapse

Methods inherited from OnesnooperServer::Datagram

#initialize

Constructor Details

This class inherits a constructor from OnesnooperServer::Datagram

Instance Method Details

#run(deferred_callback) ⇒ Object



5
6
7
# File 'lib/onesnooper_server/datagrams/failure_datagram.rb', line 5

def run(deferred_callback)
  ::EventMachine.defer { deferred_callback.fail "Failed monitoring result will not be recorded" }
end