From 9b558341bc348212a2b80170cdc76fa9a3b5a334 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 30 Apr 2019 23:10:01 +0200 Subject: [PATCH] update nikiroo-utils, better rec/send remote server info --- libs/nikiroo-utils-4.7.2-dev-sources.jar | Bin 319591 -> 320004 bytes .../fanfix/library/RemoteLibraryServer.java | 25 +++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/libs/nikiroo-utils-4.7.2-dev-sources.jar b/libs/nikiroo-utils-4.7.2-dev-sources.jar index 1e960e954c8d031ad642643fbb52d1058330cb0a..604c7611fbf7593d2b6a9e9c246fb48e8ca33fd4 100644 GIT binary patch delta 8643 zcmZ9RWmr_**T!LH=XJ02+|=Syu*V} z{9ir{*ZsTKT6>+d_leo_y@MdMhX7Me2@D}bKt)AG5N%4r6b6Yl1u2FpBGxN{)~Z3g zO#u6QkPP&N(-I$HKpGUOpV@sSHKv4zbA8d2*=IUc4#c(95|k28q0`&ZNBq09$wHYw(m$J4a#aoqWAQzAO8i2q4*O3pekR0V zy9SyYg!euZIsAL7LJHnWyp^yl|MWB21~)7yr$U=lX7FyZvYtp0NQ&BuaeOj0Yeu;U z71uxUHIv{`>13le_gm~*9>YAGxNsVAI(j*u7wX8r+@)kA{WS`BI+Eyu2SbbpkZMP^ z!l7b$1U*}#Yz6+(_URUQxX6fOzc^&|*@kQ$vRDtA9tx;G(i|Zj9T}0^2|SL)4@VYK z&^}^+QX-3^m^O{7_^1%cid&g%umZ%Q!=GuCv*~MwYYj5EIC!Zu;42W2+6tu zJx9e8GNC$ZrMEKVq2m?puZ?cPgC^*~Ih;gCr*o`GVP)nxp z^3nLXiO6b=)aO!bh_aMSWnQg69!1k2$@EDpl8z7y+YE8##xk0(-$AjHzMpY@HCbVmpMXZrJlvWMw@KEjUk+N`*ML$}?Jf+@~j|iZEf!a{rN9 z(Oi|yhnH=(7KzM#IYXEz7{mL#!A^m`Cv?;V z$WbkUJ{W7M?1gC)c5ksY6|^UaO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;N&O3t$-tWhS%iB#$@~k$y?H@b`VR!&2T_2m zMR+H}uzVo<_u`A)gTQu$=S*w~9^&V}Ns9ygUZd`@yW_tcCzs%nC0+g!Y=CVU?z7_d zKpd9AY#2T`^R9|;`Z58`?m{1jyMk3a$2 diff --git a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java index 08937462..62548d67 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java @@ -4,7 +4,9 @@ import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.Date; +import java.util.HashMap; import java.util.List; +import java.util.Map; import javax.net.ssl.SSLException; @@ -50,6 +52,9 @@ import be.nikiroo.utils.serial.server.ServerObject; * @author niki */ public class RemoteLibraryServer extends ServerObject { + private Map commands = new HashMap(); + private Map times = new HashMap(); + /** * Create a new remote server (will not be active until * {@link RemoteLibraryServer#start()} is called). @@ -68,8 +73,8 @@ public class RemoteLibraryServer extends ServerObject { } @Override - protected Object onRequest(ConnectActionServerObject action, Object data) - throws Exception { + protected Object onRequest(ConnectActionServerObject action, Object data, + long id) throws Exception { long start = new Date().getTime(); String command = ""; @@ -94,14 +99,22 @@ public class RemoteLibraryServer extends ServerObject { Object rep = doRequest(action, command, args); - String rec = StringUtils.formatNumber(action.getBytesReceived()) + "b"; - String sent = StringUtils.formatNumber(action.getBytesSent()) + "b"; - System.out.println(String.format("[>%s]: (%s sent, %s rec) in %d ms", - command, sent, rec, (new Date().getTime() - start))); + commands.put(id, command); + times.put(id, (new Date().getTime() - start)); return rep; } + @Override + protected void onRequestDone(long id, long bytesReceived, long bytesSent) { + String rec = StringUtils.formatNumber(bytesReceived) + "b"; + String sent = StringUtils.formatNumber(bytesSent) + "b"; + System.out.println(String.format("[>%s]: (%s sent, %s rec) in %d ms", + commands.get(id), sent, rec, times.get(id))); + commands.remove(id); + times.remove(id); + } + private Object doRequest(ConnectActionServerObject action, String command, Object[] args) throws NoSuchFieldException, NoSuchMethodException, ClassNotFoundException, IOException { -- 2.27.0