WO2019169762A1 - 电子装置、zk节点信息通知方法、系统及存储介质 - Google Patents

电子装置、zk节点信息通知方法、系统及存储介质 Download PDF

Info

Publication number
WO2019169762A1
WO2019169762A1 PCT/CN2018/089450 CN2018089450W WO2019169762A1 WO 2019169762 A1 WO2019169762 A1 WO 2019169762A1 CN 2018089450 W CN2018089450 W CN 2018089450W WO 2019169762 A1 WO2019169762 A1 WO 2019169762A1
Authority
WO
WIPO (PCT)
Prior art keywords
node information
node
information
instance
update
Prior art date
Application number
PCT/CN2018/089450
Other languages
English (en)
French (fr)
Inventor
江亮
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019169762A1 publication Critical patent/WO2019169762A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Definitions

  • the present application relates to the field of data interaction services, and in particular, to an electronic device, a zk node information notification method, a system, and a storage medium.
  • Zk is a distributed, open source distributed application coordination service system that is the administrator of the cluster. If the enterprise needs to share the node change data monitored by zk to other management platforms, such as the service management management platform (ESG-ADMIN), it is necessary to establish a long connection between the other management platform and the subdirectory nodes corresponding to the respective file systems of zk. And obtaining the changed node information by continuously sending a request for acquiring the change of the node information to each sub-directory node of zk.
  • ESG-ADMIN service management management platform
  • the present application provides an electronic device, an Internet service system risk warning method, and a storage medium, which can accurately and effectively control the operational risk of the Internet service system.
  • the present application provides an electronic device including a memory and a processor connected to the memory, the processor for executing a zk node information notification program stored on the memory, When the zk node information notification program is executed by the processor, the following steps are implemented:
  • the analyzing step if it is detected that the information of the first node changes, determining the type of change corresponding to the first node information, where the change type includes node creation, node deletion, and node data update;
  • a node information generating step analyzing the first node information according to the determined node analysis rule to generate second node information
  • the present application further provides a zk node information notification method, and the method includes the following steps:
  • the analyzing step if it is detected that the information of the first node changes, determining the type of change corresponding to the first node information, where the change type includes node creation, node deletion, and node data update;
  • a node information generating step analyzing the first node information according to the determined node analysis rule to generate second node information
  • the present application further provides a zk node information notification system, where the ZK node information notification system includes a monitoring module, a determining module, a generating module, and a sending module;
  • a detecting module configured to monitor, in real time or periodically, node information stored in each sub-directory node in the predetermined zk, and if it is detected that the information of the first node changes, determining a type of change corresponding to the first node information;
  • a determining module configured to determine, according to a mapping relationship between the predetermined change type and the node analysis rule, a node analysis rule for analyzing the first node information
  • a generating module configured to analyze the first node information according to the determined node analysis rule to generate second node information
  • a sending module configured to send, to the leader in the zk, an instruction to send the second node information to a predetermined management platform.
  • the present application further provides a computer readable storage medium storing a zk node information notification program, the zk node information notification program being executable by at least one processor, Having the at least one processor perform the following steps:
  • An instruction to send the second node information to a predetermined management platform is sent to the leader in the zk.
  • the electronic device, the zk node information notification method, the system, and the storage medium provided by the present application monitor the node information stored in each sub-directory node in the predetermined zk by real-time or timing; Determining a type of change corresponding to the first node information, determining a node analysis rule for analyzing the first node information according to a mapping relationship between the predetermined change type and the node analysis rule; The node analysis rule analyzes the first node information to generate second node information; and sends an instruction to the leader in the zk to send the second node information to the predetermined management platform.
  • the zk actively sends the changed node information to other platforms, which removes the long connection between other management platforms and zk, saves a lot of resources, and improves the notification efficiency of node changes.
  • FIG. 1 is a schematic diagram of an optional hardware architecture of an electronic device proposed by the present application.
  • FIG. 2 is a schematic diagram of a program module of a zk node information notification procedure in an embodiment of an electronic device of the present application
  • FIG. 3 is a flow chart showing an implementation of a preferred embodiment of the zk node information notification method of the present application.
  • the electronic device 10 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through the communication bus 14. It should be noted that FIG. 1 only shows the electronic device 10 having the components 11-14, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes at least one type of computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static memory.
  • the memory 11 may be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 10.
  • the memory 11 may also be an outsourced storage device of the electronic device 10, such as a plug-in hard disk equipped on the electronic device 10, a smart memory card (SMC), and a secure digital (Secure Digital, SD) ) cards, flash cards, etc.
  • the memory 11 can also include both an internal storage unit of the electronic device 10 and an outsourced storage device thereof.
  • the memory 11 is generally used to store an operating system installed on the electronic device 10 and various types of application software, such as a zk node information notification program. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 12 is typically used to control the overall operation of the electronic device 10.
  • the processor 12 is configured to run program code or processing data stored in the memory 11, such as a running zk node information notification program or the like.
  • the network interface 13 may include a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 10 and other electronic devices.
  • Communication bus 14 is used to implement a communication connection between components 11-13.
  • FIG. 1 shows only the electronic device 10 having the components 11-14 and the zk node information notifier, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the electronic device 10 may further include a user interface (not shown in FIG. 1), and the user interface may include a display, an input unit such as a keyboard, wherein the user interface may further include a standard wired interface, a wireless interface, and the like.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED touch device, or the like. Further, the display may also be referred to as a display screen or display unit for displaying information processed in the electronic device 10 and a user interface for displaying visualizations.
  • a node information generating step analyzing the first node information according to the determined node analysis rule to generate second node information
  • the change type includes node creation, node deletion, and node update
  • the corresponding node information processing rule may be, for example, determining whether the created first node information is complete node information, where, in this embodiment, The complete node information includes: a professional company name, system code information, service code information, instance node code information, and instance data node information; if the created information of the first node is complete node information, the first node is obtained from the first node Obtaining instance data node information in the information, and generating second node information;
  • the corresponding node information processing rule may be, for example, determining whether the deleted first node is an instance node. In this embodiment, if the deleted node is deleted If the node information includes the instance node coding information, the first node information that is deleted is determined as an instance node; if the deleted first node information is an instance node, the instance data node information in the deleted first node information is obtained, and the information is generated. Second node information;
  • the corresponding node information processing rule may be, for example, determining whether the first node information is based on a predetermined update protocol (such as the RELOAD protocol). Updating, if it is determined that the node information is updated based on the predetermined update protocol, acquiring the first time to update the first node information; obtaining all the first generated after the first time from a predetermined database (such as a zkdatabase database) The three-node information is traversed by the third node information to query the complete instance node information, and the instance data node information is obtained from the complete instance node information that is queried, and the second node information is generated.
  • a predetermined update protocol such as the RELOAD protocol
  • the first node information is not based on a predetermined update protocol (such as the RELOAD protocol), determining whether the first node information is an instance node, and determining the first Whether the node information is complete node information; after determining that the first node information is an instance node and is complete node information, obtaining instance data node information from the first node information, and generating second node information.
  • a predetermined update protocol such as the RELOAD protocol
  • the change type corresponding to the first node information is a sub-directory node creation
  • the information of the corresponding sub-directory node is: /PA003/EPCIS_UPC/PA003-EPCIS_UPC-QUERY_POLICY/ PA003-EPCIS_UPC-QUERY_POLICY-IQCD-D0014:81/instance/date
  • PA003 stands for professional company name
  • EPCIS_UPC stands for system code information
  • PA003-EPCIS_UPC-QUERY_POLICY stands for service code information
  • PA003-EPCIS_UPC-QUERY_POLICY-IQCD-D0014: 81 represents instance node coding information
  • Instance represents instance data node information.
  • the first node information that is created is determined to be complete node information
  • the instance data node information recorded under the instance is obtained from the first node information
  • the second node information is generated
  • the generated second node information is put into a predetermined
  • an instruction to send the second node information to the predetermined management platform is sent to the leader in the predetermined zk.
  • the zk system usually has three roles, namely client, follower, and leader.
  • the leader election is a very important function.
  • the election process usually includes assigning a process as an organizer. Tasks are distributed to each node; before the task starts, all nodes do not know who is the leader. When the election algorithm starts executing, each node will eventually get a unique unified node as the leader to execute the task.
  • the leader is responsible for each of the zk systems. Coordination of node transactions and the right to read and write data.
  • the electronic device proposed by the present application monitors the node information stored in each sub-directory node in the predetermined zk by real-time or timing. If the information of the first node is changed, the first node is determined. Corresponding to the type of change that occurs; determining a node analysis rule for analyzing the first node information according to a mapping relationship between the predetermined change type and the node analysis rule; analyzing the first node information according to the determined node analysis rule, Generating second node information; transmitting, to the leader in the zk, an instruction to send the second node information to the predetermined management platform.
  • the zk actively sends the changed node information to other platforms, which removes the long connection between other management platforms and zk, saves a lot of resources, and improves the notification efficiency of node changes.
  • the zk node information notification program of the present application may be described by using a program module having the same function according to different functions implemented by the respective parts.
  • FIG. 2 is a schematic diagram of a program module of a zk node information notification program in an embodiment of the electronic device of the present application.
  • the zk node information notification program may be divided into a monitoring module 201, a determining module 202, a generating module 203, and a sending module 204 according to different functions implemented by the respective parts.
  • the program module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function, and is more suitable than the program to describe the execution process of the zk node information notification program in the electronic device 10.
  • the functions or operational steps implemented by the modules 201-204 are similar to the above, and are not described in detail herein, by way of example, for example:
  • the monitoring module 201 is configured to monitor, in real time or periodically, the node information stored in each sub-directory node in the predetermined zk, and if it is detected that the first node information changes, determine the type of change corresponding to the first node information;
  • the determining module 202 is configured to determine, according to a mapping relationship between the predetermined change type and the node analysis rule, a node analysis rule for analyzing the first node information;
  • the generating module 203 is configured to analyze the first node information according to the determined node analysis rule to generate second node information.
  • the sending module 204 is configured to send, to the leader in the zk, an instruction to send the second node information to a predetermined management platform.
  • the present application also provides a zk node information notification system. It should be noted that the functional functions of the zk node information notification system proposed by the present application are the same as those implemented by the zk node information notification program. Let me repeat.
  • the present application also provides a zk node information notification method.
  • the zk node information notification method includes the following steps:
  • Step S301 real-time or timing monitoring node information stored in each sub-directory node in the predetermined zk, and if it is detected that the first node information changes, determining the type of change corresponding to the first node information;
  • Step S302 determining, according to a mapping relationship between the predetermined change type and the node analysis rule, a node analysis rule for analyzing the first node information
  • Step S303 analyzing the first node information according to the determined node analysis rule to generate second node information.
  • Step S304 sending an instruction to send the second node information to the predetermined management platform to the leader in the zk.
  • the change type includes node creation, node deletion, and node update
  • the corresponding node information processing rule may be, for example, determining whether the created first node information is complete node information, where, in this embodiment, The complete node information includes: a professional company name, system code information, service code information, instance node code information, and instance data node information; if the created information of the first node is complete node information, the first node is obtained from the first node Obtaining instance data node information in the information, and generating second node information;
  • the corresponding node information processing rule may be, for example, determining whether the deleted first node information is an instance node.
  • the first node information includes instance node coding information, and then the deleted first node information is determined as an instance node; if the deleted first node is an instance node, the instance data node information in the deleted first node information is obtained, and generated. Second node information;
  • the corresponding node information processing rule may be, for example, determining whether the first node information is based on a predetermined update protocol (such as the RELOAD protocol). Updating, if it is determined that the node information is updated based on the predetermined update protocol, acquiring the first time to update the first node information; obtaining all the first generated after the first time from a predetermined database (such as a zkdatabase database) The three-node information is traversed by the third node information to query the complete instance node information, and the instance data node information is obtained from the complete instance node information that is queried, and the second node information is generated.
  • a predetermined update protocol such as the RELOAD protocol
  • the first node information is not based on a predetermined update protocol (such as the RELOAD protocol), determining whether the first node information is an instance node, and determining the first Whether the node information is complete node information; after determining that the first node information is an instance node and is complete node information, obtaining instance data node information from the first node information, and generating second node information.
  • a predetermined update protocol such as the RELOAD protocol
  • the change type corresponding to the first node information is a sub-directory node creation
  • the information of the corresponding sub-directory node is: /PA003/EPCIS_UPC/PA003-EPCIS_UPC-QUERY_POLICY/ PA003-EPCIS_UPC-QUERY_POLICY-IQCD-D0014:81/instance/date
  • PA003 stands for professional company name
  • EPCIS_UPC stands for system code information
  • PA003-EPCIS_UPC-QUERY_POLICY stands for service code information
  • PA003-EPCIS_UPC-QUERY_POLICY-IQCD-D0014: 81 represents instance node coding information
  • Instance represents instance data node information.
  • the first node information that is created is determined to be complete node information
  • the instance data node information recorded under the instance is obtained from the first node information
  • the second node information is generated
  • the generated second node information is put into a predetermined
  • an instruction to send the second node information to the predetermined management platform is sent to the leader in the predetermined zk.
  • the zk system usually has three roles, namely client, follower, and leader.
  • the leader election is an important function.
  • the election process usually includes assigning a process as an organizer. Tasks are distributed to each node; before the task starts, all nodes do not know who is the leader. When the election algorithm starts executing, each node will eventually get a unique unified node as the leader to execute the task.
  • the leader is responsible for each of the zk systems. Coordination of node transactions and the right to read and write data.
  • the zk node information notification proposed by the present application monitors the node information stored in each sub-directory node in the predetermined zk by real-time or timing; if it is detected that the information of the first node changes, the first a node information corresponding to the type of change that occurs; determining a node analysis rule for analyzing the first node information according to a mapping relationship between the predetermined change type and the node analysis rule; and analyzing the first node information according to the determined node analysis rule And generating second node information; transmitting, to the leader in the zk, an instruction to send the second node information to the predetermined management platform.
  • the zk actively sends the changed node information to other platforms, which removes the long connection between other management platforms and zk, saves a lot of resources, and improves the notification efficiency of node changes.
  • the present application further provides a computer readable storage medium on which a zk node information notification program is stored, and when the zk node information notification program is executed by the processor, the following operations are implemented:
  • An instruction to transmit the second node information to a predetermined management platform is sent to the leader in the zk.
  • the specific embodiment of the computer readable storage medium of the present application is substantially the same as the above embodiments of the electronic device and the zk node information notification method, and will not be described herein.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开了一种电子装置、zk节点信息通知方法及存储介质,通过实时或定时监测预先确定的zk中各个子目录节点存储的节点信息;若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。实现了zk主动向其他平台发送变化的节点信息,解除了其他管理平台与zk之间的长连接,节省了大量的资源,且提高节点变化的通知效率。

