Class: JMX::Attribute
- Inherits:
-
Struct
- Object
- Struct
- JMX::Attribute
- Includes:
- JavaTypeAware
- Defined in:
- lib/dynamic_mbean.rb
Constant Summary
Constants included from JavaTypeAware
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#is_iser ⇒ Object
Returns the value of attribute is_iser.
-
#is_reader ⇒ Object
Returns the value of attribute is_reader.
-
#is_writer ⇒ Object
Returns the value of attribute is_writer.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, description, is_rdr, is_wrtr) ⇒ Attribute
constructor
A new instance of Attribute.
- #to_jmx ⇒ Object
Methods included from JavaTypeAware
Constructor Details
#initialize(name, type, description, is_rdr, is_wrtr) ⇒ Attribute
Returns a new instance of Attribute.
68 69 70 71 72 |
# File 'lib/dynamic_mbean.rb', line 68 def initialize(name, type, description, is_rdr, is_wrtr) super self.description, self.type, self.name = description, type, name self.is_reader,self.is_writer, self.is_iser = is_rdr, is_wrtr, false end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
65 66 67 |
# File 'lib/dynamic_mbean.rb', line 65 def description @description end |
#is_iser ⇒ Object
Returns the value of attribute is_iser
65 66 67 |
# File 'lib/dynamic_mbean.rb', line 65 def is_iser @is_iser end |
#is_reader ⇒ Object
Returns the value of attribute is_reader
65 66 67 |
# File 'lib/dynamic_mbean.rb', line 65 def is_reader @is_reader end |
#is_writer ⇒ Object
Returns the value of attribute is_writer
65 66 67 |
# File 'lib/dynamic_mbean.rb', line 65 def is_writer @is_writer end |
#name ⇒ Object
Returns the value of attribute name
65 66 67 |
# File 'lib/dynamic_mbean.rb', line 65 def name @name end |
#type ⇒ Object
Returns the value of attribute type
65 66 67 |
# File 'lib/dynamic_mbean.rb', line 65 def type @type end |
Instance Method Details
#to_jmx ⇒ Object
74 75 76 |
# File 'lib/dynamic_mbean.rb', line 74 def to_jmx MBeanAttributeInfo.new(name.to_s, to_java_type(type), description, is_reader, is_writer, is_iser) end |