Class: Metrica::Reporters::JmxReporter

Inherits:
Metrica::Reporter show all
Defined in:
lib/metrica/reporters/jmx_reporter.rb

Instance Attribute Summary

Attributes inherited from Metrica::Reporter

#underlying

Instance Method Summary collapse

Methods inherited from Metrica::Reporter

#start, #stop

Constructor Details

#initializeJmxReporter

Returns a new instance of JmxReporter


6
7
8
9
10
11
# File 'lib/metrica/reporters/jmx_reporter.rb', line 6

def initialize
  super

  @underlying = com.codahale.metrics.JmxReporter.
    forRegistry(Metrica.registry).build
end