Class: JMX::Parameter

Inherits:
Object
  • Object
show all
Includes:
JavaTypeAware
Defined in:
lib/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.



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

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

Instance Method Details

#to_jmxObject



46
47
48
# File 'lib/dynamic_mbean.rb', line 46

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