Mercurial > hg > Members > tatsuki > bench > jungle-core
annotate src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/logger/LoggingNode.java @ 108:69bbf08894aa
move
author | one |
---|---|
date | Fri, 12 Sep 2014 21:53:52 +0900 |
parents | bed3afd5c2e2 |
children | cf17350a2415 |
rev | line source |
---|---|
92 | 1 package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger; |
2 | |
103 | 3 import fj.data.List; |
4 import fj.data.TreeMap; | |
92 | 5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode; |
103 | 6 import jp.ac.u_ryukyu.ie.cr.tatsuki.jungle.store.index.Logging; |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
7 |
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
8 |
103 | 9 public class LoggingNode implements Logging |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
10 { |
92 | 11 public LoggingNode(TreeNode _wrap) |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
12 { |
50 | 13 this(_wrap,new DefaultOperationLog()); |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
14 } |
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
15 |
92 | 16 public LoggingNode(TreeNode _wrap,OperationLog _log) |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
17 { |
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
18 wrap = _wrap; |
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
19 log = _log; |
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
20 } |
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
21 |
92 | 22 private final TreeNode wrap; |
51 | 23 private final OperationLog log; |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
24 |
103 | 25 @Override |
92 | 26 public LoggingAttributes getAttributes() |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
27 { |
92 | 28 return new LoggingAttributes(wrap,log); |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
29 } |
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
30 |
103 | 31 @Override |
92 | 32 public LoggingChildren getChildren() |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
33 { |
92 | 34 return new LoggingChildren(wrap,log); |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
35 } |
22 | 36 |
103 | 37 @Override |
53 | 38 public OperationLog getOperationLog() |
22 | 39 { |
40 return log; | |
41 } | |
29 | 42 |
103 | 43 @Override |
92 | 44 public TreeNode getWrap() |
29 | 45 { |
46 return wrap; | |
47 } | |
103 | 48 |
49 @Override | |
108 | 50 public TreeMap<String,TreeMap<String, List<TreeNode>>> getIndex() { |
103 | 51 return null; |
52 } | |
21
848f73545c4d
add LoggingNode , LoggingAttributes , LoggingChildren , Logger
Shoshi TAMAKI
parents:
diff
changeset
|
53 } |