|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lip6.sma.simulacion.server.http.HTTPServer.ClientData
private final class HTTPServer.ClientData
Classe pour les données sur un client. Cette classe gère aussi la temporisation du client, i.e. elle détermine si ça fait trop longtemps qu'on n'a pas entendu parler du client.
Field Summary | |
---|---|
private int |
mClientID
Identifiant du client. |
private List |
mEvents
Liste des événements pour ce client. |
private boolean |
mLooksDead
Flag indicating that the client seems to be dead. |
private int |
mTimeout
Durée maximale depuis laquelle on veut avoir entendu le client. |
private Timer |
mTimer
Liste des événements pour ce client. |
private TimerTask |
mTimerTask
Tâche de timeout courante. |
Constructor Summary | |
---|---|
private |
HTTPServer.ClientData(int inClientID,
int inTimeout)
Constructeur à partir de l'identifiant du client et du temps maximal pendant lequel on accepte de ne pas entendre parler du client. |
Method Summary | |
---|---|
private boolean |
doesLookDead()
Accessor on the looks dead property. |
private List |
getEvents()
Accesseur sur la liste des événements. |
void |
resetTimer()
(Re)lance la tâche de temporisation. |
private void |
shutdown()
Extinction de la tâche de temporisation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int mClientID
private final int mTimeout
private final List mEvents
private final Timer mTimer
private TimerTask mTimerTask
private boolean mLooksDead
Constructor Detail |
---|
private HTTPServer.ClientData(int inClientID, int inTimeout)
inClientID
- identifiant du client.inTimeout
- durée maximale depuis laquelle on veut avoir
entendu le client, en millisecondes.Method Detail |
---|
public void resetTimer()
private List getEvents()
private boolean doesLookDead()
true
if the client seems dead,
false
otherwise.private void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |