类 NotifyService
- java.lang.Object
-
- com.alibaba.nacos.config.server.service.notify.NotifyService
-
public class NotifyService extends java.lang.ObjectService to notify other nodes to get the latest data. Monitor data change events and notify all servers.- 作者:
- jiuRen
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringNOTIFY_HEADER_LAST_MODIFIEDIn order to facilitate the system beta, without changing the notify.do interface, the new lastModifed parameter is passed through the Http header.static java.lang.StringNOTIFY_HEADER_OP_HANDLE_IPprivate TaskManagernotifyTaskManager
-
构造器概要
构造器 限定符 构造器 说明 protectedNotifyService()NotifyService(com.alibaba.nacos.core.cluster.ServerMemberManager memberManager)
-
-
-
字段详细资料
-
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
-
-
方法详细资料
-
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.ExceptionInvoke http get request.- 参数:
url- urlheaders- headersencoding- encoding- 返回:
RestResult- 抛出:
java.lang.Exception- throw Exception
-
-