CN111324441A - Operating environment switching method and device, computer equipment and storage medium - Google Patents

Operating environment switching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111324441A
CN111324441A CN202010102898.9A CN202010102898A CN111324441A CN 111324441 A CN111324441 A CN 111324441A CN 202010102898 A CN202010102898 A CN 202010102898A CN 111324441 A CN111324441 A CN 111324441A
Authority
CN
China
Prior art keywords
environment
test system
target
environment information
message
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.)
Withdrawn
Application number
CN202010102898.9A
Other languages
Chinese (zh)
Inventor
吴伟兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software 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 Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN202010102898.9A priority Critical patent/CN111324441A/en
Publication of CN111324441A publication Critical patent/CN111324441A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a method and a device for switching operating environments, computer equipment and a storage medium. The switching method of the operating environment comprises the following steps: monitoring an update message of an environment management system for updating the running environment in real time; when the updating message is monitored, acquiring target environment information according to the updating message; and pushing the target environment information to a preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information. The effect of improving the efficiency of switching the operating environment is achieved.

Description

Operating environment switching method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer software, in particular to a method and a device for switching operating environments, computer equipment and a storage medium.
Background
At present, the operating environment of computer software is distinguished in multiple levels, such as testing, pre-issuing, line-on-line and the like; the environments are isolated from each other, and the method can provide a verified environment for the new code logic and switch to the next operating environment after the current verified environment is completed.
At present, a common method is to modify all code of the next operating environment again when a switch to the next operating environment is needed.
However, in the conventional method, when switching the execution environment, all the code of the next execution environment needs to be modified, which results in low efficiency of switching the execution environment.
Disclosure of Invention
The embodiment of the invention provides a method and a device for switching operating environments, computer equipment and a storage medium, so as to achieve the effect of improving the efficiency of switching the operating environments.
In a first aspect, an embodiment of the present invention provides a method for switching an operating environment, including:
monitoring an update message of an environment management system for updating the running environment in real time;
when the updating message is monitored, acquiring target environment information according to the updating message;
and pushing the target environment information to a preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information.
Optionally, after the environment management system updates the target operating environment, the environment management system sends the update message to a message queue, and when the update message is monitored, target environment information is obtained according to the update message, including
And when the updating message of the message queue is monitored, acquiring target environment information according to the updating message.
Optionally, the target environment information includes a system identifier, a scene identifier, and an operating environment identifier.
Optionally, the preset test system includes a first subsystem and a second subsystem, and pushing the target environment information to the preset test system, so that switching the preset test system from the first operating environment to the second operating environment according to the target environment information includes:
and pushing the target environment information to the first subsystem and/or the second subsystem according to the system identifier so as to enable the first subsystem and/or the second subsystem to be switched to a corresponding operating environment according to the scene identifier and the operating environment identifier.
Optionally, the method further includes:
storing the target environment information to a local cache;
correspondingly, the pushing the target environment information to a preset test system includes:
obtaining target environment information from the local cache;
and pushing the target environment information to the preset test system.
Optionally, the pushing the target environment information to a preset test system includes:
judging whether an inquiry message of the preset test system is received or not;
and when receiving the query message of the preset test system, pushing the target environment information to the preset test system.
Optionally, the operating environment includes a test environment, a pre-release environment, a grayscale environment, or an online environment.
In a second aspect, an embodiment of the present invention provides a device for switching operating environments, including:
the monitoring module is used for monitoring an updating message of the environment management system for updating the operating environment in real time;
the acquisition module is used for acquiring target environment information according to the update message when the update message is monitored;
and the pushing module is used for pushing the target environment information to a preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information.
In a third aspect, an embodiment of the present invention provides a computer device, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for switching execution environments according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for switching operating environments according to any embodiment of the present invention.
The embodiment of the invention monitors the update message of the environment management system for updating the running environment in real time; when the updating message is monitored, acquiring target environment information according to the updating message; the target environment information is pushed to a preset test system, so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information, the problem that when the operation environments are switched, all codes of the next operation environment need to be modified, and the efficiency of switching the operation environments is too low is solved, and the effect of improving the efficiency of switching the operation environments is achieved.
Drawings
Fig. 1 is a schematic flowchart of a method for switching operating environments according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for switching operating environments according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a switching device for operating environments according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first operating environment may be referred to as the second operating environment, and similarly, the second operating environment may be referred to as the first operating environment, without departing from the scope of the present application. Both the first operating environment and the second operating environment are operating environments, but they are not the same operating environment. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart of a method for switching an operating environment according to an embodiment of the present invention, which is applicable to a scenario where a new function of online software is switched to a different operating environment for verification.
As shown in fig. 1, a method for switching operating environments according to an embodiment of the present invention includes:
and S110, monitoring an update message of the environment management system for updating the running environment in real time.
The environment management system is a system for managing the operating environment. Specifically, the user may update the target environment information of the operating environment through the environment management system. Specifically, the updating refers to operations such as modifying, deleting or adding the operating environment, and is not limited in detail here. The operating environment refers to an environment in which semi-compiled operation codes are operated on a target machine, and the operating environment is an operating mode which is between a compiler and an interpreter. In this embodiment, the operating environment refers to an environment required when software implements a certain function. When the user updates the running environment in the environment management system, an update message is generated, and the update message can be monitored in real time. The real-time monitoring may be performed every second or every 10 seconds, and is not limited herein.
In an optional embodiment, after the environment management system updates the target operating environment, the environment management system sends the update message to a message queue, and when the update message is monitored, target environment information is obtained according to the update message, including
And when the updating message of the message queue is monitored, acquiring target environment information according to the updating message.
In this embodiment, specifically, after updating the target operating environment, the environment management system sends an update message to the message queue. And when the message queue subscribes to the updating message, acquiring the target environment information according to the updating message.
And S120, when the updating message is monitored, acquiring the target environment information according to the updating message.
The target environment information refers to information corresponding to the operating environment to be switched. Optionally, the target environment information includes, but is not limited to, a system identifier, a scene identifier, and an operating environment identifier. The system identifier may be a name of the system, the scene identifier may be an identifier of a software function, and the operating environment identifier may be one or more of identifiers such as a test environment, a pre-release environment, a grayscale environment, and an online environment, which is not limited herein. Optionally, the update message includes a storage address of the target environment information, and the target environment information may be obtained from a corresponding preset database according to the storage address.
S130, pushing the target environment information to a preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information.
The preset test system refers to a system for performing verification in a specific operating environment. Specifically, after the target environment information is pushed to the preset test system, the first operating environment can be switched to the second operating environment according to the target environment information. Optionally, the preset test system may obtain the corresponding code logic according to the target environment information, so as to construct a second operating environment for verification. Optionally, the operating environment includes, but is not limited to, a test environment, a pre-release environment, a grayscale environment, or an online environment. The first operating environment is different from the second operating environment, and generally, the operating environments are sequentially switched from a test environment, a pre-release environment, a gray scale environment and an on-line environment.
Illustratively, when an application needs to add a new recommendation function, the recommendation function needs to be sequentially verified in the test environment, the pre-release environment, the grayscale environment, and the online environment, and according to the method provided by this embodiment, a plurality of basic codes required by the operating environments are first set up, then codes of different parts between the operating environments are updated by the environment management system, and then the codes are pushed to the preset verification system to verify the recommendation function of the application in different operating environments.
In an optional embodiment, the preset test system includes a first subsystem and a second subsystem, and pushing the target environment information to the preset test system, so that switching the preset test system from the first operating environment to the second operating environment according to the target environment information includes:
and pushing the target environment information to the first subsystem and/or the second subsystem according to the system identifier so as to enable the first subsystem and/or the second subsystem to be switched to a corresponding operating environment according to the scene identifier and the operating environment identifier.
In this embodiment, the first subsystem and the second subsystem are two different subsystems. Specifically, different functions of different applications can be verified in different subsystems, thereby improving efficiency. In this embodiment, it is possible to determine which subsystem needs to be switched to the operating environment according to the target environment information. Illustratively, when the target environment information comprises a first subsystem, a recommendation function and a gray level environment and comprises a second subsystem, an inquiry function and an online environment, switching the first subsystem to the corresponding operating environment according to the recommendation function and the gray level environment, and switching the second subsystem to the corresponding operating environment for testing according to the insertion brain function and the online environment; and when the target environment information only comprises the first subsystem, the recommendation function and the gray level environment, switching the operating environment for the first subsystem, and not switching the second subsystem.
In an optional embodiment, the pushing the target environment information to a preset test system includes:
judging whether an inquiry message of the preset test system is received or not; and when receiving the query message of the preset test system, pushing the target environment information to the preset test system.
In this embodiment, the query message is generated by the preset test system, and the query message is generated when the preset test system is needed. When the query message is received, it is indicated that the preset test system passes verification in the first switching environment, and needs to be switched to the next operating environment for verification, and at this time, the target environment information is pushed to the preset test system, so that switching to the second operating environment is avoided when the first operating environment is not verified.
The technical scheme of the embodiment of the invention monitors the update message of the environment management system for updating the running environment in real time; when the updating message is monitored, acquiring target environment information according to the updating message; the target environment information is pushed to a preset test system, so that the preset test system can be switched to a second running environment from a first running environment according to the target environment information, the running environment can be updated to operate from an environment management system, the target environment information can be normally pushed to the preset test system after the updating is completed, the preset test system can be switched to the running environment, a user only needs to develop codes of different parts between different running environments, the complete codes of each running environment do not need to be developed, and the technical effect of improving the efficiency of switching the running environments is achieved.
Example two
Fig. 2 is a flowchart illustrating a method for switching an operating environment according to a second embodiment of the present invention. The embodiment is further detailed in the technical scheme, and is suitable for a scene of switching to different running environments for verification when a new function of online software is realized. The method can be executed by a switching device of the operating environment, which can be implemented in software and/or hardware and can be integrated on a computer device.
As shown in fig. 2, a method for switching an operating environment according to a second embodiment of the present invention includes:
s210, monitoring an update message of the environment management system for updating the running environment in real time.
The environment management system is a system for managing the operating environment. Specifically, the user may update the target environment information of the operating environment through the environment management system. Specifically, the updating refers to operations such as modifying, deleting or adding the operating environment, and is not limited in detail here. The operating environment refers to an environment in which semi-compiled operation codes are operated on a target machine, and the operating environment is an operating mode which is between a compiler and an interpreter. In this embodiment, the operating environment refers to an environment required when software implements a certain function. When the user updates the running environment in the environment management system, an update message is generated, and the update message can be monitored in real time. The real-time monitoring may be performed every second or every 10 seconds, and is not limited herein.
S220, when the updating message is monitored, the target environment information is obtained according to the updating message.
The target environment information refers to information corresponding to the operating environment to be switched. Optionally, the target environment information includes, but is not limited to, a system identifier, a scene identifier, and an operating environment identifier. The system identifier may be a name of the system, the scene identifier may be an identifier of a software function, and the operating environment identifier may be one or more of identifiers such as a test environment, a pre-release environment, a grayscale environment, and an online environment, which is not limited herein. Optionally, the update message includes a storage address of the target environment information, and the target environment information may be obtained from a corresponding preset database according to the storage address.
And S230, storing the target environment information to a local cache.
The local cache refers to a container for storing the target environment information. Specifically, the transmission rate of the local cache is much higher than the network transmission rate.
And S240, acquiring the target environment information from the local cache.
In this embodiment, after the target environment information is acquired, the target environment information is stored in the local cache, and when the preset test system needs to switch the operating environment, the target environment information is acquired from the local cache and then pushed to the preset test system. Optionally, the target environment information may be obtained from the local cache and pushed to the preset test system only when the query message of the preset test system is received, so as to reduce the time for pushing the target environment information to the preset test system.
S250, pushing the target environment information to the preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information.
The preset test system refers to a system for performing verification in a specific operating environment. Specifically, after the target environment information is pushed to the preset test system, the first operating environment can be switched to the second operating environment according to the target environment information. Optionally, the preset test system may obtain the corresponding code logic according to the target environment information, so as to construct a second operating environment for verification. Optionally, the operating environment includes, but is not limited to, a test environment, a pre-release environment, a grayscale environment, or an online environment. The first operating environment is different from the second operating environment, and generally, the operating environments are sequentially switched from a test environment, a pre-release environment, a gray scale environment and an on-line environment.
The technical scheme of the embodiment of the invention monitors the update message of the environment management system for updating the running environment in real time; when the updating message is monitored, acquiring target environment information according to the updating message; the target environment information is pushed to a preset test system, so that the preset test system can be switched to a second running environment from a first running environment according to the target environment information, the running environment can be updated to operate from an environment management system, the target environment information can be normally pushed to the preset test system after the updating is completed, the preset test system can be switched to the running environment, a user only needs to develop codes of different parts between different running environments, the complete codes of each running environment do not need to be developed, and the technical effect of improving the efficiency of switching the running environments is achieved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a switching apparatus for an operating environment according to a third embodiment of the present invention, where this embodiment is applicable to a scenario where verification is performed in a different operating environment when a new function of online software is performed, and the apparatus may be implemented in a software and/or hardware manner and may be integrated on a computer device.
As shown in fig. 3, the switching device of the operating environment provided in this embodiment may include a listening module 310, an obtaining module 320, and a pushing module 330, where:
the monitoring module 310 is configured to monitor an update message of the environment management system for updating the operating environment in real time;
an obtaining module 320, configured to obtain target environment information according to the update message when the update message is monitored;
the pushing module 330 is configured to push the target environment information to a preset test system, so that the preset test system is switched from a first operating environment to a second operating environment according to the target environment information.
Optionally, the environment management system updates the target operating environment and then sends the update message to a message queue, and the obtaining module 320 is specifically configured to obtain the target environment information according to the update message when the update message of the message queue is monitored.
Optionally, the target environment information includes a system identifier, a scene identifier, and an operating environment identifier.
First, the preset test system includes a first subsystem and a second subsystem, and the pushing module 330 is specifically configured to push the target environment information to the first subsystem and/or the second subsystem according to the system identifier, so that the first subsystem and/or the second subsystem are switched to a corresponding operating environment according to the scene identifier and the operating environment identifier.
Optionally, the apparatus further comprises:
the storage module is used for storing the target environment information to a local cache;
the push module 330 includes:
a target environment information obtaining unit, configured to obtain target environment information from the local cache;
and the pushing unit is used for pushing the target environment information to the preset test system.
Optionally, the pushing module 330 further includes:
the judging unit is used for judging whether the query message of the preset test system is received or not;
the pushing unit is further configured to push the target environment information to a preset test system when receiving a query message of the preset test system.
Optionally, the operating environment includes a test environment, a pre-release environment, a grayscale environment, or an online environment.
The switching device of the operating environment provided by the embodiment of the invention can execute the switching method of the operating environment provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the invention not specifically described in this embodiment.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 612 suitable for use in implementing embodiments of the present invention. The computer device 612 shown in fig. 4 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in fig. 4, the computer device 612 is in the form of a general purpose computer device. Components of computer device 612 may include, but are not limited to: one or more processors 616, a memory device 628, and a bus 618 that couples the various system components including the memory device 628 and the processors 616.
Bus 618 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 612 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 628 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 630 and/or cache Memory 632. Terminal 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 634 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In such cases, each drive may be connected to bus 618 by one or more data media interfaces. Storage device 628 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 640 having a set (at least one) of program modules 642 may be stored, for example, in storage 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 642 generally perform the functions and/or methods of the described embodiments of the present invention.
The computer device 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing terminal, display 624, etc.), with one or more terminals that enable a user to interact with the computer device 612, and/or with any terminals (e.g., network card, modem, etc.) that enable the computer device 612 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 622. Also, computer device 612 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via Network adapter 620. As shown in FIG. 4, the network adapter 620 communicates with the other modules of the computer device 612 via the bus 618. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the computer device 612, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of independent disks) systems, tape drives, and data backup storage systems.
The processor 616 executes various functional applications and data processing by executing programs stored in the storage device 628, for example, implementing a method for switching execution environments provided by any embodiment of the present invention, which may include:
monitoring an update message of an environment management system for updating the running environment in real time;
when the updating message is monitored, acquiring target environment information according to the updating message;
and pushing the target environment information to a preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information.
The technical scheme of the embodiment of the invention monitors the update message of the environment management system for updating the running environment in real time; when the updating message is monitored, acquiring target environment information according to the updating message; the target environment information is pushed to a preset test system, so that the preset test system can be switched to a second running environment from a first running environment according to the target environment information, the running environment can be updated to operate from an environment management system, the target environment information can be normally pushed to the preset test system after the updating is completed, the preset test system can be switched to the running environment, a user only needs to develop codes of different parts between different running environments, the complete codes of each running environment do not need to be developed, and the technical effect of improving the efficiency of switching the running environments is achieved.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for switching an operating environment according to any embodiment of the present invention, where the method includes:
monitoring an update message of an environment management system for updating the running environment in real time;
when the updating message is monitored, acquiring target environment information according to the updating message;
and pushing the target environment information to a preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The technical scheme of the embodiment of the invention monitors the update message of the environment management system for updating the running environment in real time; when the updating message is monitored, acquiring target environment information according to the updating message; the target environment information is pushed to a preset test system, so that the preset test system can be switched to a second running environment from a first running environment according to the target environment information, the running environment can be updated to operate from an environment management system, the target environment information can be normally pushed to the preset test system after the updating is completed, the preset test system can be switched to the running environment, a user only needs to develop codes of different parts between different running environments, the complete codes of each running environment do not need to be developed, and the technical effect of improving the efficiency of switching the running environments is achieved.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for switching operating environments, the method comprising:
monitoring an update message of an environment management system for updating the running environment in real time;
when the updating message is monitored, acquiring target environment information according to the updating message;
and pushing the target environment information to a preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information.
2. The method of claim 1, wherein the environmental management system sends the update message to a message queue after updating the target operating environment, and when the update message is monitored, obtains target environmental information according to the update message, including
And when the updating message of the message queue is monitored, acquiring target environment information according to the updating message.
3. The method of claim 1, wherein the target environment information comprises a system identification, a scene identification, and a runtime environment identification.
4. The method of claim 3, wherein the pre-set test system comprises a first subsystem and a second subsystem, and pushing the target environment information to the pre-set test system to cause the pre-set test system to switch from a first operating environment to a second operating environment according to the target environment information comprises:
and pushing the target environment information to the first subsystem and/or the second subsystem according to the system identifier so as to enable the first subsystem and/or the second subsystem to be switched to a corresponding operating environment according to the scene identifier and the operating environment identifier.
5. The method of claim 1, wherein the method further comprises:
storing the target environment information to a local cache;
correspondingly, the pushing the target environment information to a preset test system includes:
obtaining target environment information from the local cache;
and pushing the target environment information to the preset test system.
6. The method of claim 1, wherein the pushing the target environment information to a pre-set test system comprises:
judging whether an inquiry message of the preset test system is received or not;
and when receiving the query message of the preset test system, pushing the target environment information to the preset test system.
7. The method of any of claims 1-6, wherein the runtime environment comprises a test environment, a pre-release environment, a grayscale environment, or an online environment.
8. A switching device of an operating environment, comprising:
the monitoring module is used for monitoring an updating message of the environment management system for updating the operating environment in real time;
the acquisition module is used for acquiring target environment information according to the update message when the update message is monitored;
and the pushing module is used for pushing the target environment information to a preset test system so that the preset test system is switched from a first operation environment to a second operation environment according to the target environment information.
9. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the switching method of execution environment of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the switching method of the execution environment according to any one of claims 1 to 7.
CN202010102898.9A 2020-02-19 2020-02-19 Operating environment switching method and device, computer equipment and storage medium Withdrawn CN111324441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010102898.9A CN111324441A (en) 2020-02-19 2020-02-19 Operating environment switching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010102898.9A CN111324441A (en) 2020-02-19 2020-02-19 Operating environment switching method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111324441A true CN111324441A (en) 2020-06-23

