CN113179183A - Service switch state control device and method - Google Patents

Service switch state control device and method Download PDF

Info

Publication number
CN113179183A
CN113179183A CN202110471524.9A CN202110471524A CN113179183A CN 113179183 A CN113179183 A CN 113179183A CN 202110471524 A CN202110471524 A CN 202110471524A CN 113179183 A CN113179183 A CN 113179183A
Authority
CN
China
Prior art keywords
service
target service
configuration file
operation instruction
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110471524.9A
Other languages
Chinese (zh)
Other versions
CN113179183B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202110471524.9A priority Critical patent/CN113179183B/en
Publication of CN113179183A publication Critical patent/CN113179183A/en
Application granted granted Critical
Publication of CN113179183B publication Critical patent/CN113179183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure relates to a service switch state control apparatus and method. The method comprises the following steps: displaying the states of a plurality of services on the service display page; determining a target service according to the selection of the user on the service display page; extracting the attribute of the target service to expand a configuration detail page corresponding to the target service; acquiring an operation instruction of the user on the configuration detail page; and sending the identification of the target service and the operation instruction to a background server to control the on-off state of the target service. The service switch state control method, the service switch state control device, the electronic equipment and the computer readable medium can assist a user to flexibly, conveniently and quickly turn on or off service configuration, reduce operation time consumption and improve operation efficiency and accuracy.

Description

