Sha256: 18d15ee190fbbaa264e5495302aa8500ac5953c51ace8625291854a23ce38041

Contents?: true

Size: 424 Bytes

Versions: 6

Compression:

Stored size: 424 Bytes

Contents

module Dcmgr
  module PhysicalHostScheduler
    # This is a simple host scheduler which gets back a host found
    # at the top of hosts list.
    class FindLast
      def assign_to_instance(hosts, instance)
        Dcmgr::logger.debug "assign to instance (%d hosts)" % hosts.length
p 'hosts'
p hosts
        return hosts.last
        raise NoPhysicalHostError.new("can't assign physical host")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
wakame-vdc-agents-11.06.0 lib/dcmgr/scheduler/find_last.rb
wakame-vdc-dcmgr-11.06.0 lib/dcmgr/scheduler/find_last.rb
wakame-vdc-dcmgr-10.12.0 lib/dcmgr/scheduler/find_last.rb
wakame-vdc-agents-10.12.0 lib/dcmgr/scheduler/find_last.rb
wakame-vdc-dcmgr-10.11.0 lib/dcmgr/scheduler/find_last.rb
wakame-vdc-agents-10.11.0 lib/dcmgr/scheduler/find_last.rb