Class: Velocity::Instance::Scheduler

Inherits:
APIModel
  • Object
show all
Defined in:
lib/acceleration/velocity.rb

Overview

Scheduler models an instance’s scheduler service. It can start and stop the service, as well as retrieve its status and list jobs.

The scheduler configuration can be only modified by updating the scheduler node in the repository.

TODO: implement

Instance Attribute Summary

Attributes inherited from APIModel

#instance

Instance Method Summary collapse

Methods inherited from APIModel

#method_missing, #resolve, #respond_to_missing?

Constructor Details

#initializeScheduler

Create a new wrapper for the scheduler functions.

Raises:

  • (NotImplementedError)


603
604
605
# File 'lib/acceleration/velocity.rb', line 603

def initialize
  raise NotImplementedError
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Velocity::Instance::APIModel

Instance Method Details

#prefixObject

The Scheduler prefix is simply scheduler.



598
599
600
# File 'lib/acceleration/velocity.rb', line 598

def prefix
  'scheduler'
end