Sha256: a859a81984ad9383d05c1be158a1a32e008698594d713d52eaf23c0491a1f2d1

Contents?: true

Size: 450 Bytes

Versions: 12

Compression:

Stored size: 450 Bytes

Contents

module ModernTimes
  module JMS
    class Supervisor < ModernTimes::Base::Supervisor

      def initialize(manager, worker_name, supervisor_options, worker_options)
        super
      end

      def message_counts
        workers.map { |w| w.message_count }
      end

      # Make JMS::SupervisorMBean our mbean
      def create_mbean(domain)
        SupervisorMBean.new(mbean_name(domain), mbean_description, self, {})
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
modern_times-0.2.11 lib/modern_times/jms/supervisor.rb
modern_times-0.2.10 lib/modern_times/jms/supervisor.rb
modern_times-0.2.9 lib/modern_times/jms/supervisor.rb
modern_times-0.2.8 lib/modern_times/jms/supervisor.rb
modern_times-0.2.7 lib/modern_times/jms/supervisor.rb
modern_times-0.2.6 lib/modern_times/jms/supervisor.rb
modern_times-0.2.5 lib/modern_times/jms/supervisor.rb
modern_times-0.2.4 lib/modern_times/jms/supervisor.rb
modern_times-0.2.3 lib/modern_times/jms/supervisor.rb
modern_times-0.2.2 lib/modern_times/jms/supervisor.rb
modern_times-0.2.1 lib/modern_times/jms/supervisor.rb
modern_times-0.2.0 lib/modern_times/jms/supervisor.rb