Class: JrubyWhirr::Cluster

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster) ⇒ Cluster

Returns a new instance of Cluster.



7
8
9
# File 'lib/jruby_whirr/cluster.rb', line 7

def initialize (cluster)
	@cluster = cluster
end

Instance Attribute Details

#clusterObject

Returns the value of attribute cluster.



5
6
7
# File 'lib/jruby_whirr/cluster.rb', line 5

def cluster
  @cluster
end

Instance Method Details

#get_configurationObject



16
17
18
# File 'lib/jruby_whirr/cluster.rb', line 16

def get_configuration
	@cluster.getConfiguration()
end

#get_instancesObject

Get a set of Instances in the cluster



12
13
14
# File 'lib/jruby_whirr/cluster.rb', line 12

def get_instances
	@cluster.getInstances()
end