Class: MotherBrain::Gear::JMX

Inherits:
Base
  • Object
show all
Defined in:
lib/mb/gears/jmx.rb,
lib/mb/gears/jmx/action.rb

Defined Under Namespace

Classes: Action

Instance Method Summary collapse

Methods inherited from Base

register_gear, #run

Instance Method Details

#action(port, object_name, &block) ⇒ Object

Parameters:

  • port (Fixnum)

    the port to connect over

  • object_name (String)

    the name of the jmx object

Raises:



13
14
15
16
17
18
19
# 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