类 NotifyService


  • public class NotifyService
    extends java.lang.Object
    Service to notify other nodes to get the latest data. Monitor data change events and notify all servers.
    作者:
    jiuRen
    • 构造器概要

      构造器 
      限定符 构造器 说明
      protected NotifyService()  
        NotifyService​(com.alibaba.nacos.core.cluster.ServerMemberManager memberManager)  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static com.alibaba.nacos.common.model.RestResult<java.lang.String> invokeURL​(java.lang.String url, java.util.List<java.lang.String> headers, java.lang.String encoding)
      Invoke http get request.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • NOTIFY_HEADER_LAST_MODIFIED

        public static final java.lang.String NOTIFY_HEADER_LAST_MODIFIED
        In order to facilitate the system beta, without changing the notify.do interface, the new lastModifed parameter is passed through the Http header.
        另请参阅:
        常量字段值
      • NOTIFY_HEADER_OP_HANDLE_IP

        public static final java.lang.String NOTIFY_HEADER_OP_HANDLE_IP
        另请参阅:
        常量字段值
      • notifyTaskManager

        private TaskManager notifyTaskManager
    • 构造器详细资料

      • NotifyService

        @Autowired
        public NotifyService​(com.alibaba.nacos.core.cluster.ServerMemberManager memberManager)
      • NotifyService

        protected NotifyService()
    • 方法详细资料

      • invokeURL

        public static com.alibaba.nacos.common.model.RestResult<java.lang.String> invokeURL​(java.lang.String url,
                                                                                            java.util.List<java.lang.String> headers,
                                                                                            java.lang.String encoding)
                                                                                     throws java.lang.Exception
        Invoke http get request.
        参数:
        url - url
        headers - headers
        encoding - encoding
        返回:
        RestResult
        抛出:
        java.lang.Exception - throw Exception