Class: ActiveMatrix::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_matrix.rb

Overview

Configuration class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/active_matrix.rb', line 33

def initialize
  # Set defaults
  @agent_startup_delay = 2
  @max_agents_per_process = 10
  @agent_health_check_interval = 30
  @conversation_history_limit = 20
  @conversation_stale_after = 86_400 # 1 day
  @memory_cleanup_interval = 3600 # 1 hour
  @event_queue_size = 1000
  @event_processing_timeout = 30
  @max_clients_per_homeserver = 5
  @client_idle_timeout = 300 # 5 minutes
  @agent_log_level = :info
  @log_agent_events = false
end

Instance Attribute Details

#agent_health_check_intervalObject

Returns the value of attribute agent_health_check_interval.



26
27
28
# File 'lib/active_matrix.rb', line 26

def agent_health_check_interval
  @agent_health_check_interval
end

#agent_log_levelObject

Returns the value of attribute agent_log_level.



26
27
28
# File 'lib/active_matrix.rb', line 26

def agent_log_level
  @agent_log_level
end

#agent_startup_delayObject

Returns the value of attribute agent_startup_delay.



26
27
28
# File 'lib/active_matrix.rb', line 26

def agent_startup_delay
  @agent_startup_delay
end

#client_idle_timeoutObject

Returns the value of attribute client_idle_timeout.



26
27
28
# File 'lib/active_matrix.rb', line 26

def client_idle_timeout
  @client_idle_timeout
end

#conversation_history_limitObject

Returns the value of attribute conversation_history_limit.



26
27
28
# File 'lib/active_matrix.rb', line 26

def conversation_history_limit
  @conversation_history_limit
end

#conversation_stale_afterObject

Returns the value of attribute conversation_stale_after.



26
27
28
# File 'lib/active_matrix.rb', line 26

def conversation_stale_after
  @conversation_stale_after
end

#event_processing_timeoutObject

Returns the value of attribute event_processing_timeout.



26
27
28
# File 'lib/active_matrix.rb', line 26

def event_processing_timeout
  @event_processing_timeout
end

#event_queue_sizeObject

Returns the value of attribute event_queue_size.



26
27
28
# File 'lib/active_matrix.rb', line 26

def event_queue_size
  @event_queue_size
end

#log_agent_eventsObject

Returns the value of attribute log_agent_events.



26
27
28
# File 'lib/active_matrix.rb', line 26

def log_agent_events
  @log_agent_events
end

#max_agents_per_processObject

Returns the value of attribute max_agents_per_process.



26
27
28
# File 'lib/active_matrix.rb', line 26

def max_agents_per_process
  @max_agents_per_process
end

#max_clients_per_homeserverObject

Returns the value of attribute max_clients_per_homeserver.



26
27
28
# File 'lib/active_matrix.rb', line 26

def max_clients_per_homeserver
  @max_clients_per_homeserver
end

#memory_cleanup_intervalObject

Returns the value of attribute memory_cleanup_interval.



26
27
28
# File 'lib/active_matrix.rb', line 26

def memory_cleanup_interval
  @memory_cleanup_interval
end