public class EventTracker extends java.lang.Object implements EventEscalation
ORDER_FIRST, ORDER_LAST, ORDER_NONE| Constructor and Description |
|---|
EventTracker(java.util.Map props) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
checkpoint()
returns the checkpoint Map for the escalation
|
void |
clear()
cleans up all internal caches and releases all resources
|
Event |
escalate(int status,
long currentTime,
Event event)
It examines the event and returns a new event as the escalation or
null if no escalation.
|
int |
getEscalationOrder()
It returns an integer as the escalation order that determines if the
escalation event to be processed before the original event or not.
|
java.lang.String |
getName()
returns the name of the escalation
|
int |
getSessionSize()
returns the size of current session
|
long |
getSessionTime()
returns the start time of current session
|
int |
resetSession(long currentTime)
resets the internal session returns number of items being reset
|
void |
restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> chkpt)
restores the state of the escalation from the checkpoint Map
|
public Event escalate(int status, long currentTime, Event event)
EventEscalationescalate in interface EventEscalationpublic int resetSession(long currentTime)
EventEscalationresetSession in interface EventEscalationpublic long getSessionTime()
EventEscalationgetSessionTime in interface EventEscalationpublic int getSessionSize()
EventEscalationgetSessionSize in interface EventEscalationpublic java.lang.String getName()
EventEscalationgetName in interface EventEscalationpublic int getEscalationOrder()
EventEscalationgetEscalationOrder in interface EventEscalationpublic void clear()
EventEscalationclear in interface EventEscalationpublic java.util.Map<java.lang.String,java.lang.Object> checkpoint()
EventEscalationcheckpoint in interface EventEscalationpublic void restoreFromCheckpoint(java.util.Map<java.lang.String,java.lang.Object> chkpt)
EventEscalationrestoreFromCheckpoint in interface EventEscalation