| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 
 |  
ihm.ajouteExtractInfos("\nCréation des flux\n");
                fluxErreur=new DataInputStream(p.getErrorStream());
                fluxEntree=new DataInputStream(p.getInputStream());
                fluxSortie=new DataOutputStream(p.getOutputStream());
 
                // Fermeture des flux entrant d'erreur et sortant (pt de vue ce process)
                ihm.ajouteExtractInfos("\nFermeture des flux\n");
                fluxErreur.close();
                fluxSortie.close();
 
                // Création du thread de supervision
                ihm.ajouteExtractInfos("\nCréation de la supervision\n");
                ecouteFluxEntree=new EcouteFluxEntree(fluxEntree,ihm);
                ihm.ajouteExtractInfos("\nLancement supervision\n");
                ecouteFluxEntree.lanceSupervision();
 
                // Attend la fin du processus vision
                ihm.ajouteExtractInfos("\nAttente de la fin de la vision\n");
                int valFinProcessusVision=p.waitFor();
                ihm.ajouteExtractInfos("Code de retour: "+Integer.toString(valFinProcessusVision)+"\n");
 
                ihm.ajouteExtractInfos("\nArret de la supervision\n");
                ecouteFluxEntree.stoppeSupervision(); | 
Partager