Module: Einhorn::TransientState

Extended by:
AbstractState
Defined in:
lib/einhorn.rb

Class Method Summary collapse

Methods included from AbstractState

default_state, dumpable_state, method_missing, state, state=

Class Method Details

.default_stateObject



77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/einhorn.rb', line 77

def self.default_state
  {
    :whatami => :master,
    :preloaded => false,
    :script_name => nil,
    :argv => [],
    :environ => {},
    :has_outstanding_spinup_timer => false,
    :stateful => nil,
    # Holds references so that the GC doesn't go and close your sockets.
    :socket_handles => Set.new
  }
end