CN112596922A - Communication management method, apparatus, device, medium, and program product - Google Patents

Communication management method, apparatus, device, medium, and program product Download PDF

Info

Publication number
CN112596922A
CN112596922A CN202011501461.9A CN202011501461A CN112596922A CN 112596922 A CN112596922 A CN 112596922A CN 202011501461 A CN202011501461 A CN 202011501461A CN 112596922 A CN112596922 A CN 112596922A
Authority
CN
China
Prior art keywords
communication
event
configuration table
room
rooms
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
CN202011501461.9A
Other languages
Chinese (zh)
Other versions
CN112596922B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011501461.9A priority Critical patent/CN112596922B/en
Publication of CN112596922A publication Critical patent/CN112596922A/en
Application granted granted Critical
Publication of CN112596922B publication Critical patent/CN112596922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Abstract

The application discloses a communication management method, a communication management device, communication management equipment, communication management media and communication management program products for an applet framework, relates to the field of internet, and particularly relates to an applet and a communication technology. The specific implementation scheme is as follows: acquiring a configuration table, wherein the configuration table is used for configuring communication types and event communication rights required among different modules in an applet framework and between the applet framework and an end capability module; and registering at least two communication rooms according to the configuration table, wherein each communication room is used for carrying out event communication with the event communication authority under at least one communication type. According to the method and the device, the communication room is registered, and the communication events with the permission under different communication types are carried out in the communication room, so that not only is communication isolation realized, but also permission management of the communication events can be realized, and communication is more standard and manageable.

Description

