class MotherBrain::Gear::JMX
Public Instance Methods
action(port, object_name, &block)
click to toggle source
@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]
# File lib/mb/gears/jmx.rb, line 13 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