Class: Cassandra::Utils::Stats::Compaction
- Inherits:
-
CLI::Base
- Object
- CLI::Base
- Cassandra::Utils::Stats::Compaction
show all
- Defined in:
- lib/cassandra/utils/stats/compaction.rb
Instance Attribute Summary
Attributes inherited from CLI::Base
#stdout
Instance Method Summary
collapse
Methods inherited from CLI::Base
#cwd, #run!, #runner, #timeout
Instance Method Details
#command ⇒ Object
6
7
8
|
# File 'lib/cassandra/utils/stats/compaction.rb', line 6
def command
'nodetool compactionstats'
end
|
#metric_name ⇒ Object
14
15
16
|
# File 'lib/cassandra/utils/stats/compaction.rb', line 14
def metric_name
'cassandra.compaction.running'
end
|
#output ⇒ Object
10
11
12
|
# File 'lib/cassandra/utils/stats/compaction.rb', line 10
def output
compaction = stdout.lines.any? { |l| l.include?('Compaction') }
end
|
#task_id ⇒ Object
18
19
20
|
# File 'lib/cassandra/utils/stats/compaction.rb', line 18
def task_id
['compaction', 'nodetool']
end
|