mirror of
https://gitee.com/BDWare/consistency-sdk
synced 2025-01-10 01:44:11 +00:00
debug raft
This commit is contained in:
parent
bd6135b6ea
commit
11fb2c3ada
@ -68,7 +68,7 @@ public class ConsistencyPluginManager {
|
||||
URL[] urls = new URL[consistencyPluginURLs.length];
|
||||
for (int i = 0; i < consistencyPluginURLs.length; i++) {
|
||||
try {
|
||||
if(consistencyPluginURLs[i].endsWith(".jar")) {
|
||||
if (consistencyPluginURLs[i].endsWith(".jar")) {
|
||||
urls[i] = new URL("file:" + consistencyPluginURLs[i]);
|
||||
}
|
||||
} catch (MalformedURLException e) {
|
||||
@ -121,7 +121,7 @@ public class ConsistencyPluginManager {
|
||||
Class<?> clazz = urlClassLoader.loadClass(className);
|
||||
// ContractExecutorFactory子类 && 非抽象类
|
||||
if (ContractExecutorFactory.class.isAssignableFrom(clazz) && !Modifier.isAbstract(clazz.getModifiers())) {
|
||||
ContractExecutorFactory factory = (ContractExecutorFactory)(clazz.newInstance());
|
||||
ContractExecutorFactory factory = (ContractExecutorFactory) (clazz.newInstance());
|
||||
factoriesMap.put(factory.getExecutorName(), factory);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
@ -170,6 +170,9 @@ public class ConsistencyPluginManager {
|
||||
case RequestAllResponseFirst:
|
||||
name = "RARF";
|
||||
break;
|
||||
case RAFT:
|
||||
name = "RAFT";
|
||||
break;
|
||||
}
|
||||
return createContractExecutor(name, args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user