diff src/jungle/test/bbs/NetworkJungleBulletinBoard.java @ 49:a89c3539bff2

modified LogUpdateCodeSegment
author one
date Fri, 12 Jul 2013 19:56:12 +0900
parents 686057add8a4
children 459b50f1a6ee
line wrap: on
line diff
--- a/src/jungle/test/bbs/NetworkJungleBulletinBoard.java	Fri Jul 12 11:54:07 2013 +0900
+++ b/src/jungle/test/bbs/NetworkJungleBulletinBoard.java	Fri Jul 12 19:56:12 2013 +0900
@@ -80,7 +80,7 @@
 		}
 		/* Put DataSegment */
 		try {
-			putTreeOperationLog((NetworkDefaultJungleTreeEditor)result.b());
+			putTreeOperationLog((NetworkDefaultJungleTreeEditor)editor);
 		} catch (IOException e1) {
 			e1.printStackTrace();
 		}
@@ -110,7 +110,7 @@
 		editor.success();
 		/* Put DataSegment */
 		try {
-			putTreeOperationLog((NetworkDefaultJungleTreeEditor)result.b());
+			putTreeOperationLog((NetworkDefaultJungleTreeEditor)editor);
 		} catch (IOException e1) {
 			e1.printStackTrace();
 		}
@@ -221,17 +221,17 @@
 	private void putTreeOperationLog(NetworkDefaultJungleTreeEditor editor) throws IOException {
 		String uuid = editor.getID();
 		String treeName = editor.getTreeName();
-		String serverName = editor.getServerName();
+		String updaterName = editor.getUpdaterName();
 		long revision = Long.parseLong(editor.getRevision());
 		Iterable<TreeOperation> log = editor.getTreeOperationLog();
-		putDataSegment(uuid, treeName, serverName, log, revision);
+		putDataSegment(uuid, treeName, updaterName, log, revision);
 	}
 	
-	private void putDataSegment(String _uuid, String _treeName, String _serverName, Iterable<TreeOperation> _log, long nextRevision) throws IOException {
+	private void putDataSegment(String _uuid, String _treeName, String _updaterName, Iterable<TreeOperation> _log, long nextRevision) throws IOException {
 		DefaultTreeOperationLogContainer container = new DefaultTreeOperationLogContainer();
 		container.setTreeName(_treeName);
 		container.setUUID(_uuid);
-		container.setServerName(_serverName);
+		container.setUpdaterName(_updaterName);
 		container.setRevision(nextRevision);
 		container.unconvert(_log);
 		NullCodeSegmentForUpdate cs = new NullCodeSegmentForUpdate();