|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qi4j.metrics.yammer.YammerMetricsAssembler
public class YammerMetricsAssembler
Constructor Summary | |
---|---|
YammerMetricsAssembler()
Default constructor only creates a Yammer JMXReporter |
|
YammerMetricsAssembler(java.io.File outDirectory,
long period,
java.util.concurrent.TimeUnit timeunit)
Creates a CSV reporter and writes the result to the given directory |
|
YammerMetricsAssembler(java.io.PrintStream out,
long period,
java.util.concurrent.TimeUnit timeunit)
Creates a ConsoleReporter and sends the output to the given PrintStream. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YammerMetricsAssembler()
public YammerMetricsAssembler(java.io.PrintStream out, long period, java.util.concurrent.TimeUnit timeunit)
out
- The PrintStream to receive the output.period
- The reporting interval.timeunit
- The TimeUnit for the reporting interval.public YammerMetricsAssembler(java.io.File outDirectory, long period, java.util.concurrent.TimeUnit timeunit)
outDirectory
- The directory to write the result to.period
- The reporting interval.timeunit
- The TimeUnit for the reporting interval.Method Detail |
---|
public void assemble(ModuleAssembly module) throws AssemblyException
Assembler
ModuleAssembly.layer()
and
then LayerAssembly.module(String)
(String)}.
This allows an Assembler to bootstrap an entire Layer with
more Modules.
assemble
in interface Assembler
module
- the Module to assemble
AssemblyException
- thrown if the assembler tries to do something illegalpublic void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |