Class: AutomateEm::Service
- Inherits:
-
Object
- Object
- AutomateEm::Service
- Includes:
- ModuleCore
- Defined in:
- lib/automate-em/service/service.rb
Constant Summary
Constants included from Constants
Instance Attribute Summary
Attributes included from ModuleCore
Attributes included from Status
Instance Method Summary collapse
-
#initialize ⇒ Service
constructor
A new instance of Service.
Methods included from ModuleCore
#clear_active_timers, #join_system, #leave_system, #logger, #setbase
Methods included from Utilities
array_to_str, byte_to_hex, hex_to_byte, schedule, str_to_array, task
Methods included from Status
#[], #[]=, #mark_emit_end, #mark_emit_start, #update_status
Constructor Details
#initialize ⇒ Service
Returns a new instance of Service.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/automate-em/service/service.rb', line 6 def initialize @systems = [] # # Status variables # NOTE:: if changed then change in logic.rb # @status = {} @status_lock = Object.new.extend(MonitorMixin) @system_lock = Mutex.new @status_waiting = false end |