Class: JrubyWhirr::ClusterSpec
- Inherits:
-
Object
- Object
- JrubyWhirr::ClusterSpec
- Defined in:
- lib/jruby_whirr/cluster_spec.rb
Instance Attribute Summary collapse
-
#cluster_spec ⇒ Object
Returns the value of attribute cluster_spec.
Instance Method Summary collapse
- #get_service_name ⇒ Object
-
#initialize(proerty_file_path) ⇒ ClusterSpec
constructor
TODO: add methods for configuring the ClusterSpec.
- #set_service_name(name) ⇒ Object
Constructor Details
#initialize(proerty_file_path) ⇒ ClusterSpec
TODO: add methods for configuring the ClusterSpec
9 10 11 12 |
# File 'lib/jruby_whirr/cluster_spec.rb', line 9 def initialize (proerty_file_path) property_configuration = org.apache.commons.configuration.PropertiesConfiguration.new(proerty_file_path) @cluster_spec = ClusterSpec.new(property_configuration) end |
Instance Attribute Details
#cluster_spec ⇒ Object
Returns the value of attribute cluster_spec.
5 6 7 |
# File 'lib/jruby_whirr/cluster_spec.rb', line 5 def cluster_spec @cluster_spec end |
Instance Method Details
#get_service_name ⇒ Object
14 15 16 |
# File 'lib/jruby_whirr/cluster_spec.rb', line 14 def get_service_name @cluster_spec.getServiceName() end |
#set_service_name(name) ⇒ Object
18 19 20 |
# File 'lib/jruby_whirr/cluster_spec.rb', line 18 def set_service_name (name) @cluster_spec.setServiceName(name) end |