Communication management method, apparatus, device, medium, and program product
Technical Field
The present application relates to the field of internet, and in particular, to an applet and a communication technology, and more particularly, to a communication management method, apparatus, device, medium, and program product for an applet framework.
Background
The small program framework runs on a Native APP, the capability of a developer in the small program is realized based on the end capability of the NA, and part of components are enhanced based on the end capability, so that various communication links between JS and the NA are involved. Meanwhile, a lot of communication in the applet framework is realized in an event-based mode, so that a large number of communication links of JS and JS events are involved.
However, the existing communication mechanism in the applet framework lacks management of these events, which easily causes confusion of system and event communication.
Disclosure of Invention
The application provides a communication management method, a device, equipment, a medium and a program product for an applet framework, so that communication is more standard and manageable.
In a first aspect, the present application provides a communication management method for an applet framework, including:
acquiring a configuration table, wherein the configuration table is used for configuring communication types and event communication rights required among different modules in an applet framework and between the applet framework and an end capability module;
and registering at least two communication rooms according to the configuration table, wherein each communication room is used for carrying out event communication with the event communication authority under at least one communication type.
In a second aspect, the present application further provides a communication management apparatus for an applet framework, including:
the system comprises a configuration table acquisition module, a configuration table acquisition module and a configuration table management module, wherein the configuration table acquisition module is used for acquiring a configuration table, and the configuration table is used for configuring communication types and event communication rights required between different modules in an applet framework and between the applet framework and an end capability module;
and the communication room registration module is used for registering at least two communication rooms according to the configuration table, wherein each communication room is used for carrying out event communication with the event communication authority under at least one communication type.
In a third aspect, the present application further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a communication management method for an applet framework as described in any of the embodiments of the application.
In a fourth aspect, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the communication management method for a applet framework described in any of the embodiments of the present application.
In a fifth aspect, the present application further provides a computer program product comprising a computer program which, when executed by a processor, implements the communication management method for an applet framework as described in any of the embodiments of the present application.
According to the technical scheme of the application, the communication room is registered, and the communication events with the permission under different communication types are carried out in the communication room, so that not only is communication isolation realized, but also permission management of the communication events can be realized, and communication is more standard and manageable.
It should be understood that the statements herein do not intend to identify key or critical features of the present application, nor to limit the scope of the present application. Other features of the present application will become readily apparent from the following description, and other effects of the above alternatives will be described hereinafter in conjunction with specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a flow diagram of a communication management method for an applet framework according to an embodiment of the application;
FIG. 2 is a flow diagram of a communication management method for an applet framework according to an embodiment of the application;
FIG. 3 is a communication management mechanism hierarchy partitioning diagram in an applet framework according to an embodiment of the application;
FIG. 4 is a schematic diagram of a mechanism for a communication manager in an applet framework to register a room, according to an embodiment of the application;
FIG. 5 is a schematic structural diagram of a communication management apparatus for an applet framework according to an embodiment of the application;
fig. 6 is a block diagram of an electronic device for implementing a communication management method for an applet framework according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart illustrating a communication management method for an applet framework according to an embodiment of the present application, which is applicable to a case where communication management is performed in the applet framework, and relates to an applet and a communication technology. The method can be performed by a communication management apparatus for an applet framework, which is implemented in software and/or hardware, and is preferably configured in an electronic device, such as a terminal or a server. As shown in fig. 1, the method specifically includes the following steps:
s101, obtaining a configuration table, wherein the configuration table is used for configuring communication types and event communication rights required between different modules in the applet framework and between the applet framework and the terminal capability module.
Specifically, the communication types refer to communication between JS, and communication between JS and NA. For example, communication between different modules in the applet frame pertains to communication between JS, and communication between JS and NA pertains to communication between JS and the end capability module. The communication between the JS may include, for example, event sending, event listening, cancellation of event listening, removal of event listening, and the like; the communication between JS and NA may include, for example, JS messaging NA and JS listening for NA messages, etc.
The configuration table may be obtained or formulated by a technician in advance, for example, modules in an applet framework are configured in combination with communication appeal of an applet, which modules communicate with which modules, or which modules communicate with an end capability module (NA), and which event communication permissions are included in different communication types, for example, which modules can only send events and cannot monitor events, or which modules do not have an ability to remove event monitoring, and the like, all belong to the scope of permission configuration.
S102, registering at least two communication rooms according to a configuration table, wherein each communication room is used for carrying out event communication with the event communication authority under at least one communication type.
Specifically, each communication room is used for event communication with the event communication authority under at least one communication type, that is, according to the configuration table, the communication events under different related communication types are managed, and for a certain module, who needs to communicate with the certain module, only the corresponding communication room needs to be configured and registered in the configuration table. After the rooms are registered, all related communication events are carried out in the rooms to which the communication events belong, so that communication isolation is realized through the communication rooms, and meanwhile, the authority management of communication can be realized.
However, in the applet framework in the prior art, because a large amount of communication between JS and communication between JS and NA are involved, management is lacked, communication in the system is often disordered, and problems are easily caused. In contrast, the technical scheme of the embodiment of the application provides a set of management mechanism, and solves the problems of lack of management and random use in the prior art.
According to the technical scheme, the communication room is registered, and the communication events with the permission under different communication types are carried out in the communication room, so that communication isolation is realized, permission management of the communication events can be realized, and communication is more standard and manageable.
Fig. 2 is a flowchart illustrating a communication management method for an applet framework according to an embodiment of the present application, and the present embodiment is further optimized based on the foregoing embodiment. As shown in fig. 2, the method specifically includes the following steps:
s201, obtaining a configuration table, wherein the configuration table is used for configuring communication types and event communication rights required between different modules in the applet framework and between the applet framework and the terminal capability module.
And S202, registering a new namespace for each created communication room, wherein the namespaces are used for realizing communication isolation among different communication rooms.
Specifically, when registering a communication room, a new namespace needs to be registered for each room to realize communication isolation between different rooms, and meanwhile, a management mechanism for canonical naming is also realized.
S203, registering at least one communication type of each communication room according to the configuration table, and registering the communication event with the event communication authority under the at least one communication type.
For example, what kind of communication type the communication between the modules belongs to and the communication event with the authority can be determined through the configuration table, and then the corresponding communication room can be registered to realize the communication of the event with the authority in the respective communication room. Therefore, the communication room is registered according to the configuration table, not only communication isolation is realized, but also a management mechanism of the authority is realized. For example, according to the technical scheme of the embodiment of the application, the authority control can be performed on the framework developer or the external expansion capability application event communication, and the problem caused by overlarge authority of the external developer is avoided.
In addition, the method of the embodiment of the application may further include: and merging at least two registered communication rooms, wherein the merged rooms have event message monitoring capability. Therefore, the implementation of the scheme has more flexibility and practicability, and the registered rooms can be combined according to the communication appeal. Meanwhile, an interface can be provided for the outside, and a plurality of rooms can be monitored by calling the interface. Accordingly, the configuration table may also be used to configure event communication rights between the merged communication rooms. That is, the event communication right of the merged communication room can be configured, for example, the merged room can monitor event messages of other rooms, but by configuration, it can also be selected whether the merged room can only monitor messages and cannot send messages.
S204, storing communication rooms passed by each applet thread in the communication process and communication events occurring in each communication room.
And S205, responding to the event backtracking request, and printing the call stack of the communication event.
In the prior art, an applet frame has no event backtracking function, and cannot trace a call stack of an event, so that offline debugging and tracking are difficult. According to the technical scheme of the embodiment of the application, the rooms and the communication events which the small program threads pass through are stored, the call stacks of the communication events are printed, the event backtracking capability under the offline debugging version can be provided, which communication rooms exist in the current threads and which events exist in each communication room can be printed, meanwhile, the call stacks of the corresponding events can be printed to help to solve problems, and the management mechanism of event backtracking is achieved.
In a specific implementation, a communication management mechanism hierarchy in the applet framework of the embodiment of the present application is schematically illustrated in fig. 3, wherein,
a communication manager 1 (communications manager) for managing the overall communication between JS and NA and between JS and JS, and responsible for registering a communication room for a module that requires both types of communication;
an event sending manager 2 (evenemittemanager) for managing event communication between JS and JS, and for registering a room for a module requiring JS and JS communication;
an event sending module 4(eventaEmitter), namely a JS and JS event communication module, for implementing specific operations of event communication, including event sending, monitoring, removing and the like;
and the NA communication module (naCommunicator), namely the JS and NA event communication module, is used for realizing the event sending capability, the event monitoring capability and the like used between the JS and NA communication.
As can be seen from fig. 3, the communication management mechanism of the applet framework in the embodiment of the present application adopts a hierarchical design concept, and has an event sending manager 2 for managing JS and JS communication, and also has a communication manager 1 for managing JS and NA communication, and overall communication between JS and NA, JS and JS, and each layer is pluggable and can be used independently.
In addition, a room repeater (not shown in the figure) and an interface corresponding to the room repeater can be provided in the applet framework of the embodiment of the present application, and the combined multiple communication modules under the repeater can be monitored by calling the interface.
Fig. 4 is a schematic diagram of a mechanism of registering a room by a communication manager in an applet framework according to an embodiment of the present application, and as shown in fig. 4, firstly, the communication manager is configured to form a configuration table, and after instantiating the communication manager, the communication manager is used to register a communication room according to the configuration table, at this time, a plurality of communication rooms, such as communication room 1, communication room 2, etc., may be registered according to requirements of the configuration table. At the same time, it is also necessary to register a communication event under each communication room. Exemplarily, the communication room 1 can simultaneously perform communication between JS and between JS and NA, wherein the communication event between JS and JS includes event sending, event monitoring cancellation, and event monitoring removal, and the communication event between JS and NA includes messages sent by JS to NA and messages sent by JS to NA; communication room 2 can only communicate between JS and JS; and other communication rooms can be registered according to the communication appeal.
After the communication rooms and the communication events in each room are registered, a developer of the applet can directly call a method under an object to trigger a corresponding event when developing the applet by using the applet framework, and because the applet framework registers the communication rooms according to a configuration table, communication management is realized through mechanisms such as naming standards, event management, authority management, event backtracking and the like, so that the developer needs to abide by the naming standards and event authorities when using the communication rooms, otherwise, the system can give an alarm, illegal communication is not allowed to be carried out, standardized management is realized for communication, and the problem caused by random use is avoided.
According to the technical scheme, a whole set of communication management mechanisms such as naming specification, event management, authority management and event backtracking are provided for the applet framework, the problems that existing communication is lack of management and random in use are solved, communication becomes standard, manageable and easy to maintain, and cost for positioning problems of online events is reduced.
Fig. 5 is a schematic structural diagram of a communication management apparatus for an applet framework according to an embodiment of the present application, to which this embodiment is applicable. The device can realize the communication management method for the applet framework in any embodiment of the application. As shown in fig. 5, the apparatus 500 specifically includes:
a configuration table obtaining module 501, configured to obtain a configuration table, where the configuration table is used to configure communication types and event communication permissions required between different modules in an applet framework and between the applet framework and an end capability module;
a communication room registration module 502, configured to register at least two communication rooms according to the configuration table, where each communication room is used to perform event communication with the event communication right in at least one communication type.
Optionally, the communication room registration module 502 includes:
a namespace registration unit, which is used for registering a new namespace for each created communication room, wherein the namespaces are used for realizing communication isolation among different communication rooms;
and the communication type and communication event registering unit is used for registering at least one communication type of each communication room and a communication event with the event communication authority under the at least one communication type according to the configuration table.
Optionally, the apparatus further comprises:
and the communication room merging module is used for merging at least two registered communication rooms, wherein the merged rooms have the event message monitoring capability.
Optionally, the configuration table is further configured to configure event communication permissions between the merged communication rooms.
Optionally, the apparatus further includes an event tracing module, where the event tracing module includes:
the storage unit is used for storing communication rooms passed by each applet thread in a communication process and communication events occurring in each communication room;
and the printing unit is used for responding to the event backtracking request and printing the call stack of the communication event.
Optionally, the communication types include communication between JS and NA.
Optionally, the communication between JS includes at least one of the following communication events: event sending, event monitoring cancellation and event monitoring removal;
the communication between the JS and the NA comprises at least one of the following communication events: and the JS sends a message to the NA and the JS monitors the NA message.
The communication management device 500 for the applet framework provided in the embodiment of the present application can execute the communication management method for the applet framework provided in any embodiment of the present application, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the present application for details not explicitly described in this embodiment.
There is also provided, in accordance with an embodiment of the present application, an electronic device, a readable storage medium, and a computer program product.
FIG. 6 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 601 executes the respective methods and processes described above, such as the communication management method for the applet framework. For example, in some embodiments, the communication management method for an applet framework may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the communication management method for an applet framework described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured by any other suitable means (e.g., by means of firmware) to perform the communication management method for the applet framework.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A communication management method for an applet framework, comprising:
acquiring a configuration table, wherein the configuration table is used for configuring communication types and event communication rights required among different modules in an applet framework and between the applet framework and an end capability module;
and registering at least two communication rooms according to the configuration table, wherein each communication room is used for carrying out event communication with the event communication authority under at least one communication type.
2. The method of claim 1, wherein said registering at least two communication rooms according to the configuration table comprises:
registering a new namespace for each created communication room, wherein the namespaces are used for realizing communication isolation among different communication rooms;
and registering at least one communication type of each communication room according to the configuration table, and the communication event with the event communication authority under the at least one communication type.
3. The method of claim 1, further comprising:
and merging at least two registered communication rooms, wherein the merged rooms have event message monitoring capability.
4. The method of claim 3, wherein the configuration table is further used to configure event communication rights between the merged communication rooms.
5. The method of claim 1, further comprising:
storing communication rooms passed by each applet thread in the communication process and communication events occurring in each communication room;
and printing a call stack of the communication event in response to the event backtracking request.
6. The method of any of claims 1-5, wherein the communication types include communication between JS, and communication between JS and NA.
7. The method of claim 6, wherein,
the communication between the JS includes at least one of the following communication events: event sending, event monitoring cancellation and event monitoring removal;
the communication between the JS and the NA comprises at least one of the following communication events: and the JS sends a message to the NA and the JS monitors the NA message.
8. A communication management apparatus for an applet framework, comprising:
the system comprises a configuration table acquisition module, a configuration table acquisition module and a configuration table management module, wherein the configuration table acquisition module is used for acquiring a configuration table, and the configuration table is used for configuring communication types and event communication rights required between different modules in an applet framework and between the applet framework and an end capability module;
and the communication room registration module is used for registering at least two communication rooms according to the configuration table, wherein each communication room is used for carrying out event communication with the event communication authority under at least one communication type.
9. The apparatus of claim 8, wherein the communication room registration module comprises:
a namespace registration unit, which is used for registering a new namespace for each created communication room, wherein the namespaces are used for realizing communication isolation among different communication rooms;
and the communication type and communication event registering unit is used for registering at least one communication type of each communication room and a communication event with the event communication authority under the at least one communication type according to the configuration table.
10. The apparatus of claim 8, further comprising:
and the communication room merging module is used for merging at least two registered communication rooms, wherein the merged rooms have the event message monitoring capability.
11. The apparatus of claim 10, wherein the configuration table is further configured to configure event communication rights between the merged communication rooms.
12. The apparatus of claim 8, further comprising an event trace back module comprising:
the storage unit is used for storing communication rooms passed by each applet thread in a communication process and communication events occurring in each communication room;
and the printing unit is used for responding to the event backtracking request and printing the call stack of the communication event.
13. The apparatus of any of claims 8-12, wherein the communication types include communication between JS, and communication between JS and NA.
14. The apparatus of claim 13, wherein,
the communication between the JS includes at least one of the following communication events: event sending, event monitoring cancellation and event monitoring removal;
the communication between the JS and the NA comprises at least one of the following communication events: and the JS sends a message to the NA and the JS monitors the NA message.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the communication management method for an applet framework recited in any one of claims 1-7.
16. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the communication management method for a applet framework of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements a communication management method for an applet framework according to any one of claims 1-7.
CN202011501461.9A 2020-12-17 2020-12-17 Communication management method, device, equipment and medium Active CN112596922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011501461.9A CN112596922B (en) 2020-12-17 2020-12-17 Communication management method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011501461.9A CN112596922B (en) 2020-12-17 2020-12-17 Communication management method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112596922A true CN112596922A (en) 2021-04-02
CN112596922B CN112596922B (en) 2024-04-05

Family

ID=75199164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011501461.9A Active CN112596922B (en) 2020-12-17 2020-12-17 Communication management method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112596922B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5557798A (en) * 1989-07-27 1996-09-17 Tibco, Inc. Apparatus and method for providing decoupling of data exchange details for providing high performance communication between software processes
CN101566972A (en) * 2009-05-12 2009-10-28 苏州国芯科技有限公司 Safety control method of user multi-partitioned memory space access right in embedded system
CN104572278A (en) * 2014-12-22 2015-04-29 百度在线网络技术(北京)有限公司 Method, device and equipment for light application to call local end capability
CN109684530A (en) * 2018-12-07 2019-04-26 石河子大学 Information Push Service system based on web-based management and the application of mobile phone small routine
CN110083466A (en) * 2019-04-28 2019-08-02 百度在线网络技术(北京)有限公司 A kind of data transmission method and device of small routine
CN110275738A (en) * 2019-06-30 2019-09-24 浪潮卓数大数据产业发展有限公司 A kind of Android bidirectional interaction method based on JsBridge
CN111475841A (en) * 2020-04-07 2020-07-31 腾讯科技(深圳)有限公司 Access control method, related device, equipment, system and storage medium
CN111782192A (en) * 2020-07-02 2020-10-16 浪潮云信息技术股份公司 Method for developing mobile office system in mixed mode
CN111897694A (en) * 2020-07-30 2020-11-06 北京百度网讯科技有限公司 Method, device and equipment for processing messages in applet and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5557798A (en) * 1989-07-27 1996-09-17 Tibco, Inc. Apparatus and method for providing decoupling of data exchange details for providing high performance communication between software processes
CN101566972A (en) * 2009-05-12 2009-10-28 苏州国芯科技有限公司 Safety control method of user multi-partitioned memory space access right in embedded system
CN104572278A (en) * 2014-12-22 2015-04-29 百度在线网络技术(北京)有限公司 Method, device and equipment for light application to call local end capability
CN109684530A (en) * 2018-12-07 2019-04-26 石河子大学 Information Push Service system based on web-based management and the application of mobile phone small routine
CN110083466A (en) * 2019-04-28 2019-08-02 百度在线网络技术(北京)有限公司 A kind of data transmission method and device of small routine
CN110275738A (en) * 2019-06-30 2019-09-24 浪潮卓数大数据产业发展有限公司 A kind of Android bidirectional interaction method based on JsBridge
CN111475841A (en) * 2020-04-07 2020-07-31 腾讯科技(深圳)有限公司 Access control method, related device, equipment, system and storage medium
CN111782192A (en) * 2020-07-02 2020-10-16 浪潮云信息技术股份公司 Method for developing mobile office system in mixed mode
CN111897694A (en) * 2020-07-30 2020-11-06 北京百度网讯科技有限公司 Method, device and equipment for processing messages in applet and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐军;戴浩;谢永强;肖孟;刘宝生;: "异构平台消息通信机制移植技术的研究", 《系统工程理论与实践》, no. 10, 25 October 2006 (2006-10-25), pages 80 - 87 *

