接口 Config<L extends RequestProcessor>
-
- 所有超级接口:
java.io.Serializable
public interface Config<L extends RequestProcessor> extends java.io.SerializableConsistent protocol related configuration objects.RequestProcessor: The consistency protocol provides services for all businesses, but each business only cares about the transaction information belonging to that business, and the transaction processing between the various services should not block each other. Therefore, the LogProcessor is abstracted to implement the parallel processing of transactions of different services. Corresponding LogProcessor sub-interface: LogProcessor4AP or LogProcessor4CP, different consistency protocols will actively discover the corresponding LogProcessor- 作者:
- liaochuntao
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidaddMembers(java.util.Set<java.lang.String> members)members join.java.util.Set<java.lang.String>getMembers()get the cluster node information.java.lang.StringgetSelfMember()get local node address info.java.lang.StringgetVal(java.lang.String key)get configuration content by key.java.lang.StringgetValOfDefault(java.lang.String key, java.lang.String defaultVal)get configuration content by key, if not found, use default-val.voidremoveMembers(java.util.Set<java.lang.String> members)members leave.voidsetMembers(java.lang.String self, java.util.Set<java.lang.String> members)Set the cluster node information to initialize,like [ip:port, ip:port, ip:port].voidsetVal(java.lang.String key, java.lang.String value)Add configuration content.
-
-
-
方法详细资料
-
setMembers
void setMembers(java.lang.String self, java.util.Set<java.lang.String> members)Set the cluster node information to initialize,like [ip:port, ip:port, ip:port].- 参数:
self- local node address information, ip:portmembers-Set
-
addMembers
void addMembers(java.util.Set<java.lang.String> members)
members join.- 参数:
members-Set
-
removeMembers
void removeMembers(java.util.Set<java.lang.String> members)
members leave.- 参数:
members-Set
-
getSelfMember
java.lang.String getSelfMember()
get local node address info.- 返回:
- address
-
getMembers
java.util.Set<java.lang.String> getMembers()
get the cluster node information.- 返回:
- members info, like [ip:port, ip:port, ip:port]
-
setVal
void setVal(java.lang.String key, java.lang.String value)Add configuration content.- 参数:
key- config keyvalue- config value
-
getVal
java.lang.String getVal(java.lang.String key)
get configuration content by key.- 参数:
key- config key- 返回:
- config value
-
getValOfDefault
java.lang.String getValOfDefault(java.lang.String key, java.lang.String defaultVal)get configuration content by key, if not found, use default-val.- 参数:
key- config keydefaultVal- default value- 返回:
- config value
-
-