From d7b66f092f2128dfc88e82b137f07393eac59c4f Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sat, 26 Feb 2022 12:42:13 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20event=20qui=20permet=20aux=20StorProces?= =?UTF-8?q?sor=20de=20pr=C3=A9ciser=20qu'ils=20sont=20disponibles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/lightcontainer/domains/StoreProcessor.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/lightcontainer/domains/StoreProcessor.java b/app/src/main/java/lightcontainer/domains/StoreProcessor.java index fb8ea2c..fc4f721 100644 --- a/app/src/main/java/lightcontainer/domains/StoreProcessor.java +++ b/app/src/main/java/lightcontainer/domains/StoreProcessor.java @@ -67,12 +67,18 @@ public class StoreProcessor implements Runnable, AutoCloseable { public void run() { while (true) { try { + // Envoie donnée au StoreBackEnd String command = this.reader.readLine(); // TODO gestion de la réception de commandes, fichier, ... if (command != null) System.out.println("StoreBackEnd: " + command); + + // Réception donnée du StoreBackEnd } catch (IOException e) { e.printStackTrace(); } + + // Alerter le FileFrontEnd que ce store processor est disponible pour gérer de nouvelle demande + fileFrontEnd.onStoreAvailable(this); } }