Class: JMX::Parameter

Inherits:
Object
  • Object
show all
Includes:
JavaTypeAware
Defined in:
lib/jmx/dynamic_mbean.rb

Constant Summary

Constants included from JavaTypeAware

JavaTypeAware::SIMPLE_TYPES

Instance Method Summary collapse

Methods included from JavaTypeAware

to_java_type, to_ruby

Constructor Details

#initialize(type, name, description) ⇒ Parameter

Returns a new instance of Parameter.



38
39
40
# File 'lib/jmx/dynamic_mbean.rb', line 38

def initialize(type, name, description)
  @type, @name, @description = type, name, description
end

Instance Method Details

#to_jmxObject



42
43
44
# File 'lib/jmx/dynamic_mbean.rb', line 42

def to_jmx
  MBeanParameterInfo.new @name.to_s, to_java_type(@type), @description
end