CN106775837B - Multi-system global configuration synchronization method and device - Google Patents

Multi-system global configuration synchronization method and device Download PDF

Info

Publication number
CN106775837B
CN106775837B CN201611071047.2A CN201611071047A CN106775837B CN 106775837 B CN106775837 B CN 106775837B CN 201611071047 A CN201611071047 A CN 201611071047A CN 106775837 B CN106775837 B CN 106775837B
Authority
CN
China
Prior art keywords
configuration
information
container
global configuration
global
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.)
Active
Application number
CN201611071047.2A
Other languages
Chinese (zh)
Other versions
CN106775837A (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.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Yuanxin Technology
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 Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201611071047.2A priority Critical patent/CN106775837B/en
Publication of CN106775837A publication Critical patent/CN106775837A/en
Application granted granted Critical
Publication of CN106775837B publication Critical patent/CN106775837B/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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a multi-system global configuration synchronization method and a multi-system global configuration synchronization device, wherein the method comprises the following steps: when the first container system receives a setting instruction aiming at the global configuration project, updating the information of the corresponding global configuration project in the system according to the information of the global configuration project in the setting instruction, generating a corresponding setting request and sending the setting request; the master control system updates the information of the corresponding global configuration item stored in advance according to the information of the global configuration item in the setting request, generates a corresponding configuration updating notice and sends the configuration updating notice; and other container systems update the information of the corresponding global configuration items in the system according to the information of the global configuration items in the configuration update notification. In the embodiment of the invention, corresponding global configuration items of the terminal equipment can be synchronously updated to a consistent state only by one setting instruction of a user; the manual operation steps are reduced, the update missing probability is reduced, and the user experience is improved.

Description

Multi-system global configuration synchronization method and device
Technical Field
The invention relates to the technical field of terminals, in particular to a multi-system global configuration synchronization method and device.
Background
Terminal devices such as smart phones, tablet computers, electronic readers and the like have become widely popular. A considerable number of terminal devices have two operating systems installed therein.
Each operating system in the existing terminal equipment is generally provided with an independent global configuration item of the operating system. Taking the ring tone and the vibration in the global configuration item as an example, when a user needs to set the ring tone and the vibration of the whole terminal device to be muted, the existing global configuration synchronization method for multiple systems usually includes that the user manually sets the ring tone and the vibration in the current operating system to be muted, and then the user switches to another operating system to set the ring tone and the vibration in the other operating system to be muted.
However, the existing global configuration synchronization method for multiple systems requires a lot of operations for users; moreover, a user easily omits the setting of the global configuration items in a certain operating system, so that the same global configuration items among the operating systems are not uniform, and the original intention that the user uniformly sets the certain global configuration item of the whole terminal equipment cannot be achieved; inconvenience is brought to the user, and the user experience is reduced.
Disclosure of Invention
The invention provides a multi-system global configuration synchronization method and device aiming at the defects of the prior art, and aims to solve the problems that in the prior art, the synchronous setting of global configuration items of multiple systems is more in manual steps, is more complicated and is easy to miss setting.
According to an aspect, an embodiment of the present invention provides a method for synchronizing global configuration of multiple systems, including:
when the first container system receives a setting instruction aiming at the global configuration item, updating the information of the corresponding global configuration item in the first container system according to the information of the global configuration item in the setting instruction, and generating a corresponding setting request to be sent through a container channel;
the main control system updates the information of the corresponding global configuration item pre-stored in the main control system according to the information of the global configuration item in the received setting request, generates a corresponding configuration updating notice and sends the configuration updating notice through a container channel;
and the other container systems update the information of the corresponding global configuration items in the other container systems according to the received information of the global configuration items in the configuration update notification.
According to another aspect, an embodiment of the present invention further provides a multi-system global configuration synchronization apparatus, including: a master control system and at least two container systems; the two container systems comprise a first container system and other container systems;
the first container system includes:
the first configuration module is used for updating the information of the corresponding global configuration item in the first container system according to the information of the global configuration item in the setting instruction when the setting instruction aiming at the global configuration item is received, and generating a corresponding setting request to be sent through a container channel;
the master control system comprises:
the main control configuration module is used for updating the information of the corresponding global configuration items pre-stored in the main control system according to the information of the global configuration items in the received setting request, generating corresponding configuration updating notifications and sending the configuration updating notifications through a container channel;
the other container system includes:
and the other configuration module is used for updating the information of the corresponding global configuration items in the other container systems according to the received information of the global configuration items in the configuration updating notification.
Preferably, the first configuration module in the embodiment of the present invention includes:
the first configuration service unit is used for sending the setting instruction; setting the corresponding global configuration project of the first container system according to the updated information of the global configuration project;
and the first configuration delivering unit is used for updating the information of the corresponding global configuration item temporarily stored in the configuration information cache region of the first container system in advance according to the information of the global configuration item in the setting instruction.
Preferably, the other configuration modules in the embodiment of the present invention include:
the other configuration delivering unit is used for updating the information of the corresponding global configuration items temporarily stored in the configuration information cache region of the other container system in advance according to the information of the global configuration items in the configuration update notification after receiving the configuration update notification, and forwarding the configuration update notification;
and the other configuration service unit is used for setting corresponding global configuration items of the other container systems according to the received information of the global configuration items in the configuration update notification.
Preferably, the master control system in the embodiment of the present invention further includes:
the starting module is used for starting at least two pre-designated container systems including the first container system and the other container systems, and respective configuration deliverer units and configuration service units of the at least two pre-designated container systems; and
the first configuration delivering unit is also used for creating a configuration information cache region of the first container system after being started, obtaining the information of global configuration items pre-stored in the main control system through the container channel, and temporarily storing the information in the created configuration information cache region;
the first configuration service unit is further configured to set a corresponding global configuration item of the first container system according to information of the global configuration item in the configuration information cache region of the first container system after the start.
Preferably, the first configuration service unit is further configured to forward a close instruction for the first container system when receiving the close instruction; and
the first configuration delivering unit is further configured to, after receiving the closing instruction and deleting the configuration information cache area of the first container system, close the first container system.
Preferably, the first configuration service unit is further configured to, when receiving a query instruction for the global configuration item, invoke the first configuration delivering unit to obtain information of the corresponding global configuration item temporarily stored in the configuration information cache area of the first container system in advance, and display the information as a query result.
In the embodiment of the invention, the first container system receiving the setting instruction aiming at the global configuration project updates the information of the corresponding global configuration project in the system; and the information of the global configuration items pre-stored in the master control system is also updated, and other container systems are enabled to update the information of the corresponding global configuration items through the master control system. Equivalently, the user only needs to input a setting instruction for any container system in the terminal equipment, so that the corresponding global configuration items of all the container systems of the terminal equipment can be synchronously updated to a consistent state; the whole synchronous updating process of the information of the global configuration items in the container system operation stage is automatically executed without user intervention, so that the manual operation steps of a user are greatly reduced, the probability that a certain container system omits the updating of the global configuration items is greatly reduced, the purpose that the same global configuration item of each container system in the whole terminal equipment can be updated by one-time updating operation of the user is realized, and the user experience can be improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic frame diagram of an internal structure of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for global configuration synchronization in an operation phase of a multi-container system according to an embodiment of the present invention;
fig. 3 is a schematic frame diagram of an example of the internal structure of a terminal device according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an example of a global configuration synchronization method for a multi-container system in an operation phase according to an embodiment of the present invention;
fig. 5 is a schematic frame diagram of an internal structure of a multisystem global configuration synchronization apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, a "terminal" as used herein includes both devices having a wireless signal receiver, which are devices having only a wireless signal receiver without transmit capability, and devices having receive and transmit hardware, which have devices having receive and transmit hardware capable of two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, a "terminal Device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, or a smart tv, a set-top box, etc.
In the embodiment of the invention, the container system is an operation system interacting with a user, and the main control system is a system for controlling the container system and providing services for the container system. When the first container system receives a setting instruction aiming at the global configuration project, updating the information of the corresponding global configuration project in the first container system according to the information of the global configuration project in the setting instruction, and generating a corresponding setting request to be sent through a container channel; the master control system updates the information of the corresponding global configuration item pre-stored in the master control system according to the information of the global configuration item in the received setting request, generates a corresponding configuration updating notification and sends the configuration updating notification through a container channel; and the other container systems update the information of the corresponding global configuration items in the other container systems according to the information of the global configuration items in the received configuration update notification. Therefore, in the embodiment of the present invention, the first container system that receives the setting instruction for the global configuration item updates the information of the corresponding global configuration item in the system; and the information of the global configuration items pre-stored in the master control system is also updated, and other container systems are enabled to update the information of the corresponding global configuration items through the master control system. The aim or intention of updating the corresponding global configuration items of all the container systems of the terminal equipment can be realized by inputting a setting instruction aiming at any container system in the terminal equipment by a user; the whole synchronous updating process is automatically executed without user intervention, so that the manual operation steps of a user are greatly reduced, the probability that a certain container system omits the updating of the global configuration project is greatly reduced, and the user experience can be improved.
The technical solution of the embodiments of the present invention is specifically described below with reference to the accompanying drawings.
A frame schematic diagram of an internal structure of a terminal device according to an embodiment of the present invention is shown in fig. 1, and includes: a master control system and more than two container systems.
Wherein the two or more container systems may include a first container system, a second container system, …, an Nth container system. N is a positive integer greater than 2.
The container system in the embodiment of the present invention is an operating system provided in a container created by the Linux container virtualization technology. The operating system may be a Linux operating system or a Unix operating system in a conventional sense, or an operating system derived from the Linux operating system, such as an Android system, or a Windows system based on a Windows platform, or the like. In fact, the container system of the present invention is not limited to the aforementioned exemplary operating systems, and may cover all operating systems capable of operating in a container. For convenience of description, the technical solution of the present invention is described below by taking an Android system as a container system as an example.
Preferably, the main control system may be the above operating system, or may be an operating system obtained by modifying a conventional kernel and/or adding a function module outside the kernel (for example, a framework layer and an application layer).
The main control system is mainly used for starting/closing a plurality of container systems, managing foreground and background, interacting with each container system, and the like, and specific functions will be detailed in the following, and are not described herein again.
Preferably, the master control system may communicate with the container system through a container channel. Further, the container channel may be a socket channel. A container system sends a container channel creation request to a master control system; after receiving the request of the container system, the main control system creates a socket file and a pair of descriptors (socket pair) of the socket file, and names the pair of descriptors; registering the pair of descriptors and the Name thereof in NSS (Domain Space Server) virtual equipment of a master control system; returning the name of one descriptor in the pair of descriptors which are successfully registered to the container system; after the container system acquires the corresponding descriptor from the NSS virtual device according to the name of the descriptor, the container system can communicate with a master control system having another descriptor of the socket file through the descriptor.
In the terminal device of the embodiment of the present invention, the technical solution of the embodiment of the present invention is applied between a plurality of container systems or between any two container systems.
Preferably, in the embodiment of the present invention, a container system that can currently interact with a user (usually in the foreground) is referred to as a first container system; container systems that are currently temporarily unable to interact with a user (typically in the background) are all referred to as other container systems.
In the embodiment of the invention, each container system is provided with a configuration service and a configuration deliverer. The configuration service is located at the application layer, and is mainly used for forwarding a setting instruction and a query instruction of the global configuration item to the configuration delivery device, receiving a configuration update notification sent by the configuration delivery device, updating information of the corresponding global configuration item of the container system where the configuration delivery device is located, and the like. The configuration delivering device is located at a native (local) layer, and is mainly used for caching and synchronizing global configuration items and information maintained by the master control system, and providing setting, query services and the like of the global configuration items and information for the configuration service, and specific functions will be detailed in the following, and are not described herein again.
In the embodiment of the invention, the master control system stores the global configuration items related to all container systems and the information of the global configuration items in advance.
The global configuration items may include at least one of: running mode, contextual mode, screen bright time and time zone.
The operation modes may include: normal mode, flight mode, power saving mode, do not disturb mode and night eye protection mode, etc. For example, the information of the flight mode includes that all network functions of the terminal device are to be turned off; the information of the do-not-disturb mode includes a ring tone, a warning tone, and a vibration to be masked except for an alarm clock; the information of the night eye-protecting mode includes reducing the screen brightness below a set brightness value, and the like.
The scene mode includes: a general scene mode, a conference mode, a sleep mode, an offline mode, an outdoor mode, a home mode, and a vehicle-mounted mode, etc. For example, the information of the general scene mode includes the kinds and volumes of incoming calls, information, notifications, multimedia, and ring tones or alert tones of alarm clocks; the information of the conference mode comprises various rings or prompt tones which are set to be mute and start to vibrate; the outdoor mode includes setting various ring tones or alert tones to ring and turning on vibration, etc.
The embodiment of the invention provides a global configuration synchronization method for a starting stage of a multi-container system.
Specifically, after the master control system is started, at least two pre-designated container systems including the first container system and other container systems, and their respective configuration deliverers and configuration services are started. Preferably, at least two pre-designated container systems including the first container system and the other container systems, for each of the at least two container systems, the master control system starting a configuration deliverer in the container system; after the configuration deliverer in the container system is started, the configuration service in the container system is started.
For each container system in at least two container systems, after a configuration deliverer of the container system is started, a configuration information cache region of the container system is created, and after information of global configuration items stored in a main control system in advance is acquired through a container channel, the configuration information cache region is temporarily stored in the created configuration information cache region.
After the configuration service of the container system is started, setting the corresponding global configuration item of the container system according to the information of the global configuration item in the configuration information cache region of the container system.
It is easy to see that, in the embodiment of the present invention, during the starting process of each container system, the information of the respective global configuration items is uniformly updated according to the global configuration items and the information pre-stored in the master control system. So that the information of the global configuration items of the container systems is synchronized to a consistent state.
In a process of a plurality of container systems being in a running state after being started, an embodiment of the present invention provides a method for globally configuring a running state of a plurality of container systems, where a flow diagram of the method is shown in fig. 2, and the method includes the following steps:
s201: and when the first container system receives a setting instruction aiming at the global configuration item, updating the information of the corresponding global configuration item in the first container system according to the information of the global configuration item in the setting instruction, and generating a corresponding setting request to be sent through a container channel.
The global configuration items may include at least one of: running mode, contextual mode, screen bright time and time zone. The operation modes may include: normal mode, flight mode, power saving mode, do not disturb mode and night eye protection mode, etc. The scene mode includes: a general scene mode, a conference mode, a sleep mode, an offline mode, an outdoor mode, a home mode, and a vehicle-mounted mode, etc. For example, the information of the general scene mode includes the kinds and volumes of incoming calls, information, notifications, multimedia, and ring tones or alert tones of alarm clocks; the information of the conference mode comprises various rings or prompt tones which are set to be mute and start to vibrate; the outdoor mode includes setting various ring tones or alert tones to ring and turning on vibration, etc.
The first container system may receive a setting instruction of a user for the global configuration item through various methods.
A method for receiving a setting instruction for a global configuration item comprises the following steps: the first container system displays the global configuration item; after receiving the selection operation of a user for the global configuration item, displaying a user-defined information input box of the global configuration item; and receiving information input by a user aiming at the global configuration item through the user-defined information input box, and confirming that a setting instruction aiming at the global configuration item is received, wherein the setting instruction carries the information of the global configuration item input by the user.
Another method for receiving a setting instruction for a global configuration item includes: the first container system displays the global configuration item and at least one piece of information to be selected; and when receiving a selection operation of a user for one piece of information to be selected of the global configuration item, confirming that a setting instruction for the global configuration item is received, wherein the setting instruction carries the information of the global configuration item selected by the user.
The first container system searches a global configuration item consistent with the global configuration item in the setting instruction from at least one global configuration item prestored in the first container system according to the global configuration item in the received setting instruction and information thereof; and replacing the searched information of the global configuration item with the information of the global configuration item in the setting instruction, or modifying the searched information of the global configuration item to be consistent with the information of the global configuration item in the setting instruction.
The first container system generates a corresponding setting request according to the received setting instruction; and carrying the global configuration items and the information thereof in the setting instruction in the setting request, and then sending the setting request to the master control system through the container channel.
Preferably, when the first configuration service in the first container system receives the setting instruction for the global configuration item, the setting instruction is sent to the first configuration delivering device in the first container system.
And the first configuration delivering device updates the information of the corresponding global configuration item temporarily stored in the configuration information cache region of the first container system in advance according to the global configuration item and the information thereof in the setting instruction.
The first configuration service sets the corresponding global configuration project of the first container system according to the updated information of the global configuration project; the specific method for setting the global configuration item to be effective is well known to those skilled in the art, and will not be described herein.
And the first configuration delivery device generates a corresponding setting request according to the information of the global configuration items in the setting instruction, and sends the setting request to the main control system through the container channel.
S202: and the main control system updates the information of the corresponding global configuration item pre-stored in the main control system according to the information of the global configuration item in the received setting request, generates a corresponding configuration updating notice and sends the configuration updating notice through the container channel.
After receiving the setting request, the master control system analyzes the global configuration item and the information thereof; searching out a global configuration item consistent with the analyzed global item from at least one global configuration item pre-stored in the main control system; and replacing the information of the searched global configuration item with the information of the analyzed global configuration item, or modifying the information of the searched global configuration item to be consistent with the information of the analyzed global configuration item.
Preferably, the master control system finds out a global configuration item consistent with the analyzed global item from at least one global configuration item pre-stored in a global configuration item database preset therein; and replacing the information of the searched global configuration item with the information of the analyzed global configuration item, or modifying the information of the searched global configuration item to be consistent with the information of the analyzed global configuration item.
And the main control system generates a corresponding configuration updating notice according to the received setting request; and carrying the global configuration item and the information thereof analyzed from the setting request in the configuration information notification, and then sending the configuration item and the information to other container systems through a container channel.
Preferably, when there are more than two other container systems, the master control system sends, for each other container system, the generated configuration update notification for the global configuration item to the other container system through the container channel of the master control system and the other container system.
S203: and the other container systems update the information of the corresponding global configuration items in the other container systems according to the information of the global configuration items in the received configuration update notification.
After receiving the configuration updating notification, other container systems analyze the global configuration item and the information thereof; searching a global configuration item consistent with the analyzed global configuration item from at least one global configuration item prestored in the other container system; and replacing the information of the searched global configuration item with the information of the analyzed global configuration item, or modifying the information of the searched global configuration item to be consistent with the information of the analyzed global configuration item.
Preferably, after receiving the configuration update notification, the other configuration deliverers in the other container systems update the information of the corresponding global configuration item temporarily stored in the configuration information buffer of the other container systems in advance according to the information of the global configuration item in the configuration update notification, and forward the configuration update notification.
And setting the corresponding global configuration items of other container systems by other configuration services in the same other container systems according to the information of the global configuration items in the received configuration update notification.
It can be seen from the foregoing steps S201-203 that, in the embodiment of the present invention, for a plurality of container systems in an operating state, only a user needs to input a setting instruction for any one of the container systems operating in the terminal device, so that information of global configuration items corresponding to all the operating container systems can be updated synchronously; the information of the corresponding global configuration items of each container system in the whole terminal equipment is synchronized to be in a consistent state; the whole synchronous updating process is automatically executed without user intervention, so that the manual operation steps of a user are greatly reduced, the probability that a certain container system omits the updating of the global configuration project is greatly reduced, and the user experience can be improved.
The embodiment of the invention also provides a global configuration synchronization method for the closing and restarting stages of the container system.
Specifically, for at least two pre-designated container systems including the first container system and other container systems in the embodiment of the present invention, for each container system in the at least two container systems, the configuration service of the container system forwards the configuration system when receiving a closing instruction for the container system; and the configuration deliverer of the container system deletes the configuration information cache region of the container system according to the closing instruction, and then closes the container system.
When the closed container system is restarted, the configuration deliverer and the configuration service of the container system are started. Preferably, the master control system starts the configuration deliverer in the container system; after the configuration deliverer in the container system is started, the configuration service in the container system is started.
After the configuration deliverer of the container system is started, a configuration information cache region of the container system is created, and after the information of the global configuration items pre-stored in the main control system is acquired through the container channel, the configuration information cache region is temporarily stored in the created configuration information cache region. And the configuration service sets the corresponding global configuration item of the container system according to the information of the global configuration item in the newly created configuration information cache region.
It is easy to see that, according to the global configuration synchronization method in the closing and restarting stages of the container system, before or during the deletion of the configuration information cache region of the container system, the global configuration items and the information thereof of the container system stored in the configuration information cache region are deleted; after the container system is restarted, the configuration information cache region is created again, and the global configuration items and the information thereof stored in the main control system for a long time are temporarily stored in the newly created configuration information cache region. At this time, the global configuration item and the information thereof of the restarted container system are consistent with the global configuration item and the information thereof in the master control system; the global configuration items and the information thereof of other operated container systems are kept consistent with the global configuration items and the information thereof in the master control system; therefore, the global configuration items and the information thereof of the restarted container system are synchronized with the global configuration items and the information thereof of other container systems which are already running to a consistent state.
The embodiment of the invention also provides a multi-system global configuration query method.
Specifically, for at least two pre-designated container systems including a first container system and other container systems, for each of the at least two container systems, when a configuration service of the container system receives a query instruction for a global configuration item, a configuration deliverer of the container system is called; the configuration deliverer of the container system acquires corresponding global configuration items and information thereof temporarily stored in a configuration information cache region of the container system in advance, and returns the global configuration items and the information thereof serving as query results to the configuration service of the container system; and the configuration service of the container system displays the received global configuration items and the information thereof for the user to look up.
An example of the internal structure of the terminal device according to the embodiment of the present invention is described below, and a schematic diagram of the framework of this example is shown in fig. 3. contanerA, B in fig. 3 represent the first container system and the other container system, respectively. The master control system comprises a config _ service (master configuration service) and a configdb (global configuration item database). The main function of the config _ service is to store the global configuration item and its information of the terminal device for a long time, and provide initialization, update and query services of the global configuration item and its information to the container system in the terminal device. The Configdb has a main function of storing global configuration items and information thereof of all operating systems in the terminal device to which the master control system belongs, that is, the global configuration items and information thereof of the terminal device in the embodiment of the present invention.
Each container system, for example, the container a or B, includes ConfigService, configflunger, JNI (Java Native Interface, Jave local Interface), and HAL (Hardware Abstraction Layer). The configFlinger is located at the native (local) layer of the container system. The ConfigService is located in a java layer in a framework layer of the container system, that is, the source code of the ConfigService can be written by java language. The ConfigService and the configFlinger interact through JNI. And the HAL layer dynamic library is used for encapsulating a channel (container channel) interacted between the config flicker in the container system and the config _ service in the master control system, and is equivalent to an interface of the config _ service in the master control system in the HAL layer.
A specific example of the method for globally configuring the operating state of the multi-container system according to the embodiment of the present invention is described below, and a flowchart of the specific example is shown in fig. 4. In fig. 4, continainera denotes a first container system, and continainerb denotes other container systems. Both continainera and B are android systems.
Android _ set _ config in the contenantera represents that the contenantera receives a setting instruction for a certain global configuration item input by a user; transmitting the setting instruction to a java layer ConfigSerie in the contianera; transmitting a setting instruction to a native layer ConfigFlinger in the contianer A through the JNI in the contianer A by the ConfigSerie; the native ConfigFlinger set cache indicates that the ConfigFlinger performs set updating on the information of the corresponding global configuration item in the configuration information cache area in the contianerA according to the global configuration item and the information thereof in the setting instruction; and then the native ConfigFlinger call HAL library represents that the ConfigFlinger generates a setting request according to the setting instruction, and the setting request is sent to the master control system through a container channel by calling an interface packaged in the HAL library by the container channel between the ContainerA and the master control system.
The config _ service save configdb indicates that after the config _ service in the master control system receives the setting request sent by the contianera, the global setting item and the information thereof in the setting request are stored in the global setting item database configdb in the master control system in a covering manner; specifically, the information of the global setting item in the setting request may be substituted for the information of the same global setting item in the global setting item database. config _ service transmission config info indicates that after the config _ service in the master control system converts the setting request into a configuration update notification transmission config info, the configuration update notification transmission config info is sent to the coordinator b through a container channel between the master control system and the coordinator b.
Transmit config info to HAL library in the contianerb means that the configflanger in the contianerb encapsulates the interface in the HAL library through a container channel between the host system and the contianerb, and receives a configuration update notification transmit config info sent by the host system. And the native ConfigFlinger update cache shows that the ConfigFlinger of the native layer in the contianerB updates the update according to the information of the corresponding global configuration item stored in the configuration information cache in the contianerB according to the global configuration item and the information thereof in the received configuration update notification. Then, the ConfigFlinger transmits the received configuration update notification to the ConfigService of the jave layer in the configerb through the JNI in the configerb. android update indicates that the ConfigService updates the settings of the information of the global configuration item corresponding to the contianerb based on the global configuration item and the information thereof in the received configuration update notification.
So far, the contiinera and the contiiner B complete the synchronous updating of the information of the global configuration items; at this time, the information of the same global configuration item in the contianinerga and B and the master control system is synchronized to a consistent state.
Based on the above-mentioned global configuration synchronization method for multiple systems at each stage, an embodiment of the present invention further provides a global configuration synchronization device for multiple systems, where the device is disposed in a terminal device according to an embodiment of the present invention, and a schematic frame diagram of an internal structure of the device is shown in fig. 5, where the method includes: a master control system and at least two container systems.
Wherein the at least two container systems include a first container system and other container systems.
The first container system includes: a first configuration module 511.
The first configuration module 511 is configured to, when receiving a setting instruction for the global configuration item, update information of the corresponding global configuration item in the first container system according to information of the global configuration item in the setting instruction, and generate a corresponding setting request to send the setting request through the container channel.
The master control system comprises: a master configuration module 501.
The main control configuration module 501 is configured to update the information of the global configuration item pre-stored in the main control system according to the information of the global configuration item in the received setting request, and generate a corresponding configuration update notification to be sent through the container channel.
Other container systems include: other configuration modules 521.
The other configuration module 521 is configured to update the information of the corresponding global configuration item in the other container system according to the information of the global configuration item in the received configuration update notification.
Preferably, as shown in fig. 5, the first configuration module 511 in the embodiment of the present invention includes: a first configuration service unit 5111 and a first configuration messenger unit 5112.
The first configuration service unit 5111 is configured to send a setting instruction; and setting the corresponding global configuration item of the first container system according to the updated information of the global configuration item.
The first configuration deliverer unit 5112 is configured to update, according to the information of the global configuration items in the setting instruction, information of corresponding global configuration items temporarily stored in the configuration information buffer of the first container system in advance.
Preferably, as shown in fig. 5, the other configuration module 521 in the embodiment of the present invention includes: other configuration service units 5211 and other configuration courier units 5212.
The other configuration delivering unit 5212 is configured to update the information of the corresponding global configuration item temporarily stored in the configuration information buffer of the other container system in advance according to the information of the global configuration item in the configuration update notification after receiving the configuration update notification, and forward the configuration update notification.
The other configuration service unit 5211 is configured to set the corresponding global configuration items of the other container systems according to the information of the global configuration items in the received configuration update notification.
Preferably, as shown in fig. 5, the master control system in the embodiment of the present invention further includes: a module 502 is initiated.
The start module 502 is used to start at least two pre-designated container systems including the first container system and other container systems and their respective configuration messenger units and configuration service units.
And, the first configuration postmen unit 5112 is further configured to, after being started, create a configuration information cache area of the first container system, and after obtaining information of global configuration items pre-stored in the master control system through the container channel, temporarily store the information in the created configuration information cache area.
The first configuration service unit 5111 is further configured to, after being started, set a corresponding global configuration item of the first container system according to information of the global configuration item in the configuration information cache of the first container system.
The other configuration postmarker unit 5212 is further configured to, after being started, create a configuration information cache area of another container system to which the configuration postmark unit belongs, and after obtaining information of a global configuration item pre-stored in the master control system through the container channel, temporarily store the information in the created configuration information cache area.
The other configuration service unit 5211 is further configured to, after being started, set a corresponding global configuration item of another container system according to information of the global configuration item in the configuration information cache of the other container system to which the other configuration service unit belongs.
Preferably, the first configuration service unit 5111 is further configured to forward a closing instruction when receiving the closing instruction for the first container system; and, the first configuration deliverer unit 5112 is further configured to, after receiving the close instruction, delete the configuration information buffer of the first container system and close the first container system.
Preferably, the other configuration service unit 5211 is further configured to forward a closing instruction when receiving a closing instruction for the other container system to which it belongs; and, the other configuration deliverer unit 5112 is further configured to, after receiving the close instruction, delete the configuration information buffer of the other container system to which the other container system belongs, and close the other container system.
Preferably, the first configuration service unit 5111 is further configured to, when receiving a query instruction for the global configuration item, invoke the first configuration delivering unit 5112 to obtain information of the corresponding global configuration item, which is temporarily stored in the configuration information cache of the first container system in advance, and display the information as a query result.
Preferably, the other configuration service unit 5211 is further configured to, when receiving a query instruction for the global configuration item, invoke the other configuration deliverer unit 5212 to obtain information of the corresponding global configuration item, which is temporarily stored in the configuration information cache region of the other container system to which the other configuration service unit belongs in advance, and display the information as a query result.
In practical operation, when other container systems send a switch with the first container system, and the other container systems directly interact with the user, and the first container system cannot directly interact with the user, the functions of the other configuration modules 521 in the other container systems, and the other configuration service units 5211 and other configuration messenger units 5212 therein, are interchanged with the functions of the first configuration module 511 in the first container system, and the first configuration service unit 5111 and the first configuration messenger unit 5112 thereof.
In fact, the other configuration module 521 and the other configuration service unit 5211 and the other configuration messenger unit 5212 therein have the same functions as the first configuration module 511 and the first configuration service unit 5111 and the first configuration messenger unit 5112 thereof; the label differs from the name prefix only in identifying that it belongs to a different container system.
In the embodiment of the invention, the first container system receiving the setting instruction aiming at the global configuration project updates the information of the corresponding global configuration project in the system; and the information of the global configuration items pre-stored in the master control system is also updated, and other container systems are enabled to update the information of the corresponding global configuration items through the master control system. Equivalently, the user only needs to input a setting instruction for any container system in the terminal equipment, so that the corresponding global configuration items of all the container systems of the terminal equipment can be synchronously updated to a consistent state; the whole synchronous updating process of the information of the global configuration items in the container system operation stage is automatically executed without user intervention, so that the manual operation steps of a user are greatly reduced, the probability that a certain container system omits the updating of the global configuration items is greatly reduced, the purpose that the same global configuration item of each container system in the whole terminal equipment can be updated by one-time updating operation of the user is realized, and the user experience can be improved.
In addition, in the embodiment of the present invention, the master control system stores the global setting item and the information thereof of the terminal device to which the master control system belongs for a long time, when the terminal device is started, the master control system is started first, the master control system starts the container system, and the started container system can temporarily store the global setting item and the information thereof in the master control system into the container system and perform setting according to the temporarily stored global setting item and the information thereof. At this time, the information of the global setting items in the container system after being started and the information of the global setting items in the running container system and the master control system are synchronized to be in a consistent state. The information synchronization updating process of the global configuration items in the starting stage is automatically executed without user intervention, so that the operation steps of a user are further reduced, the container system can be prevented from missing the synchronization updating of the global configuration items in the starting stage, the purpose that the same global configuration item of each container system in the whole terminal equipment can be updated by one-time updating operation of the user is achieved, and the user experience can be improved.
Further, in the embodiment of the present invention, the master control system stores the global setting item and the information thereof of the terminal device to which the master control system belongs for a long time, and when the container system is restarted after being closed, the restarted container system can temporarily store the global setting item and the information thereof in the master control system into the container system, and perform setting according to the temporarily stored global setting item and the information thereof. At this time, the information of the global setting items in the restarted container system and the information of the global setting items in the running container system and the master control system are synchronized to be in a consistent state. The information synchronous updating process of the global configuration items in the closing and restarting stage is automatically executed without user intervention, so that the operation steps of a user are further reduced, the container system can be prevented from missing synchronous updating of the global configuration items in the closing and restarting stage, the purpose that the same global configuration item of each container system in the whole terminal equipment can be updated by one-time updating operation of the user is achieved, and the user experience can be improved.
Those skilled in the art will appreciate that the present invention includes apparatus directed to performing one or more of the operations described in the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable programmable Read-Only memories), EEPROMs (Electrically Erasable programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, 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, implement the features specified in the block or blocks of the block diagrams and/or flowchart illustrations of the present disclosure.
Those of skill in the art will appreciate that various operations, methods, steps in the processes, acts, or solutions discussed in the present application may be alternated, modified, combined, or deleted. Further, various operations, methods, steps in the flows, which have been discussed in the present application, may be interchanged, modified, rearranged, decomposed, combined, or eliminated. Further, steps, measures, schemes in the various operations, methods, procedures disclosed in the prior art and the present invention can also be alternated, changed, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A multisystem global configuration synchronization method is characterized by comprising the following steps:
when the first container system receives a setting instruction aiming at the global configuration item, updating the information of the corresponding global configuration item in the first container system according to the information of the global configuration item in the setting instruction, and generating a corresponding setting request to be sent through a container channel;
the main control system updates the information of the corresponding global configuration item pre-stored in the main control system according to the information of the global configuration item in the received setting request, generates a corresponding configuration updating notice and sends the configuration updating notice through a container channel;
the other container systems update the information of the corresponding global configuration items in the other container systems according to the received information of the global configuration items in the configuration update notification;
the method further comprises the following steps:
for each container system in the at least two pre-designated container systems including the first container system and the other container systems, if the container system is restarted after being closed, the master control system starts the at least two pre-designated container systems including the first container system and the other container systems and their respective configuration deliverers and configuration services;
for each container system in the at least two container systems, after a configuration deliverer of the container system is started, a configuration information cache region of the container system is created, and after information of global configuration items stored in the main control system in advance is acquired through a container channel, the configuration information cache region is temporarily stored in the created configuration information cache region;
after the configuration service of the container system is started, setting the corresponding global configuration item of the container system according to the information of the global configuration item in the configuration information cache region of the container system.
2. The method according to claim 1, wherein the updating the information of the corresponding global configuration item in the first container system according to the information of the global configuration item in the setting instruction comprises:
the first configuration service in the first container system sends the setting instruction to a first configuration delivering device in the first container system;
the first configuration delivering device updates the information of the corresponding global configuration items temporarily stored in the configuration information cache region of the first container system in advance according to the information of the global configuration items in the setting instruction;
and the first configuration service sets the corresponding global configuration item of the first container system according to the updated information of the global configuration item.
3. The method according to claim 1, wherein the other container systems update the information of the corresponding global configuration items in the other container systems according to the information of the global configuration items in the received configuration update notification, including:
after receiving the configuration updating notification, other configuration deliverers in other container systems update the information of the corresponding global configuration items temporarily stored in the configuration information cache regions of other container systems in advance according to the information of the global configuration items in the configuration updating notification, and forward the configuration updating notification;
and the other configuration services set corresponding global configuration items of the other container systems according to the received information of the global configuration items in the configuration updating notification.
4. The method of claim 1, further comprising:
for each of at least two pre-designated container systems including the first container system and the other container systems, the configuration service of the container system forwards the configuration system when receiving a closing instruction for the container system, and the configuration deliverer of the container system closes the container system after deleting the configuration information cache region of the container system according to the closing instruction.
5. The method according to any one of claims 2-4, further comprising:
for each of at least two pre-designated container systems including the first container system and the other container systems, when the configuration service of the container system receives a query instruction for the global configuration item, the configuration service of the container system calls the configuration deliverer of the container system to acquire information of the corresponding global configuration item temporarily stored in the configuration information cache region of the container system in advance, and the information is displayed as a query result.
6. A multisystem global configuration synchronization apparatus, comprising: a master control system and at least two container systems; the at least two container systems comprise a first container system and other container systems;
the first container system includes:
the first configuration module is used for updating the information of the corresponding global configuration item in the first container system according to the information of the global configuration item in the setting instruction when the setting instruction aiming at the global configuration item is received, and generating a corresponding setting request to be sent through a container channel;
the master control system comprises:
the main control configuration module is used for updating the information of the corresponding global configuration items pre-stored in the main control system according to the information of the global configuration items in the received setting request, generating corresponding configuration updating notifications and sending the configuration updating notifications through a container channel;
the other container system includes:
the other configuration module is used for updating the information of the corresponding global configuration items in the other container systems according to the received information of the global configuration items in the configuration updating notification;
the master control system further comprises:
a starting module, configured to, for each of at least two pre-designated container systems including the first container system and the other container systems, start the at least two pre-designated container systems including the first container system and the other container systems, and their respective configuration deliverer units and configuration service units when the container system is restarted after being closed; and
the first configuration delivering unit is also used for creating a configuration information cache region of the first container system after being started, obtaining the information of global configuration items pre-stored in the main control system through the container channel, and temporarily storing the information in the created configuration information cache region;
the first configuration service unit is further configured to set a corresponding global configuration item of the first container system according to information of the global configuration item in the configuration information cache region of the first container system after the start.
7. The apparatus of claim 6, wherein the first configuration module comprises:
the first configuration service unit is used for sending the setting instruction; setting the corresponding global configuration project of the first container system according to the updated information of the global configuration project;
and the first configuration delivering unit is used for updating the information of the corresponding global configuration item temporarily stored in the configuration information cache region of the first container system in advance according to the information of the global configuration item in the setting instruction.
8. The apparatus of claim 6, wherein the other configuration module comprises:
the other configuration delivering unit is used for updating the information of the corresponding global configuration items temporarily stored in the configuration information cache region of the other container system in advance according to the information of the global configuration items in the configuration update notification after receiving the configuration update notification, and forwarding the configuration update notification; and the other configuration service unit is used for setting corresponding global configuration items of the other container systems according to the received information of the global configuration items in the configuration update notification.
CN201611071047.2A 2016-11-29 2016-11-29 Multi-system global configuration synchronization method and device Active CN106775837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611071047.2A CN106775837B (en) 2016-11-29 2016-11-29 Multi-system global configuration synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611071047.2A CN106775837B (en) 2016-11-29 2016-11-29 Multi-system global configuration synchronization method and device

Publications (2)

Publication Number Publication Date
CN106775837A CN106775837A (en) 2017-05-31
CN106775837B true CN106775837B (en) 2020-08-28

Family

ID=58905205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611071047.2A Active CN106775837B (en) 2016-11-29 2016-11-29 Multi-system global configuration synchronization method and device

Country Status (1)

Country Link
CN (1) CN106775837B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058905B (en) * 2018-01-18 2022-10-04 斑马智行网络(香港)有限公司 Event processing and operating system management method, device, equipment and storage medium
CN108710510A (en) * 2018-05-07 2018-10-26 成都市极米科技有限公司 A kind of method and system of system setting storage and clone
CN108718333A (en) * 2018-05-09 2018-10-30 北京顺丰同城科技有限公司 Synchronous method, device and computer readable storage medium
CN111371946A (en) * 2018-12-26 2020-07-03 成都鼎桥通信技术有限公司 Dual-system terminal audio service switching method and device
CN110795212B (en) * 2019-10-29 2022-05-31 杭州迪普科技股份有限公司 Main/standby main control configuration synchronization method and device based on frame type equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316076B (en) * 2010-07-02 2014-12-10 阿里巴巴集团控股有限公司 Method, device and system for recognizing cross-network system user
CN102693235B (en) * 2011-03-23 2015-10-28 鸿富锦精密工业(深圳)有限公司 Change information notification apparatus and the method for device configuration file
US20130174136A1 (en) * 2012-01-03 2013-07-04 International Business Machiness Corporation Detecting, Compiling, and Updating a New Locale Object in Real Time
CN103795754B (en) * 2012-10-31 2017-08-25 中国电信股份有限公司 Method of data synchronization and system between multisystem
CN104580734A (en) * 2015-01-20 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Data synchronization method, data synchronization system and terminal of multi-system equipment
CN105550024A (en) * 2015-12-08 2016-05-04 北京元心科技有限公司 Container-based mobile terminal shutdown method and device

Also Published As

Publication number Publication date
CN106775837A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106775837B (en) Multi-system global configuration synchronization method and device
CN106648725B (en) Terminal, server and configuration file upgrading method
CN115486087A (en) Application interface display method under multi-window screen projection scene and electronic equipment
CN110569130B (en) Cross-process communication method, device and equipment
CN111316230B (en) Method and equipment for generating patch package
KR20150087390A (en) Advertisement processing method and device
CN115023935B (en) Application display connection method, terminal equipment and storage medium
CN106445500A (en) Method, system and terminal equipment for providing user interface
CN114741213B (en) Notification processing method, chip, electronic device and computer-readable storage medium
CN115002747B (en) Parameter updating method, system, terminal equipment and chip system
CN103139761A (en) Information real-time show method and mobile communication terminal
CN113656490B (en) Data synchronization method, device, terminal and storage medium
KR100861659B1 (en) Method of synchronizing mobile widget by mobile system
CN106716419B (en) Method and device for outputting search result and electronic equipment
CN106776066B (en) Multi-system function processing method and device
CN114915618B (en) Upgrade package downloading method and device
CN106776062B (en) Multi-system contact person attribute information synchronization method and device
CN105681434A (en) Application data synchronization method and device of mobile terminal
CN110543312B (en) Application software installation method and device and server
US20180300122A1 (en) Data processing method and system, and server
CN106527691B (en) Method for processing message and cloud server
CN110798743A (en) Video playing method and device and computer readable storage medium
CN113452776B (en) PaaS platform service scheduling method and device and PaaS platform
CN114489689A (en) Application program installation method and system, electronic equipment and server
CN113835802A (en) Device interaction method, system, device and computer readable 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
TR01 Transfer of patent right

Effective date of registration: 20210129

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170531

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Global configuration synchronization method and device for multi system

Granted publication date: 20200828

License type: Common License

Record date: 20210531

EE01 Entry into force of recordation of patent licensing contract