Sha256: 0cfcfc414fd04b31ec16760cc1dbff93c7fe6153ba0b23fbf24a9aab60af50a6

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

# Allow examples to be run in-place without requiring a gem install
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../../lib'

require 'rubygems'
require 'rumx'

memory_bean = Rumx::JMXBean.new('java.lang:type=Memory')
os_bean = Rumx::JMXBean.new('java.lang:type=OperatingSystem')
threading_bean = Rumx::JMXBean.new('java.lang:type=Threading')
Rumx::Bean.root.bean_add_child(:Memory, memory_bean)
Rumx::Bean.root.bean_add_child(:OperatingSystem, os_bean)
Rumx::Bean.root.bean_add_child(:Threading, threading_bean)
run Rumx::Server

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rumx-0.2.3 examples/jmx/config.ru
rumx-0.2.2 examples/jmx/config.ru