CN109375966A - A kind of method, apparatus of node initializing, equipment and storage medium - Google Patents

A kind of method, apparatus of node initializing, equipment and storage medium Download PDF

Info

Publication number
CN109375966A
CN109375966A CN201810879491.XA CN201810879491A CN109375966A CN 109375966 A CN109375966 A CN 109375966A CN 201810879491 A CN201810879491 A CN 201810879491A CN 109375966 A CN109375966 A CN 109375966A
Authority
CN
China
Prior art keywords
information
node
page
reading
current page
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201810879491.XA
Other languages
Chinese (zh)
Other versions
CN109375966B (en
Inventor
吕小豹
张斌
潘魏增
郑文兵
袁章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201810879491.XA priority Critical patent/CN109375966B/en
Publication of CN109375966A publication Critical patent/CN109375966A/en
Priority to PCT/CN2019/098814 priority patent/WO2020025016A1/en
Application granted granted Critical
Publication of CN109375966B publication Critical patent/CN109375966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui

Abstract

The application provides the method, apparatus, equipment and storage medium of a kind of node initializing, wherein the described method includes: broadcast is for applying for the application information by the node initializing of current page for host node;It reads and opposes information, wherein the opposition information is there are when the first host node page, and the first host node page receives the information fed back after the application information;In response to reading the reading for opposing information as a result, initializing to the node of the current page.The application is due to opposing that the reading result of information initializes the node of current page in response to reading, it can remain the host node page of existence anduniquess in application program, it does not need using " token preemption mechanism ", it is poor because call duration time may be not present, it can be reprocessed to avoid information caused by two host node pages is existed simultaneously, the problem of memory of waste system, does not need frequently to destroy yet and rebuilds the host node page, thus the performance of system can be improved.

Description

A kind of method, apparatus of node initializing, equipment and storage medium
Technical field
This application involves web application technical field more particularly to a kind of method, apparatus of node initializing, equipment And storage medium.
Background technique
Currently, usually determining a host node page (that is, the section for communication for being included in multi-page communication plan Point be the page of host node) and it is multiple from the node page (that is, comprising the node for communicating for from the page of node).Into And the determining host node page can be used for directly communicating with server-side, and other are not direct logical with server-side from the node page Letter, but communicated indirectly with server-side by the host node page, it can so mitigate the pressure of server-side.
The mode for generalling use " token preemption mechanism " in the prior art, based on the node initializing for the page newly opened Node, that is, making the page of the new opening becomes the host node page, wherein when being somebody's turn to do " node initializing " different from opening the page " page initialization " carried out.However, this mode is due to " page newly opened, which is robbed, accounts for token " and " first host node page Face, which receives, is downgraded to the notice from the node page " between that there are call duration times is poor, thus cause during this period of time to have two A host node page exists, and then the two homepage point pages is caused to reprocess the message sended over from the node page, meeting The memory of waste system, also, since the page of each new opening can seize token, thus can occur frequently to destroy and again The case where building host node, and then will affect the performance of system.
Summary of the invention
In view of this, the application provides the method, apparatus, equipment and storage medium of a kind of node initializing, it is existing to solve The problem of in the presence of some determination host node schemes.
Specifically, the application is achieved by the following technical solution:
According to a first aspect of the present application, a kind of method of node initializing is proposed, comprising:
Broadcast is for applying for the application information by the node initializing of current page for host node;
It reads and opposes information, wherein the oppositions information is there are when the first host node page, the first host node page Face receives the information fed back after the application information;
In response to reading the reading for opposing information as a result, initializing to the node of the current page.
In one embodiment, the broadcast target of the application information includes the current page, and information is opposed in the reading Include:
If the current page receives the application information, the operation read and oppose information is executed.
In one embodiment, it if the current page receives the application information, executes the reading and opposes information Operation, further includes:
After the current page receives the application information, broadcast for confirming that the first host node page is anti- Present the confirmation message for opposing information;
After the current page receives the confirmation message, the operation read and oppose information is executed.
In one embodiment, described to read the section as a result, to the current page in response to the reading opposition information Point is initialized, comprising:
It is host node by the node initializing of the current page if reading the opposition information not successfully;
It is from node by the node initializing of the current page if successfully reading the opposition information.
In one embodiment, if described successfully read the opposition information, the node of the current page is initial It turns to after node, the method also includes:
Delete the opposition information.
In one embodiment, the reading opposes that information includes:
Preset time is waited, the operation read and oppose information is executed.
According to a second aspect of the present application, a kind of device of node initializing is proposed, comprising:
Application information broadcast module, for broadcasting the application for being used to apply by the node initializing of current page for host node Information;
Oppose information reading module, oppose information for reading, wherein the opposition information is that there are first host node pages When face, the first host node page receives the information fed back after the application information;
Node initializing module, in response to reading the reading for opposing information as a result, to the current page Node is initialized.
In one embodiment, the broadcast target of the application information includes the current page, and the opposition information is read Module is also used to when the current page receives the application information, executes the operation read and oppose information.
According to the third aspect of the application, a kind of equipment of node initializing is proposed, including memory, processor and deposit Store up the computer program that can be run on a memory and on a processor, wherein the processor is realized when executing described program The method of any of the above-described node initializing.
According to the fourth aspect of the application, a kind of computer readable storage medium is proposed, the storage medium is stored with Computer program, the method that the computer program is used to execute any of the above-described node initializing.
By above technical scheme as it can be seen that the application is due in response to reading the reading result for opposing information to current page Node is initialized, and can remain the host node page of existence anduniquess in application program, is not needed using " token is seized Mechanism ", it is poor because call duration time may be not present, it can be reprocessed to avoid information caused by two host node pages is existed simultaneously, The problem of memory of waste system, does not need frequently to destroy yet and rebuilds the host node page, thus the property of system can be improved Energy.
Detailed description of the invention
Figure 1A is a kind of node structure schematic diagram of multi-page communication plan shown in an exemplary embodiment;
Figure 1B is a kind of flow chart of the method for node initializing shown in one exemplary embodiment of the application;
Fig. 2 be shown in one exemplary embodiment of the application how the mode based on broadcast acknowledgements information reads opposition information Flow chart;
Fig. 3 is a kind of flow chart of the method for node initializing shown in the application another exemplary embodiment;
Fig. 4 is a kind of structure chart of the device of node initializing shown in one exemplary embodiment of the application;
Fig. 5 is a kind of structure chart of the device of node initializing shown in the application another exemplary embodiment;
Fig. 6 is a kind of structure chart of the equipment of node initializing shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Figure 1A is a kind of node structure schematic diagram of multi-page communication plan shown in an exemplary embodiment;Such as Figure 1A institute Show, usually determined in current multi-page communication plan host node page (that is, comprising the node for communication based on save The page of point) 001 and multiple from the node page (that is, comprising the node for communication be from the page of node) 002.In turn, The determining host node page 001 can be used for directly communicating with server-side 003, and other from the node page 002 it is not direct with clothes Business end 003 communicates, but is communicated indirectly with server-side 003 by the host node page 001, and server-side can be so mitigated 003 pressure.
The mode for generalling use " token preemption mechanism " in the prior art, by the node initializing for the page 004 newly opened For host node, i.e., when application program opens a new page every time, the page currently newly opened, which will seize token, becomes new The host node page, while notifying the first host node page, be downgraded to it from the node page.And work as the main section of the new opening When point page close, then token is given back, and then notify first host node again, it is allowed to upgrade to the host node page again.
However, this mode is due to " page newly opened, which is robbed, accounts for token " and " the first host node page receives drop Grade is from the notice of node " between there are the time differences, thus cause during this period of time exist there are two the host node page, into And the two homepage point pages is caused to reprocess the message sended over from the node page, the memory of system can be wasted, also, Since the page of each new opening can seize token, thus host node can be destroyed and rebuild there is a situation where frequent, in turn It will affect the performance of application program.
In view of this, the application provides the method, apparatus, equipment and storage medium of a kind of node initializing, it is existing to solve The problem of in the presence of some determination host node schemes.
Figure 1B is a kind of flow chart of the method for node initializing shown in one exemplary embodiment of the application;The embodiment It can be used for the application program installed in terminal device (such as mobile phone, tablet computer, personal computer etc.).As shown in Figure 1B, The method comprising the steps of S101-S103:
In step s101: broadcast is for applying for the application information by the node initializing of current page for host node.
It is worth noting that " node of the page " in the application can be realize in the affiliated page by code, use In realize the page communication function " communication node ", by the node, the affiliated page may be implemented between other pages And the communication between server-side.
In one embodiment, when application program opens current page or user carries out the current page opened When predetermined registration operation, which can be broadcasted for applying for the letter of application by the node initializing of current page for host node Breath.
In one embodiment, above-mentioned predetermined registration operation may include clicking image (e.g., customer service head portrait shown in current page Deng) or pre-set text etc., the present embodiment is to this without limiting.
It is worth noting that the content of above-mentioned application information can be set by developer according to actual business requirement It sets, such as is set as specific symbol, numerical value or character string, the present embodiment is to this without limiting.
In step s 102: reading and oppose information.
Wherein, the opposition information is there are when the first host node page, and the first host node page receives described The information fed back after application information.
In one embodiment, when application program broadcast is for applying for the Shen by the node initializing of current page for host node Please be after information, the first host node page if it exists, then the first host node page can receive above-mentioned application information, and respond It is written in this application information in predeterminated position (in the local for e.g., installing the terminal device of application program) and opposes information.Further Ground, application program can execute the operation read and oppose information.
For example, application program can be by calling preset processing function, to read above-mentioned opposition letter from local Breath.
It is worth noting that in actual implementation, developer, which can according to need to choose, existing meets business demand Processing function, the present embodiment to this without limit.
In one embodiment, in order to ensure " the first host node page, which is first written, opposes information, reads and opposes after current page Information " may refer to following embodiment illustrated in fig. 2, herein first without being described in detail.
In step s 103: in response to read the reading for opposing information as a result, to the node of the current page into Row initialization.
In one embodiment, available " successfully to read after application program executes the operation of " read and oppose information " The reading of the opposition information " is as a result, alternatively, the reading result of available " reading the opposition information not successfully ".
In one embodiment, after obtaining above-mentioned different reading result, application program can be in response to obtained reading As a result, being initialized based on node of the different initialization modes to current page, so that the current page becomes host node The page or from the node page, keeps the host node page of existence anduniquess in application program.
In one embodiment, in response to read the reading for opposing information as a result, to the node of the current page into The mode of row initialization is referring also to embodiment illustrated in fig. 3, herein first without being described in detail.
Seen from the above description, the present embodiment is by broadcast for applying the node initializing of current page being host node Application information, and read opposition information, the opposition information is the first host node page there are when the first host node page Face receives the information fed back after the application information, and then in response to reading the reading for opposing information as a result, to described The node of current page is initialized, due to opposing that the reading result of information carries out the node of current page in response to reading Initialization, can remain the host node page of existence anduniquess in application program, not need to use " token preemption mechanism ", because It is poor that call duration time may be not present, system can be wasted to avoid the reprocessing of information caused by two host node pages is existed simultaneously Memory the problem of, do not need frequently to destroy and rebuild the host node page yet, thus the performance of system can be improved.
On the basis of the above embodiments, it can ensure that " the first host node page is first written using following three kinds of modes Oppose information, read after current page and oppose information ".Wherein, in first way and the second way, above-mentioned application information Broadcast target may include current page (that is, current page can be with monitoring registered in advance to above-mentioned application information), Jin Erbu It is read described in rapid S102 and opposes information, may comprise steps of S102 ':
In step S102 ': if the current page receives the application information, executing the reading and oppose information Operation.
In first way:
It can be using " message registration-hair based on W3C (World Wide Web Consortium) event model standard Cloth mechanism " ensures " the first host node page, which is first written, opposes information, reads after current page and opposes information ".Wherein, the machine System is actually a kind of " first registration first carries out " mechanism, i.e., first having registered the page monitored application information can first carry out Preset operation (e.g., calling for reading the function for opposing information or calling for the function etc. for opposing information to be written).
For example, if currently existing the first host node page, for current page, the first host node page Face is that first registration is monitored, thus the first host node page can first receive the application information of above-mentioned broadcast, and first call The call back function of oneself will oppose that predeterminated position is written in information;Then, the application information of above-mentioned broadcast is received in current page Afterwards, it can determine that the above-mentioned first host node page has executed the operation that information is opposed in write-in, and then current page can be held Row reads the operation for opposing information.
The second way: being communicated according to " concurrent communication " mode, then can in broadcast them application information, and After current page receives the application information of above-mentioned broadcast, ensure " first host node by way of " broadcast acknowledgements information " The page, which is first written, opposes information, reads after current page and opposes information ".
Fig. 2 be shown in one exemplary embodiment of the application how the mode based on broadcast acknowledgements information reads opposition information Flow chart.As shown in Fig. 2, above-mentioned steps S102 ' executes institute if the current page receives the application information The operation read and oppose information is stated, may comprise steps of S201-S202:
In step s 201: after the current page receives the application information, broadcast is described first for confirming The host node page has fed back the confirmation message for opposing information;
In step S202: after the current page receives the confirmation message, executing the reading and oppose information Operation.
In one embodiment, after current page receives above-mentioned application information, a confirmation message can be broadcasted, the confirmation Information be used to confirm there is currently the first host node page write operation of " opposition information " is completed, and then can be described After current page receives the confirmation message, the operation read and oppose information is executed.
In one embodiment, the content of above-mentioned confirmation message can be set by developer according to actual business requirement It sets, such as is set as specific symbol, numerical value or character string, the present embodiment is to this without limiting.
It is worth noting that the current page in the method is other than registering to the monitoring of application information, also registration is to true Recognize the monitoring of information.It is different from " first registration first carry out " mechanism of first way, in the method after broadcasting application information, The first host node page and current page may receive application information in no particular order and (first receive after whom that is, whom is not necessarily This application information).In the case, in order to ensure " the first host node page, which is first written, opposes information, reads after current page anti- To information ", a confirmation message can be broadcasted, to reserve foot for the first page after current page receives above-mentioned application information The enough time executes the operation that information is opposed in write-in.Further, after the confirmation message that current page receives above-mentioned broadcast, It can determine that the above-mentioned first host node page has executed write-in and opposed the operation of information, and then reading can be executed and oppose letter The operation of breath.
The third mode: waiting preset time, executes the operation read and oppose information.
It is different from above-mentioned first way and the second way, current page does not need registration to application information in the method Monitoring, but in step s101 broadcast for apply by the node initializing of current page for host node application information Afterwards, the operation read and oppose information is executed again after waiting preset time.
It is worth noting that above-mentioned preset time can be by developer according to actual needs or business experience is set It sets, the present embodiment is to this without limiting.
Seen from the above description, pass through above-mentioned three kinds of modes, it can be ensured that there is currently the feelings of the first host node page Under condition, which has received above-mentioned application information, and is written with after opposition information, executes to read and oppose The operation of information, can to avoid " read oppose information " operation earlier than " information is opposed in first host node page write-in " operation Caused opposition information reads the case where failure.
Fig. 3 is a kind of flow chart of the method for node initializing shown in the application another exemplary embodiment;The implementation Example can be used for the application program installed in terminal device (such as mobile phone, tablet computer, personal computer etc.).As shown in figure 3, The method comprising the steps of S301-S306:
In step S301: broadcast is for applying for the application information by the node initializing of current page for host node;
In step s 302: reading and oppose information, wherein the oppositions information is there are when the first host node page, institute It states the first host node page and receives the information fed back after the application information;
Wherein, the relevant explanation of step S301-S302 and explanation may refer to above-described embodiment, herein without repeating.
In step S303: determining whether successfully to read the opposition information: if so, thening follow the steps S304;If it is not, Then follow the steps S306.
In step s 304: being from node by the node initializing of the current page.
In one embodiment, if application program successfully reads above-mentioned opposition information, it can determine and currently exist The first host node page, thus can be from node, to keep existence anduniquess in application program by the node initializing of current page The host node page.
In one embodiment, after being from node by the node initializing of the current page, which can lead to The current already present first host node page is crossed to be communicated with server-side.
For example, if current page needs to send information to server-side, which can use application program In the communication channel (e.g., host node and from the channel between node) that constructs in advance, information to be sent is sent to and is saved in the former head The point page, the information to be sent is sent to server-side by the first host node page;Similarly, if server-side is needed to this Current page sends information, then information to be sent first can be sent to the first host node page by server-side, and then should be in the former head The node page can use above-mentioned communication channel, and information to be sent is sent to current page.
In step S305: deleting the opposition information.
In one embodiment, after successfully reading above-mentioned opposition information, and by the node initializing of the current page For that after node, can oppose that the opposition information is deleted in the position (e.g., in the local of terminal device) of information from write-in.
It is worth noting that being that will oppose that information is deleted in time after node by the node initializing of current page, it can When being forced to exit (such as user kills by force APP or terminal device shutdown) to avoid application program, the opposition of failure is believed Retire into private life and rings the new page and be initialized to as the host node page.
In step S306: being host node by the node initializing of the current page.
In one embodiment, if application program reads above-mentioned opposition information not successfully, can determine there is currently no The first host node page, thus can be host node by the node initializing of current page, so that current page becomes host node The page, to keep the host node page of existence anduniquess in application program.
In one embodiment, after being host node by the node initializing of the current page, which can be straight It connects and establishes connection with server-side, and communicated.
In one embodiment, it can establish long connection between the host node page and server-side, and then can be based on foundation Long connection, is communicated with server-side.
It is worth noting that the concrete mode that the above-mentioned node to current page is initialized may refer to existing section The technical solution of point initialization, the present embodiment is to this without limiting.
Seen from the above description, the present embodiment is by broadcast for applying the node initializing of current page being host node Application information, and opposition information is read, and then when reading the opposition information not successfully, by the section of the current page Point is initialized as host node, alternatively, when successfully reading the opposition information, the node initializing by the current page is From node, may be implemented to read result in response to different opposition information to current page using different node initializing sides Formula avoids existing simultaneously two host node page waste systems to keep the host node page of existence anduniquess in application program Memory, and the performance of system can be improved to a certain extent.
Fig. 4 is a kind of structure chart of the device of node initializing shown in one exemplary embodiment of the application;Such as Fig. 4 institute Show, the apparatus may include: application information broadcast module 110 opposes information reading module 120 and node initializing module 130, in which:
Application information broadcast module 110 is used to apply by the node initializing of current page to be host node for broadcasting Application information;
Oppose information reading module 120, oppose information for reading, wherein the opposition information is to exist to save in the former head When the point page, the first host node page receives the information fed back after the application information;
Node initializing module 130, in response to reading the reading for opposing information as a result, to the current page Node initialized.
Seen from the above description, the present embodiment is by broadcast for applying the node initializing of current page being host node Application information, and read opposition information, the opposition information is the first host node page there are when the first host node page Face receives the information fed back after the application information, and then in response to reading the reading for opposing information as a result, to described The node of current page is initialized, due to opposing that the reading result of information carries out the node of current page in response to reading Initialization, can remain the host node page of existence anduniquess in application program, not need to use " token preemption mechanism ", because It is poor that call duration time may be not present, system can be wasted to avoid the reprocessing of information caused by two host node pages is existed simultaneously Memory the problem of, do not need frequently to destroy and rebuild the host node page yet, thus the performance of system can be improved.
Fig. 5 is a kind of structure chart of the device of node initializing shown in the application another exemplary embodiment;Wherein, Shen It please information broadcast module 210, opposition information reading module 220 and node initializing module 230 and aforementioned embodiment illustrated in fig. 4 In application information broadcast module 110, oppose that the function of information reading module 120 and node initializing module 130 is identical, This is without repeating.
As shown in figure 5, the broadcast target of the application information can also include the current page.On this basis, instead Information reading module 220 can be also used for when the current page receives the application information, described read instead is executed Operation to information.
In one embodiment, the opposition information reading module 220 can also include:
Confirmation message radio unit 221 can be used for after the current page receives the application information, and broadcast can For confirming that the first host node page has fed back the confirmation message for opposing information;
Oppose Information reading unit 222, can be used for after the current page receives the confirmation message, described in execution Read the operation for opposing information.
In one embodiment, node initializing module 230 may include:
Host node initialization unit 231 can be used for when reading the opposition information not successfully, by the current page The node initializing in face is host node;
From node initializing unit 233, can be used for when successfully reading the opposition information, by the current page Node initializing be from node.
In one embodiment, node initializing module 230 can also include:
Oppose information deletion unit 234, can be used for deleting the opposition information.
In one embodiment, oppose that information reading module 220 can be also used for waiting preset time, execute to read and oppose letter The operation of breath.
It is worth noting that all the above alternatives, can form the optional reality of the disclosure using any combination Example is applied, this is no longer going to repeat them.
The embodiment of the device of node initializing of the invention can be with application program on network devices.Installation practice can Can also be realized by way of hardware or software and hardware combining by software realization.Taking software implementation as an example, as one Device on logical meaning is to be referred to computer program corresponding in nonvolatile memory by the processor of equipment where it It enables and is read into memory what operation was formed, wherein computer program can be used for executing above-mentioned Figure 1B~embodiment illustrated in fig. 3 and mention The method of the node initializing of confession.For hardware view, as shown in fig. 6, being the hard of the equipment of node initializing of the invention Part structure chart, other than processor shown in fig. 6, network interface, memory and nonvolatile memory, the equipment is usual It can also include other hardware, such as be responsible for the forwarding chip of processing message;The equipment is also possible to from hardware configuration It is distributed equipment, may include multiple interface cards, to carry out the extension of Message processing in hardware view.On the other hand, Present invention also provides a kind of computer readable storage medium, storage medium is stored with computer program, and computer program can be with Method for executing the node initializing that above-mentioned Figure 1B~embodiment illustrated in fig. 3 provides.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following Claim is pointed out.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of method of node initializing characterized by comprising
Broadcast is for applying for the application information by the node initializing of current page for host node;
It reads and opposes information, wherein the opposition information is there are when the first host node page, and the first host node page connects Receive the information fed back after the application information;
In response to reading the reading for opposing information as a result, initializing to the node of the current page.
2. the method according to claim 1, wherein the broadcast target of the application information includes the current page Face, the reading oppose that information includes:
If the current page receives the application information, the operation read and oppose information is executed.
3. according to method as claimed in claim 2, which is characterized in that if the current page receives the application information, hold Row is described to read the operation for opposing information, further includes:
After the current page receives the application information, broadcast for confirming that the first host node page has fed back institute State the confirmation message for opposing information;
After the current page receives the confirmation message, the operation read and oppose information is executed.
4. the method according to claim 1, wherein described in response to reading the reading knot for opposing information Fruit initializes the node of the current page, comprising:
It is host node by the node initializing of the current page if reading the opposition information not successfully;
It is from node by the node initializing of the current page if successfully reading the opposition information.
5. according to the method described in claim 4, it is characterized in that, if described successfully read the opposition information, by institute State current page node initializing be after node, the method also includes:
Delete the opposition information.
6. the method according to claim 1, wherein the reading opposes that information includes:
Preset time is waited, the operation read and oppose information is executed.
7. a kind of device of node initializing characterized by comprising
Application information broadcast module, for broadcasting the letter of application for being used to apply by the node initializing of current page for host node Breath;
Oppose information reading module, oppose information for reading, wherein the opposition information is that there are the first host node pages When, the first host node page receives the information fed back after the application information;
Node initializing module, for reading the node as a result, to the current page in response to the reading opposition information It is initialized.
8. device according to claim 7, which is characterized in that the broadcast target of the application information includes the current page Face, the opposition information reading module are also used to execute the reading when the current page receives the application information Oppose the operation of information.
9. a kind of equipment of node initializing, which is characterized in that on a memory and can be including memory, processor and storage The computer program run on processor, wherein the processor realizes that the claims 1-6 is any when executing described program The method of the node initializing.
10. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter The method that calculation machine program is used to execute any node initializing of the claims 1-6.
CN201810879491.XA 2018-08-03 2018-08-03 Method, device and equipment for initializing node and storage medium Active CN109375966B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810879491.XA CN109375966B (en) 2018-08-03 2018-08-03 Method, device and equipment for initializing node and storage medium
PCT/CN2019/098814 WO2020025016A1 (en) 2018-08-03 2019-08-01 Node initialization for multipage communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810879491.XA CN109375966B (en) 2018-08-03 2018-08-03 Method, device and equipment for initializing node and storage medium

Publications (2)

Publication Number Publication Date
CN109375966A true CN109375966A (en) 2019-02-22
CN109375966B CN109375966B (en) 2020-07-03

Family

ID=65403798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810879491.XA Active CN109375966B (en) 2018-08-03 2018-08-03 Method, device and equipment for initializing node and storage medium

Country Status (2)

Country Link
CN (1) CN109375966B (en)
WO (1) WO2020025016A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020025016A1 (en) * 2018-08-03 2020-02-06 北京三快在线科技有限公司 Node initialization for multipage communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9401908B1 (en) * 2015-01-22 2016-07-26 Oracle International Corporation Authentication interworking in communications networks
CN106911524A (en) * 2017-04-27 2017-06-30 紫光华山信息技术有限公司 A kind of HA implementation methods and device
CN107800666A (en) * 2016-09-02 2018-03-13 中兴通讯股份有限公司 The processing method and processing device of content of pages, master node, slave node
CN108156236A (en) * 2017-12-22 2018-06-12 平安养老保险股份有限公司 Service request processing method, device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9960964B2 (en) * 2014-02-18 2018-05-01 Cellos Software Ltd System, method and apparatus to manage services in a network
CN104461632B (en) * 2014-12-09 2017-06-16 东软集团股份有限公司 A kind of Web App loading methods and device
CN105117162B (en) * 2015-09-15 2018-04-10 广东欧珀移动通信有限公司 A kind of application program page switching method and user terminal
CN105933391B (en) * 2016-04-11 2019-06-21 聚好看科技股份有限公司 A kind of node expansion method, apparatus and system
CN109375966B (en) * 2018-08-03 2020-07-03 北京三快在线科技有限公司 Method, device and equipment for initializing node and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9401908B1 (en) * 2015-01-22 2016-07-26 Oracle International Corporation Authentication interworking in communications networks
CN107800666A (en) * 2016-09-02 2018-03-13 中兴通讯股份有限公司 The processing method and processing device of content of pages, master node, slave node
CN106911524A (en) * 2017-04-27 2017-06-30 紫光华山信息技术有限公司 A kind of HA implementation methods and device
CN108156236A (en) * 2017-12-22 2018-06-12 平安养老保险股份有限公司 Service request processing method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020025016A1 (en) * 2018-08-03 2020-02-06 北京三快在线科技有限公司 Node initialization for multipage communication

Also Published As

Publication number Publication date
WO2020025016A1 (en) 2020-02-06
CN109375966B (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN101809540B (en) Network context triggers for activating virtualized computer applications
CN108121921A (en) Method for information display, mobile terminal and storage medium based on double screen
US11132766B2 (en) Image processing method and device using multiple layers of an operating system
CN106851615A (en) A kind of method and terminal of smart card abnormality processing
CN106155746A (en) Installation file processing method and device and server
CN112181677A (en) Service processing method and device, storage medium and electronic device
KR101709632B1 (en) Information processing device
CN107610310A (en) One kind is lined up processing method, server and computer-readable storage medium
CN103677988A (en) Multi-process communication method and system for software system
CN112637284A (en) Redo log storage method and device, electronic device and storage medium
WO2021077742A1 (en) Method, system, and device for service processing, and readable storage medium
CN109375966A (en) A kind of method, apparatus of node initializing, equipment and storage medium
WO2016119329A1 (en) Terminal controlling method, terminal controlling device and terminal
CN113412480B (en) Mounting processing method, mounting processing device, electronic equipment and computer readable storage medium
CN108241616B (en) Message pushing method and device
CN107704337B (en) Factory setting restoring method, mobile terminal and device with storage function
CN113254274A (en) Message processing method, device, storage medium and server
CN108536545A (en) The information processing method and device of terminal device
CN108984238B (en) Gesture processing method and device of application program and electronic equipment
CN115904770A (en) Process recovery method and device, electronic equipment and storage medium
CN107608717A (en) User space formation gathering method, device and system
CN109792617B (en) Application resiliency system for applications deployed on a platform and method thereof
CN115687820A (en) Page recovery method and device and storage medium
CN114281473A (en) Cloud platform test environment management method, system, terminal and storage medium
WO2021179487A1 (en) Method for dynamically allocating cloud host to host machine, electronic apparatus, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant