接口 Config<L extends RequestProcessor>
- 所有超级接口:
Serializable
Consistent 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(Set<String> members)members join.get the cluster node information.get local node address info.get configuration content by key.getValOfDefault(String key, String defaultVal)get configuration content by key, if not found, use default-val.voidremoveMembers(Set<String> members)members leave.voidsetMembers(String self, Set<String> members)Set the cluster node information to initialize,like [ip:port, ip:port, ip:port].voidAdd configuration content.
-
方法详细资料
-
setMembers
Set the cluster node information to initialize,like [ip:port, ip:port, ip:port].- 参数:
self- local node address information, ip:portmembers-Set
-
addMembers
members join.- 参数:
members-Set
-
removeMembers
members leave.- 参数:
members-Set
-
getSelfMember
String getSelfMember()get local node address info.- 返回:
- address
-
getMembers
get the cluster node information.- 返回:
- members info, like [ip:port, ip:port, ip:port]
-
setVal
Add configuration content.- 参数:
key- config keyvalue- config value
-
getVal
get configuration content by key.- 参数:
key- config key- 返回:
- config value
-
getValOfDefault
get configuration content by key, if not found, use default-val.- 参数:
key- config keydefaultVal- default value- 返回:
- config value
-