Package | Description |
---|---|
org.javasimon.callback.calltree |
CallTreeCallback gathers information
for current thread and displays it subsequent calls like a tree. |
org.javasimon.callback.lastsplits |
LastSplitsCallback retains last
splits in a ring a buffer (fixed size FIFO queue). |
org.javasimon.callback.logging |
LoggingCallback is able to log stopwatch splits and statistics once
in a while (N per millisecond, every N split, when split is longer than N ms, etc.)
and to various outputs (SLF4J, JUL). |
org.javasimon.callback.quantiles |
QuantilesCallback sorts splits to categories
(Bucket s) based on time ranges. |
Constructor and Description |
---|
CallTreeCallback(LogTemplate<Split> callTreeLogTemplate)
Constructor with log template.
|
Modifier and Type | Method and Description |
---|---|
protected LogTemplate<Split> |
LastSplitsCallback.createLogTemplate(Stopwatch stopwatch)
Create log template for given stopwatch.
|
LogTemplate<Split> |
LastSplits.getLogTemplate() |
Modifier and Type | Method and Description |
---|---|
void |
LastSplits.setLogTemplate(LogTemplate<Split> logTemplate) |
Modifier and Type | Class and Description |
---|---|
class |
CounterLogTemplate<C>
Log template that logs something every N invocations of the
CounterLogTemplate.isEnabled(Object) method. |
class |
DelegateLogTemplate<C>
Base class for log template which delegates part of the work to a concrete log template.
|
class |
DisabledLogTemplate<C> |
class |
JULLogTemplate<C>
Concrete log template using
Logger . |
class |
PeriodicLogTemplate<C>
Log template that logs something after every N milliseconds.
|
class |
SLF4JLogTemplate<C>
Concrete log template using SLF4J
Logger . |
static class |
SLF4JLogTemplate.Debug<C>
SLF4J Log template with DEBUG level.
|
static class |
SLF4JLogTemplate.Info<C>
SLF4J Log template with INFO level.
|
static class |
SLF4JLogTemplate.Warn<C>
SLF4J Log template with WARN level.
|
class |
SplitThresholdLogTemplate
Log template which awakes only when split is longer than given threshold.
|
Modifier and Type | Method and Description |
---|---|
static <C> LogTemplate<C> |
LogTemplates.disabled()
Produces a disabled log template which never logs anything.
|
static <C> LogTemplate<C> |
LogTemplates.everyNMilliseconds(LogTemplate<C> delegateLogger,
long period)
Produces a log template which logs something at most every N milliseconds.
|
static <C> LogTemplate<C> |
LogTemplates.everyNSeconds(LogTemplate<C> delegateLogger,
long period)
Produces a log template which logs something at most every N secoonds.
|
static <C> LogTemplate<C> |
LogTemplates.everyNSplits(LogTemplate<C> delegateLogger,
int period)
Produces a log template which logs something every N split.
|
LogTemplate |
DelegateLogTemplate.getDelegate()
Get delegate log template.
|
LogTemplate<String> |
LoggingCallback.getManagerLogTemplate()
Get log template used for manage warnings.
|
LogTemplate<Split> |
LoggingCallback.getStopwatchLogTemplate()
Get log template used for stopwatch splits.
|
protected LogTemplate<Split> |
LoggingCallback.getStopwatchLogTemplate(Stopwatch stopwatch)
Get log template for stopwatch, defaults to
LoggingCallback.stopwatchLogTemplate . |
Modifier and Type | Method and Description |
---|---|
static <C> LogTemplate<C> |
LogTemplates.everyNMilliseconds(LogTemplate<C> delegateLogger,
long period)
Produces a log template which logs something at most every N milliseconds.
|
static <C> LogTemplate<C> |
LogTemplates.everyNSeconds(LogTemplate<C> delegateLogger,
long period)
Produces a log template which logs something at most every N secoonds.
|
static <C> LogTemplate<C> |
LogTemplates.everyNSplits(LogTemplate<C> delegateLogger,
int period)
Produces a log template which logs something every N split.
|
static SplitThresholdLogTemplate |
LogTemplates.whenSplitLongerThanMilliseconds(LogTemplate<Split> delegateLogger,
long threshold)
Produces a log template which logs something when stopwatch split is longer than threshold.
|
static SplitThresholdLogTemplate |
LogTemplates.whenSplitLongerThanNanoseconds(LogTemplate<Split> delegateLogger,
long threshold)
Produces a log template which logs something when stopwatch split is longer than threshold.
|
Constructor and Description |
---|
CounterLogTemplate(LogTemplate delegate,
int counterMax)
Constructor.
|
DelegateLogTemplate(LogTemplate<C> delegate)
Constructor with delegate log template.
|
LoggingCallback(LogTemplate<Split> stopwatchLogTemplate,
LogTemplate<String> managerLogTemplate)
Constructor which can be used to customize log templates.
|
LoggingCallback(LogTemplate<Split> stopwatchLogTemplate,
LogTemplate<String> managerLogTemplate)
Constructor which can be used to customize log templates.
|
PeriodicLogTemplate(LogTemplate<C> delegate,
long period)
Constructor with other template and the required period in ms.
|
PeriodicLogTemplate(LogTemplate<C> delegate,
long period,
SimonClock clock) |
SplitThresholdLogTemplate(LogTemplate<Split> delegate,
long threshold)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected LogTemplate<Split> |
QuantilesCallback.createLogTemplate(Stopwatch stopwatch)
Create log template for given stopwatch.
|
LogTemplate<Split> |
Buckets.getLogTemplate() |
Modifier and Type | Method and Description |
---|---|
void |
Buckets.setLogTemplate(LogTemplate<Split> logTemplate) |
Copyright © 2019. All rights reserved.