public final class StatsLogger extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
StatsLogger.Callback
The logger callback
This interface is used by the logger to call back into while it is
running the logging loop
|
| Constructor and Description |
|---|
StatsLogger(String name,
String logger,
StatsLogger.Callback cb)
Construct a statistics logger
|
| Modifier and Type | Method and Description |
|---|---|
void |
startPeriodicOutput(int interval)
Start outputting statistics on a periodic basis.
|
void |
stopPeriodicOutput()
Stop outputting statistics.
|
Tracer |
tracer()
Get the tracer
|
public StatsLogger(String name, String logger, StatsLogger.Callback cb)
name - The name of the statistics objectlogger - The name of the logger to bind the tracer object of
this statistics object to.cb - The callback used by the logger to communicate with the caller
while in the logging looppublic final Tracer tracer()
public final void startPeriodicOutput(int interval)
interval - The periodic interval, in seconds, at which the
statistics information is output.public final void stopPeriodicOutput()
Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.