|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.CallbackSkeleton
org.javasimon.utils.SystemDebugCallback
public final class SystemDebugCallback
SystemDebugCallback just prints operations on the standard output, warning is sent to error output.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.javasimon.callback.Callback |
|---|
Callback.Event |
| Field Summary | |
|---|---|
static String |
DEBUG_PREFIX
|
| Constructor Summary | |
|---|---|
SystemDebugCallback()
|
|
| Method Summary | |
|---|---|
void |
onCounterDecrease(Counter counter,
long dec,
CounterSample sample)
Counter decrease event. |
void |
onCounterIncrease(Counter counter,
long inc,
CounterSample sample)
Counter increase event. |
void |
onCounterSet(Counter counter,
long val,
CounterSample sample)
Counter set event. |
void |
onManagerClear()
Event called when the manager is cleared. |
void |
onManagerMessage(String message)
Message event is used to propagate arbitrary messages from the manager, or it can be used by the other Callback methods internally. |
void |
onManagerWarning(String warning,
Exception cause)
Warning and stack trace are print out to the error output. |
void |
onSimonCreated(Simon simon)
Simon created event is called when Simon is successfully created by the Manager. |
void |
onSimonDestroyed(Simon simon)
Simon destroyed event is called when Simon is successfully destroyed by the Manager. |
void |
onSimonReset(Simon simon)
Simon reset event. |
void |
onStopwatchAdd(Stopwatch stopwatch,
long ns,
StopwatchSample sample)
Stopwatch add time event. |
void |
onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample)
Stopwatch add split event. |
void |
onStopwatchStart(Split split)
Stopwatch start event. |
void |
onStopwatchStop(Split split,
StopwatchSample sample)
Stopwatch stop event. |
private void |
out(String message)
|
| Methods inherited from class org.javasimon.callback.CallbackSkeleton |
|---|
cleanup, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEBUG_PREFIX
| Constructor Detail |
|---|
public SystemDebugCallback()
| Method Detail |
|---|
public void onSimonReset(Simon simon)
Callback
onSimonReset in interface CallbackonSimonReset in class CallbackSkeletonsimon - reset Simonpublic void onStopwatchStart(Split split)
CallbackStopwatchSample valid for the moment after the start is provided because the callback
is executed out of synchronized block.
onStopwatchStart in interface CallbackonStopwatchStart in class CallbackSkeletonsplit - started Split
public void onStopwatchStop(Split split,
StopwatchSample sample)
CallbackStopwatchSample valid for the moment after the stop is provided
because the callback is executed out of synchronized block.
onStopwatchStop in interface CallbackonStopwatchStop in class CallbackSkeletonsplit - stopped Splitsample - stopwatch sampled after the stop
public void onStopwatchAdd(Stopwatch stopwatch,
long ns,
StopwatchSample sample)
CallbackStopwatchSample valid for the moment after the add is provided
because the callback is executed out of synchronized block.
onStopwatchAdd in interface CallbackonStopwatchAdd in class CallbackSkeletonstopwatch - modified Stopwatchns - added split time in nssample - stopwatch sampled after the add
public void onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample)
CallbackStopwatchSample valid for the moment after the add is provided
because the callback is executed out of synchronized block.
onStopwatchAdd in interface CallbackonStopwatchAdd in class CallbackSkeletonstopwatch - modified Stopwatchsplit - added split objectsample - stopwatch sampled after the add
public void onCounterDecrease(Counter counter,
long dec,
CounterSample sample)
CallbackCounterSample valid for the moment after the operation is provided
because the callback is executed out of synchronized block.
onCounterDecrease in interface CallbackonCounterDecrease in class CallbackSkeletoncounter - modified Counterdec - decrement amountsample - counter sampled after the operation
public void onCounterIncrease(Counter counter,
long inc,
CounterSample sample)
CallbackCounterSample valid for the moment after the operation is provided
because the callback is executed out of synchronized block.
onCounterIncrease in interface CallbackonCounterIncrease in class CallbackSkeletoncounter - modified Counterinc - increment amountsample - counter sampled after the operation
public void onCounterSet(Counter counter,
long val,
CounterSample sample)
CallbackCounterSample valid for the moment after the operation is provided
because the callback is executed out of synchronized block.
onCounterSet in interface CallbackonCounterSet in class CallbackSkeletoncounter - modified Counterval - new valuesample - counter sampled after the operationpublic void onSimonCreated(Simon simon)
Callback
onSimonCreated in interface CallbackonSimonCreated in class CallbackSkeletonsimon - created Simonpublic void onSimonDestroyed(Simon simon)
Callback
onSimonDestroyed in interface CallbackonSimonDestroyed in class CallbackSkeletonsimon - destroyed Simonpublic void onManagerClear()
Callback
onManagerClear in interface CallbackonManagerClear in class CallbackSkeletonpublic void onManagerMessage(String message)
Callback
onManagerMessage in interface CallbackonManagerMessage in class CallbackSkeletonmessage - message textprivate void out(String message)
public void onManagerWarning(String warning,
Exception cause)
onManagerWarning in interface CallbackonManagerWarning in class CallbackSkeletonwarning - arbitrary warning message - can be null, unless concrete implementation states otherwisecause - exception causing this warning - can be null, unless concrete implementation states otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||