Sha256: f1edd6926a0ad1df5785dca2bcc60cd6370bf0387a5d3408286a0b3c2aa0d70f

Contents?: true

Size: 590 Bytes

Versions: 15

Compression:

Stored size: 590 Bytes

Contents

module MotherBrain
  module Gear
    class JMX < Gear::Base
      register_gear :jmx

      # @param [Fixnum] port
      #   the port to connect over
      # @param [String] object_name
      #   the name of the jmx object
      #
      # @raise [ActionNotSupported] if not running JRuby
      # @raise [ArgumentError]
      def action(port, object_name, &block)
        unless jruby?
          raise ActionNotSupported, "The JMX Gear is only supported on JRuby"
        end

        JMX::Action.new(port, object_name, &block)
      end
    end

    require_relative 'jmx/action'
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motherbrain-1.5.0 lib/mb/gears/jmx.rb
motherbrain-1.4.0 lib/mb/gears/jmx.rb
motherbrain-1.3.0 lib/mb/gears/jmx.rb
motherbrain-1.2.1 lib/mb/gears/jmx.rb
motherbrain-1.2.0 lib/mb/gears/jmx.rb
motherbrain-1.1.3 lib/mb/gears/jmx.rb
motherbrain-1.1.2 lib/mb/gears/jmx.rb
motherbrain-1.1.1 lib/mb/gears/jmx.rb
motherbrain-1.1.0 lib/mb/gears/jmx.rb
motherbrain-1.0.0 lib/mb/gears/jmx.rb
motherbrain-0.14.5 lib/mb/gears/jmx.rb
motherbrain-0.14.4 lib/mb/gears/jmx.rb
motherbrain-0.14.3 lib/mb/gears/jmx.rb
motherbrain-0.14.2 lib/mb/gears/jmx.rb
motherbrain-0.13.1 lib/mb/gears/jmx.rb