Class: Fluent::Plugin::MemoryBuffer

Inherits:
Buffer show all
Defined in:
lib/fluent/plugin/buf_memory.rb

Constant Summary

Constants inherited from Buffer

Buffer::DEFAULT_CHUNK_FULL_THRESHOLD, Buffer::DEFAULT_CHUNK_LIMIT_SIZE, Buffer::DEFAULT_TOTAL_LIMIT_SIZE, Buffer::MINIMUM_APPEND_ATTEMPT_RECORDS, Buffer::STATS_KEYS

Constants included from Configurable

Configurable::CONFIG_TYPE_REGISTRY

Instance Attribute Summary

Attributes inherited from Buffer

#available_buffer_space_ratios_metrics, #dequeued, #newest_timekey_metrics, #oldest_timekey_metrics, #queue, #queue_length_metrics, #queue_size_metrics, #queued_num, #stage, #stage_length_metrics, #stage_size_metrics, #total_queued_size_metrics

Attributes inherited from Base

#under_plugin_development

Instance Method Summary collapse

Methods inherited from Buffer

#backup, #chunk_size_full?, #chunk_size_over?, #clear_queue!, #close, #configure, #dequeue_chunk, #enable_update_timekeys, #enqueue_all, #enqueue_chunk, #enqueue_unstaged_chunk, #initialize, #metadata, #new_metadata, #persistent?, #purge_chunk, #queue_full?, #queue_size, #queue_size=, #queued?, #queued_records, #stage_size, #stage_size=, #start, #statistics, #storable?, #takeback_chunk, #terminate, #timekeys, #update_timekeys, #write, #write_once, #write_step_by_step

Methods included from Fluent::PluginHelper::Mixin

included

Methods included from Fluent::PluginId

#configure, #initialize, #plugin_id, #plugin_id_configured?, #plugin_id_for_test?, #plugin_root_dir, #stop

Methods included from UniqueId::Mixin

#dump_unique_id_hex, #generate_unique_id

Methods included from OwnedByMixin

#log, #owner, #owner=

Methods inherited from Base

#acquire_worker_lock, #after_shutdown, #after_shutdown?, #after_start, #after_started?, #before_shutdown, #before_shutdown?, #called_in_test?, #close, #closed?, #configure, #configured?, #context_router, #context_router=, #fluentd_worker_id, #get_lock_path, #has_router?, #initialize, #inspect, #multi_workers_ready?, #plugin_root_dir, #reloadable_plugin?, #shutdown, #shutdown?, #start, #started?, #stop, #stopped?, #string_safe_encoding, #terminate, #terminated?

Methods included from SystemConfig::Mixin

#system_config, #system_config_override

Methods included from Configurable

#config, #configure, #configure_proxy_generate, #configured_section_create, included, #initialize, lookup_type, register_type

Constructor Details

This class inherits a constructor from Fluent::Plugin::Buffer

Instance Method Details

#generate_chunk(metadata) ⇒ Object



29
30
31
# File 'lib/fluent/plugin/buf_memory.rb', line 29

def generate_chunk()
  Fluent::Plugin::Buffer::MemoryChunk.new(, compress: @compress)
end

#resumeObject



25
26
27
# File 'lib/fluent/plugin/buf_memory.rb', line 25

def resume
  return {}, []
end