|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.Timer
GWTApplication.client.FaultUpdateMonitor
class FaultUpdateMonitor
This class will be used to check the database intermittingly to see if any of the faults which listeners have registered an interest in have been updated. If any faults have been updated then the listeners are informed of the faults which have changed since the last time that we checked.
SearchResultFormatter
Field Summary | |
---|---|
private InternationalizationConstants |
internationalizationConstants
This class will be used for internationalization so that we can flick between the locales of English and Spanish. |
(package private) java.util.HashMap |
Listeners
This is a list of the fault listeners |
(package private) FaultServiceAsync |
svc
This is the service which will be used to access the servlet which is running in the tomcat container |
(package private) java.util.Date |
timeOfLastUpdateCheck
This is the time in milliseconds since 1970 since the last time that we checked if the faults had been updated |
Constructor Summary | |
---|---|
FaultUpdateMonitor(FaultServiceAsync svc)
Constructor |
Method Summary | |
---|---|
void |
addListener(FaultListener faultListener)
Will be used by a client to register itself as a listener so that it will be informed when faults which it is interested in are changed in the database. |
void |
run()
Obligation of the TimerTask interface and is called intermittingly. |
Methods inherited from class com.google.gwt.user.client.Timer |
---|
cancel, schedule, scheduleRepeating |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
FaultServiceAsync svc
java.util.Date timeOfLastUpdateCheck
java.util.HashMap Listeners
private InternationalizationConstants internationalizationConstants
Constructor Detail |
---|
FaultUpdateMonitor(FaultServiceAsync svc)
Method Detail |
---|
public void run()
run
in class com.google.gwt.user.client.Timer
public void addListener(FaultListener faultListener)
faultListener
- This is the object which will be called
when any one of the faults listed in the faultsOfInterest array
are updated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |