Class: Daemon::MasterProcess::StopService

Inherits:
Object
  • Object
show all
Includes:
Utils::Loggable
Defined in:
lib/onapp/engine/master_process/middleware/stop_service.rb

Instance Attribute Summary

Attributes included from Utils::Loggable

#logger

Instance Method Summary (collapse)

Methods included from Utils::Loggable

#debug, #error, #fatal, #info, #lwarn

Constructor Details

- (StopService) initialize(master_process, logger)

Returns a new instance of StopService



9
10
11
12
13
14
# File 'lib/onapp/engine/master_process/middleware/stop_service.rb', line 9

def initialize(master_process, logger)
  @master_process = master_process
  @logger = logger
  @facility = 'stop_service'
  extend(::MonitorMixin)
end

Instance Method Details

- (Object) perform



16
17
18
# File 'lib/onapp/engine/master_process/middleware/stop_service.rb', line 16

def perform
  synchronize { original_perform }
end