|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BehaviorTrackingManager
Top-level application interface for logging behavior tracking
events to the BehaviorTracking database.
Most applications should never have to call a method on this
interface or BehaviorEvent
directly. Rather, behavior tracking
should be managed automatically as an Aspect or using a servlet filter.
The lifecyle of a behavior tracking event has four steps:
createEvent(String, String)
BehaviorEvent
API methodsstart(BehaviorEvent)
stop(BehaviorEvent)
, and the finished event is written to the behavior tracking database.
SessionContext
Method Summary | |
---|---|
BehaviorEvent |
createEvent(String type,
String name)
Create a new event of the given type and name. |
void |
start(BehaviorEvent event)
Set the given event as the currently executing event for this thread, and start measuring event time. |
void |
stop(BehaviorEvent event)
Stop measuring execution time for the given event, and set the current event for this thread to be the parent of the given event, if any. |
Method Detail |
---|
BehaviorEvent createEvent(String type, String name)
parent
of the newly created event.
The returned event will also reflect the user Id and session Id associated
with the current thread, if any.
The returned event does not
become active until start(BehaviorEvent)
is called, which
should be done after all event metadata has been gathered.
SessionContext
,
start(BehaviorEvent)
void start(BehaviorEvent event)
IllegalStateException
- if this event has already been started or stopped.void stop(BehaviorEvent event)
IllegalStateException
- if this event has not been started, has already been stopped, or is not the currently executing event on the calling thread.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |