Class: Dcmgr::Stm::Instance

Inherits:
Object
  • Object
show all
Defined in:
lib/dcmgr/stm/instance.rb

Constant Summary collapse

STM =
Statemachine.build {
  startstate :pending
  superstate :instance_condition do
    trans :pending, :on_create, :starting
    trans :starting, :on_started, :running
    trans :running, :on_shutdown, :shuttingdown
    trans :shuttingdown, :on_terminated, :terminated
    
    event :on_fail, :failed
  end
  
  trans :failed, :on_fail, :failed
}

Instance Method Summary collapse

Constructor Details

#initializeInstance

Returns a new instance of Instance.



21
22
# File 'lib/dcmgr/stm/instance.rb', line 21

def initialize
end