app/models/manageiq/providers/openstack/event_catcher_mixin.rb
# seems like most of this class could be boilerplate when compared against EventCatcherRhevm
seems like most of this class could be boilerplate when compared against EventCatcherRhevm
seems like most of this class could be boilerplate when compared against EventCatcherRhevm
def event_monitor_handle
    require 'openstack/openstack_event_monitor'
    unless @event_monitor_handle
      options = {}
      options[:hostname] = @ems.hostname
      options[:port]     = worker_settings[:amqp_port]
      if @ems.has_authentication_type? :amqp
        options[:username] = @ems.authentication_userid(:amqp)
        options[:password] = @ems.authentication_password(:amqp)
      end
      options[:topics]    = worker_settings[:topics]
      options[:duration]  = worker_settings[:duration]
      options[:capacity]  = worker_settings[:capacity]
      options[:heartbeat] = worker_settings[:amqp_heartbeat]
      options[:client_ip] = server.ipaddress
      @event_monitor_handle = OpenstackEventMonitor.new(options)
    end
    @event_monitor_handle
  end
def event_monitor_handle require 'openstack/openstack_event_monitor' unless @event_monitor_handle options = { } options [ :hostname ] = @ems . hostname options [ :port ] = worker_settings [ :amqp_port ] if @ems . has_authentication_type? :amqp options [ :username ] = @ems . authentication_userid ( :amqp ) options [ :password ] = @ems . authentication_password ( :amqp ) end options [ :topics ] = worker_settings [ :topics ] options [ :duration ] = worker_settings [ :duration ] options [ :capacity ] = worker_settings [ :capacity ] options [ :heartbeat ] = worker_settings [ :amqp_heartbeat ] options [ :client_ip ] = server . ipaddress @event_monitor_handle = OpenstackEventMonitor . new ( options ) end @event_monitor_handle end
seems like most of this class could be boilerplate when compared against EventCatcherRhevm
seems like most of this class could be boilerplate when compared against EventCatcherRhevm