Class: Dynflow::Dispatcher::ExecutorDispatcher
Instance Method Summary collapse
- #handle_request(envelope) ⇒ Object
 - 
  
    
      #initialize(world, semaphore)  ⇒ ExecutorDispatcher 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ExecutorDispatcher.
 
Methods inherited from Abstract
Methods inherited from Actor
#behaviour_definition, #finish_termination, #terminating?
Methods included from MethodicActor
Methods included from Actor::LogWithFullBacktrace
Constructor Details
#initialize(world, semaphore) ⇒ ExecutorDispatcher
Returns a new instance of ExecutorDispatcher.
      6 7 8 9  | 
    
      # File 'lib/dynflow/dispatcher/executor_dispatcher.rb', line 6 def initialize(world, semaphore) @world = Type! world, World @current_futures = Set.new end  | 
  
Instance Method Details
#handle_request(envelope) ⇒ Object
      11 12 13 14 15 16 17 18  | 
    
      # File 'lib/dynflow/dispatcher/executor_dispatcher.rb', line 11 def handle_request(envelope) match(envelope., on(Planning) { perform_planning(envelope, envelope.) }, on(Execution) { perform_execution(envelope, envelope.) }, on(Event) { perform_event(envelope, envelope.) }, on(Status) { get_execution_status(envelope, envelope.) }, on(Halt) { halt_execution_plan(envelope, envelope.) }) end  |