| Constructor and Description |
|---|
YammerMetricsAssembler()
Default constructor only creates a Yammer JMXReporter
|
YammerMetricsAssembler(File outDirectory,
long period,
TimeUnit timeunit)
Creates a CSV reporter and writes the result to the given directory
|
YammerMetricsAssembler(PrintStream out,
long period,
TimeUnit timeunit)
Creates a ConsoleReporter and sends the output to the given PrintStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assemble(ModuleAssembly module)
Assemblers receive a callback to the ModuleAssembly
they are supposed to configure.
|
void |
shutdown()
Closing any Reporter that has been started.
|
public YammerMetricsAssembler()
public YammerMetricsAssembler(PrintStream out, long period, TimeUnit timeunit)
out - The PrintStream to receive the output.period - The reporting interval.timeunit - The TimeUnit for the reporting interval.public YammerMetricsAssembler(File outDirectory, long period, TimeUnit timeunit)
outDirectory - The directory to write the result to.period - The reporting interval.timeunit - The TimeUnit for the reporting interval.public void assemble(ModuleAssembly module) throws AssemblyException
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 Assemblermodule - the Module to assembleAssemblyException - thrown if the assembler tries to do something illegalpublic void shutdown()