Service switch state control device and method
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a method and an apparatus for controlling a service switch state, an electronic device, and a computer-readable medium.
Background
With the development of internet applications, the number of applications on network security equipment is increasing, the number of corresponding page menus and the number of configurations on a single page are also increasing, a plurality of service starting switches are arranged on the pages, the switches are started, the user needs to enter each page for configuration by clicking a first-level menu, a second-level menu and the like on the page, if the number of service switches needing to be started is large, the user can not know which services are started at a glance after clicking each page in a complicated operation way.
Currently, there are two schemes for turning services on or off on a device: 1, configuring through a page: finding a virtual system menu item in the menu, clicking the virtual system, opening a virtual system page, checking the starting, namely opening the virtual system, not checking the starting, namely closing the virtual system, and clicking a submit button to enable the configuration. And 2, configuring through the command line.
The two schemes both need to configure each service one by one, and if multiple services need to be started, multiple pages need to be entered for configuration or multiple commands need to be executed, which is tedious in operation. Neither of the two schemes can intuitively see which services on the device are enabled and which are not.
Therefore, a new service switch state control method, device, electronic device and computer readable medium are needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present disclosure provides a service switch state control method, device, electronic device, and computer readable medium, which can assist a user to flexibly, conveniently, and quickly turn on or off a service configuration, reduce operation time, and improve operation efficiency and accuracy.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, a service switch state control method is provided, which includes: displaying the states of a plurality of services on the service display page; determining a target service according to the selection of the user on the service display page; extracting the attribute of the target service to expand a configuration detail page corresponding to the target service; acquiring an operation instruction of the user on the configuration detail page; and sending the identification of the target service and the operation instruction to a background server to control the on-off state of the target service.
In an exemplary embodiment of the present disclosure, further comprising: and establishing a service starting configuration file in the background server, wherein the states of a plurality of services in the background service are stored in the configuration file in the server.
In an exemplary embodiment of the present disclosure, presenting states of a plurality of services in the service presentation page includes: acquiring the service starting configuration file; extracting states of the plurality of services based on the service launch profile; and performing classified display in the service display page according to the states of the plurality of services.
In an exemplary embodiment of the present disclosure, extracting attributes of the target service to expand a configuration detail page corresponding to the target service includes: extracting a URL address from the attribute; and expanding a configuration detail page corresponding to the target service based on the URL address.
In an exemplary embodiment of the present disclosure, acquiring an operation instruction of the user on the configuration detail page includes: generating an operation instruction based on the operation of the user on the configuration detail page; the operation instruction comprises an opening instruction and a closing instruction, the state value of the operation instruction corresponding to the opening instruction is 1, and the state value of the operation instruction corresponding to the closing instruction is 0.
In an exemplary embodiment of the present disclosure, sending the identifier of the target service and the operation instruction to a background server to control the on/off state of the target service includes: updating the service starting configuration file in the background server based on the operation instruction; and updating the configuration file corresponding to the target service in the background server based on the operation instruction.
In an exemplary embodiment of the present disclosure, updating the service start configuration file in the background server based on the operation instruction includes: extracting the state value of the operation instruction; searching a data item corresponding to the target service identification in the service starting configuration file; and updating the state value corresponding to the operation instruction in the data item.
In an exemplary embodiment of the present disclosure, updating the service start configuration file in the background server based on the operation instruction includes: extracting the state value of the operation instruction; searching a configuration file corresponding to the target service identification in the background server; and updating the state value corresponding to the operation instruction in the configuration file.
In an exemplary embodiment of the present disclosure, searching for a configuration file corresponding to the target service identifier in the background server includes: searching a data item corresponding to the target service identification in the service starting configuration file; extracting the configuration file name and the storage position corresponding to the target service identification from the data item; and determining the configuration file corresponding to the target service identification based on the configuration file name and the storage position.
According to an aspect of the present disclosure, there is provided a service switch state control apparatus, the apparatus including: the display module is used for displaying the states of the plurality of services on the service display page; the selection module is used for determining target service on the service display page according to the selection of the user; the extraction module is used for extracting the attribute of the target service so as to expand a configuration detail page corresponding to the target service; the instruction module is used for acquiring the operation instruction of the user on the configuration detail page; and the control module is used for sending the identification of the target service and the operation instruction to a background server so as to control the on-off state of the target service.
In an exemplary embodiment of the present disclosure, further comprising: and the establishing module is used for establishing a service starting configuration file in the background server, and the states of a plurality of services in the background service are stored in the configuration file in the server.
According to an aspect of the present disclosure, an electronic device is provided, the electronic device including: one or more processors; storage means for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method as above.
According to an aspect of the disclosure, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, carries out the method as above.
According to the service switch state control method, the service switch state control device, the electronic equipment and the computer readable medium, states of a plurality of services are displayed on the service display page; determining a target service according to the selection of the user on the service display page; extracting the attribute of the target service to expand a configuration detail page corresponding to the target service; acquiring an operation instruction of the user on the configuration detail page; the identification of the target service and the operation instruction are sent to a background server to control the on-off state of the target service, so that a user can be assisted to flexibly, conveniently and quickly turn on or off the service configuration, the time consumption of operation is reduced, and the operation efficiency and accuracy are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely some embodiments of the present disclosure, and other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
Fig. 1 is a system block diagram illustrating a service switch state control method and apparatus according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a service switch state control method according to an exemplary embodiment.
Fig. 3 is a schematic diagram illustrating a service switch state control method according to another exemplary embodiment.
Fig. 4 is a schematic diagram illustrating a service switch state control method according to another exemplary embodiment.
Fig. 5 is a schematic diagram illustrating a service switch state control method according to another exemplary embodiment.
Fig. 6 is a flowchart illustrating a service switch state control method according to another exemplary embodiment.
Fig. 7 is a schematic diagram illustrating a service switch state control method according to another exemplary embodiment.
Fig. 8 is a block diagram illustrating a service switch state control apparatus according to an exemplary embodiment.
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 10 is a block diagram illustrating a computer-readable medium in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the disclosed concept. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It is to be understood by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present disclosure and are, therefore, not intended to limit the scope of the present disclosure.
Fig. 1 is a system block diagram illustrating a service switch state control method and apparatus according to an exemplary embodiment.
As shown in fig. 1, the system architecture 10 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web service configuration application, a data configuration application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server that processes configuration information submitted by users using the terminal devices 101, 102, 103. The background management server can analyze and process the received configuration data, and update the configuration file according to the processing result.
The terminal device 101, 102, 103 may for example present the states of a plurality of services on said service presentation page above; the terminal devices 101, 102, 103 may determine a target service according to a selection of a user, for example, on the service presentation page; the terminal device 101, 102, 103 may, for example, extract the attribute of the target service to expand a configuration detail page corresponding to the target service; the terminal device 101, 102, 103 may obtain the operation instruction of the user, for example, on the configuration detail page; the terminal device 101, 102, 103 may for example send an identification of said target service and said operation instructions to the server 105 to control the switching state of said target service.
The server 105 may be a single entity server, or may be composed of a plurality of servers, for example, it should be noted that the service switch state control method provided by the embodiment of the present disclosure may be executed by the server 105 and the terminal devices 101, 102, and 103 together, and accordingly, the service switch state control device may be disposed in the server 105 and the terminal devices 101, 102, and 103.
Fig. 2 is a flow chart illustrating a service switch state control method according to an exemplary embodiment. The service switch state control method 20 includes at least steps S202 to S210.
As shown in fig. 2, in S202, the states of a plurality of services are presented on the service presentation page. The method comprises the following steps: acquiring the service starting configuration file; extracting states of the plurality of services based on the service launch profile; and performing classified display in the service display page according to the states of the plurality of services.
The service starting configuration file stores the starting or closing of all services in the system, and the configuration file and the database corresponding to each service. The service identification and the corresponding open or close state thereof can be extracted one by one in the service starting configuration, and a plurality of services and the corresponding open or close states thereof are displayed in the service display page.
In a specific application scenario, the service presentation page may be a service presentation page of the network security device, a button for starting the service presentation page may be provided in the attribute page of the network security device, and the service presentation page is presented when the user clicks the button. More specifically, there may be a "service controller" button in the top right functional area of the network security device page, and clicking the button pops up a pop-up box containing all the service switches on the device. The user can configure all service switches on certain equipment through one page, and can visually see which services are started and which services are closed, so that great convenience is provided for subsequent setting operation of the user.
As shown in fig. 3, the open or closed states of the services may be sequentially displayed on the service display page in a sorting manner based on the service identifier, and as shown in fig. 4, the services may be divided into two categories according to the open and closed states, and the service display page may be divided into two columns for respectively displaying the corresponding services.
More specifically, when a pop-up box of the service controller is opened each time, the page requests service data to the background, the background directly reads the flag value of each service item in the configuration file, and transmits the flag value to the page, so that the page receives the data value returned by the background, and the service is started or closed on the page and is displayed in a mode of checking whether to select a selection box or not.
The service controller pop-up box is also provided with a sorting button, and by clicking the sorting button, the services can be sorted according to the starting and non-starting, the started service is indicated on the left side in a checking way, and the non-started service is indicated on the right side. This allows the administrator to know at a glance which services are active and which services are inactive.
In S204, a target service is determined according to the selection of the user on the service presentation page. Continuing with FIG. 3, the user may determine the target service to be processed by clicking on the service.
In S206, the attribute of the target service is extracted to expand the configuration detail page corresponding to the target service. The method comprises the following steps: extracting a URL address from the attribute; and expanding a configuration detail page corresponding to the target service based on the URL address.
In the system, each service contains a built-in attribute hurl, the value of hurl is the URL address of the detailed page corresponding to each service switch, and the service name is clicked by a mouse, so that the service can jump to the detailed page of the service. E.g., clicking on the virtual system, jumps to the virtual system configuration page, as shown in fig. 5.
In S208, an operation instruction of the user is acquired on the configuration detail page. The method comprises the following steps: generating an operation instruction based on the operation of the user on the configuration detail page; the operation instruction comprises an opening instruction and a closing instruction, the state value of the operation instruction corresponding to the opening instruction is 1, and the state value of the operation instruction corresponding to the closing instruction is 0.
The initiation and shutdown of services on the device may be configured via a configuration details page as shown in figure 5. For example, the virtual system is selected to start, the submit button is clicked, the page issues the data of the virtual system to the background, the virtual system is represented by vsys, the start is represented by 1, the stop is represented by 0, and the data issued to the background can be vsys: 1.
In S210, the identifier of the target service and the operation instruction are sent to a background server to control the on/off state of the target service. Updating the service starting configuration file in the background server based on the operation instruction; and updating the configuration file corresponding to the target service in the background server based on the operation instruction.
The background service data is stored in the database, and some are stored in the configuration file, so that the configuration file of the storage service is represented by a filename, the switchname represents the field name used by the service in the stored configuration file, db _ table represents which database table is stored in, and the value of db _ data represents the specific database.
After receiving data transmitted from a front end, a background searches a data item consistent with a service name in a service starting configuration file, if the data sent by a virtual system is vsys:1, finds a corresponding data item vsys in the configuration file, reads and modifies the value of the data item, the value of a modification flag is 1, the values of a filename and a switch name are read, and the value of the switch is modified to be 1 in a configuration file of "/ect/web/vsys _ switch. Thus, the configuration of the data in the background is completed.
When each service detail page is configured, besides modifying the corresponding value of the service in the database or the configuration file, the service start configuration file is also modified, so that the data on both sides are kept consistent.
According to the service switch state control method, states of a plurality of services are displayed on the service display page; determining a target service according to the selection of the user on the service display page; extracting the attribute of the target service to expand a configuration detail page corresponding to the target service; acquiring an operation instruction of the user on the configuration detail page; the identification of the target service and the operation instruction are sent to a background server to control the on-off state of the target service, so that a user can be assisted to flexibly, conveniently and quickly turn on or off the service configuration, the time consumption of operation is reduced, and the operation efficiency and accuracy are improved.
It should be clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 6 is a flowchart illustrating a service switch state control method according to another exemplary embodiment. The process 60 shown in fig. 6 is a detailed description of the step S210 "sending the identification of the target service and the operation instruction to the background server to control the on/off state of the target service" in the process shown in fig. 2.
As shown in fig. 6, in S602, a service start configuration file is established in the background server, and the server configuration file stores states of a plurality of services in the background service. As shown in fig. 7, each service in the backend server is stored in a respective configuration file or database, and a "service start" configuration file may be established in the backend server, in which the start or the stop of each service and the configuration file or database corresponding to each service are recorded in detail.
As shown in fig. 7, vsys may represent a virtual system, flag may represent startup or shutdown, background service data is stored in a database, and background service data is stored in a configuration file, so that a filename may represent a configuration file of a storage service, switchname represents a field name used by the service in the stored configuration file, db _ table represents which database table is stored, and db _ data represents a specific database.
In S604, the service start configuration file in the background server is updated based on the operation instruction. The method comprises the following steps: extracting the state value of the operation instruction; searching a data item corresponding to the target service identification in the service starting configuration file; and updating the state value corresponding to the operation instruction in the data item.
After receiving data transmitted from the front end, the background firstly searches a data item consistent with the service name in a service starting configuration file, if the data issued by the virtual system is vsys:1, searches a corresponding data item vsys in the configuration file, then reads and modifies the value of the data item, and the modified flag value is 1.
In S606, the configuration file corresponding to the target service in the background server is updated based on the operation instruction. The method comprises the following steps: extracting the state value of the operation instruction; searching a configuration file corresponding to the target service identification in the background server; and updating the state value corresponding to the operation instruction in the configuration file.
Searching the configuration file corresponding to the target service identifier in the background server includes: searching a data item corresponding to the target service identification in the service starting configuration file; extracting the configuration file name and the storage position corresponding to the target service identification from the data item; and determining the configuration file corresponding to the target service identification based on the configuration file name and the storage position.
After receiving data transmitted by the front end, the background first searches for a data item consistent with the service name in a "service start" configuration file, for example, the data sent by the virtual system is vsys:1, and searches for the values of the filename and the switch name in the configuration file, and more specifically, the value of "switch" may be modified to be 1 in the configuration file of "/ect/web/vsys _ switch. Thus, the configuration of the data in the background is completed.
According to the service switch state control method disclosed by the invention, a user can configure all services on the network security equipment to be started or closed through one page, the page issues service data to be started or closed to the background, and the background searches the configuration file or the database storing the service data through the service starting configuration file, so that the service data is modified. The user can configure various services on the network security equipment through the service controller without configuring through each page or starting or closing the services in a mode of executing a plurality of commands, so that the complexity in operation is reduced, and the user operation is more convenient, simpler and quicker.
According to the service switch state control method disclosed by the invention, the user can clearly know which services are started and which services are closed through the display information of one page, so that the user can clearly know the information, and the operation convenience is improved.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. When executed by the CPU, performs the functions defined by the above-described methods provided by the present disclosure. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 8 is a block diagram illustrating a service switch state control apparatus according to an exemplary embodiment. As shown in fig. 8, the service switch state control device 80 includes: a presentation module 802, a selection module 804, an extraction module 806, an instruction module 808, a control module 810, and a setup module 812.
The presentation module 802 is configured to present states of a plurality of services on the service presentation page; the presentation module 802 may obtain the service initiation profile; extracting states of the plurality of services based on the service launch profile; and performing classified display in the service display page according to the states of the plurality of services.
The selection module 804 is used for determining a target service according to the selection of the user on the service display page;
the extracting module 806 is configured to extract the attribute of the target service to expand a configuration detail page corresponding to the target service; the extraction module 806 can extract the URL address from the attribute; and expanding a configuration detail page corresponding to the target service based on the URL address.
The instruction module 808 is configured to obtain an operation instruction of the user on the configuration detail page; the instruction module 808 is further configured to generate an operation instruction based on an operation of the user on the configuration detail page; the operation instruction comprises an opening instruction and a closing instruction, the state value of the operation instruction corresponding to the opening instruction is 1, and the state value of the operation instruction corresponding to the closing instruction is 0.
The control module 810 is configured to send the identifier of the target service and the operation instruction to a background server to control the on/off state of the target service. The control module 810 is further configured to update the service start configuration file in the background server based on the operation instruction; and updating the configuration file corresponding to the target service in the background server based on the operation instruction.
The establishing module 812 is configured to establish a service start configuration file in the background server, where the server configuration file stores states of multiple services in the background service.
According to the service switch state control device disclosed by the invention, states of a plurality of services are displayed on the service display page; determining a target service according to the selection of the user on the service display page; extracting the attribute of the target service to expand a configuration detail page corresponding to the target service; acquiring an operation instruction of the user on the configuration detail page; the identification of the target service and the operation instruction are sent to a background server to control the on-off state of the target service, so that a user can be assisted to flexibly, conveniently and quickly turn on or off the service configuration, the time consumption of operation is reduced, and the operation efficiency and accuracy are improved.
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment.
An electronic device 900 according to this embodiment of the disclosure is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: at least one processing unit 910, at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), a display unit 940, and the like.
Wherein the storage unit stores program code that can be executed by the processing unit 910 such that the processing unit 910 performs the steps according to various exemplary embodiments of the present disclosure described in this specification. For example, the processing unit 910 may perform the steps shown in fig. 2 and fig. 6.
The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM)9201 and/or a cache memory unit 9202, and may further include a read only memory unit (ROM) 9203.
The memory unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 930 can be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 900' (e.g., keyboard, pointing device, bluetooth device, etc.), such that a user can communicate with devices with which the electronic device 900 interacts, and/or any device (e.g., router, modem, etc.) with which the electronic device 900 can communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 950. Also, the electronic device 900 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 960. The network adapter 960 may communicate with other modules of the electronic device 900 via the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, as shown in fig. 10, the technical solution according to the embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
The computer readable storage medium may include a propagated data signal with 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 readable storage medium may also be any readable medium that is not a 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 readable 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.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The computer readable medium carries one or more programs which, when executed by a device, cause the computer readable medium to perform the functions of: displaying the states of a plurality of services on the service display page; determining a target service according to the selection of the user on the service display page; extracting the attribute of the target service to expand a configuration detail page corresponding to the target service; acquiring an operation instruction of the user on the configuration detail page; and sending the identification of the target service and the operation instruction to a background server to control the on-off state of the target service.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that the present disclosure is not limited to the precise arrangements, instrumentalities, or instrumentalities described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (11)

