public class MonitoringManager extends TransactionalAlarmListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
void |
generateAndSaveRandomEvent(java.util.Date startDate,
java.util.Date endDate)
Method to be use for testing only, rename the existing
monitoring file and generate fake events with random data.
|
java.util.Date |
getLatestEventDate()
Retrieve the latest (most recent) event Date.
|
static MonitoringManager |
getMonitoringManager()
Retrieve the MonitoringManager singleton (create it if it does not exists)
|
java.util.Date |
getOldestEventDate()
Retrieve the oldest event Date.
|
long |
getRequestNbr()
Retrieve the number of request counted in the measure interval
|
void |
handleTransactionalAlarm(AlarmEntry entry)
TransactionalAlarmListener implementation.
|
void |
monitorRequest(javax.servlet.http.HttpServletRequest request)
Methods to allow the Monitoring Manager to keep track of
information about request (number of request).
|
java.util.List<com.jalios.jcms.monitoring.Event> |
readEvents(java.util.Date startDate,
java.util.Date endDate)
Read monitoring events previously saved.
|
handleAlarm
public static final java.lang.String REVISION
public static MonitoringManager getMonitoringManager()
public void handleTransactionalAlarm(AlarmEntry entry)
handleTransactionalAlarm
in class TransactionalAlarmListener
entry
- the AlarmEntry which has been triggered.public void monitorRequest(javax.servlet.http.HttpServletRequest request)
request
- the request to countpublic long getRequestNbr()
public java.util.Date getOldestEventDate()
public java.util.Date getLatestEventDate()
public java.util.List<com.jalios.jcms.monitoring.Event> readEvents(java.util.Date startDate, java.util.Date endDate)
startDate
- the starting Date below which events are not read, if null, it is not used.endDate
- the ending Date above which events are not read, if null, it is not used.public void generateAndSaveRandomEvent(java.util.Date startDate, java.util.Date endDate)
startDate
- the starting date to use for Event generationendDate
- the ending date to use for Event generationCopyright © 2001-2010 Jalios SA. All Rights Reserved.