Class: JMX::Operation
- Inherits:
-
Struct
- Object
- Struct
- JMX::Operation
- Includes:
- JavaTypeAware
- Defined in:
- lib/jmx/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.
51 52 53 54 |
# File 'lib/jmx/dynamic_mbean.rb', line 51 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
48 49 50 |
# File 'lib/jmx/dynamic_mbean.rb', line 48 def description @description end |
#impact ⇒ Object
Returns the value of attribute impact
48 49 50 |
# File 'lib/jmx/dynamic_mbean.rb', line 48 def impact @impact end |
#name ⇒ Object
Returns the value of attribute name
48 49 50 |
# File 'lib/jmx/dynamic_mbean.rb', line 48 def name @name end |
#parameters ⇒ Object
Returns the value of attribute parameters
48 49 50 |
# File 'lib/jmx/dynamic_mbean.rb', line 48 def parameters @parameters end |
#return_type ⇒ Object
Returns the value of attribute return_type
48 49 50 |
# File 'lib/jmx/dynamic_mbean.rb', line 48 def return_type @return_type end |
Instance Method Details
#to_jmx ⇒ Object
56 57 58 59 |
# File 'lib/jmx/dynamic_mbean.rb', line 56 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 |