Description

电子装置、zk节点信息通知方法、系统及存储介质
本申请要求于2018年03月06日提交中国专利局、申请号为201810183492.0、发明名称为“电子装置、zk节点信息通知方法及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及数据交互服务领域,尤其涉及一种电子装置、zk节点信息通知方法、系统及存储介质。
背景技术
随着互联网通信技术的发展,企业为了提高服务效率及性能通常采用集群模式来工作,并借助zookeeper(简称“zk”)来管理集群。zk是一个分布式的,开放源码的分布式应用程序协调服务系统,是集群的管理者。若企业需要将zk监测到的节点变化数据共享至其他管理平台,如服务治理管理平台(ESG-ADMIN),则需要建立其他管理平台与zk的各个文件系统对应的子目录节点之间的长连接,并通过不断向zk的各个子目录节点发送获取节点信息变化的请求来获得变化的节点信息。由于企业内部通常具有数量庞大的服务系统,且每个服务系统又包括多个服务节点,导致在zk中对应需要建立数量庞大的子目录节点,且由于所有子目录节点发生变化的时间不固定,因此,建立长连接的方式浪费大量的资源、且对节点变化的通知效率低下。
发明内容
有鉴于此,本申请提出一种电子装置、互联网服务系统风险预警方法及存储介质,能够精确有效地控制互联网服务系统的运行风险。
首先,为实现上述目的,本申请提出一种电子装置,所述电子装置包括存储器、及与所述存储器连接的处理器,所述处理器用于执行所述存储器上 存储的zk节点信息通知程序,所述zk节点信息通知程序被所述处理器执行时实现如下步骤:
分析步骤,若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型,所述变化类型包括节点创建、节点删除、以及节点数据更新;
节点分析规则确定步骤,根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
节点信息生成步骤,根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
发送步骤,向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
此外,为实现上述目的,本申请还提供一种zk节点信息通知方法,该方法包括如下步骤:
分析步骤,若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型,所述变化类型包括节点创建、节点删除、以及节点数据更新;
节点分析规则确定步骤,根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
节点信息生成步骤,根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
发送步骤,向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
此外,为实现上述目的,本申请还提供一种zk节点信息通知系统,所述ZK节点信息通知系统包括监测模块、确定模块、生成模块、以及发送模块;
检测模块,用于实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则确定该第一节点信息对应 发生的变化类型;
确定模块,用于根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
生成模块,用于根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
发送模块,用于向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有zk节点信息通知程序,所述zk节点信息通知程序可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:
实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;
根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
相较于现有技术,本申请所提出的电子装置、zk节点信息通知方法、系统及存储介质,通过实时或定时监测预先确定的zk中各个子目录节点存储的节点信息;若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析该第一节点信息的节点分析规则;根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;向所述zk中的leader发送执行发送第二节点信息至预先确定的管理平台的指令。实现了zk主动向其他平台发送变化的节点信息,解除了其他管理平台与zk之间的长连接,节省了大量的资源,且提高节点变化的通知效率。
附图说明
图1是本申请提出的电子装置一可选的硬件架构的示意图;
图2是本申请电子装置一实施例中zk节点信息通知程序的程序模块示意图;
图3是本申请zk节点信息通知方法较佳实施例的实施流程图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
参阅图1所示,是本申请提出的电子装置一可选的硬件架构示意图。本实施例中,电子装置10可包括,但不仅限于,可通过通信总线14相互通信连接存储器11、处理器12、网络接口13。需要指出的是,图1仅示出了具有组件11-14的电子装置10,但是应理解的是,并不要求实施所有示出的组件, 可以替代的实施更多或者更少的组件。
其中,存储器11至少包括一种类型的计算机可读存储介质,计算机可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器11可以是电子装置10的内部存储单元,例如电子装置10的硬盘或内存。在另一些实施例中,存储器11也可以是电子装置10的外包存储设备,例如电子装置10上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器11还可以既包括电子装置10的内部存储单元也包括其外包存储设备。本实施例中,存储器11通常用于存储安装于电子装置10的操作系统和各类应用软件,例如zk节点信息通知程序等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。
处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。处理器12通常用于控制电子装置10的总体操作。本实施例中,处理器12用于运行存储器11中存储的程序代码或者处理数据,例如运行的zk节点信息通知程序等。
网络接口13可包括无线网络接口或有线网络接口,网络接口13通常用于在电子装置10与其他电子设备之间建立通信连接。
通信总线14用于实现组件11-13之间的通信连接。
图1仅示出了具有组件11-14以及zk节点信息通知程序的电子装置10,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
可选地,电子装置10还可以包括用户接口(图1中未示出),用户接口可以包括显示器、输入单元比如键盘,其中,用户接口还可以包括标准的有 线接口、无线接口等。
可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED触摸器等。进一步地,显示器也可称为显示屏或显示单元,用于显示在电子装置10中处理信息以及用于显示可视化的用户界面。
在一实施例中,存储器11中存储的zk节点信息通知程序被处理器12执行时,实现如下操作:
监测步骤,实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;
节点分析规则确定步骤,根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
节点信息生成步骤,根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
发送步骤,向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
在本实施例中,所述变化类型包括节点创建、节点删除、以及节点更新;
若确定出该第一节点信息对应的变化类型为节点创建,则对应的节点信息处理规则可以为,例如,确定创建的所述第一节点信息是否为完整节点信息,其中,在本实施例中,完整节点信息包括:专业公司名称、系统编码信息、服务编码信息、实例节点编码信息、以及实例数据节点信息;若创建的所述第一节点的信息为完整节点信息,则从该第一节点的信息中获取实例数据节点信息,生成第二节点信息;
若确定出该第一节点信息对应的变化类型为节点删除,则对应的节点信息处理规则可以为,例如,确定删除的该第一节点是否为实例节点,在本实施例中,若删除的第一节点信息中包含有实例节点编码信息,则确定删除的 第一节点信息为实例节点;若删除的第一节点信息是实例节点,则获取删除的第一节点信息中的实例数据节点信息,生成第二节点信息;
若确定出该第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则可以为,例如,确定该第一节点信息是否是基于预先确定的更新协议(如RELOAD协议)进行节点信息更新,若确定是基于预先确定的更新协议进行节点信息更新,则获取更新该第一节点信息的第一时间;从预先确定的数据库(如zkdatabase数据库)中获取该第一时间之后生成的所有第三节点信息;遍历所述第三节点信息查询出完整的实例节点信息,从查询出的完整的实例节点信息中获取实例数据节点信息,生成第二节点信息。
进一步地,在本实施例中,若确定该第一节点信息不是基于预先确定的更新协议(如RELOAD协议)进行节点信息更新,则确定该第一节点信息是否是实例节点,以及确定该第一节点信息是否为完整节点信息;在确定出该第一节点信息为实例节点、且为完整节点信息之后,从该第一节点信息中获取实例数据节点信息,生成第二节点信息。
例如,在本申请的一实施例中,假设确定出第一节点信息对应的变化类型为子目录节点创建,且对应创建的子目录节点的信息包括:/PA003/EPCIS_UPC/PA003-EPCIS_UPC-QUERY_POLICY/PA003-EPCIS_UPC-QUERY_POLICY-IQCD-D0014:81/instance/date,其中:PA003代表专业公司名称,EPCIS_UPC代表系统编码信息,PA003-EPCIS_UPC-QUERY_POLICY代表服务编码信息,PA003-EPCIS_UPC-QUERY_POLICY-IQCD-D0014:81代表实例节点编码信息,Instance代表实例数据节点信息。则可确定创建的该第一节点信息为完整节点信息,从该第一节点信息中获取instance下记录的实例数据节点信息,生成第二节点信息,将生成的第二节点信息放入预先确定的通知队列中,并向预先确定的zk中的leader发送将该第二节点信息发送至预先确定的管理平台的指令。
需要说明的是,zk系统中通常具有3个角色,分别为client、follower、 以及leader,在zk系统中,leader选举是很重要的一个功能,选举过程通常包括,指派一个进程作为组织者,将任务分发给各个节点;在任务开始前,所有节点都不知道谁是leader,当选举算法开始执行后,每个节点最终会得到一个唯一的统一节点作为执行任务的leader,leader负责zk系统中各个节点事务的协调,以及具有读写数据的权利。
由上述事实施例可知,本申请提出的电子装置,通过实时或定时监测预先确定的zk中各个子目录节点存储的节点信息;若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析该第一节点信息的节点分析规则;根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;向所述zk中的leader发送执行发送第二节点信息至预先确定的管理平台的指令。实现了zk主动向其他平台发送变化的节点信息,解除了其他管理平台与zk之间的长连接,节省了大量的资源,且提高节点变化的通知效率。
进一步需要说明的是,本申请的zk节点信息通知程序依据其各部分所实现的功能不同,可用具有相同功能的程序模块进行描述。请参阅图2所示,是本申请电子装置一实施例中zk节点信息通知程序的程序模块示意图。本实施例中,zk节点信息通知程序依据其各部分所实现的功能的不同,可以被分割成监测模块201、确定模块202、生成模块203、以及发送模块204。由上面的描述可知,本申请所称的程序模块是指能够完成特定功能的一系列计算机程序指令段,比程序更适合于描述zk节点信息通知程序在电子装置10中的执行过程。所述模块201-204所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:
监测模块201用于实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;
确定模块202用于根据预先确定的变化类型与节点分析规则之间的映射 关系,确定分析所述第一节点信息的节点分析规则;
生成模块203用于根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
发送模块204用于向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
进一步地,本申请还提出一种zk节点信息通知系统,需要说明的是,本申请提出的zk节点信息通知系统各功能模块与zk节点信息通知程序各部分对应所实现的功能相同,在此不再做赘述。
此外,本申请还提出一种zk节点信息通知方法,请参阅图3所示,所述zk节点信息通知方法包括如下步骤:
步骤S301,实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;
步骤S302,根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
步骤S303,根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
步骤S304,向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
在本实施例中,所述变化类型包括节点创建、节点删除、以及节点更新;
若确定出该第一节点信息对应的变化类型为节点创建,则对应的节点信息处理规则可以为,例如,确定创建的所述第一节点信息是否为完整节点信息,其中,在本实施例中,完整节点信息包括:专业公司名称、系统编码信息、服务编码信息、实例节点编码信息、以及实例数据节点信息;若创建的所述第一节点的信息为完整节点信息,则从该第一节点的信息中获取实例数据节点信息,生成第二节点信息;
若确定出该第一节点信息对应的变化类型为节点删除,则对应的节点信息处理规则可以为,例如,确定删除的该第一节点信息是否为实例节点,在本实施例中,若删除的第一节点信息中包含有实例节点编码信息,则确定删除的第一节点信息为实例节点;若删除的第一节点是实例节点,则获取删除的第一节点信息中的实例数据节点信息,生成第二节点信息;
若确定出该第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则可以为,例如,确定该第一节点信息是否是基于预先确定的更新协议(如RELOAD协议)进行节点信息更新,若确定是基于预先确定的更新协议进行节点信息更新,则获取更新该第一节点信息的第一时间;从预先确定的数据库(如zkdatabase数据库)中获取该第一时间之后生成的所有第三节点信息;遍历所述第三节点信息查询出完整的实例节点信息,从查询出的完整的实例节点信息中获取实例数据节点信息,生成第二节点信息。
进一步地,在本实施例中,若确定该第一节点信息不是基于预先确定的更新协议(如RELOAD协议)进行节点信息更新,则确定该第一节点信息是否是实例节点,以及确定该第一节点信息是否为完整节点信息;在确定出该第一节点信息为实例节点、且为完整节点信息之后,从该第一节点信息中获取实例数据节点信息,生成第二节点信息。
例如,在本申请的一实施例中,假设确定出第一节点信息对应的变化类型为子目录节点创建,且对应创建的子目录节点的信息包括:/PA003/EPCIS_UPC/PA003-EPCIS_UPC-QUERY_POLICY/PA003-EPCIS_UPC-QUERY_POLICY-IQCD-D0014:81/instance/date,其中:PA003代表专业公司名称,EPCIS_UPC代表系统编码信息,PA003-EPCIS_UPC-QUERY_POLICY代表服务编码信息,PA003-EPCIS_UPC-QUERY_POLICY-IQCD-D0014:81代表实例节点编码信息,Instance代表实例数据节点信息。则可确定创建的该第一节点信息为完整节点信息,从该第一节点信息中获取instance下记录的实例数据节点信息,生成第二节点信息,将生成的第二节点信息放入预先确定的 通知队列中,并向预先确定的zk中的leader发送将该第二节点信息发送至预先确定的管理平台的指令。
需要说明的是,zk系统中通常具有3个角色,分别为client、follower、以及leader,在zk系统中,leader选举是很重要的一个功能,选举过程通常包括,指派一个进程作为组织者,将任务分发给各个节点;在任务开始前,所有节点都不知道谁是leader,当选举算法开始执行后,每个节点最终会得到一个唯一的统一节点作为执行任务的leader,leader负责zk系统中各个节点事务的协调,以及具有读写数据的权利。
由上述事实施例可知,本申请提出的zk节点信息通知,通过实时或定时监测预先确定的zk中各个子目录节点存储的节点信息;若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析该第一节点信息的节点分析规则;根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;向所述zk中的leader发送执行发送第二节点信息至预先确定的管理平台的指令。实现了zk主动向其他平台发送变化的节点信息,解除了其他管理平台与zk之间的长连接,节省了大量的资源,且提高节点变化的通知效率。
此外,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有zk节点信息通知程序,所述zk节点信息通知程序被处理器执行时实现如下操作:
实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;
根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理 平台的指令。
本申请计算机可读存储介质具体实施方式与上述电子装置以及zk节点信息通知方法各实施例基本相同,在此不作累述。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种电子装置,其特征在于,所述电子装置包括存储器、及与所述存储器连接的处理器,所述处理器用于执行所述存储器上存储的zk节点信息通知程序,所述zk节点信息通知程序被所述处理器执行时实现如下步骤:
    监测步骤,监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则分析该第一节点信息对应发生的变化类型,所述变化类型包括节点创建、节点删除、以及节点更新;
    节点分析规则确定步骤,根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
    节点信息生成步骤,根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
    发送步骤,向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
  2. 如权利要求1所述的电子装置,其特征在于,所述节点分析规则确定步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点创建,则对应的节点信息处理规则为,确定创建的所述第一节点信息是否为完整节点信息;
    若创建的所述第一节点信息为完整节点信息,则从该第一节点信息中获取实例数据节点信息,生成第二节点信息;其中,所述完整节点信息包括实例数据节点信息。
  3. 如权利要求1所述的电子装置,其特征在于,所述节点分析规则确定步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点删除,则对应的节点信息处理规则为,确定删除的第一节点信息是否为实例节点;
    若删除的第一节点信息是实例节点,则获取删除的第一节点信息中的实 例数据节点信息,生成第二节点信息。
  4. 如权利要求1所述的电子装置,其特征在于,所述节点分析规则确定步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则为,确定所述第一节点信息的更新是否是基于预先确定的更新协议进行节点信息更新;
    若确定是基于预先确定的更新协议进行节点信息更新,则获取更新所述第一节点信息的第一时间;
    从预先确定的数据库中获取该第一时间之后生成的所有第三节点信息;
    遍历所述第三节点信息查询出完整的实例节点信息,从查询出的完整的实例节点信息中获取实例数据节点信息,生成第二节点信息。
  5. 如权利要求4所述的电子装置,其特征在于,所述节点分析规则确定步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则为,确定所述第一节点信息的更新是否是基于预先确定的更新协议进行节点信息更新;
    若确定所述第一节点信息不是基于预先确定的更新协议进行节点信息更新,则确定所述第一节点信息是否是实例节点,以及确定所述第一节点信息是否为完整节点信息;
    在确定出所述第一节点信息为实例节点且为完整节点信息之后,从所述第一节点信息中获取实例数据节点信息,生成第二节点信息。
  6. 一种zk节点信息通知方法,其特征在于,所述方法包括如下步骤:
    监测步骤,实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则分析该第一节点信息对应发生的变化类型,所述变化类型包括节点创建、节点删除、以及节点更新;
    节点分析规则确定步骤,根据预先确定的变化类型与节点分析规则之间 的映射关系,确定分析所述第一节点信息的节点分析规则;
    节点信息生成步骤,根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
    发送步骤,向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
  7. 如权利要求6所述的zk节点信息通知方法,其特征在于,所述节点分析规则确定步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点创建,则对应的节点信息处理规则为,确定创建的所述第一节点信息是否为完整节点信息;
    若创建的所述第一节点信息为完整节点信息,则从该第一节点的信息中获取实例数据节点信息,生成第二节点信息;其中,所述完整节点信息包括实例数据节点信息。
  8. 如权利要求6所述的zk节点信息通知方法,其特征在于,所述节点分析规则确定步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点删除,则对应的节点信息处理规则为确定删除的第一节点信息是否为实例节点;
    若删除的第一节点信息是实例节点,则获取删除的第一节点信息中的实例数据节点信息,生成第二节点信息。
  9. 如权利要求6所述的zk节点信息通知方法,其特征在于,所述节点分析规则确定步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则为,确定所述第一节点信息的更新是否是基于预先确定的更新协议进行节点信息更新;
    若确定是基于预先确定的更新协议进行节点信息更新,则获取更新所述第一节点信息的第一时间;
    从预先确定的数据库中获取该第一时间之后生成的所有第三节点信息;
    遍历所述第三节点信息查询出完整的实例节点信息,从查询出的完整的实例节点信息中获取实例数据节点信息,生成第二节点信息。
  10. 如权利要求6所述的zk节点信息通知方法,其特征在于,所述节点分析规则确定步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则为,确定所述第一节点信息的更新是否是基于预先确定的更新协议进行节点信息更新;
    若确定所述第一节点信息不是基于预先确定的更新协议进行节点信息更新,则确定所述第一节点信息是否是实例节点,以及确定所述第一节点信息是否为完整节点信息;
    在确定出所述第一节点信息为实例节点且为完整节点信息之后,从所述第一节点信息中获取实例数据节点信息,生成第二节点信息。
  11. 一种zk节点信息通知系统,其特征在于,所述ZK节点信息通知系统包括监测模块、确定模块、生成模块、以及发送模块;
    检测模块,用于实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则确定该第一节点信息对应发生的变化类型;
    确定模块,用于根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
    生成模块,用于根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
    发送模块,用于向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
  12. 如权利要求11所述的zk节点信息通知系统,其特征在于,所述生成模块,还用于在若确定出所述第一节点信息对应的变化类型为节点创建,则对应的节点信息处理规则为,确定创建的所述第一节点信息是否为完整节点 信息;
    若创建的所述第一节点信息为完整节点信息,则从该第一节点信息中获取实例数据节点信息,生成第二节点信息;其中,所述完整节点信息包括实例数据节点信息。
  13. 如权利要求11所述的zk节点信息通知系统,其特征在于,所述生成模块,还用于在若确定出所述第一节点信息对应的变化类型为节点删除,则对应的节点信息处理规则为,确定删除的第一节点信息是否为实例节点;
    若删除的第一节点信息是实例节点,则获取删除的第一节点信息中的实例数据节点信息,生成第二节点信息。
  14. 如权利要求11所述的zk节点信息通知系统,其特征在于,所述生成模块,还用于在若确定出所述第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则为,确定所述第一节点信息的更新是否是基于预先确定的更新协议进行节点信息更新;
    若确定是基于预先确定的更新协议进行节点信息更新,则获取更新所述第一节点信息的第一时间;
    从预先确定的数据库中获取该第一时间之后生成的所有第三节点信息;
    遍历所述第三节点信息查询出完整的实例节点信息,从查询出的完整的实例节点信息中获取实例数据节点信息,生成第二节点信息。
  15. 如权利要求11所述的zk节点信息通知系统,其特征在于,所述生成模块,还用于在若确定出所述第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则为,确定所述第一节点信息的更新是否是基于预先确定的更新协议进行节点信息更新;
    若确定所述第一节点信息不是基于预先确定的更新协议进行节点信息更新,则确定所述第一节点信息是否是实例节点,以及确定所述第一节点信息是否为完整节点信息;
    在确定出所述第一节点信息为实例节点且为完整节点信息之后,从所述 第一节点信息中获取实例数据节点信息,生成第二节点信息。
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有zk节点信息通知程序,所述zk节点信息通知程序可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:
    实时或定时监测预先确定的zk中各个子目录节点存储的节点信息,若监测到有第一节点信息发生变化,则分析该第一节点信息对应发生的变化类型,所述变化类型包括节点创建、节点删除、以及节点更新;
    根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;
    根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息;
    向所述zk中的leader发送执行发送所述第二节点信息至预先确定的管理平台的指令。
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息的步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点创建,则对应的节点信息处理规则为,确定创建的所述第一节点信息是否为完整节点信息;
    若创建的所述第一节点信息为完整节点信息,则从该第一节点的信息中获取实例数据节点信息,生成第二节点信息;其中,所述完整节点信息包括实例数据节点信息。
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,所述根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息的步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点删除,则对应的节点 信息处理规则为确定删除的第一节点信息是否为实例节点;
    若删除的第一节点信息是实例节点,则获取删除的第一节点信息中的实例数据节点信息,生成第二节点信息。
  19. 如权利要求16所述的计算机可读存储介质,其特征在于,所述根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息的步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则为,确定所述第一节点信息的更新是否是基于预先确定的更新协议进行节点信息更新;
    若确定是基于预先确定的更新协议进行节点信息更新,则获取更新所述第一节点信息的第一时间;
    从预先确定的数据库中获取该第一时间之后生成的所有第三节点信息;
    遍历所述第三节点信息查询出完整的实例节点信息,从查询出的完整的实例节点信息中获取实例数据节点信息,生成第二节点信息。
  20. 如权利要求16所述的计算机可读存储介质,其特征在于,所述根据预先确定的变化类型与节点分析规则之间的映射关系,确定分析所述第一节点信息的节点分析规则;根据确定的节点分析规则分析所述第一节点信息,以生成第二节点信息的步骤包括:
    若确定出所述第一节点信息对应的变化类型为节点更新,则对应的节点信息处理规则为,确定所述第一节点信息的更新是否是基于预先确定的更新协议进行节点信息更新;
    若确定所述第一节点信息不是基于预先确定的更新协议进行节点信息更新,则确定所述第一节点信息是否是实例节点,以及确定所述第一节点信息是否为完整节点信息;
    在确定出所述第一节点信息为实例节点且为完整节点信息之后,从所述 第一节点信息中获取实例数据节点信息,生成第二节点信息。
