Module: JRuby::Management

Defined in:
lib/jruby/management.rb,
lib/jruby/management/version.rb,
lib/jruby/management/profiler_mbean.rb

Defined Under Namespace

Classes: ProfilerMBean

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.register_mbean(clazz) ⇒ Object



11
12
13
14
# File 'lib/jruby/management.rb', line 11

def register_mbean(clazz)
  object_name = ObjectName.new("org.jruby.management:name=#{clazz.mbean_name}")
  ManagementFactory.platform_mbean_server.register_mbean(clazz.new, object_name)
end