Class: JrubyWhirr::ClusterSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/jruby_whirr/cluster_spec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_specObject

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_nameObject



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