1. A service switch state control method, comprising:
displaying the states of a plurality of services on the service display page;
determining a target service according to the selection of the user on the service display page;
extracting the attribute of the target service to expand a configuration detail page corresponding to the target service;
acquiring an operation instruction of the user on the configuration detail page;
and sending the identification of the target service and the operation instruction to a background server to control the on-off state of the target service.
2. The method of claim 1, further comprising:
and establishing a service starting configuration file in the background server, wherein the states of a plurality of services in the background service are stored in the configuration file in the server.
3. The method of claim 1, wherein exposing the state of the plurality of services in the service exposure page comprises:
acquiring the service starting configuration file;
extracting states of the plurality of services based on the service launch profile;
and performing classified display in the service display page according to the states of the plurality of services.
4. The method of claim 1, wherein extracting attributes of the target service to expand a configuration detail page corresponding to the target service comprises:
extracting a URL address from the attribute;
and expanding a configuration detail page corresponding to the target service based on the URL address.
5. The method of claim 1, wherein obtaining operational instructions for the user on the configuration details page comprises:
generating an operation instruction based on the operation of the user on the configuration detail page; the operation instruction comprises an opening instruction and a closing instruction, the state value of the operation instruction corresponding to the opening instruction is 1, and the state value of the operation instruction corresponding to the closing instruction is 0.
6. The method of claim 1, wherein sending the identification of the target service and the operational instructions to a background server to control a switch state of the target service comprises:
updating the service starting configuration file in the background server based on the operation instruction;
and updating the configuration file corresponding to the target service in the background server based on the operation instruction.
7. The method of claim 6, wherein updating the service initiation profile in the background server based on the operational instructions comprises:
extracting the state value of the operation instruction;
searching a data item corresponding to the target service identification in the service starting configuration file;
and updating the state value corresponding to the operation instruction in the data item.
8. The method of claim 6, wherein updating the service initiation profile in the background server based on the operational instructions comprises:
extracting the state value of the operation instruction;
searching a configuration file corresponding to the target service identification in the background server;
and updating the state value corresponding to the operation instruction in the configuration file.
9. The method of claim 8, wherein searching the background server for the configuration file corresponding to the target service identifier comprises:
searching a data item corresponding to the target service identification in the service starting configuration file;
extracting the configuration file name and the storage position corresponding to the target service identification from the data item;
and determining the configuration file corresponding to the target service identification based on the configuration file name and the storage position.
10. A service switch state control apparatus, comprising:
the display module is used for displaying the states of the plurality of services on the service display page;
the selection module is used for determining target service on the service display page according to the selection of the user;
the extraction module is used for extracting the attribute of the target service so as to expand a configuration detail page corresponding to the target service;
the instruction module is used for acquiring the operation instruction of the user on the configuration detail page;
and the control module is used for sending the identification of the target service and the operation instruction to a background server so as to control the on-off state of the target service.
11. The apparatus of claim 10, further comprising:
and the establishing module is used for establishing a service starting configuration file in the background server, and the states of a plurality of services in the background service are stored in the configuration file in the server.
CN202110471524.9A 2021-04-29 2021-04-29 Service switch state control device and method Active CN113179183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110471524.9A CN113179183B (en) 2021-04-29 2021-04-29 Service switch state control device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110471524.9A CN113179183B (en) 2021-04-29 2021-04-29 Service switch state control device and method

