mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
feat support Fork annotation
This commit is contained in:
parent
ac62f7bbf7
commit
35e39f3dd9
@ -1,7 +1,6 @@
|
|||||||
package org.bdware.sc.compiler.ap;
|
package org.bdware.sc.compiler.ap;
|
||||||
|
|
||||||
import org.bdware.sc.bean.ForkInfo;
|
import org.bdware.sc.bean.ForkInfo;
|
||||||
import org.bdware.sc.bean.RouteInfo;
|
|
||||||
import org.bdware.sc.compiler.AnnotationProcessor;
|
import org.bdware.sc.compiler.AnnotationProcessor;
|
||||||
import org.bdware.sc.node.AnnotationNode;
|
import org.bdware.sc.node.AnnotationNode;
|
||||||
import org.bdware.sc.node.ContractNode;
|
import org.bdware.sc.node.ContractNode;
|
||||||
|
@ -98,7 +98,8 @@ public class DoipClusterServer extends DoipServerImpl {
|
|||||||
|
|
||||||
// 维护RouteInfo,将RouteInfo和doipOperationName的映射关系,以及所有Router中用得到的函数都维护好
|
// 维护RouteInfo,将RouteInfo和doipOperationName的映射关系,以及所有Router中用得到的函数都维护好
|
||||||
// TODO 移除这部分逻辑?
|
// TODO 移除这部分逻辑?
|
||||||
cn.maintainRouteJoinInfo(methodRouteInfoMap, methodJoinInfoMap, methodForkInfoMap, functions);
|
cn.maintainRouteJoinInfo(methodRouteInfoMap, methodJoinInfoMap, methodForkInfoMap,
|
||||||
|
functions);
|
||||||
if (clusterInfo != null)
|
if (clusterInfo != null)
|
||||||
repoHandleValues.add("clusterInfo", clusterInfo);
|
repoHandleValues.add("clusterInfo", clusterInfo);
|
||||||
if (functions.size() > 0)
|
if (functions.size() > 0)
|
||||||
|
@ -7,10 +7,10 @@ public class DataBaseProcess {
|
|||||||
private static RocksDBUtil db;
|
private static RocksDBUtil db;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
db = RocksDBUtil.loadDB("abc",false);
|
db = RocksDBUtil.loadDB("abc", false);
|
||||||
RocksIterator iter = db.newIterator();
|
RocksIterator iter = db.newIterator();
|
||||||
iter.seekToFirst();;
|
iter.seekToFirst();;
|
||||||
for (;iter.isValid();){
|
for (; iter.isValid();) {
|
||||||
db.getNext(iter);
|
db.getNext(iter);
|
||||||
}
|
}
|
||||||
// long timeJava;
|
// long timeJava;
|
||||||
|
Loading…
Reference in New Issue
Block a user