Sha256: dfc5f5624441e4f51dcbe6af3ee420fe468312f944f557efc761a8c5e039904f

Contents?: true

Size: 835 Bytes

Versions: 13

Compression:

Stored size: 835 Bytes

Contents

require 'rubygems'
require 'modern_times/remote_exception'
require 'modern_times/marshal_strategy'
require 'modern_times/base'
require 'modern_times/jms'
require 'modern_times/manager_mbean'
require 'modern_times/manager'
require 'modern_times/loggable'
require 'modern_times/railsable'
require 'modern_times/time_track'

module ModernTimes
  extend ModernTimes::Loggable
  extend ModernTimes::Railsable

  DEFAULT_DOMAIN = 'ModernTimes'

  def self.manager_mbean_name(domain)
    domain = DEFAULT_DOMAIN unless domain
    "#{domain}.Manager"
  end

  def self.manager_mbean_object_name(domain)
    domain = DEFAULT_DOMAIN unless domain
    "#{domain}:type=Manager"
  end

  def self.supervisor_mbean_object_name(domain, worker_name)
    domain = DEFAULT_DOMAIN unless domain
    "#{domain}:worker=#{worker_name},type=Worker"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
modern_times-0.3.12 lib/modern_times.rb
modern_times-0.3.11 lib/modern_times.rb
modern_times-0.3.10 lib/modern_times.rb
modern_times-0.3.9 lib/modern_times.rb
modern_times-0.3.8 lib/modern_times.rb
modern_times-0.3.7 lib/modern_times.rb
modern_times-0.3.6 lib/modern_times.rb
modern_times-0.3.5 lib/modern_times.rb
modern_times-0.3.4 lib/modern_times.rb
modern_times-0.3.3 lib/modern_times.rb
modern_times-0.3.2 lib/modern_times.rb
modern_times-0.3.1 lib/modern_times.rb
modern_times-0.3.0 lib/modern_times.rb