Class: SourceMonitor::Configuration::FetchingSettings
- Inherits:
-
Object
- Object
- SourceMonitor::Configuration::FetchingSettings
- Defined in:
- lib/source_monitor/configuration/fetching_settings.rb
Instance Attribute Summary collapse
-
#decrease_factor ⇒ Object
Returns the value of attribute decrease_factor.
-
#failure_increase_factor ⇒ Object
Returns the value of attribute failure_increase_factor.
-
#increase_factor ⇒ Object
Returns the value of attribute increase_factor.
-
#jitter_percent ⇒ Object
Returns the value of attribute jitter_percent.
-
#max_interval_minutes ⇒ Object
Returns the value of attribute max_interval_minutes.
-
#min_interval_minutes ⇒ Object
Returns the value of attribute min_interval_minutes.
-
#scheduler_batch_size ⇒ Object
Returns the value of attribute scheduler_batch_size.
-
#stale_timeout_minutes ⇒ Object
Returns the value of attribute stale_timeout_minutes.
Instance Method Summary collapse
-
#initialize ⇒ FetchingSettings
constructor
A new instance of FetchingSettings.
- #reset! ⇒ Object
Constructor Details
#initialize ⇒ FetchingSettings
Returns a new instance of FetchingSettings.
15 16 17 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 15 def initialize reset! end |
Instance Attribute Details
#decrease_factor ⇒ Object
Returns the value of attribute decrease_factor.
6 7 8 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 6 def decrease_factor @decrease_factor end |
#failure_increase_factor ⇒ Object
Returns the value of attribute failure_increase_factor.
6 7 8 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 6 def failure_increase_factor @failure_increase_factor end |
#increase_factor ⇒ Object
Returns the value of attribute increase_factor.
6 7 8 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 6 def increase_factor @increase_factor end |
#jitter_percent ⇒ Object
Returns the value of attribute jitter_percent.
6 7 8 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 6 def jitter_percent @jitter_percent end |
#max_interval_minutes ⇒ Object
Returns the value of attribute max_interval_minutes.
6 7 8 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 6 def max_interval_minutes @max_interval_minutes end |
#min_interval_minutes ⇒ Object
Returns the value of attribute min_interval_minutes.
6 7 8 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 6 def min_interval_minutes @min_interval_minutes end |
#scheduler_batch_size ⇒ Object
Returns the value of attribute scheduler_batch_size.
6 7 8 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 6 def scheduler_batch_size @scheduler_batch_size end |
#stale_timeout_minutes ⇒ Object
Returns the value of attribute stale_timeout_minutes.
6 7 8 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 6 def stale_timeout_minutes @stale_timeout_minutes end |
Instance Method Details
#reset! ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/source_monitor/configuration/fetching_settings.rb', line 19 def reset! @min_interval_minutes = 5 @max_interval_minutes = 24 * 60 @increase_factor = 1.25 @decrease_factor = 0.75 @failure_increase_factor = 1.5 @jitter_percent = 0.1 @scheduler_batch_size = 25 @stale_timeout_minutes = 5 end |