接口 Config<L extends RequestProcessor>

所有超级接口:
Serializable

public interface Config<L extends RequestProcessor> extends 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
  • 方法详细资料

    • setMembers

      void setMembers(String self, Set<String> members)
      Set the cluster node information to initialize,like [ip:port, ip:port, ip:port].
      参数:
      self - local node address information, ip:port
      members - Set
    • addMembers

      void addMembers(Set<String> members)
      members join.
      参数:
      members - Set
    • removeMembers

      void removeMembers(Set<String> members)
      members leave.
      参数:
      members - Set
    • getSelfMember

      String getSelfMember()
      get local node address info.
      返回:
      address
    • getMembers

      Set<String> getMembers()
      get the cluster node information.
      返回:
      members info, like [ip:port, ip:port, ip:port]
    • setVal

      void setVal(String key, String value)
      Add configuration content.
      参数:
      key - config key
      value - config value
    • getVal

      String getVal(String key)
      get configuration content by key.
      参数:
      key - config key
      返回:
      config value
    • getValOfDefault

      String getValOfDefault(String key, String defaultVal)
      get configuration content by key, if not found, use default-val.
      参数:
      key - config key
      defaultVal - default value
      返回:
      config value