Mercurial > hg > Database > Alice
changeset 598:35f83005271e dispose
add comment
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 10 Feb 2016 20:55:51 +0900 |
parents | f5322e53bbf6 |
children | 3284428f525e |
files | src/main/java/alice/test/codesegment/remote/compress/TestCompress.java src/main/java/alice/test/codesegment/remote/compress/TestRemoteCompress.java src/main/java/alice/test/codesegment/remote/compress/TestRemoteCompressReceive.java |
diffstat | 3 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/alice/test/codesegment/remote/compress/TestCompress.java Wed Feb 10 20:32:25 2016 +0900 +++ b/src/main/java/alice/test/codesegment/remote/compress/TestCompress.java Wed Feb 10 20:55:51 2016 +0900 @@ -25,6 +25,7 @@ if (num == 100){ long time = System.currentTimeMillis(); ods.update("time", time); + System.out.println("zipped size :" + info.getReceiveData().getZippedDataSize()); } else if (num == 0) { long time = System.currentTimeMillis();
--- a/src/main/java/alice/test/codesegment/remote/compress/TestRemoteCompress.java Wed Feb 10 20:32:25 2016 +0900 +++ b/src/main/java/alice/test/codesegment/remote/compress/TestRemoteCompress.java Wed Feb 10 20:55:51 2016 +0900 @@ -7,6 +7,10 @@ /** * Created by e125769 on 2/9/16. + * + * 圧縮リングテストのクライアント側。リモートにデータを投げて送り返されてを100回行ってトータルの通信時間を表示する。 + * サーバ側のTestRemoteCompressReceiveと組み合わせて使う。 + * 圧縮するかしないかはStartTestCompress書き換えて下さい… */ public class TestRemoteCompress { public static void main(String args[]) {
--- a/src/main/java/alice/test/codesegment/remote/compress/TestRemoteCompressReceive.java Wed Feb 10 20:32:25 2016 +0900 +++ b/src/main/java/alice/test/codesegment/remote/compress/TestRemoteCompressReceive.java Wed Feb 10 20:55:51 2016 +0900 @@ -5,6 +5,8 @@ /** * Created by e125769 on 2/9/16. + * + * TestRemoteCompressのサーバ側。データを受け取ってクライアントに返すだけ。 */ public class TestRemoteCompressReceive { public static void main(String args[]) {