Revision d136f262 src/oca/ruby/OpenNebula/Cluster.rb

View differences:

src/oca/ruby/OpenNebula/Cluster.rb
42 42
        # ---------------------------------------------------------------------
43 43
        # XML-RPC Methods for the User Object
44 44
        # ---------------------------------------------------------------------
45
        
46
        # Retrieves the information of the given Cluster.
45 47
        def info()
46 48
            super(CLUSTER_METHODS[:info], 'CLUSTER')
47 49
        end
48 50

  
51
        # Allocates a new Cluster in OpenNebula
52
        #
53
        # +clustername+ A string containing the name of the Cluster.
49 54
        def allocate(clustername)
50 55
            super(CLUSTER_METHODS[:allocate], clustername)
51 56
        end
52 57

  
58
        # Deletes the Cluster
53 59
        def delete()
54 60
            super(CLUSTER_METHODS[:delete])
55 61
        end
56 62

  
63
        # Add a host to the cluster
64
        #
65
        # +host_id+ ID of the Host to be added to the Cluster
57 66
        def add_host(host_id)
58 67
            return Error.new('ID not defined') if !@pe_id
59 68

  
......
63 72
            return rc
64 73
        end
65 74

  
75
        # Remove a host from the cluster
76
        #
77
        # +host_id+ ID of the Host to be removed from the Cluster
66 78
        def remove_host(host_id)
67 79
            return Error.new('ID not defined') if !@pe_id
68 80

  

Also available in: Unified diff