Class: Dynflow::Coordinator::ExecutionInhibitionLock
- Inherits:
 - 
      Lock
      
        
- Object
 - Serializable
 - Record
 - Lock
 - Dynflow::Coordinator::ExecutionInhibitionLock
 
 
- Defined in:
 - lib/dynflow/coordinator.rb
 
Constant Summary
Constants inherited from Serializable
Serializable::LEGACY_TIME_FORMAT, Serializable::TIME_FORMAT
Instance Attribute Summary
Attributes inherited from Record
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(execution_plan_id)  ⇒ ExecutionInhibitionLock 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ExecutionInhibitionLock.
 
Methods inherited from Lock
constantize, #owner_id, #to_s, #unlock_on_shutdown?, #validate!
Methods inherited from Record
#==, constantize, #from_hash, #hash, #id, new_from_hash, #to_hash, #to_s, #validate!
Methods inherited from Serializable
constantize, from_hash, new_from_hash, #to_hash
Constructor Details
#initialize(execution_plan_id) ⇒ ExecutionInhibitionLock
Returns a new instance of ExecutionInhibitionLock.
      270 271 272 273 274 275  | 
    
      # File 'lib/dynflow/coordinator.rb', line 270 def initialize(execution_plan_id) super @data[:owner_id] = "execution-plan:#{execution_plan_id}" @data[:execution_plan_id] = execution_plan_id @data[:id] = self.class.lock_id(execution_plan_id) end  | 
  
Class Method Details
.lock_id(execution_plan_id) ⇒ Object
      277 278 279  | 
    
      # File 'lib/dynflow/coordinator.rb', line 277 def self.lock_id(execution_plan_id) "execution-plan:#{execution_plan_id}" end  |