| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.db.TransactionalAlarmListener
com.jalios.jcms.monitoring.MonitoringManager
public class MonitoringManager
Monitoring class which saves site monitoring measures and events.
| Field Summary | |
|---|---|
static String | 
REVISION
 | 
| Method Summary | |
|---|---|
 void | 
generateAndSaveRandomEvent(Date startDate,
                           Date endDate)
Method to be use for testing only, rename the existing monitoring file and generate fake events with random data.  | 
 Date | 
getLatestEventDate()
Retrieve the latest (most recent) event Date.  | 
static MonitoringManager | 
getMonitoringManager()
Retrieve the MonitoringManager singleton (create it if it does not exists)  | 
 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).  | 
 List<com.jalios.jcms.monitoring.Event> | 
readEvents(Date startDate,
           Date endDate)
Read monitoring events previously saved.  | 
| Methods inherited from class com.jalios.jcms.db.TransactionalAlarmListener | 
|---|
handleAlarm | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String REVISION
| Method Detail | 
|---|
public static MonitoringManager getMonitoringManager()
public void handleTransactionalAlarm(AlarmEntry entry)
handleTransactionalAlarm in class TransactionalAlarmListenerentry - the AlarmEntry which has been triggered.public void monitorRequest(javax.servlet.http.HttpServletRequest request)
request - the request to countpublic long getRequestNbr()
public Date getOldestEventDate()
public Date getLatestEventDate()
public List<com.jalios.jcms.monitoring.Event> readEvents(Date startDate,
                                                         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(Date startDate,
                                       Date endDate)
startDate - the starting date to use for Event generationendDate - the ending date to use for Event generation
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||