|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lip6.sma.simulacion.server.log.LogApp
public class LogApp
Classe pour une application qui se limite à enregistrer tout ce qui se passe dans un fichier.
Enfin, application est un bien grand mot. Ça sera en ligne de commande pour le moment.
Field Summary | |
---|---|
private AgentListManager |
mAgentListManager
Référence sur le gestionnaire de liste. |
private sun.misc.SignalHandler |
mDefaultIntHandler
Gestionnaire par défaut du signal INT |
private LogAgent |
mLogAgent
Référence sur l'agent de log. |
private Set |
mLoggedAgentSet
Liste des agents à qui on a dit de nous envoyer les informations de log. |
private boolean |
mRegistered
Si on est enregistré. |
private Server |
mServer
Référence sur le serveur. |
Constructor Summary | |
---|---|
LogApp(String inConfigurationPath)
Constructeur à partir du chemin du fichier de configuration. |
Method Summary | |
---|---|
void |
listChanged()
Méthode appelée lorsque la liste a été modifiée. |
static void |
main(String[] inArgs)
Point d'entrée. |
void |
registrationFailed(LocalAgent inLocalAgent)
Méthode appelée lorsque l'enregistrement a échoué. |
void |
registrationSucceeded(LocalAgent inLocalAgent)
Méthode appelée lorsque l'enregistrement a réussi. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Set mLoggedAgentSet
private final Server mServer
private final AgentListManager mAgentListManager
private final LogAgent mLogAgent
private sun.misc.SignalHandler mDefaultIntHandler
private boolean mRegistered
Constructor Detail |
---|
public LogApp(String inConfigurationPath) throws ServerException
inConfigurationPath
- chemin vers la configuration.
ServerException
- si un problème est survenu dans la création du
serveurMethod Detail |
---|
public final void registrationSucceeded(LocalAgent inLocalAgent)
registrationSucceeded
in interface AgentListClient
inLocalAgent
- agent enregistré avec succès.public final void registrationFailed(LocalAgent inLocalAgent)
registrationFailed
in interface AgentListClient
inLocalAgent
- agent qui n'a pas pu être enregistré.public final void listChanged()
listChanged
in interface AgentListClient
public static void main(String[] inArgs) throws ServerException
inArgs
- arguments du programme sur la ligne de commande
(le premier est le chemin vers le fichier de
configuration, les autres sont ignorés).
ServerException
- si un problème est survenu dans la création du
serveur
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |