Class: JMX::Operation
- Inherits:
-
Struct
- Object
- Struct
- JMX::Operation
- 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.
-
#impact ⇒ Object
Returns the value of attribute impact.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#return_type ⇒ Object
Returns the value of attribute return_type.
Instance Method Summary collapse
-
#initialize(description) ⇒ Operation
constructor
A new instance of Operation.
- #to_jmx ⇒ Object
Methods included from JavaTypeAware
Constructor Details
#initialize(description) ⇒ Operation
Returns a new instance of Operation.
54 55 56 57 |
# File 'lib/dynamic_mbean.rb', line 54 def initialize(description) super self.parameters, self.impact, self.description = [], MBeanOperationInfo::UNKNOWN, description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
51 52 53 |
# File 'lib/dynamic_mbean.rb', line 51 def description @description end |
#impact ⇒ Object
Returns the value of attribute impact
51 52 53 |
# File 'lib/dynamic_mbean.rb', line 51 def impact @impact end |
#name ⇒ Object
Returns the value of attribute name
51 52 53 |
# File 'lib/dynamic_mbean.rb', line 51 def name @name end |
#parameters ⇒ Object
Returns the value of attribute parameters
51 52 53 |
# File 'lib/dynamic_mbean.rb', line 51 def parameters @parameters end |
#return_type ⇒ Object
Returns the value of attribute return_type
51 52 53 |
# File 'lib/dynamic_mbean.rb', line 51 def return_type @return_type end |
Instance Method Details
#to_jmx ⇒ Object
59 60 61 62 |
# File 'lib/dynamic_mbean.rb', line 59 def to_jmx java_parameters = parameters.map { |parameter| parameter.to_jmx } MBeanOperationInfo.new name.to_s, description, java_parameters.to_java(javax.management.MBeanParameterInfo), to_java_type(return_type), impact end |