Class: LogStash::Outputs::LogstashAzureBlobOutput::FileRepository::FactoryInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/outputs/blob/file_repository.rb

Overview

class for initializing the repo manager

Instance Method Summary collapse

Constructor Details

#initialize(tags, encoding, temporary_directory, stale_time) ⇒ FactoryInitializer

initializes the class



53
54
55
56
57
58
# File 'lib/logstash/outputs/blob/file_repository.rb', line 53

def initialize(tags, encoding, temporary_directory, stale_time)
  @tags = tags
  @encoding = encoding
  @temporary_directory = temporary_directory
  @stale_time = stale_time
end

Instance Method Details

#apply(prefix_key) ⇒ Object

applies the prefix key



61
62
63
# File 'lib/logstash/outputs/blob/file_repository.rb', line 61

def apply(prefix_key)
  PrefixedValue.new(TemporaryFileFactory.new(prefix_key, @tags, @encoding, @temporary_directory), @stale_time)
end