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, respond_to_missing?, state, state=

Class Method Details

.default_stateObject



98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/einhorn.rb', line 98

def self.default_state
  {
    whatami: :master,
    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