Sha256: 10a4b07412dc65c1d71a3f572e867094ea56b3e23631de0bb8218be4b8f18376

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

# -*- coding: utf-8 -*-

module Dcmgr
  module Scheduler
    module HostNode
      # Meta scheduler calls another scheduler specified by API.
      class PerInstance < HostNodeScheduler
        
        def schedule(instance)
          sched_name = instance.request_params[:host_node_scheduler]
          
          sched = Scheduler.scheduler_class(sched_name, ::Dcmgr::Scheduler::HostNode)
          sched.schedule(instance)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
wakame-vdc-agents-11.12.0 lib/dcmgr/scheduler/host_node/per_instance.rb
wakame-vdc-dcmgr-11.12.0 lib/dcmgr/scheduler/host_node/per_instance.rb