Method: ContentServer.init_globals

Defined in:
lib/content_server/server.rb

.init_globalsObject

using module method fot globals initialization due to the use of ‘Params’.



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/content_server/server.rb', line 24

def init_globals
  $process_vars = ThreadSafeHash::ThreadSafeHashMonitored.new(Params['enable_monitoring'])
  $tmp_content_data_file = nil  # will be init during execution
  $testing_memory_active = false
  $testing_memory_log = nil
  $indexed_file_count = 0
  $local_content_data = nil
  $local_content_data_lock = nil
  $remote_content_data_lock = nil
  $remote_content_data = nil
  $last_content_data_id = nil
end