Mercurial > hg > Database > jungle-network
changeset 37:ed4c2e6ab5d1
modified DoubleJungleManager
author | one |
---|---|
date | Mon, 08 Jul 2013 20:10:47 +0900 |
parents | 1255ae20d52e |
children | d8ee57a1c2c6 |
files | .classpath src/test/alice/jungle/codesegment/CopyAttrJungle2.java src/test/alice/jungle/codesegment/DoubleJungleManager.java |
diffstat | 3 files changed, 3 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/.classpath Thu Jul 04 20:04:12 2013 +0900 +++ b/.classpath Mon Jul 08 20:10:47 2013 +0900 @@ -8,5 +8,8 @@ <classpathentry kind="lib" path="lib/guava-12.0-sources.jar"/> <classpathentry kind="lib" path="lib/guava-12.0.jar"/> <classpathentry kind="lib" path="/jungle-core/target/jungle-core-0.0.1-SNAPSHOT.jar"/> + <classpathentry kind="lib" path="lib/jetty-6.1.26-sources.jar"/> + <classpathentry kind="lib" path="lib/jetty-6.1.26.jar"/> + <classpathentry kind="lib" path="lib/servlet-api-2.5.jar"/> <classpathentry kind="output" path="bin"/> </classpath>
--- a/src/test/alice/jungle/codesegment/CopyAttrJungle2.java Thu Jul 04 20:04:12 2013 +0900 +++ b/src/test/alice/jungle/codesegment/CopyAttrJungle2.java Mon Jul 08 20:10:47 2013 +0900 @@ -50,9 +50,6 @@ editor.success(); new CheckDoubleTreeAttr(); ods.update("count", count); - - - } }
--- a/src/test/alice/jungle/codesegment/DoubleJungleManager.java Thu Jul 04 20:04:12 2013 +0900 +++ b/src/test/alice/jungle/codesegment/DoubleJungleManager.java Mon Jul 08 20:10:47 2013 +0900 @@ -55,28 +55,18 @@ NodePath path = op.getNodePath(); NodeOperation nodeOp = op.getNodeOperation(); Command c = nodeOp.getCommand(); - String str = ""; String key = ""; switch (c) { case PUT_ATTRIBUTE: key = nodeOp.getKey(); ByteBuffer value = nodeOp.getValue(); - if (value.limit() < 100) { - str = String.format("key:%s,value:%s", key, - new String(value.array())); - } else { - str = String.format("key:%s,value:%d", key, value.limit()); - } return editor.putAttribute(path, key, value); case DELETE_ATTRIBUTE: key = nodeOp.getKey(); - str = String.format("key:%s", nodeOp.getKey()); return editor.deleteAttribute(path, key); case APPEND_CHILD: - str = String.format("pos:%d", nodeOp.getPosition()); return editor.addNewChildAt(path, 0); case DELETE_CHILD: - str = String.format("pos:%d", nodeOp.getPosition()); return editor.deleteChildAt(path, 0); } return null;