Sha256: 2e03d6a4aad2c6644925f43823370d571508ff211a9221b5d64bef073cfffad3
Contents?: true
Size: 383 Bytes
Versions: 9
Compression:
Stored size: 383 Bytes
Contents
#!/usr/bin/env jruby require 'rubygems' require 'jmx4r' # This example shows how to iterate on TabularData runtime = JMX::MBean.find_by_name "java.lang:type=Runtime" # The system_properties attribute of the Runtime MBean is an instance of # TabularDataSupport sysprops = runtime.system_properties sysprops.each do | sysprop| puts "#{sysprop["key"]} = #{sysprop["value"]}" end
Version data entries
9 entries across 9 versions & 2 rubygems