class JrubyWhirr::ClusterController

Attributes

cluster[RW]
controller[RW]
spec[RW]

Public Class Methods

new(cluster_spec) click to toggle source
# File lib/jruby_whirr/cluster_controller.rb, line 12
def initialize (cluster_spec)
        @spec = cluster_spec
        factory = ClusterControllerFactory.new;
        @controller = factory.create(cluster_spec.get_service_name)
end

Public Instance Methods

destroy_cluster(spec) click to toggle source
# File lib/jruby_whirr/cluster_controller.rb, line 22
def destroy_cluster(spec)
        @controller.destroyCluster(spec)
end
launch_cluster() click to toggle source
# File lib/jruby_whirr/cluster_controller.rb, line 18
def launch_cluster()
        @cluster = @controller.launchCluster(@spec.cluster_spec)
end