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