Mercurial > hg > Members > shoshi > jungle > jungle-core
changeset 356:97a09cc105d9
add Alice.jar
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 11 Oct 2017 17:15:33 +0900 |
parents | 173b053379e0 |
children | f9346cd6ef92 |
files | build/libs/Alice.jar scripts/LogupdateTest.sh scripts/killLogupdate.sh src/test/java/jp/ac/u_ryukyu/ie/cr/jungle/bbs/BBSTest.java |
diffstat | 4 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/LogupdateTest.sh Tue Oct 10 20:06:27 2017 +0900 +++ b/scripts/LogupdateTest.sh Wed Oct 11 17:15:33 2017 +0900 @@ -1,4 +1,4 @@ -java -cp build/libs/logupdateTest-1.1.jar alice.topology.manager.TopologyManager -host localhost -p 10000 -port 10001 --noKeepAlive & +java -cp build/libs/Alice.jar alice.topology.manager.TopologyManager -host localhost -p 10000 -port 10001 --noKeepAlive & sleep 3 java -jar build/libs/logupdateTest-1.1.jar -host localhost -p 10003 -port 10000 --noKeepAlive & java -jar build/libs/logupdateTest-1.1.jar -host localhost -p 10001 -port 10000 --noKeepAlive &
--- a/scripts/killLogupdate.sh Tue Oct 10 20:06:27 2017 +0900 +++ b/scripts/killLogupdate.sh Wed Oct 11 17:15:33 2017 +0900 @@ -1,3 +1,4 @@ #!/bin/sh -ps agx | grep logupdate | grep -v grep | grep -v killLogupdate | perl -le 'while (<>){if (/(\d+)/){print "kill -9 $1"}}' | sh +ps agx | grep logupdate | grep -v grep | grep -v killLogupdate | perl -le 'while (<>){if (/(\d+)/){print "kill -9 $1"}}' | sh & +ps agx | grep TopologyManager | grep -v grep | grep -v killLogupdate | perl -le 'while (<>){if (/(\d+)/){print "kill -9 $1"}}' | sh
--- a/src/test/java/jp/ac/u_ryukyu/ie/cr/jungle/bbs/BBSTest.java Tue Oct 10 20:06:27 2017 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/jungle/bbs/BBSTest.java Wed Oct 11 17:15:33 2017 +0900 @@ -122,15 +122,13 @@ String key = it.next(); System.out.print( key + " = "); try { - /*if (key.equals("timestamp")) { - ByteBuffer buffer = attr.get(key); - long timestamp = buffer.getLong(); + if (key.equals("timestamp")) { + long timestamp = ByteBuffer.wrap(attr.get(key).array()).getLong(); System.out.write((int)timestamp); } else { System.out.write(attr.get(key).array()); - }*/ - System.out.write(attr.get(key).array()); + } System.out.print(" "); } catch (IOException e) { e.printStackTrace();