diff --git a/src/main/entry/org/bdware/sc/bean/ContractDesp.java b/src/main/entry/org/bdware/sc/bean/ContractDesp.java index cf6e228..21a4539 100644 --- a/src/main/entry/org/bdware/sc/bean/ContractDesp.java +++ b/src/main/entry/org/bdware/sc/bean/ContractDesp.java @@ -4,6 +4,7 @@ import org.bdware.sc.event.REvent; import org.bdware.sc.node.AnnotationNode; import org.bdware.sc.node.YjsType; +import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; @@ -12,7 +13,7 @@ public class ContractDesp { public String contractID; public String contractName; public Map events; - public List exportedFunctions; + public Collection exportedFunctions; public ContractExecType type; public YjsType yjsType; public List annotations; diff --git a/src/main/entry/org/bdware/sc/bean/ContractExecType.java b/src/main/entry/org/bdware/sc/bean/ContractExecType.java index 620e263..d6128c6 100644 --- a/src/main/entry/org/bdware/sc/bean/ContractExecType.java +++ b/src/main/entry/org/bdware/sc/bean/ContractExecType.java @@ -9,7 +9,8 @@ public enum ContractExecType implements Serializable { RequestAllResponseFirst, RequestAllResponseHalf, RequestAllResponseAll, - Sharding;//分片执行模式 + Sharding,//分片执行模式 + SelfAdaptiveSharding; // self-adaptive sharding public static ContractExecType getContractTypeByInt(int i) { ContractExecType[] values = ContractExecType.values(); @@ -25,10 +26,6 @@ public enum ContractExecType implements Serializable { case RequestOnce: case ResponseOnce: return false; - case RequestAllResponseAll: - case RequestAllResponseFirst: - case RequestAllResponseHalf: - case Sharding: default: break; }