CN113032054A - Service execution method, device, storage medium and electronic device - Google Patents

Service execution method, device, storage medium and electronic device Download PDF

Info

Publication number
CN113032054A
CN113032054A CN202110431261.9A CN202110431261A CN113032054A CN 113032054 A CN113032054 A CN 113032054A CN 202110431261 A CN202110431261 A CN 202110431261A CN 113032054 A CN113032054 A CN 113032054A
Authority
CN
China
Prior art keywords
service
target
information
service information
module
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
CN202110431261.9A
Other languages
Chinese (zh)
Other versions
CN113032054B (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 Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng 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 Hangzhou Huacheng Software Technology Co Ltd filed Critical Hangzhou Huacheng Software Technology Co Ltd
Priority to CN202110431261.9A priority Critical patent/CN113032054B/en
Publication of CN113032054A publication Critical patent/CN113032054A/en
Application granted granted Critical
Publication of CN113032054B publication Critical patent/CN113032054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a service execution method, a service execution device, a storage medium and an electronic device, wherein the method comprises the following steps: the front-end module sends a service execution request to the service management module based on the received service execution instruction; the service management module sends a first request to a resource module based on a service execution request, wherein the resource module is used for storing target service information corresponding to a target service; the resource module sends a target service request to a target terminal based on the first request, wherein the target service request comprises target service information; the target terminal calls the target service based on the target service information contained in the target service request to instruct the service module to execute the target service. The invention solves the problem of low service execution efficiency in the related technology, thereby achieving the effect of improving the service execution efficiency.

Description

Service execution method, device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a service execution method, a service execution device, a storage medium and an electronic device.
Background
With the rapid development of the internet industry, each industry approaches to the internet science and technology era; in order to keep pace with the development of the times and adapt to the update iteration speed of a large environment, a large number of different types of services are introduced, for example, micro services capable of executing required schemes, wherein the main purpose of introducing the micro services is to change the system functions conveniently, and certain difficulty coefficients are brought to the management of the services and the later maintenance thereof due to the service change.
Therefore, a series of open source components aiming at micro services in different fields are created, the open source components generally provide services similar to a toolkit form and need to be combined and used by a user according to actual conditions, but the method lacks an ordered management system, so that a service system is too heavy to meet some characteristic requirements of the services, and once problems occur in the using process, the difficulty of problem troubleshooting of the service system is increased.
Disclosure of Invention
The embodiment of the invention provides a service execution method, a service execution device, a storage medium and an electronic device, which are used for at least solving the problem of low system service management efficiency in the related art.
According to an embodiment of the present invention, there is provided a service execution method applied in a service management system, including:
the front-end module sends a service execution request to a service management module based on a received service execution instruction, wherein the service execution instruction is used for indicating execution of a target service;
the service management module sends a first request to a resource module based on the service execution request, wherein the resource module is used for storing target service information corresponding to the target service;
the resource module sends a target service request to a target terminal based on the first request, wherein the target service request comprises the target service information;
and the target terminal calls the target service based on the target service information contained in the target service request so as to instruct a service module to execute the target service.
In an exemplary embodiment, before the target terminal invokes the target service based on the service information contained in the first request to instruct a service module to execute the target service, the method further includes:
the target terminal sends a first call instruction to a service docking script to indicate the service docking script to feed back first service information corresponding to a first service, wherein the first call instruction is used for indicating the first service;
after receiving first service information fed back by the service docking script, the target terminal performs verification processing on the first service information, and performs encapsulation processing on the first service information under the condition that a verification processing result meets a first condition to obtain encapsulated first service information;
the target terminal sends the encapsulated first service information to the resource module to indicate the resource module to store the first service information; wherein the first service comprises the target service.
In an exemplary embodiment, the verifying, by the target terminal, the first service information includes:
the target terminal performs matching verification on the first service information;
the target terminal determines that the verification processing result meets the first condition under the condition that second service information corresponding to the first service information is matched, wherein the second service information is service information prestored by the target terminal;
and the target terminal determines that the check processing result does not meet the first condition under the condition that second service information corresponding to the first service information is not matched, wherein the second service information is service information prestored by the target terminal.
In one exemplary embodiment of the present invention,
before the target terminal sends a first call instruction to the service docking script to instruct the service docking script to feed back first service information corresponding to a first service indicated by the first call instruction, the method further includes:
the target terminal collects target configuration information from an operation and maintenance specified directory, wherein the target configuration information comprises service information of one or more services;
the target terminal sends the target configuration information to the resource module;
the resource module writes the target configuration information into a management template storage directory included in the service management system;
the target terminal calls the target service based on the target service information contained in the target service request to instruct a service module to execute the target service, and the target service comprises the following steps: the target terminal calls the target service based on the target service information contained in the target service request to instruct a service module to read the target service information from the target configuration information stored in the management template storage directory, and executes the target service based on the target service information.
In an exemplary embodiment, after the target terminal sends the target configuration information to the resource module, the method further includes:
the target terminal monitors the information stored in the operation and maintenance appointed directory;
the target terminal collects other configuration information under the condition that the target terminal monitors that the operation and maintenance specified directory contains the other configuration information except the target configuration information;
and the target terminal sends the other configuration information to a resource module to indicate the resource module to update the target configuration information stored in the management template storage directory, wherein the updated target configuration information comprises the other configuration information.
According to another embodiment of the present invention, there is provided a service execution apparatus applied to a service management system, including:
the front-end module is used for sending a service execution request to the service management module based on a received service execution instruction, wherein the service execution instruction is used for indicating execution of a target service;
the service management module is used for sending a first request to a resource module based on the service execution request, wherein the resource module is used for storing target service information corresponding to the target service;
the resource module is used for sending a target service request to a target terminal based on the first request, wherein the target service request comprises the target service information;
and the terminal module is used for calling the target service based on the target service information contained in the target service request so as to instruct the service module to execute the target service.
In one exemplary embodiment, the terminal module further includes:
a first instruction sending unit, configured to send a first call instruction to a service docking script to instruct the service docking script to feed back first service information corresponding to a first service before calling the target service based on the service information included in the first request to instruct a service module to execute the target service, where the first call instruction is used to instruct the first service;
the verification unit is used for verifying the first service information after receiving the first service information fed back by the service docking script, and encapsulating the first service information under the condition that the verification processing result meets a first condition to obtain encapsulated first service information;
a first information sending unit, configured to send the encapsulated first service information to the resource module, so as to instruct the resource module to store the first service information; wherein the first service comprises the target service.
In one exemplary embodiment, the verification unit includes:
a matching check subunit, configured to perform matching check on the first service information;
a first determining subunit, configured to determine that the check processing result satisfies the first condition when second service information corresponding to the first service information is matched, where the second service information is service information pre-stored by the target terminal;
and a second determining subunit, configured to determine that the check processing result does not satisfy the first condition when second service information corresponding to the first service information is not matched, where the second service information is service information pre-stored by the target terminal.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the target service can be quickly executed based on the predetermined service information, so that the control of the target service can be conveniently realized by managing the service information, therefore, the problem of low service execution efficiency in the related technology can be solved, and the effect of improving the system service execution efficiency is achieved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a service execution method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of service execution according to an embodiment of the invention;
fig. 3 is a block diagram of a service execution apparatus according to an embodiment of the present invention;
FIG. 4 is a block flow diagram one in accordance with an exemplary embodiment of the present invention;
FIG. 5 is a block flow diagram two in accordance with an exemplary embodiment of the present invention;
FIG. 6 is a block diagram of flow chart three according to an embodiment of the present invention;
fig. 7 is a block diagram of a fourth flow according to a specific embodiment of the invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of the application in a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a service execution method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a service execution method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a service execution method is provided, which is applied in a service management system, and fig. 2 is a flowchart of a service execution method according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, the front-end module sends a service execution request to the service management module based on the received service execution instruction, wherein the service execution instruction is used for indicating execution of a target service;
in this embodiment, the front-end module may be (but is not limited to) a web front end, and may also be a remote control end, such as a remote console, a mobile control end, and the like; the service management module may be (but is not limited to) a module or a device having a management control function, such as a CPU (Central Processing Unit), an MCU (micro Controller Unit), an FPGA (Field Programmable Gate Array), a PLC (Programmable Logic Controller), and other devices or modules; the target service may be (but is not limited to) a microservice to be performed by a service container or microservice unit; the service execution instruction and the service execution request can be electric signals with wave forms such as square waves, sawtooth waves and sine waves, or can be data packets containing a plurality of information, correspondingly, the transmission mode of the service execution instruction and the service execution request can be transmitted through Ethernet or Bluetooth communication, or can be transmitted through a wireless communication mode such as 3G/4G/5G/quantum communication; the service management system may (but is not limited to) be composed of modules or devices such as a client for uploading target service information, a processing end for performing data processing, and a service end for executing related services.
Step S204, the service management module sends a first request to a resource module based on a service execution request, wherein the resource module is used for storing target service information corresponding to a target service;
in this embodiment, since the target service information corresponding to the target service is stored in the resource module in advance, when the target service is executed, the target service information can be directly called from the resource module, and then the corresponding port, address information and the like are called according to the target service information to execute the target service, so that the execution efficiency of the target service is improved.
The target service information comprises identification information, identity information, address information, executed micro-service information, configuration information, information of a port which needs to be called for executing the target service and the like of the target service; the resource module may be (but is not limited to) a device, a module, or a protocol stack that has a storage function and can perform an information forwarding function, such as a local storage module or a storage device that is built in the service management system, an external cloud storage, and the like.
Step S206, the resource module sends a target service request to the target terminal based on the first request, wherein the target service request comprises target service information;
in this embodiment, the target terminal may (but is not limited to) be an Agent, such as an Agent and other modules, the target service request may (but is not limited to) be an electrical signal with a waveform such as a square wave, a sawtooth wave, a sine wave, and the like, or may be a data packet containing a plurality of pieces of information, and correspondingly, the transmission mode of the target service request may be transmission through ethernet or bluetooth communication, or may be transmission through a wireless communication mode such as 3G/4G/5G/quantum communication and the like.
In step S208, the target terminal invokes the target service based on the target service information included in the target service request to instruct the service module to execute the target service.
In this embodiment, the service module may be a built-in device or module such as a single chip, a CPU, an MCU, an FPGA, and a PLC, or an external device or module such as an industrial computer.
Through the steps, the target service can be quickly executed based on the predetermined service information, so that the control of the target service is conveniently realized by managing the service information, the problem of low target service execution efficiency in the related technology is solved, and the system service execution efficiency is improved. The executing agent of the above steps may be the aforementioned service management system, or a controller or a processor included in the service management system, or other devices with similar processing capabilities, but is not limited thereto.
In an optional embodiment, before the target terminal invokes the target service based on the service information included in the first request to instruct the service module to execute the target service, the method further includes:
step S2082, the target terminal sends a first call instruction to the service docking script to indicate the service docking script to feed back first service information corresponding to the first service, wherein the first call instruction is used for indicating the first service;
step S2084, after receiving the first service information fed back by the service docking script, the target terminal performs verification processing on the first service information, and performs encapsulation processing on the first service information under the condition that the verification processing result meets a first condition, so as to obtain encapsulated first service information;
step S2086, the target terminal sends the encapsulated first service information to the resource module to indicate the resource module to store the first service information; wherein the first service comprises a target service.
In this embodiment, before the target terminal invokes the service information, the first service information corresponding to the first service needs to be sent to the resource module for storage, so that the corresponding target service information can be invoked quickly when the target service is executed.
The service docking script may be (but is not limited to) a Storage-data node (child node service for storing services), a greenplus (large independent script), and the like, it needs to be noted that the service docking script is executed by using a root user when feeding back first service information, if the service needs to be executed by other users, the users need to be switched in the service docking script, and after the corresponding action is executed, the service docking script needs to be immediately exited; then the target terminal judges whether the service docking script is normally ended or not according to the service docking script exit code, and if the service docking script has error information output, the target terminal reports the error information; the encapsulation of the service information is to facilitate the identification of the service information by the resource module, and meanwhile, to facilitate the transmission of the information data, thereby improving the information transmission efficiency; the first service information is checked to ensure the validity of the first service information and avoid illegal service execution in the service execution process.
In an optional embodiment, the verifying, by the target terminal, the first service information includes:
step S20842, the target terminal performs matching verification on the first service information;
step S20844, when the target terminal matches second service information corresponding to the first service information, determining that the verification processing result meets a first condition, wherein the second service information is service information pre-stored by the target terminal;
step S20846, when the second service information corresponding to the first service information is not matched, the target terminal determines that the check processing result does not satisfy the first condition, where the second service information is service information pre-stored by the target terminal.
In this embodiment, the matching between the first service information and the pre-stored second service information is performed to determine the validity of the first service information, so as to avoid the service module executing the corresponding target service according to the wrong or illegal information, and ensure the accurate execution of the service.
In an optional embodiment, before the target terminal sends the first call instruction to the service docking script to instruct the service docking script to feed back the first service information corresponding to the first service indicated by the first call instruction, the method further includes:
step S20802, the target terminal collects target configuration information from the operation and maintenance specified directory, wherein the target configuration information comprises service information of one or more services;
step S20804, the target terminal sends the target configuration information to the resource module;
step S20806, the resource module writes the target configuration information into a management template storage directory included in the service management system;
the target terminal calls the target service based on the target service information contained in the target service request to instruct the service module to execute the target service, and the method comprises the following steps:
step S2088, the target terminal calls the target service based on the target service information contained in the target service request to instruct the service module to read the target service information from the target configuration information stored in the management template storage directory, and executes the target service based on the target service information.
In this embodiment, the target configuration information is written into the management template storage directory, so that the corresponding configuration can be called when the target service is executed.
The target configuration information can be acquired through Ethernet or Bluetooth communication, or can be acquired through wireless communication modes such as 3G/4G/5G/quantum communication and the like; the management template storage directory may be a storage module or unit arranged in the service management system and used for storing the target configuration information, or may be an external storage device or module, such as a cloud storage.
In an optional embodiment, after the target terminal sends the target configuration information to the resource module, the method further includes:
step S208042, the target terminal monitors the information stored in the operation and maintenance specified directory;
step S208044, the target terminal collects other configuration information under the condition that the target terminal monitors that the operation and maintenance appointed directory has other configuration information except the target configuration information;
step S208046, the target terminal sends the other configuration information to the resource module to instruct the resource module to update the target configuration information stored in the management template storage directory, wherein the updated target configuration information comprises the other configuration information.
In this embodiment, the information stored in the operation and maintenance designation directory is monitored to determine whether new target configuration information is received, so that the corresponding management manner and the access control manner can be determined in time according to the received new target configuration information.
For example, when the target terminal monitors that the operation and maintenance specified directory stores the new configuration file, the target terminal reports the new configuration file to the resource module, and then the resource module generates a file information record and files the new configuration file to the management template storage directory.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a service execution device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device that has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a service management apparatus according to an embodiment of the present invention, applied to a service management system, and as shown in fig. 3, the apparatus includes:
a front-end module 32, configured to send a service execution request to the service management module based on a received service execution instruction, where the service execution instruction is used to instruct to execute a target service;
the service management module 34 is configured to send a first request to a resource module based on a service execution request, where the resource module is configured to store target service information corresponding to a target service;
a resource module 36, configured to send a target service request to a target terminal based on the first request, where the target service request includes target service information;
and the terminal module 38 is used for calling the target service based on the target service information contained in the target service request so as to instruct the service module to execute the target service.
In an alternative embodiment, the termination module 38 further includes:
a first instruction sending unit 382, configured to send a first call instruction to the service docking script to instruct the service docking script to feed back first service information corresponding to the first service before calling the target service based on the service information included in the first request to instruct the service module to execute the target service, where the first call instruction is used to instruct the service docking script to feed back the first service information corresponding to the first service;
the verification unit 384 is configured to, after receiving the first service information fed back by the service docking script, perform verification processing on the first service information, and perform encapsulation processing on the first service information under the condition that a verification processing result meets a first condition, so as to obtain encapsulated first service information;
a first information sending unit 386, configured to send the encapsulated first service information to the resource module, so as to instruct the resource module to store the first service information; wherein the first service comprises a target service.
In an alternative embodiment, the verification unit 384 includes:
a matching check subunit 3842, configured to perform matching check on the first service information;
a first determining subunit 3844, configured to determine that a check processing result meets a first condition when second service information corresponding to the first service information is matched, where the second service information is service information that is pre-stored by the target terminal;
a second determining subunit 3846, configured to determine that the check processing result does not satisfy the first condition when second service information corresponding to the first service information is not matched, where the second service information is service information that is pre-stored by the target terminal.
In an alternative embodiment, the first instruction transmitting unit 382 includes:
a configuration information acquisition subunit 3822, configured to acquire target configuration information from the operation and maintenance specified directory before the target terminal sends a first call instruction to the service docking script to instruct the service docking script to feed back first service information corresponding to the first service indicated by the first call instruction, where the target configuration information includes service information of one or more services;
a configuration information sending subunit 3824, configured to send the target configuration information to the resource module;
the termination module 38 further includes:
a service execution unit 388, configured to invoke the target service based on the target service information included in the target service request, to instruct the service module to read the target service information from the target configuration information stored in the management template storage directory, and execute the target service based on the target service information.
In an optional embodiment, the configuration information sending subunit 3824 further includes:
the information monitoring subunit 38242 is configured to monitor the information stored in the operation and maintenance specified directory after sending the target configuration information to the resource module;
the other information acquisition subunit 38244 is configured to, when it is monitored that the operation and maintenance specified directory includes other configuration information other than the target configuration information, acquire the other configuration information by the target terminal;
a further information sending subunit 38246, configured to send further configuration information to the resource module, so as to instruct the resource module to update the target configuration information stored in the management template storage directory, where the updated target configuration information includes the further configuration information.
As shown in fig. 4, the system includes the following modules:
an access mode determining module 001, configured to determine specification information of target service access, and complete an automatic access calling function of the target service;
a management mode determining module 002 for determining service management specifications to realize flexible management functions for different services;
the protocol determining module 003 is used for determining an interactive protocol so as to perform a friendly interactive process between the front end and the back end and a user through a service providing and analyzing template engine;
the standard acquisition module 004 is used for performing standard acquisition so as to realize the acquisition of the standard determined by the access mode determination module 001 and the management mode determination module 002;
the service management module 005 is used for performing service management, and mainly completes a general interface for realizing functions of the service according to the specification provided by the service.
As shown in fig. 5 and 6, the determination of the service management manner includes the following steps:
step S501, the Agent in each server is responsible for collecting from the specified directory (corresponding to step S501 in fig. 5 and step S601 in fig. 6), and reporting to the resource module (corresponding to step S602 in fig. 6);
step S502, which is triggered after the server is managed, the resource module records the file information and writes the file information into the designated directory (corresponding to step S501 in fig. 5 and steps S602 to S604 in fig. 6). Copying each service installation configuration to an operation and maintenance specified directory in the software installation process of each service configuration file; and when the Agent monitors that the operation and maintenance specified directory has a new configuration file, the configuration file is actively reported to the resource service (corresponding to step S605 in fig. 6); the resource service generates a file information record and archives the service configuration file to a specified directory.
Step S503, the service module reads the configuration file from the archived directory, provides related service installation, upgrade, formatting and management of each service function layer, and also provides an interactive display effect with the front-end interface (corresponding to step S503 in fig. 5).
The determination of the access control mode comprises the following steps:
1) defining a service script name for executing service access control;
the service script name uses a large class-type internal role format, such as Storage-Manager (management node service of Storage service), Storage-DataNode (child node service of Storage service), if the large class-type internal role format cannot be determined, the large class-type internal role can be the same, such as Tomcat-Tomcat, if the cluster mode needs to be controlled through a cluster entrance, a new class independent script, such as greenplus, needs to be added;
2) executing definition of script interface name and parameter of service access control;
the interface name provided by the service script is uniformly in a hump format with a lower case in the initial letter. For example:
Storage-Manager deleteDataNode 127.0.0.1。
the service and the parameter names agreed by operation and maintenance use hump format and initial letter lowercase. For example: businessAddress, heartbeat address.
3) Executing a flow specification of script execution of service access control;
the Agent executes all service scripts by using root users, if the service needs to be executed by other users, the users need to be switched in the scripts, and after the execution of corresponding actions is finished, the scripts need to be immediately quitted.
And the Agent judges whether the script is normally ended or not according to the script exit code, if the script has error information output, the Agent inputs information beginning with 'ERrMessage:' in one line, and the Agent reports the error information.
4) Defining a service script interface for executing service access control;
the script implementer needs to implement an agreed interface according to the specification, complete corresponding functions, support a service self-defined interface and interface with the operation and maintenance, and define and inform the operation and maintenance of the name and parameters of the self-defined interface by the service party.
If the service is automatically pulled up when the service is abnormally quitted, the monitoring script monitor of the service must be realized at the same time.
It should be noted that: when the service is started through the service script, the service is started firstly, and then the monitor is started; when stopping service, stopping monitor first and then stopping service; when the service and the monitoring are started, it is necessary to determine whether the service and the monitoring are started or not, otherwise unpredictable errors may be caused, for example, when a plurality of monitors are started, a plurality of services may be pulled up.
As shown in fig. 7, in the service management system based on module engine service dynamic access, the step of determining the interaction policy from the protocol front-end interaction interface of the service access specification to the service layer according to 001 includes:
step S701, a Web front end analysis template sends a service request execution instruction;
step S702, the service management assembles a corresponding request according to the appointed attribute;
step S703, the service management sends a packaging request to the resource module;
step S704, after encapsulating the service request execution instruction, the resource module sends the service request execution instruction to an Agent;
step S705, the Agent sends an instruction for calling corresponding service to the server;
step S706, the server side realizes corresponding functions according to self configuration;
and step S707, the server side feeds back a service result.
It should be noted that, the service management system based on module engine service dynamic access, which makes an interaction protocol according to 003, is mainly embodied in step S701, and specifically includes:
the agreement of the Web front end on the service template analysis rule is mainly embodied in the service display effect and the service implementation function, taking the display effect as an example, for example: select, the instruction indicates that the display type needs to be displayed by using a drop-down box form; taking the service implementation function as an example, for example: stop, which indicates to stop a service function.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A service execution method is applied to a service management system and comprises the following steps:
the front-end module sends a service execution request to a service management module based on a received service execution instruction, wherein the service execution instruction is used for indicating execution of a target service;
the service management module sends a first request to a resource module based on the service execution request, wherein the resource module is used for storing target service information corresponding to the target service;
the resource module sends a target service request to a target terminal based on the first request, wherein the target service request comprises the target service information;
and the target terminal calls the target service based on the target service information contained in the target service request so as to instruct a service module to execute the target service.
2. The method of claim 1, wherein before the target terminal invokes the target service based on the service information contained in the first request to instruct a service module to execute the target service, the method further comprises:
the target terminal sends a first call instruction to a service docking script to indicate the service docking script to feed back first service information corresponding to a first service, wherein the first call instruction is used for indicating the first service;
after receiving first service information fed back by the service docking script, the target terminal performs verification processing on the first service information, and performs encapsulation processing on the first service information under the condition that a verification processing result meets a first condition to obtain encapsulated first service information;
the target terminal sends the encapsulated first service information to the resource module to indicate the resource module to store the first service information; wherein the first service comprises the target service.
3. The method of claim 2, wherein the checking the first service information by the target terminal comprises:
the target terminal performs matching verification on the first service information;
the target terminal determines that the verification processing result meets the first condition under the condition that second service information corresponding to the first service information is matched, wherein the second service information is service information prestored by the target terminal;
and the target terminal determines that the check processing result does not meet the first condition under the condition that second service information corresponding to the first service information is not matched, wherein the second service information is service information prestored by the target terminal.
4. The method of claim 2, wherein before the target terminal sends a first call instruction to the service docking script to instruct the service docking script to feed back first service information corresponding to the first service indicated by the first call instruction, the method further comprises:
the target terminal collects target configuration information from an operation and maintenance specified directory, wherein the target configuration information comprises service information of one or more services;
the target terminal sends the target configuration information to the resource module;
the resource module writes the target configuration information into a management template storage directory included in the service management system;
the target terminal calls the target service based on the target service information contained in the target service request to instruct a service module to execute the target service, and the target service comprises the following steps: the target terminal calls the target service based on the target service information contained in the target service request to instruct a service module to read the target service information from the target configuration information stored in the management template storage directory, and executes the target service based on the target service information.
5. The method of claim 4, wherein after the target terminal sends the target configuration information to the resource module, the method further comprises:
the target terminal monitors the information stored in the operation and maintenance appointed directory;
the target terminal collects other configuration information under the condition that the target terminal monitors that the operation and maintenance specified directory contains the other configuration information except the target configuration information;
and the target terminal sends the other configuration information to a resource module to indicate the resource module to update the target configuration information stored in the management template storage directory, wherein the updated target configuration information comprises the other configuration information.
6. A service execution device, applied to a service management system, includes:
the front-end module is used for sending a service execution request to the service management module based on a received service execution instruction, wherein the service execution instruction is used for indicating execution of a target service;
the service management module is used for sending a first request to a resource module based on the service execution request, wherein the resource module is used for storing target service information corresponding to the target service;
the resource module is used for sending a target service request to a target terminal based on the first request, wherein the target service request comprises the target service information;
and the terminal module is used for calling the target service based on the target service information contained in the target service request so as to instruct the service module to execute the target service.
7. The apparatus of claim 6, wherein the terminal module further comprises:
a first instruction sending unit, configured to send a first call instruction to a service docking script to instruct the service docking script to feed back first service information corresponding to a first service before calling the target service based on the service information included in the first request to instruct a service module to execute the target service, where the first call instruction is used to instruct the first service;
the verification unit is used for verifying the first service information after receiving the first service information fed back by the service docking script, and encapsulating the first service information under the condition that the verification processing result meets a first condition to obtain encapsulated first service information;
a first information sending unit, configured to send the encapsulated first service information to the resource module, so as to instruct the resource module to store the first service information; wherein the first service comprises the target service.
8. The apparatus of claim 7, wherein the verification unit comprises:
a matching check subunit, configured to perform matching check on the first service information;
a first determining subunit, configured to determine that the check processing result satisfies the first condition when second service information corresponding to the first service information is matched, where the second service information is service information pre-stored by the target terminal;
and a second determining subunit, configured to determine that the check processing result does not satisfy the first condition when second service information corresponding to the first service information is not matched, where the second service information is service information pre-stored by the target terminal.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 5.
CN202110431261.9A 2021-04-21 2021-04-21 Service execution method and device, storage medium and electronic device Active CN113032054B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110431261.9A CN113032054B (en) 2021-04-21 2021-04-21 Service execution method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110431261.9A CN113032054B (en) 2021-04-21 2021-04-21 Service execution method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113032054A true CN113032054A (en) 2021-06-25
CN113032054B CN113032054B (en) 2023-07-14

