class Octave::Configuration
Handle the configuration of the Octave
agent.
Attributes
dispatchers[W]
Array of dispatchers to be used once a Payload
has been completed. Default is [Octave::Dispatcher::Logger.new]
. @return [Array] Array containing dispatchers
enabled[W]
Enable the agent. Default is true.
logger[RW]
Logger to be used for logging events and debugging. Default is Logger.new(STDOUT)
.
max_queue[RW]
Maximum size of the queue. Default is 1500 @return [Numeric]
Public Class Methods
new()
click to toggle source
# File lib/octave/configuration.rb, line 22 def initialize @max_queue = 1500 @logger = Logger.new(STDOUT) @enabled = true end
Public Instance Methods
dispatchers()
click to toggle source
# File lib/octave/configuration.rb, line 28 def dispatchers @dispatchers ||= [ Octave::Dispatcher::Logger.new ] end
enabled?()
click to toggle source
@return [Boolean] Whether or not the agent is enabled
# File lib/octave/configuration.rb, line 35 def enabled? @enabled end