Publications (2)

Publication Number Publication Date
CN113179183A true CN113179183A (en) 2021-07-27
CN113179183B CN113179183B (en) 2023-02-07

Family

ID=76925177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110471524.9A Active CN113179183B (en) 2021-04-29 2021-04-29 Service switch state control device and method

Country Status (1)

Country Link
CN (1) CN113179183B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650318A (en) * 2022-02-24 2022-06-21 阿里巴巴(中国)有限公司 Switch pushing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825896A (en) * 2011-04-01 2014-05-28 北京奇虎科技有限公司 Method for deploying application to terminal by central server and terminal application deploying method
US8874721B1 (en) * 2007-06-27 2014-10-28 Sprint Communications Company L.P. Service layer selection and display in a service network monitoring system
CN106778281A (en) * 2016-11-10 2017-05-31 乐视控股(北京)有限公司 A kind of method for repairing security breaches, device and electronic equipment
CN108595223A (en) * 2018-04-27 2018-09-28 上海达梦数据库有限公司 A kind of configuration method of application program, device, equipment and storage medium
US20190268218A1 (en) * 2018-02-28 2019-08-29 Red Hat, Inc. Networking visualizations that update data model and deploy visualization
CN112527357A (en) * 2020-12-14 2021-03-19 中国平安人寿保险股份有限公司 Service hot loading updating method and device, computer equipment and storage medium
CN112688811A (en) * 2020-12-22 2021-04-20 北京天融信网络安全技术有限公司 Wireless local area network management method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8874721B1 (en) * 2007-06-27 2014-10-28 Sprint Communications Company L.P. Service layer selection and display in a service network monitoring system
CN103825896A (en) * 2011-04-01 2014-05-28 北京奇虎科技有限公司 Method for deploying application to terminal by central server and terminal application deploying method
CN106778281A (en) * 2016-11-10 2017-05-31 乐视控股(北京)有限公司 A kind of method for repairing security breaches, device and electronic equipment
US20190268218A1 (en) * 2018-02-28 2019-08-29 Red Hat, Inc. Networking visualizations that update data model and deploy visualization
CN108595223A (en) * 2018-04-27 2018-09-28 上海达梦数据库有限公司 A kind of configuration method of application program, device, equipment and storage medium
CN112527357A (en) * 2020-12-14 2021-03-19 中国平安人寿保险股份有限公司 Service hot loading updating method and device, computer equipment and storage medium
CN112688811A (en) * 2020-12-22 2021-04-20 北京天融信网络安全技术有限公司 Wireless local area network management method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650318A (en) * 2022-02-24 2022-06-21 阿里巴巴(中国)有限公司 Switch pushing method
CN114650318B (en) * 2022-02-24 2024-04-19 阿里巴巴(中国)有限公司 Switch pushing method

Also Published As

Publication number Publication date
CN113179183B (en) 2023-02-07

Similar Documents

Publication Publication Date Title
US11669579B2 (en) Method and apparatus for providing search results
US10140314B2 (en) Previews for contextual searches
US8001145B1 (en) State management for user interfaces
US20200167134A1 (en) Programming Environment Augment with Automated Dialog System Assistance
US10169374B2 (en) Image searches using image frame context
CN108153848B (en) Method and device for searching light application data and electronic device
US11526575B2 (en) Web browser with enhanced history classification
CN110321544B (en) Method and device for generating information
CN103678704A (en) Picture recognition method, system, equipment and device based on picture information
WO2023024975A1 (en) Text processing method and apparatus, and electronic device
US10592304B2 (en) Suggesting application programming interfaces based on feature and context analysis
CN114036439A (en) Website building method, device, medium and electronic equipment
US20210397646A1 (en) Method, electronic device, and storage medium for processing visual data of deep model
JP2022091904A (en) Mini program page skin changeover method, device, and electronic apparatus
CN113179183B (en) Service switch state control device and method
CN110347573B (en) Application program analysis method, device, electronic equipment and computer readable medium
CN106775711B (en) Information processing method, device and computer-readable storage medium for contact persons
WO2023236795A1 (en) Encyclopedia entry processing method and apparatus, and electronic device, medium and program product
CN109684207B (en) Method and device for packaging operation sequence, electronic equipment and storage medium
CN107168627B (en) Text editing method and device for touch screen
EP3425510B1 (en) Automated testing method for application program user interface, electronic device, system, and storage medium
US11868907B2 (en) Updating chatbot workspaces
CN115756692A (en) Method for automatically combining and displaying pages based on style attributes and related equipment thereof
CN114117303A (en) Multi-selection list display device and method
JP2024505316A (en) Application testing methods, equipment, electronic equipment and storage media

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