PCT/CN2018/089450 2018-03-06 2018-06-01 电子装置、zk节点信息通知方法、系统及存储介质 WO2019169762A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810183492.0 2018-03-06
CN201810183492.0A CN108566293B (zh) 2018-03-06 2018-03-06 电子装置、zk节点信息通知方法及存储介质

Publications (1)

Publication Number Publication Date
WO2019169762A1 true WO2019169762A1 (zh) 2019-09-12

Family

ID=63532130

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089450 WO2019169762A1 (zh) 2018-03-06 2018-06-01 电子装置、zk节点信息通知方法、系统及存储介质

Country Status (2)

Country Link
CN (1) CN108566293B (zh)
WO (1) WO2019169762A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569056B (zh) * 2019-09-11 2023-05-05 北京奇艺世纪科技有限公司 一种规则服务信息的更新方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932210A (zh) * 2012-11-23 2013-02-13 北京搜狐新媒体信息技术有限公司 一种PaaS云平台的节点监控方法和系统
CN106815053A (zh) * 2017-01-18 2017-06-09 努比亚技术有限公司 一种数据更新方法、装置、数据调用端及数据更新系统
CN107276795A (zh) * 2017-06-06 2017-10-20 北京小米移动软件有限公司 基于容器的信息处理方法和装置、以及服务器和终端
CN107864053A (zh) * 2017-10-31 2018-03-30 北京小米移动软件有限公司 基于zookeeper的动态配置方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932210A (zh) * 2012-11-23 2013-02-13 北京搜狐新媒体信息技术有限公司 一种PaaS云平台的节点监控方法和系统
CN106815053A (zh) * 2017-01-18 2017-06-09 努比亚技术有限公司 一种数据更新方法、装置、数据调用端及数据更新系统
CN107276795A (zh) * 2017-06-06 2017-10-20 北京小米移动软件有限公司 基于容器的信息处理方法和装置、以及服务器和终端
CN107864053A (zh) * 2017-10-31 2018-03-30 北京小米移动软件有限公司 基于zookeeper的动态配置方法和装置

