|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tracer
Common interface for timing-related methods. Not to be directly used by SDK user.
Method Summary | |
---|---|
void |
end()
Ends timing of a node. |
void |
error(java.lang.String message)
Marks the node as 'exited by exception'. |
void |
error(java.lang.Throwable throwable)
Marks the node as 'exited by exception'.Additional information can be provided as Throwable. |
void |
start()
starts timing of a node. |
Method Detail |
---|
void start()
end()
method. Consider using the following pattern:
tracer.start();
try {
// do your work
} catch (Exception e) {
tracer.error(e);
} finally {
tracer.end();
}
start()
, end()
, error(String)
,
error(Throwable)
are not thread-safe. They must be called from the
same thread where start()
has been invoked.
void end()
start()
, end()
, error(String)
,
error(Throwable)
are not thread-safe. They must be called from the
same thread where start()
has been invoked.
void error(java.lang.String message)
start()
, end()
, error(String)
,
error(Throwable)
are not thread-safe. They must be called from the
same thread where start()
has been invoked.
message
- error message with details about occurred error (eg. return code).
must not be null.void error(java.lang.Throwable throwable)
start()
, end()
, error(String)
,
error(Throwable)
are not thread-safe. They must be called from the
same thread where start()
has been invoked.
throwable
- exception, that occurred. must not null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |