CN112527475A - Front-end system switching method and device - Google Patents

Front-end system switching method and device Download PDF

Info

Publication number
CN112527475A
CN112527475A CN201910887974.9A CN201910887974A CN112527475A CN 112527475 A CN112527475 A CN 112527475A CN 201910887974 A CN201910887974 A CN 201910887974A CN 112527475 A CN112527475 A CN 112527475A
Authority
CN
China
Prior art keywords
switching
switched
message
switching message
target system
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.)
Pending
Application number
CN201910887974.9A
Other languages
Chinese (zh)
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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910887974.9A priority Critical patent/CN112527475A/en
Publication of CN112527475A publication Critical patent/CN112527475A/en
Pending legal-status Critical Current

Links

Images

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a front-end system switching method and device. Wherein, the method comprises the following steps: receiving a switching message, wherein the switching navigation system broadcasts the switching message to all systems to be switched under the condition of monitoring the occurrence of an event of the switching system; determining whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message; and loading the target system to perform system switching under the condition that the system to be switched receiving the switching message is the target system. The invention solves the technical problem that the target system to be switched cannot be correctly and accurately loaded when the front end switches the system in the related technology.

Description

Front-end system switching method and device
Technical Field
The invention relates to the field of front ends, in particular to a front-end system switching method and device.
Background
Micro front-end is a popular system integration approach, integrating multiple systems to look like one system. For example: each entry of App, after entry, is actually a different system.
In the prior art, when a system is switched, sometimes it is found that a system page cannot be correctly loaded, or the routing implementation manners of the technology stacks are different, and the change of the system routing cannot be accurately sensed, so that a corresponding page is not loaded. When multi-system micro front-end aggregation is realized, sometimes a left menu is switched, and a right page corresponding to a system cannot be loaded. The root reason is that although the address bar address of the system is changed, the corresponding system does not sense and render the corresponding page. Resulting in a problem that the system cannot load pages correctly.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a front-end system switching method and a front-end system switching device, which are used for at least solving the technical problem that a target system to be switched cannot be correctly and accurately loaded when a front end switches systems in the related technology.
According to an aspect of the embodiments of the present invention, there is provided a front-end system switching method, including: receiving a switching message, wherein the switching navigation system broadcasts the switching message to all systems to be switched under the condition of monitoring the occurrence of an event of the switching system; determining whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message; and loading the target system to perform system switching under the condition that the system to be switched receiving the switching message is the target system.
Optionally, determining whether the target system to be switched for the switching message needs to be switched from the system to be switched that receives the switching message includes: analyzing the switching message to determine the identifier of the system needing to be switched, wherein the identifier is carried in the switching message; verifying the target system according to the identification; determining the target system as the target system under the condition that the target system passes the verification; determining not to be the target system in the event that the target system fails verification.
Optionally, before receiving the handover message, the method further includes: and sending a subscription request for the switching message, wherein the switching navigation system receives and responds to the subscription request and establishes a subscription relationship for the systems to be switched, and the systems to be switched with the subscription relationship all receive the switching message when the switching message is broadcasted.
Optionally, when the system to be switched that receives the switching message is the target system, loading the target system to perform system switching includes: determining a loading address according to the switching message under the condition that the system to be switched receiving the switching message is the target system; loading the target system to the loading address according to the loading address; and displaying a display page corresponding to the target system.
According to another aspect of the embodiments of the present invention, there is also provided a front-end system switching method, including: monitoring an event of a switching system; responding the occurrence of the event of the switching system, and broadcasting a switching message to all systems to be switched; the terminal of the system to be switched determines whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message according to the switching message; and loading the system to be switched to switch the system under the condition that the system to be switched receiving the switching message is the target system so as to switch the system.
Optionally, responding to the occurrence of the event of the switching system, before broadcasting the switching message to all systems to be switched, the method includes: receiving a subscription request of the system to be switched to the switching message; responding to the subscription request, and establishing a subscription relationship for the system to be switched; and when the switching message is broadcasted, the systems to be switched with the subscription relation all receive the switching message.
According to another aspect of the embodiments of the present invention, there is also provided a front-end system switching apparatus, including: the receiving module is used for receiving the switching information, wherein the switching navigation system broadcasts the switching information to all systems to be switched under the condition of monitoring the occurrence of the event of the switching system; a determining module, configured to determine whether the system to be switched receives the switching message is a target system to which the switching message needs to be switched; and the loading module is used for loading the target system to perform system switching under the condition that the system to be switched receiving the switching message is the target system.
According to another aspect of the embodiments of the present invention, there is also provided a front-end system switching apparatus, including: the monitoring module is used for monitoring the events of the switching system; the broadcast module is used for responding the occurrence of the event of the switching system and broadcasting the switching information to all systems to be switched; according to the switching message, determining whether the system is a target system to be switched of which the switching message needs to be switched from the system to be switched which receives the switching message; and loading the system to be switched to switch the system under the condition that the system to be switched receiving the switching message is the target system so as to switch the system.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, which is characterized by including a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute any one of the above methods.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, which includes at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the front-end system switching method as described in any one of the above.
In the embodiment of the invention, the switching information is received, wherein, under the condition that the occurrence of the event of the switching system is monitored, the switching navigation system broadcasts the switching information to all the systems to be switched; determining whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message; under the condition that a system to be switched for receiving a switching message is a target system, the target system is loaded to perform system switching in a mode of receiving and processing the switching message under the condition that an event of the switching system is monitored, and the target system is verified through the switching message, so that the aim of timely receiving the message of the switching system when the event of the switching system occurs is fulfilled, and the target system can accurately respond, so that the technical effect of improving the correctness and accuracy of the switching system is achieved, and the technical problem that the target system to be switched cannot be accurately and accurately loaded when a front end in the related technology switches the system is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flow chart of a head-end system handover method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another head-end system handover method according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of a front-end interface according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a head-end system switching apparatus according to an embodiment of the invention;
fig. 5 is a schematic diagram of another front-end system switching device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a front-end system switching method, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a front-end system switching method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, receiving a switching message, wherein the switching navigation system broadcasts the switching message to all systems to be switched under the condition that the occurrence of the event of the switching system is monitored;
step S104, determining whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message;
and step S106, loading the target system to switch the system when the system to be switched which receives the switching message is the target system.
Through the steps, the switching information is received, wherein the switching navigation system broadcasts the switching information to all the systems to be switched under the condition that the occurrence of the event of the switching system is monitored; determining whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message; under the condition that a system to be switched for receiving a switching message is a target system, the target system is loaded to perform system switching in a mode of receiving and processing the switching message under the condition that an event of the switching system is monitored, and the target system is verified through the switching message, so that the aim of timely receiving the message of the switching system when the event of the switching system occurs is fulfilled, and the target system can accurately respond, so that the technical effect of improving the correctness and accuracy of the switching system is achieved, and the technical problem that the target system to be switched cannot be accurately and accurately loaded when a front end in the related technology switches the system is solved.
The execution main body of the step can be a system to be switched or a terminal to which the system to be switched belongs, the system to be switched receives the switching message, and the switching message is used for indicating a correct system to respond and loading a corresponding page. Specifically, the switching message is broadcast from the switching navigation system to all systems to be switched when the switching navigation system monitors that an event of the switching system occurs. The number of the systems to be switched can be more than two, so that the system switching is necessary. And a plurality of systems to be switched can receive the switching message and then analyze and process the switching message, thereby determining whether the system to be switched is, and determining a switching event corresponding to the switching message, which is a target system to be switched to.
The switching navigation system can monitor whether the event of the switching system occurs through the event monitor, under the condition that the event of the switching system occurs, a target system corresponding to the event of the switching system is determined, a corresponding switching message is generated, and then the switching message is broadcasted to the plurality of systems to be switched through the switching navigation system.
The above-mentioned system to be switched, which receives the switching message, determines whether the system is the target system to which the switching message needs to be switched, and may be implemented in various ways. The system to be switched, that is, the system to be switched receiving the switching message, can be determined by the identifier of the target system, and the system to be switched is determined to be the target system by comparing the identifier of the target system contained in the switching message with the identifier of the system to be switched. The system to be switched is provided with a plurality of different keys through key matching, each system to be switched is provided with a unique key, the switching message comprises a matching key which can be successfully matched with the key of the target system, the switching system is matched with the matching key in the switching message after receiving the switching message, and the system to be switched is determined to be the target system under the condition of successful matching. The information verification can be carried out, the switching message comprises only information which can be verified by the target system, and whether the system to be switched is the target system can be determined through the verification.
And after determining that the system to be switched is the target system, automatically loading the system to be switched, wherein the switching message comprises a loading address and a page needing to be displayed and rendered by the system to be switched. The system to be switched can comprise a plurality of connections or modules, and when the system to be switched is displayed at the front end, the system to be switched can have a plurality of interfaces and pages, so that the switching message comprises a target interface of a target system corresponding to an event of the switching system, and the system to be switched is controlled to render and display according to the target interface.
Optionally, determining whether the target system to be switched for the switching message needs to be switched from the system to be switched that receives the switching message includes: analyzing the switching message to determine the identifier of the system needing to be switched, wherein the identifier is carried in the switching message; and according to the system identification, determining a target system from the systems to be switched which receive the switching message.
The system to be switched, which determines whether the system to be switched is the switching message, can determine the identifier of the system to be switched, which is carried in the switching message, by analyzing the switching message, from the system to be switched, which receives the switching message, so that the target system is determined from the system to be switched, which receives the switching message, according to the identifier. Specifically, according to the system identifier, determining the target system from the system to be switched that has received the switching message includes: verifying the target system according to the identification; determining the target system as the target system under the condition that the target system passes the verification; in the event that the target system fails verification, it is determined not to be the target system.
Optionally, before receiving the handover message, the method further includes: and sending a subscription request for the switching message, wherein the switching navigation system receives and responds to the subscription request and establishes a subscription relationship with the system to be switched, and when the switching message is broadcasted, the system to be switched with the subscription relationship receives the switching message.
The plurality of systems to be switched broadcast the switching information generated by the switching navigation system in a subscription mode to the systems to be switched with the subscription relationship, so that the problem that the error rate is increased due to the fact that other systems receive the broadcasted switching information and the error response of other systems is caused can be solved.
Optionally, in a case where the system to be switched that receives the switching message is the target system, loading the target system to perform system switching includes: determining a loading address according to the switching message under the condition that the system to be switched receiving the switching message is a target system; and loading the target system to the loading address according to the loading address.
The handover message may include the load address. And the interface which needs to be displayed and rendered by the target system can be included.
Optionally, when the system to be switched that receives the switching message is the target system, loading the system to be switched includes: and displaying a display page corresponding to the target system.
Fig. 2 is a flowchart of another front-end system switching method according to an embodiment of the present invention, and as shown in fig. 2, according to another aspect of the embodiment of the present invention, another front-end system switching method is further provided, including:
step S202, monitoring an event of a switching system;
step S204, responding to the occurrence of the event of the switching system, and broadcasting a switching message to all systems to be switched;
determining whether the system is a target system to be switched of which the switching message needs to be switched from the system to be switched which receives the switching message according to the switching message; and loading the system to be switched to switch the system under the condition that the system to be switched receiving the switching message is the target system.
Through the steps, monitoring the event of the switching system; responding the occurrence of the event of the switching system, and broadcasting a switching message to all systems to be switched; determining whether the system is a target system to be switched of which the switching message needs to be switched from the system to be switched which receives the switching message according to the switching message; the method comprises the steps that under the condition that a to-be-switched system receiving a switching message is a target system, the to-be-switched system is loaded to perform system switching, the switching message is broadcasted to a system with switching under the condition that an event of the switching system is monitored, the to-be-switched system verifies the target system through the switching message, the purpose that the message of the switching system is received in time when the event of the switching system occurs is achieved, and the target system can accurately respond, so that the technical effect of improving the correctness and the accuracy of the switching system is achieved, and the technical problem that the target system to be switched cannot be accurately and accurately loaded when the front end in the related technology switches the system is solved.
The execution subject of the steps can be a switching navigation system or a website server.
Optionally, the broadcasting the switching message to all systems to be switched in response to the occurrence of the event of the switching system includes: receiving a subscription request of a system to be switched to the switching message; responding to the subscription request, and establishing a subscription relationship for the system to be switched; when the switching message is broadcasted, the systems to be switched with the subscription relation all receive the switching message.
Optionally, the monitoring the event of the switching system includes: and clicking touch operation of a switching system interface, wherein the switching system interface comprises a plurality of operating areas respectively corresponding to the systems to be switched.
It should be noted that this embodiment also provides an alternative implementation, which is described in detail below.
Micro front-end is a popular system integration approach, integrating multiple systems to look like one system. FIG. 3 is a schematic diagram of a front-end interface according to an embodiment of the present invention, as shown in FIG. 3, for example: each portal of a website may include: police reception, time management, administrative cases, criminal cases, traffic cases, administrative reviews, and the like. Click-to-alarm and event management, and right-loaded is actually a different system. Specifically, a part of interfaces corresponding to different entries in the left navigation interface is clicked, and the system display interface on the right side can enter the system interface corresponding to the entry, and correspondingly enter different systems. The technology stacks or frameworks for the various systems are sometimes less consistent. For the problem that how to click left side to switch different systems and how to know which page to load each subsystem, in the related art, system pages cannot be loaded correctly sometimes when the systems are switched, or the routing implementation modes of the technology stacks are different, and the change of the system routing cannot be sensed accurately, so that the corresponding page is not loaded.
When multi-system micro front-end aggregation is realized, a right page which cannot be loaded to a system is generated sometimes when a left menu is switched. The root reason is that although the address bar address of the system changes, the corresponding system does not sense and render the corresponding page. Solving this problem solves the problem of the system not loading pages correctly.
In order to solve the above problems: firstly, an event listener is registered in the navigation system, the event listener will monitor the click event of the navigation system (i.e. the left menu), the event will dispatch a message, the message will be broadcast, and then all that needs to be done by other subsystems (i.e. the system to be switched) is: subscribe to this message (i.e., the handover message described above). This message is received by all subsystems as soon as the left navigation menu clicks on the trigger broadcast.
After receiving the message, the subsystem analyzes the message, and whether the analysis is to the system or not is judged, if not: then it is not processed. If so: and analyzing which page the subsystem wants to go to, so that the corresponding page is loaded in the loading mode of the subsystem. Thus, the corresponding page can be correctly rendered.
The implementation mode solves the problem that the micro front end cannot correctly load the corresponding page when the page is switched by the subsystems among a plurality of different technology stacks.
Fig. 4 is a schematic diagram of a front-end system switching apparatus according to an embodiment of the present invention, and as shown in fig. 4, according to another aspect of the embodiment of the present invention, there is also provided a front-end system switching apparatus including: a receiving module 42, a determining module 44 and a loading module 46. The apparatus will be described in detail below.
A receiving module 42, configured to receive a switching message, where the switching navigation system broadcasts the switching message to all systems to be switched when an event of the switching system is monitored; a determining module 44, connected to the receiving module 42, configured to determine, from the system to be switched that receives the switching message, whether the system is a target system to which the switching message needs to be switched; and a loading module 46, connected to the determining module 44, for loading the target system to perform system switching if the system to be switched that receives the switching message is the target system.
By the device, the receiving module 42 is adopted to receive the switching message, wherein the switching navigation system broadcasts the switching message to all systems to be switched under the condition that the occurrence of the event of the switching system is monitored; the determining module 44 determines whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the systems to be switched which receive the switching message; the loading module 46 loads the target system when the system to be switched, which receives the switching message, is the target system, so as to perform system switching, receive and process the switching message when the event of the switching system is monitored, and verify the target system through the switching message, so that the target system can timely receive the message of the switching system when the event of the switching system occurs, and the target system can accurately respond, thereby achieving the technical effect of improving the correctness and accuracy of the switching system, and further solving the technical problem that the target system to be switched cannot be correctly and accurately loaded when the front end switches the system in the related art.
The front-end system switching device comprises a processor and a memory, wherein the receiving module 42, the determining module 44, the loading module 46 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the kernel parameters are adjusted to timely receive the message of the switching system when the event of the switching system occurs, so that the target system can accurately react.
Fig. 5 is a schematic diagram of another front-end system switching apparatus according to an embodiment of the present invention, and as shown in fig. 5, according to another aspect of the embodiment of the present invention, there is also provided a front-end system switching apparatus including: a listening module 52 and a broadcasting module 54, which will be described in detail below.
A monitoring module 52, configured to monitor an event of the switching system; a broadcast module 54 connected to the monitoring module 52 for responding to the occurrence of the event of switching the system and broadcasting the switching message to all the systems to be switched; determining whether the system is a target system to be switched of which the switching message needs to be switched from the system to be switched which receives the switching message according to the switching message; and loading the system to be switched to switch the system under the condition that the system to be switched receiving the switching message is the target system.
By the device, the monitoring module 52 is adopted to monitor the events of the switching system; the broadcast module 54 responds to the occurrence of the event of the switching system and broadcasts the switching message to all the systems to be switched; determining whether the system is a target system to be switched of which the switching message needs to be switched from the system to be switched which receives the switching message according to the switching message; the method comprises the steps that under the condition that a to-be-switched system receiving a switching message is a target system, the to-be-switched system is loaded to perform system switching, the switching message is broadcasted to a system with switching under the condition that an event of the switching system is monitored, the to-be-switched system verifies the target system through the switching message, the purpose that the message of the switching system is received in time when the event of the switching system occurs is achieved, and the target system can accurately respond, so that the technical effect of improving the correctness and the accuracy of the switching system is achieved, and the technical problem that the target system to be switched cannot be accurately and accurately loaded when the front end in the related technology switches the system is solved.
The front-end system switching device comprises a processor and a memory, wherein the monitoring module 52, the broadcasting module 54 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the kernel parameters are adjusted to timely receive the message of the switching system when the event of the switching system occurs, so that the target system can accurately react.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, which is characterized by including a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute any one of the above methods.
According to another aspect of the embodiments of the present invention, there is further provided a processor, which is characterized in that the processor is configured to execute a program, wherein the program executes to perform the method of any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, characterized in that the electronic device includes at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through a bus; the processor is configured to invoke program instructions in the memory to perform the front-end system switching method as in any one of the above. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
receiving a switching message, wherein the switching navigation system broadcasts the switching message to all systems to be switched under the condition of monitoring the occurrence of an event of the switching system; determining whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message; and loading the target system to perform system switching under the condition that the system to be switched receiving the switching message is the target system.
Optionally, determining whether the target system to be switched for the switching message needs to be switched from the system to be switched that receives the switching message includes: analyzing the switching message to determine the identifier of the system needing to be switched, wherein the identifier is carried in the switching message; verifying the target system according to the identification; determining the target system as the target system under the condition that the target system passes the verification; in the event that the target system fails verification, it is determined not to be the target system.
Optionally, before receiving the handover message, the method further includes: and sending a subscription request for the switching message, wherein the switching navigation system receives and responds to the subscription request and establishes a subscription relationship with the system to be switched, and when the switching message is broadcasted, the system to be switched with the subscription relationship receives the switching message.
Optionally, in a case where the system to be switched that receives the switching message is the target system, loading the target system to perform system switching includes: determining a loading address according to the switching message under the condition that the system to be switched receiving the switching message is a target system; loading the target system to the loading address according to the loading address; and displaying a display page corresponding to the target system.
When the program runs, another front-end system switching method is also executed, and the method comprises the following steps: monitoring an event of a switching system; responding the occurrence of the event of the switching system, and broadcasting a switching message to all systems to be switched; the terminal to which the system to be switched belongs determines whether the system to be switched is a target system to be switched of the switching message from the system to be switched which receives the switching message according to the switching message; and loading the system to be switched to switch the system under the condition that the system to be switched receiving the switching message is the target system.
Optionally, the broadcasting the switching message to all systems to be switched in response to the occurrence of the event of the switching system includes: receiving a subscription request of a system to be switched to the switching message; responding to the subscription request, and establishing a subscription relationship for the system to be switched; when the switching message is broadcasted, the systems to be switched with the subscription relation all receive the switching message.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A front-end system switching method is characterized by comprising the following steps:
receiving a switching message, wherein the switching navigation system broadcasts the switching message to all systems to be switched under the condition of monitoring the occurrence of an event of the switching system;
determining whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message;
and loading the target system to perform system switching under the condition that the system to be switched receiving the switching message is the target system.
2. The method of claim 1, wherein determining whether a target system requiring handover for the handover message is a target system to be handed over from among the systems to be handed over that received the handover message comprises:
analyzing the switching message to determine the identifier of the system needing to be switched, wherein the identifier is carried in the switching message;
verifying the target system according to the identification;
determining the target system as the target system under the condition that the target system passes the verification;
determining not to be the target system in the event that the target system fails verification.
3. The method of claim 1, wherein prior to receiving the handover message, the method further comprises:
and sending a subscription request for the switching message, wherein the switching navigation system receives and responds to the subscription request and establishes a subscription relationship for the systems to be switched, and the systems to be switched with the subscription relationship all receive the switching message when the switching message is broadcasted.
4. The method of claim 1, wherein in case that the system to be switched receiving the switching message is the target system, loading the target system for system switching comprises:
determining a loading address according to the switching message under the condition that the system to be switched receiving the switching message is the target system;
loading the target system to the loading address according to the loading address;
and displaying a display page corresponding to the target system.
5. A front-end system switching method is characterized by comprising the following steps:
monitoring an event of a switching system;
responding the occurrence of the event of the switching system, and broadcasting a switching message to all systems to be switched;
the terminal of the system to be switched determines whether the system to be switched is a target system to be switched for which the switching message needs to be switched from the system to be switched which receives the switching message according to the switching message; and loading the system to be switched to switch the system under the condition that the system to be switched receiving the switching message is the target system so as to switch the system.
6. The method of claim 5, wherein broadcasting a handover message to all systems to be handed over in response to the occurrence of the event of the handover system comprises:
receiving a subscription request of the system to be switched to the switching message;
responding to the subscription request, and establishing a subscription relationship for the system to be switched; and when the switching message is broadcasted, the systems to be switched with the subscription relation all receive the switching message.
7. A front-end system switching device, comprising:
the receiving module is used for receiving the switching information, wherein the switching navigation system broadcasts the switching information to all systems to be switched under the condition of monitoring the occurrence of the event of the switching system;
a determining module, configured to determine whether the system to be switched receives the switching message is a target system to which the switching message needs to be switched;
and the loading module is used for loading the target system to perform system switching under the condition that the system to be switched receiving the switching message is the target system.
8. A front-end system switching device, comprising:
the monitoring module is used for monitoring the events of the switching system;
the broadcast module is used for responding the occurrence of the event of the switching system and broadcasting the switching information to all systems to be switched;
according to the switching message, determining whether the system is a target system to be switched of which the switching message needs to be switched from the system to be switched which receives the switching message; and loading the system to be switched to switch the system under the condition that the system to be switched receiving the switching message is the target system so as to switch the system.
9. A storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the storage medium is located to perform the method of any one of claims 1 to 6.
10. An electronic device, comprising at least one processor, and at least one memory connected to the processor, a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the front-end system switching method of any of claims 1-6.
CN201910887974.9A 2019-09-19 2019-09-19 Front-end system switching method and device Pending CN112527475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910887974.9A CN112527475A (en) 2019-09-19 2019-09-19 Front-end system switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910887974.9A CN112527475A (en) 2019-09-19 2019-09-19 Front-end system switching method and device

