comparison src/alice/jungle/datasegment/store/operations/DefaultTreeOperationLogContainer.java @ 43:12d87bb4b84d

modified LogUpdateCodeSegment
author one
date Fri, 12 Jul 2013 09:13:54 +0900
parents 1255ae20d52e
children a89c3539bff2
comparison
equal deleted inserted replaced
42:4419ac56cbfd 43:12d87bb4b84d
25 public class DefaultTreeOperationLogContainer { 25 public class DefaultTreeOperationLogContainer {
26 26
27 Value logValue; 27 Value logValue;
28 String treeName; 28 String treeName;
29 String uuid; 29 String uuid;
30 String serverName;
31 long revision;
30 32
31 public static void main(String[] args) throws IOException { 33 public static void main(String[] args) throws IOException {
32 String key = "hoge"; 34 String key = "hoge";
33 ByteBuffer b = ByteBuffer.wrap("messagepack value".getBytes()); 35 ByteBuffer b = ByteBuffer.wrap("messagepack value".getBytes());
34 PutAttributeOperation putOp = new PutAttributeOperation(key, b); 36 PutAttributeOperation putOp = new PutAttributeOperation(key, b);
96 98
97 public void setTreeName(String _treeName) { 99 public void setTreeName(String _treeName) {
98 treeName = _treeName; 100 treeName = _treeName;
99 } 101 }
100 102
103 public String getTreeName() {
104 return treeName;
105 }
106
101 public void setUUID(String _uuid) { 107 public void setUUID(String _uuid) {
102 uuid = _uuid; 108 uuid = _uuid;
103 } 109 }
104 110
105 public String getUUID() { 111 public String getUUID() {
106 return uuid; 112 return uuid;
107 } 113 }
114
115 public void setServerName(String _serverName) {
116 serverName = _serverName;
117 }
108 118
109 public String getTreeName() { 119 public String getServerName() {
110 return treeName; 120 return serverName;
121 }
122
123 public void setRevision(long _revision) {
124 revision = _revision;
125 }
126
127 public long getRevision() {
128 return revision;
111 } 129 }
112 130
113 public void unconvert(Iterable<TreeOperation> _log) throws IOException { 131 public void unconvert(Iterable<TreeOperation> _log) throws IOException {
114 MessagePack msgpack = new MessagePack(); 132 MessagePack msgpack = new MessagePack();
115 List<Value> list = new LinkedList<Value>(); 133 List<Value> list = new LinkedList<Value>();