Also Published As

Publication number Publication date
CN108566293A (zh) 2018-09-21
CN108566293B (zh) 2021-05-18

Similar Documents

Publication Publication Date Title
WO2019140828A1 (zh) 电子装置、分布式系统日志查询方法及存储介质
US11321085B2 (en) Meta-indexing, search, compliance, and test framework for software development
WO2019148722A1 (zh) 电子装置、数据迁移及调用方法及存储介质
WO2019148727A1 (zh) 电子装置、基于redis的异常预警方法及存储介质
US10860406B2 (en) Information processing device and monitoring method
US9712410B1 (en) Local metrics in a service provider environment
WO2019179027A1 (zh) 电子装置、防火墙开通验证方法、系统及存储介质
WO2019179026A1 (zh) 电子装置、集群访问域名自动生成方法及存储介质
WO2019061991A1 (zh) 多元通用模型平台建模方法、电子设备及计算机可读存储介质
US8589537B2 (en) Methods and computer program products for aggregating network application performance metrics by process pool
WO2019062189A1 (zh) 电子装置、数据表归档处理的方法、系统及存储介质
WO2019169763A1 (zh) 电子装置、业务系统风险控制方法及存储介质
US11706084B2 (en) Self-monitoring
WO2019136812A1 (zh) 电子装置、数据调用日志生成及查询方法及存储介质
WO2019148721A1 (zh) 电子装置、互联网服务系统风险预警方法及存储介质
WO2019148728A1 (zh) 电子装置、分布式系统执行任务分配方法及存储介质
US11531539B2 (en) Automated compliance and testing framework for software development
WO2019192133A1 (zh) 电子装置、数据链路风险预警方法及存储介质
US20160283532A1 (en) Alert management
WO2020224100A1 (zh) 区块链配置文件的处理装置、系统、方法及存储介质
WO2019071968A1 (zh) 薪资计算方法、应用服务器及计算机可读存储介质
CN109831358A (zh) 一种客户端流量统计方法、装置、服务器及可读存储介质
WO2019071958A1 (zh) 基于云计算的薪资计算方法、应用服务器及计算机可读存储介质
WO2019169771A1 (zh) 电子装置、访问指令信息获取方法及存储介质
US8312138B2 (en) Methods and computer program products for identifying and monitoring related business application processes

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18908519

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14/12/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18908519

Country of ref document: EP

Kind code of ref document: A1