public class CodahaleMetricsAssembler extends Assemblers.VisibilityIdentityConfig<CodahaleMetricsAssembler>
Constructor and Description |
---|
CodahaleMetricsAssembler() |
Modifier and Type | Method and Description |
---|---|
void |
assemble(ModuleAssembly module)
Assemblers receive a callback to the ModuleAssembly
they are supposed to configure.
|
CodahaleMetricsAssembler |
withConsoleReporter(PrintStream out,
long period,
TimeUnit timeunit) |
CodahaleMetricsAssembler |
withCsvReporter(File outDirectory,
long period,
TimeUnit timeunit) |
CodahaleMetricsAssembler |
withFullyQualifiedClassNames() |
CodahaleMetricsAssembler |
withJmx() |
CodahaleMetricsAssembler |
withoutJmx() |
CodahaleMetricsAssembler |
withPrefix(String prefix) |
CodahaleMetricsAssembler |
withReporter(Function<com.codahale.metrics.MetricRegistry,com.codahale.metrics.Reporter> factory) |
CodahaleMetricsAssembler |
withSimpleClassNames() |
CodahaleMetricsAssembler |
withSlf4jReporter(com.codahale.metrics.Slf4jReporter.LoggingLevel level,
long period,
TimeUnit timeunit) |
configModule, configVisibility, hasConfig, hasIdentity, identifiedBy, identity, visibility, visibleIn, withConfig
finalize
public CodahaleMetricsAssembler withPrefix(String prefix)
public CodahaleMetricsAssembler withFullyQualifiedClassNames()
public CodahaleMetricsAssembler withSimpleClassNames()
public CodahaleMetricsAssembler withJmx()
public CodahaleMetricsAssembler withoutJmx()
public CodahaleMetricsAssembler withConsoleReporter(PrintStream out, long period, TimeUnit timeunit)
public CodahaleMetricsAssembler withSlf4jReporter(com.codahale.metrics.Slf4jReporter.LoggingLevel level, long period, TimeUnit timeunit)
public CodahaleMetricsAssembler withCsvReporter(File outDirectory, long period, TimeUnit timeunit)
public CodahaleMetricsAssembler withReporter(Function<com.codahale.metrics.MetricRegistry,com.codahale.metrics.Reporter> factory)
public void assemble(ModuleAssembly module)
Assembler
An Assembler may create new Modules by calling
ModuleAssembly.layer()
and
then LayerAssembly.module(String)
(String)}.
This allows an Assembler to bootstrap an entire Layer with
more Modules.
assemble
in interface Assembler
assemble
in class Assemblers.AssembleChecker
module
- the Module to assemble