Class: RSMP::Supervisor::Options

Inherits:
Options
  • Object
show all
Defined in:
lib/rsmp/options/supervisor_options.rb

Overview

Configuration options for supervisors.

Instance Method Summary collapse

Instance Method Details

#defaultsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/rsmp/options/supervisor_options.rb', line 5

def defaults
  {
    'port' => 12_111,
    'connection_role' => 'server',
    'ips' => 'all',
    'default' => {
      'sxls' => {
        'tlc' => RSMP::Schema.latest_version(:tlc)
      },
      'intervals' => {
        'timer' => 1,
        'watchdog' => 1
      },
      'timeouts' => {
        'watchdog' => 2,
        'acknowledgement' => 2,
        'command' => 10,
        'status_response' => 10
      }
    }
  }
end

#schema_fileObject



28
29
30
# File 'lib/rsmp/options/supervisor_options.rb', line 28

def schema_file
  'supervisor.json'
end