From 11fb2c3ada956a99eb0fcd777d02b9ac31f2b37f Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Fri, 27 May 2022 17:48:24 +0800 Subject: [PATCH] debug raft --- .../bdware/sdk/consistency/ConsistencyPluginManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bdware/sdk/consistency/ConsistencyPluginManager.java b/src/main/java/org/bdware/sdk/consistency/ConsistencyPluginManager.java index 44d10d6..3e606f0 100644 --- a/src/main/java/org/bdware/sdk/consistency/ConsistencyPluginManager.java +++ b/src/main/java/org/bdware/sdk/consistency/ConsistencyPluginManager.java @@ -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); }