Class for Stomp 1.1.9 callback based logging
# File plugins/mcollective/connector/activemq.rb, line 117 def on_connected(params=nil) Log.info("Connected to #{stomp_url(params)}") rescue end
# File plugins/mcollective/connector/activemq.rb, line 127 def on_connectfail(params=nil) Log.info("TCP Connection to #{stomp_url(params)} failed on attempt #{params[:cur_conattempts]}") rescue end
# File plugins/mcollective/connector/activemq.rb, line 112 def on_connecting(params=nil) Log.info("TCP Connection attempt %d to %s" % [params[:cur_conattempts], stomp_url(params)]) rescue end
# File plugins/mcollective/connector/activemq.rb, line 122 def on_disconnect(params=nil) Log.info("Disconnected from #{stomp_url(params)}") rescue end
Log heart beat fires
# File plugins/mcollective/connector/activemq.rb, line 164 def on_hbfire(params, srind, curt) case srind when "receive_fire" Log.debug("Received heartbeat from %s: %s, %s" % [stomp_url(params), srind, curt]) when "send_fire" Log.debug("Publishing heartbeat to %s: %s, %s" % [stomp_url(params), srind, curt]) end rescue Exception => e end
Stomp 1.1+ - heart beat read (receive) failed.
# File plugins/mcollective/connector/activemq.rb, line 152 def on_hbread_fail(params, ticker_data) Log.error("Heartbeat read failed from '%s': %s" % [stomp_url(params), ticker_data.inspect]) rescue Exception => e end
Stomp 1.1+ - heart beat send (transmit) failed.
# File plugins/mcollective/connector/activemq.rb, line 158 def on_hbwrite_fail(params, ticker_data) Log.error("Heartbeat write failed from '%s': %s" % [stomp_url(params), ticker_data.inspect]) rescue Exception => e end
# File plugins/mcollective/connector/activemq.rb, line 132 def on_miscerr(params, errstr) Log.error("Unexpected error on connection #{stomp_url(params)}: #{errstr}") rescue end
# File plugins/mcollective/connector/activemq.rb, line 142 def on_ssl_connected(params) Log.info("SSL session established with #{stomp_url(params)}") rescue end
# File plugins/mcollective/connector/activemq.rb, line 147 def on_ssl_connectfail(params) Log.error("SSL session creation with #{stomp_url(params)} failed: #{params[:ssl_exception]}") end
Generated with the Darkfish Rdoc Generator 2.