Interface MonitoringSession
- All Superinterfaces:
LogFilterSettings
A monitoring session is a way for us to set levels and filters on the logging system, and have
them timeout after a certain period of time.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes and destroys the monitoring session.getId()An id that can be used to retrieve the session again if necessary.getLogMessages(long sinceTime) Returns the events observed since the given timestamp.voidCalled periodically to keep the session from expiring.voidreset()Resets all logging levels and clears all filters.Methods inherited from interface LogFilterSettings
addPropertyFilter, clearPropertyLevel, clearPropertyLevels, propertyFilterSettings, removePropertyFilter, setLevel, setPropertyLevel
-
Method Details
-
getId
String getId()An id that can be used to retrieve the session again if necessary. Can be serialized across page loads or into a gateway session, for example. -
keepalive
void keepalive()Called periodically to keep the session from expiring. Note that other actions taken on this class also keep the session alive, so calling this function is not necessary if you are routinely collecting events. -
reset
void reset()Resets all logging levels and clears all filters. -
close
void close()Closes and destroys the monitoring session. -
getLogMessages
-