Class: JMX::Parameter
- Inherits:
-
Object
- Object
- JMX::Parameter
- Includes:
- JavaTypeAware
- Defined in:
- lib/dynamic_mbean.rb
Constant Summary
Constants included from JavaTypeAware
Instance Method Summary collapse
-
#initialize(type, name, description) ⇒ Parameter
constructor
A new instance of Parameter.
- #to_jmx ⇒ Object
Methods included from JavaTypeAware
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_jmx ⇒ Object
46 47 48 |
# File 'lib/dynamic_mbean.rb', line 46 def to_jmx MBeanParameterInfo.new @name.to_s, to_java_type(@type), @description end |