Class: LogStash::Filters::Dictionary::Memory

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/filters/dictionary/memory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash, exact, regex) ⇒ Memory

Returns a new instance of Memory.



9
10
11
12
13
14
15
16
# File 'lib/logstash/filters/dictionary/memory.rb', line 9

def initialize(hash, exact, regex)
  klass = case
          when exact && regex then FetchStrategy::Memory::ExactRegex
          when exact          then FetchStrategy::Memory::Exact
          else                     FetchStrategy::Memory::RegexUnion
          end
  @fetch_strategy = klass.new(hash)
end

Instance Attribute Details

#dictionaryObject (readonly)

Returns the value of attribute dictionary.



7
8
9
# File 'lib/logstash/filters/dictionary/memory.rb', line 7

def dictionary
  @dictionary
end

#fetch_strategyObject (readonly)

Returns the value of attribute fetch_strategy.



7
8
9
# File 'lib/logstash/filters/dictionary/memory.rb', line 7

def fetch_strategy
  @fetch_strategy
end

Instance Method Details

#stop_schedulerObject



18
19
20
# File 'lib/logstash/filters/dictionary/memory.rb', line 18

def stop_scheduler
  # noop
end