Also Published As

Publication number Publication date
CN112596922B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN109245908B (en) Method and device for switching master cluster and slave cluster
CN112860342A (en) Method, device, equipment, system and storage medium for microservice configuration
CN113377626B (en) Visual unified alarm method, device, equipment and medium based on service tree
CN112860343A (en) Configuration changing method, system, device, electronic equipment and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN113590437A (en) Alarm information processing method, device, equipment and medium
CN112596922B (en) Communication management method, device, equipment and medium
CN113419921A (en) Task monitoring method, device, equipment and storage medium
CN112817992B (en) Method, apparatus, electronic device and readable storage medium for executing change task
CN112596761B (en) Service update release method and device and related equipment
US11494239B2 (en) Method for allocating computing resources, electronic device, and computer program product
CN114218313A (en) Data management method, device, electronic equipment, storage medium and product
CN114490126A (en) Page processing method and device, electronic equipment and storage medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN113760569B (en) Multi-account management method and system
CN114448802B (en) Gateway configuration method, device, electronic equipment and storage medium
CN117076185B (en) Server inspection method, device, equipment and medium
CN115061664A (en) Object conversion method and device, electronic equipment and storage medium
CN114356505A (en) Method, apparatus, device, medium and product for scheduling groups of containers
CN115801357A (en) Global exception handling method, device, equipment and storage medium
CN114691404A (en) Service process monitoring method and device, electronic equipment, storage medium and product
CN114546767A (en) Application monitoring method, application management method and device and electronic equipment
CN117149563A (en) Micro-service monitoring method, device, equipment and storage medium
CN114448802A (en) Gateway configuration method and device, electronic equipment and storage medium
CN115766048A (en) Reminding method, device, equipment 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