Class OpenNebula::HostPool

  1. OpenNebula/HostPool.rb
Pool VirtualNetworkPool ClusterPool ImagePool VirtualMachinePool HostPool UserPool XMLElement PoolElement XMLPool User VirtualNetwork Cluster Image VirtualMachine Host Enumerable Client ImageRepository Error OpenNebula dot/f_0.png

Methods

public class

  1. new

public instance

  1. factory
  2. info

Constants

HOST_POOL_METHODS = { :info => "hostpool.info" }   Constants and Class attribute accessors

Public class methods

new (client)

client a Client object that represents a XML-RPC connection

[show source]
    # File OpenNebula/HostPool.rb, line 34
34:         def initialize(client)
35:             super('HOST_POOL','HOST',client)
36:         end

Public instance methods

factory (element_xml)

Factory Method for the Host Pool

[show source]
    # File OpenNebula/HostPool.rb, line 39
39:         def factory(element_xml)
40:             OpenNebula::Host.new(element_xml,@client)
41:         end
info ()

Retrieves all the Hosts in the pool.

[show source]
    # File OpenNebula/HostPool.rb, line 48
48:         def info()
49:             super(HOST_POOL_METHODS[:info])
50:         end