class Cassandra::Utils::Daemon

Public Instance Methods

tasks() click to toggle source
# File lib/cassandra/utils/daemon.rb, line 7
def tasks
  [
    [seed_registry_task, 'run!'],
    [auto_clean_task, 'run!'],
    [health_stat, 'run!'],
    [compaction_stat, 'run!'],
    [cleanup_stat, 'run!']
  ]
end

Private Instance Methods

auto_clean_task() click to toggle source
# File lib/cassandra/utils/daemon.rb, line 24
def auto_clean_task
  @auto_clean_task ||= ::Cassandra::Tasks::Autoclean.new(options)
end
cleanup_stat() click to toggle source
# File lib/cassandra/utils/daemon.rb, line 36
def cleanup_stat
  @cleanup_stat ||= ::Cassandra::Utils::Stats::Cleanup.new
end
compaction_stat() click to toggle source
# File lib/cassandra/utils/daemon.rb, line 32
def compaction_stat
  @compaction_stat ||= ::Cassandra::Utils::Stats::Compaction.new
end
health_stat() click to toggle source
# File lib/cassandra/utils/daemon.rb, line 28
def health_stat
  @health_stat ||= ::Cassandra::Utils::Stats::Health.new
end
seed_registry_task() click to toggle source
# File lib/cassandra/utils/daemon.rb, line 19
def seed_registry_task
  name = options[:seed_service_name]
  @seed_registry_task ||= ::Cassandra::Tasks::SeedRegistry.new(name)
end