Family

ID=71172681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010102898.9A Withdrawn CN111324441A (en) 2020-02-19 2020-02-19 Operating environment switching method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111324441A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015563A (en) * 2020-09-02 2020-12-01 中国平安财产保险股份有限公司 Message queue switching method and device, electronic equipment and storage medium
CN112363946A (en) * 2020-11-24 2021-02-12 上海悦易网络信息技术有限公司 Message forwarding method and device based on service system
CN112948239A (en) * 2021-02-04 2021-06-11 深圳市镜玩科技有限公司 Application program testing method and system, terminal device and computer storage medium
CN113608803A (en) * 2021-08-16 2021-11-05 上海万物新生环保科技集团有限公司 Method and equipment for realizing functional operation in multi-operation environment
CN113760384A (en) * 2021-01-04 2021-12-07 北京沃东天骏信息技术有限公司 Application environment switching method and device, computer system and readable storage medium
CN115460077A (en) * 2022-09-01 2022-12-09 杭州华橙软件技术有限公司 Configuration information updating method and device, storage medium and electronic device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015563A (en) * 2020-09-02 2020-12-01 中国平安财产保险股份有限公司 Message queue switching method and device, electronic equipment and storage medium
CN112015563B (en) * 2020-09-02 2023-07-07 中国平安财产保险股份有限公司 Message queue switching method and device, electronic equipment and storage medium
CN112363946A (en) * 2020-11-24 2021-02-12 上海悦易网络信息技术有限公司 Message forwarding method and device based on service system
CN112363946B (en) * 2020-11-24 2024-04-16 上海万物新生环保科技集团有限公司 Message forwarding method and device based on service system
CN113760384A (en) * 2021-01-04 2021-12-07 北京沃东天骏信息技术有限公司 Application environment switching method and device, computer system and readable storage medium
CN112948239A (en) * 2021-02-04 2021-06-11 深圳市镜玩科技有限公司 Application program testing method and system, terminal device and computer storage medium
CN112948239B (en) * 2021-02-04 2024-05-14 深圳市仁凯网络科技有限公司 Application program testing method, system, terminal equipment and computer storage medium
CN113608803A (en) * 2021-08-16 2021-11-05 上海万物新生环保科技集团有限公司 Method and equipment for realizing functional operation in multi-operation environment
CN115460077A (en) * 2022-09-01 2022-12-09 杭州华橙软件技术有限公司 Configuration information updating method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
CN108933695B (en) Method and apparatus for processing information
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN111241111B (en) Data query method and device, data comparison method and device, medium and equipment
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN110555150A (en) Data monitoring method, device, equipment and storage medium
CN114281663A (en) Test processing method, test processing device, electronic equipment and storage medium
CN111367813B (en) Automatic testing method and device for decision engine, server and storage medium
CN112069158A (en) Data restoration method, device, equipment and storage medium
CN111913861A (en) Performance test method, device, equipment and medium of Internet of things system
CN113111078B (en) Resource data processing method and device, computer equipment and storage medium
CN113392002B (en) Test system construction method, device, equipment and storage medium
CN111262727B (en) Service capacity expansion method, device, equipment and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN115237931A (en) Method and system for updating sub-service processing result of service arrangement
CN112925796A (en) Write consistency control method, device, equipment and storage medium
CN114036218A (en) Data model switching method and device, server and storage medium
CN113094415B (en) Data extraction method, data extraction device, computer readable medium and electronic equipment
CN114428815A (en) Data storage method and device, electronic equipment and computer readable medium
CN109634636B (en) Application processing method, device, equipment and medium
CN112965910A (en) Automatic regression testing method and device, electronic equipment and storage medium
CN114338846A (en) Message testing method and device
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN111369238A (en) Payment channel selection method, system, payment equipment and storage medium
CN117592311B (en) Multi-level simulation method, device and equipment for workflow and readable 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200623

WW01 Invention patent application withdrawn after publication