Publications (1)

Publication Number Publication Date
CN112527475A true CN112527475A (en) 2021-03-19

Family

ID=74974199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910887974.9A Pending CN112527475A (en) 2019-09-19 2019-09-19 Front-end system switching method and device

Country Status (1)

Country Link
CN (1) CN112527475A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296481A (en) * 2007-04-27 2008-10-29 华为技术有限公司 Method, system and device for switching between networks
WO2012000373A1 (en) * 2010-06-29 2012-01-05 华为终端有限公司 Method, system and device for switching a conference
CN105528439A (en) * 2015-12-21 2016-04-27 北京奇虎科技有限公司 Switching method and device for page in browser label
CN109788078A (en) * 2017-11-13 2019-05-21 华为技术有限公司 Application server switching method, equipment and system
CN110086636A (en) * 2019-04-17 2019-08-02 平安科技(深圳)有限公司 A kind of message distributing method based on mqtt, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296481A (en) * 2007-04-27 2008-10-29 华为技术有限公司 Method, system and device for switching between networks
WO2012000373A1 (en) * 2010-06-29 2012-01-05 华为终端有限公司 Method, system and device for switching a conference
CN105528439A (en) * 2015-12-21 2016-04-27 北京奇虎科技有限公司 Switching method and device for page in browser label
CN109788078A (en) * 2017-11-13 2019-05-21 华为技术有限公司 Application server switching method, equipment and system
CN110086636A (en) * 2019-04-17 2019-08-02 平安科技(深圳)有限公司 A kind of message distributing method based on mqtt, server and storage medium