Family

ID=76457173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110431261.9A Active CN113032054B (en) 2021-04-21 2021-04-21 Service execution method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113032054B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760409A (en) * 2021-09-09 2021-12-07 广州市百果园网络科技有限公司 Service instance management method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020777A (en) * 2016-04-29 2016-10-12 杭州华橙网络科技有限公司 Data processing method, device and system
WO2017000207A1 (en) * 2015-06-30 2017-01-05 深圳市星电商科技有限公司 Data interaction processing method, device and system
WO2017067230A1 (en) * 2015-10-21 2017-04-27 中兴通讯股份有限公司 Software function expansion method and apparatus based on micro service architecture
CN109861842A (en) * 2018-11-23 2019-06-07 阿里巴巴集团控股有限公司 O&M method, apparatus, electronic equipment and the storage medium of server cluster
CN110532020A (en) * 2019-09-04 2019-12-03 中国工商银行股份有限公司 A kind of data processing method of micro services layout, apparatus and system
CN111381835A (en) * 2018-12-28 2020-07-07 中国移动通信集团江西有限公司 Method, device, equipment and medium for registering and discovering technical service component

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017000207A1 (en) * 2015-06-30 2017-01-05 深圳市星电商科技有限公司 Data interaction processing method, device and system
WO2017067230A1 (en) * 2015-10-21 2017-04-27 中兴通讯股份有限公司 Software function expansion method and apparatus based on micro service architecture
CN106020777A (en) * 2016-04-29 2016-10-12 杭州华橙网络科技有限公司 Data processing method, device and system
CN109861842A (en) * 2018-11-23 2019-06-07 阿里巴巴集团控股有限公司 O&M method, apparatus, electronic equipment and the storage medium of server cluster
CN111381835A (en) * 2018-12-28 2020-07-07 中国移动通信集团江西有限公司 Method, device, equipment and medium for registering and discovering technical service component
CN110532020A (en) * 2019-09-04 2019-12-03 中国工商银行股份有限公司 A kind of data processing method of micro services layout, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗杨: "基于微服务框架的地理空间数据服务平台设计与实现技术研究", 《中国优秀硕士学位论文全文数据库 基础科学辑》, no. 02, pages 008 - 157 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760409A (en) * 2021-09-09 2021-12-07 广州市百果园网络科技有限公司 Service instance management method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113032054B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN108600029B (en) Configuration file updating method and device, terminal equipment and storage medium
CN108566290B (en) Service configuration management method, system, storage medium and server
CN108370341B (en) Resource allocation method, virtual network function manager and network element management system
CN109218133B (en) Network speed testing system, method, device and computer readable storage medium
CN109144559B (en) Update data packet pushing method and server
CN105052076B (en) Network element management system and network element management method based on cloud computing
US11032126B2 (en) Diagnostic traffic generation for automatic testing and troubleshooting
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
US20150081878A1 (en) Describing datacenter rack information in management system
CN101771565B (en) Analogy method for realizing multitudinous or different baseboard management controllers by single server
WO2016000464A1 (en) Method and system for supporting interconnection of integrated northbound interface
WO2019062634A1 (en) Communication method and apparatus
KR102210289B1 (en) Hardware management communication protocol
CN113794652A (en) Data processing method and device, electronic equipment and storage medium
CN108733545B (en) Pressure testing method and device
CN113032054B (en) Service execution method and device, storage medium and electronic device
CN114268938A (en) Method, device, equipment and storage medium for managing user front equipment
CN113282308A (en) Mirror image construction method and device, storage medium and electronic device
CN114726789A (en) Method, device, equipment and medium for traffic management and traffic management policy configuration
CN112399446A (en) Edge gateway communication method, device, computer equipment and storage medium
CN110955537B (en) Method and device for containing pipes by physical machine
CN116248721A (en) Management method and device of Internet of things equipment, computer equipment and storage medium
CN111314805B (en) Debugging method and device for intercommunication OMCI (OMCI) messages of GPON (gigabit passive optical network) system
CN114461501A (en) Resource abnormality detection method and device, storage medium, and electronic device
CN111813621A (en) Data processing method, device, equipment and medium based on Flume data middlebox

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