Class: Dcmgr::Scheduler::HostNode::PerInstance

Inherits:
Dcmgr::Scheduler::HostNodeScheduler show all
Defined in:
lib/dcmgr/scheduler/host_node/per_instance.rb

Overview

Meta scheduler calls another scheduler specified by API.

Instance Method Summary collapse

Methods inherited from Dcmgr::Scheduler::HostNodeScheduler

#initialize

Constructor Details

This class inherits a constructor from Dcmgr::Scheduler::HostNodeScheduler

Instance Method Details

#schedule(instance) ⇒ Object



9
10
11
12
13
14
# File 'lib/dcmgr/scheduler/host_node/per_instance.rb', line 9

def schedule(instance)
  sched_name = instance.request_params[:host_node_scheduler]
  
  sched = Scheduler.scheduler_class(sched_name, ::Dcmgr::Scheduler::HostNode)
  sched.schedule(instance)
end