Similar Documents

Publication Publication Date Title
US11700540B2 (en) Method and device for monitoring network data
CN108804399B (en) Form verification method and device
CN111159269B (en) Data processing method, device and system
CN106331060B (en) WIFI-based deployment and control method and system
CN111158943A (en) Fault diagnosis method and apparatus, storage medium, electronic device
CN112241362A (en) Test method, test device, server and storage medium
CN104424098A (en) Application test method and application testing device
CN115878358A (en) Abnormal log analysis method and device, electronic equipment and storage medium
CN113746879A (en) Data processing method and device based on Virtual Private Cloud (VPC)
CN112527475A (en) Front-end system switching method and device
CN114285657B (en) Firewall security policy change verification method and device
CN107766232B (en) Plug-in management method and device
CN112788551B (en) Message processing method and device, terminal equipment and storage medium
CN113452533B (en) Charging self-inspection and self-healing method and device, computer equipment and storage medium
CN115729727A (en) Fault repairing method, device, equipment and medium
CN114465876A (en) Fault processing method, device, equipment and storage medium
CN109756393B (en) Information processing method, system, medium, and computing device
CN112800130A (en) Data uplink method, system, device, equipment and storage medium
CN117667604B (en) Data monitoring method, device, electronic equipment and storage medium for tracking event
CN115038134B (en) Service request processing method, device, equipment and medium
CN111147796B (en) Monitoring data display method, device and storage medium in video conference
CN104735076A (en) Grouping aggregation method, client-side and server
EP3439354A1 (en) Method and apparatus for managing application state
CN113778800B (en) Error information processing method, device, system, equipment and storage medium
CN113094268B (en) Test method, test device, test equipment and test 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