Service control methods, devices, electronic equipment, and media based on scheduling systems
By parsing scheduling service instructions in the scheduling system to generate a basic control instruction set and combining them into service control commands, the problem of needing to modify code in the existing scheduling service control method is solved. This decouples scheduling services and media control services, reducing development and maintenance costs.
Patent Information
- Application Number
- CN202211538781.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-01
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2042-12-01
AI Technical Summary
The existing scheduling system requires software code modifications to adapt to changes in user business logic, resulting in high development and maintenance costs.
By parsing scheduling service instructions in the scheduling system to generate a basic control instruction set and combining them into service control commands, scheduling services can be executed directly without the need for media control services, thus decoupling scheduling services and media control services.
It reduces the development and maintenance costs of scheduling services and improves the flexibility and adaptability of scheduling services.
Smart Images

Figure CN115981805B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of scheduling system technology, and in particular to a service control method, device, electronic device and medium based on a scheduling system. Background Technology
[0002] A dispatch system can be a cluster system consisting of multiple dispatch nodes and a server cluster. It is typically used in various application scenarios such as emergency command posts, duty rooms, emergency medical centers, mines, and emergency vehicles. Users can use the dispatch system to issue emergency notifications and commands in the fastest and most effective way, and the system can intuitively display the status of the notified parties. Taking an audio-visual command and dispatch system as an example, such a system integrates various intelligent functions such as video conferencing, command and dispatch, battlefield monitoring, and intelligent broadcasting, meeting the diverse needs of users for visual command in various application scenarios.
[0003] Currently, when executing scheduling services in a scheduling system, fixed business control logic needs to be written in the server-side or client-side software to establish the corresponding relationship between scheduling services and media control services. For example, a scheduling service needs to consist of a fixed number of media control instructions that cannot be changed; that is, the scheduling service and media control service are tightly coupled. Therefore, the existing scheduling service control method is implemented through a fixed logical flow. When the user's business process changes, the control logic of the software code needs to be modified, recompiled, and re-released to meet the needs of the changed user business.
[0004] In the process of developing this invention, the inventors discovered the following shortcomings in the existing technology: To cope with changes in user business logic, the control logic of the software code must be modified, recompiled, and re-released. Without modifying the code, the needs of changing user business logic cannot be met. Therefore, the existing control methods for scheduling services have high development and maintenance costs. Summary of the Invention
[0005] This invention provides a service control method, device, electronic device, and medium based on a scheduling system, which can reduce the development and maintenance costs of scheduling service control methods.
[0006] According to one aspect of the present invention, a service control method based on a scheduling system is provided, applied to an instruction parser, comprising:
[0007] Obtain scheduling service instructions sent by scheduling nodes in the scheduling system according to scheduling services;
[0008] The scheduling service instruction is parsed to obtain the basic control instruction set of the scheduling service instruction; wherein the basic control instruction set includes at least one basic control instruction;
[0009] The basic control instructions in the basic control instruction set are combined to generate a service control command that matches the scheduling service instruction.
[0010] The service control command is sent to the target service execution unit so that the scheduling service can be executed by the target service execution unit.
[0011] According to another aspect of the present invention, a service control device based on a scheduling system is provided, configured in an instruction parser, comprising:
[0012] The scheduling service instruction acquisition module is used to acquire scheduling service instructions sent by scheduling nodes in the scheduling system according to scheduling services.
[0013] A basic control instruction set acquisition module is used to parse the scheduling service instruction to obtain the basic control instruction set of the scheduling service instruction; wherein, the basic control instruction set includes at least one basic control instruction;
[0014] The service control command generation module is used to combine each of the basic control commands in the basic control command set to generate a service control command that matches the scheduling service command.
[0015] The service control command sending module is used to send the service control command to the target service execution unit so that the target service execution unit can execute the scheduling service.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] At least one processor; and
[0018] A memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to execute the service control method based on the scheduling system according to any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the service control method based on a scheduling system as described in any embodiment of the present invention.
[0021] This invention, in its embodiments, acquires scheduling service instructions sent by scheduling nodes in a scheduling system based on scheduling services, parses these instructions to obtain a basic control instruction set including at least one basic control instruction, and combines these basic control instructions to generate a service control command matching the scheduling service instructions. This service control command is then sent to the target service execution unit. Upon receiving the service control command, the target service execution unit can execute the scheduling service. Therefore, the scheduling service control method described above is based solely on the instructions of the scheduling service itself, requiring no cooperation from media control services. This achieves complete decoupling between the scheduling service and the media control services of the scheduling system. It solves the problems of high development and maintenance costs associated with scheduling services executed based on media control services in existing technologies, where changes in business logic necessitate modifications to the underlying software code. This significantly reduces the development and maintenance costs of scheduling services.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of a service control method based on a scheduling system provided in Embodiment 1 of the present invention;
[0025] Figure 2 This is a schematic diagram of the structure of a business control model provided in Embodiment 1 of the present invention;
[0026] Figure 3 This is a flowchart of a service control method based on a scheduling system provided in Embodiment 2 of the present invention;
[0027] Figure 4 This is a logic diagram for generating a basic control instruction set provided in Embodiment 2 of the present invention;
[0028] Figure 5 This is a schematic diagram of a service control device based on a scheduling system provided in Embodiment 3 of the present invention;
[0029] Figure 6 This is a schematic diagram of an electronic device structure provided in Embodiment 4 of the present invention. Detailed Implementation
[0030] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0032] Example 1
[0033] Figure 1 This is a flowchart of a service control method based on a scheduling system provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where scheduling service control is implemented based on the scheduling service instructions themselves. The method can be applied to an instruction parser and executed by a service control device based on a scheduling system configured in the instruction parser (e.g., a central management server in a multi-level scheduling system). This service control device based on a scheduling system can be implemented in hardware and / or software and can be configured in an electronic device. For example, the electronic device can be a server or a server cluster, etc. The embodiments of the present invention do not limit the specific type of electronic device.
[0034] like Figure 1 As shown, the service control method based on the scheduling system may include the following operations:
[0035] Step 110: Obtain the scheduling service instructions sent by the scheduling nodes in the scheduling system according to the scheduling service.
[0036] The scheduling system can be a comprehensive system consisting of many scheduling nodes and a centralized server (or server cluster), providing users with various types of scheduling services. Scheduling services can be service types that require a specific scheduling process. For example, scheduling services could include video conferencing, intelligent broadcasting, and command and dispatch. A scheduling node can be a terminal node or a server node, capable of sending corresponding scheduling service instructions based on user service needs, requesting the scheduling system to complete the user-issued scheduling service. A scheduling service instruction is the instruction sent by the scheduling node requesting the scheduling system to execute the corresponding scheduling service. The instruction parser can be a centralized server or server cluster, composed of multiple modules, used to implement the entire process of service control methods. For example, the instruction parsing module in the instruction parser can be used to control the writing of scheduling service instructions according to a prescribed format, thereby expressing certain behaviors and logic.
[0037] In this embodiment of the invention, each scheduling node can generate scheduling service instructions according to scheduling service requirements and send the scheduling service instructions to the instruction parser. The instruction parser can process all scheduling service instructions uniformly.
[0038] Step 120: Parse the scheduling service instruction to obtain the basic control instruction set of the scheduling service instruction; wherein the basic control instruction set includes at least one basic control instruction.
[0039] Among them, basic control instructions can be the minimum operation control commands of scheduling business instructions.
[0040] Accordingly, when the instruction parser receives a scheduling service instruction, it can parse the instruction to obtain at least one basic control instruction corresponding to it. In a specific example, assuming the scheduling service instruction is an intelligent broadcasting service, the set of basic control instructions obtained after parsing the instruction may include, but is not limited to, video playback, image on demand, image stop, image display, display information, and sound playback.
[0041] Step 130: Combine the basic control instructions in the basic control instruction set to generate a service control command that matches the scheduling service instruction.
[0042] Among them, the business control command can be a command issued to a specific business execution unit in the scheduling system to request the business execution unit to execute the corresponding scheduling business.
[0043] After obtaining the basic control instruction set, the instruction parser can combine the various basic control instructions in the basic control instruction set according to control logic to form corresponding service control commands. The advantage of this setup is that it breaks the fixed correspondence between media service control commands and scheduling service instructions in the scheduling system, decoupling them. By decomposing scheduling service instructions into basic control instructions and combining these basic control instructions into service control instructions, it achieves refined decomposition and combination transformation of service control instructions, resulting in commands that can be recognized by the execution units in the scheduling system, thus enabling more flexible execution of scheduling services.
[0044] Step 140: Send the service control command to the target service execution unit so that the scheduling service can be executed by the target service execution unit.
[0045] Among them, the execution unit can be a unit that can independently execute a certain local function, such as global command, special command, cross-level command, image on-demand, etc. The target business execution unit can be an execution unit used to execute business control commands.
[0046] Accordingly, after obtaining the service control command from the combination of basic control instructions, the instruction parser can determine the target service execution unit from the execution units of the scheduling system based on the service control command, and send the combined service control command to the target service execution unit. After receiving the service control command, the target service execution unit can respond to the service control command to execute the scheduling service.
[0047] For example, assuming the generated service control command controls video playback and includes multiple basic control instructions such as pause, rewind, and play, the video playback execution unit can be used as the target service execution unit, and the service control command can be sent to the video playback execution unit. The video playback control unit can process these basic control instructions uniformly, and when there are multiple service control commands, the scheduling of services can be completed through the cooperation of multiple service execution units.
[0048] Figure 2 This is a schematic diagram of the structure of a business control model provided in Embodiment 1 of the present invention. In a specific example, such as... Figure 2 As shown, in a multi-level scheduling system, each scheduling node initiates a scheduling service command. The command parser, built into the central application management server, receives the command, parses it, combines the parts into a complete command, and then delivers it to the corresponding execution unit. Through the execution unit, various types of scheduling services can be controlled, including global command, dedicated command, cross-level dedicated command, command coordination, upward segmentation, downward segmentation, image on-demand, video conferencing, and remote consultation.
[0049] The technical solution of this embodiment obtains the scheduling service instructions sent by the scheduling node in the scheduling system according to the scheduling service, parses the scheduling service instructions to obtain a basic control instruction set including at least one basic control instruction, and combines the various basic control instructions in the basic control instruction set to generate a service control command matching the scheduling service instructions. This service control command is then sent to the target service execution unit. After receiving the service control command, the target service execution unit can execute the scheduling service. Therefore, the control method for the scheduling service in the above solution is based solely on the instructions of the scheduling service itself, requiring no cooperation from the media control service. This achieves complete decoupling between the scheduling service and the media control service of the scheduling system, solving the problems of high development and maintenance costs in existing technologies where changes in business logic require modification of the underlying software code when executing scheduling services based on the media control service. This reduces the development and maintenance costs of the scheduling service.
[0050] Example 2
[0051] Figure 3 This is a flowchart of a service control method based on a scheduling system provided in Embodiment 2 of the present invention. This embodiment is a specific embodiment based on the above embodiment, and in this embodiment, specific optional implementation methods for parsing scheduling service instructions are given. Correspondingly, as Figure 3 As shown, the service control method based on the scheduling system may include the following operations:
[0052] Step 210: Obtain the scheduling service instructions sent by the scheduling nodes in the scheduling system according to the scheduling service.
[0053] Step 220: Perform instruction rule parsing on the scheduling service instruction to obtain the instruction rule parsing result.
[0054] Instruction rule parsing involves parsing scheduling service instructions according to a preset rule format. The result of instruction rule parsing is the parsing result of the corresponding rules included in the scheduling service instruction.
[0055] Specifically, the instruction parser can parse scheduling instructions and obtain the information contained in the scheduling instructions based on the parsing results, so that the computer can complete the scheduling instructions based on the information in the scheduling instructions.
[0056] In an optional embodiment of the present invention, before determining the target control scheduling node according to the instruction rule parsing result, the method may further include: generating the service control configuration file and distributing the service control configuration file to each of the scheduling nodes; wherein, the scheduling node is used to generate the scheduling service instruction according to the service control configuration file and the scheduling service.
[0057] The service control configuration file can be a pre-configured configuration file for the instruction parser, in which various reference rules for processing and scheduling service instructions can be pre-set. For example, the service control configuration file can be an XML format configuration file.
[0058] Specifically, the service control configuration file can be used to specify the rules by which scheduling nodes generate scheduling service instructions. Therefore, the instruction parser can distribute the service control configuration file to each scheduling node so that each scheduling node can call it at any time. When generating scheduling service instructions, each scheduling node can refer to the relevant rules for generating scheduling service instructions configured in the service control configuration file distributed by the instruction parser, so that the generated scheduling service instructions can be recognized by the instruction parser.
[0059] In an optional embodiment of the present invention, the step of parsing the scheduling service instruction with instruction rules to obtain the instruction rule parsing result may include: parsing the basic command line of the scheduling service instruction to obtain each basic command line of the scheduling service instruction; validating the command line writing format of the basic command line, and if the command line writing format of the basic command line passes the validation, performing device identification validation on each basic command line of the scheduling service instruction; if the basic command line of the scheduling service instruction passes the device identification validation, determining the service processing flow rules of the basic command line; and establishing a mapping relationship between the basic command line and the service processing flow rules to obtain the instruction rule parsing result.
[0060] The basic command line can be the smallest unit of command line that makes up scheduling service instructions. Device identification verification can be understood as verifying whether the command line can be recognized and executed by the computer. Service processing flow rules can be the basic service rules that the basic command line can implement. For example, assuming the basic command line is to send commands to a specific node, the predefined service processing flow rules can be the specific implementation of sending commands to a specific node.
[0061] Specifically, the instruction parser can parse scheduling service instructions to obtain the various basic command lines included in the scheduling service instructions. Further, the instruction parser needs to validate the command line format of the basic command lines, that is, to verify whether the command line format conforms to the specifications in the service control configuration file. If the command line format conforms to the specifications in the service control configuration file, the validation passes; otherwise, it can report a relevant error message about the scheduling service instruction parsing to the scheduling node. Correspondingly, after determining that the command line format of the basic command lines has passed the validation, device identification validation can continue for each basic command line of the scheduling service instructions. Device identification validation of the basic command lines can verify whether the basic command lines can be recognized and executed by the computer. If the device identification validation passes, the subsequent service control process can continue; otherwise, it can report a relevant error message about the scheduling service instructions not being recognized and executed to the scheduling node. When both validations pass, the instruction parser can establish a mapping relationship between the basic command lines and the service processing flow rules.
[0062] In an optional embodiment of the present invention, determining the business processing flow rules of the basic command line may include: obtaining a business control configuration file and determining predefined business processing flow rules of the basic command line based on the business control configuration file; and / or obtaining user configuration data and determining custom business processing flow rules of the basic command line based on the user configuration data.
[0063] Predefined business processing rules can be those defined in the business control configuration file and can be directly called from the business control configuration file configured on the scheduling node. Custom business processing rules can be those defined in other standardized formats based on user configuration data.
[0064] For example, if the scheduling service involves initiating a video conference, the predefined service processing rules may include, but are not limited to, pushing video and enabling audio. If the scheduling service involves global command, the predefined service processing rules may include, but are not limited to, specifying which nodes to send commands to. Alternatively, for scheduling services with targeted command, the custom service processing rules may include, but are not limited to, the targeted nodes to which commands are sent.
[0065] In a specific example, a mapping relationship is established between basic command lines and business process rules. Specifically, basic command line 1 is used to execute predefined business process rule 1, basic command line 2 is used to execute custom business process rule 1, and so on. That is, each basic command line will be bound to a predefined business process rule or a custom business process rule.
[0066] Step 230: Determine the target control and scheduling node based on the instruction rule parsing result.
[0067] The target control scheduling node can be a scheduling node determined by the instruction parser based on the scheduling service, and that needs to respond to the scheduling service. It can be understood that the target control scheduling node may include the scheduling node that initiated the scheduling service.
[0068] Specifically, the instruction parser needs to determine the target control scheduling node, obtain its associated node information based on the target control scheduling node, and use it to generate the basic control instruction set for scheduling business instructions.
[0069] In an optional embodiment of the present invention, determining the target control scheduling node based on the instruction rule parsing result may include: generating a node broadcast instruction based on the instruction rule parsing result, broadcasting the node broadcast instruction to each of the scheduling nodes, and determining the target control scheduling node based on the broadcast instruction feedback information from each of the scheduling nodes; or obtaining scheduling node association information from the instruction rule parsing result and determining the target control scheduling node based on the scheduling node association information.
[0070] The node broadcast command can be a broadcast command used to broadcast the command rule parsing results to all scheduling nodes. The broadcast command feedback information is the feedback information provided by each scheduling node after receiving the node broadcast command. The scheduling node association information is the relevant information about a specific scheduling node included in the command rule parsing results, which may include, but is not limited to, the scheduling node's identifier or location.
[0071] In this embodiment of the invention, optionally, two methods can be used to determine the target control and scheduling node. In the first implementation, an instruction parser can generate a node broadcast instruction based on the generated instruction rule parsing result. This node broadcast instruction can carry the instruction rule parsing result. The instruction parser broadcasts the node broadcast instruction to each scheduling node. After receiving the node broadcast instruction, each scheduling node can independently confirm whether it is the target control and scheduling node based on the instruction rule parsing result. Each scheduling node can generate broadcast instruction feedback information based on the confirmation result and feed it back to the instruction parser. The instruction parser can then determine the target control and scheduling node based on the broadcast instruction feedback information.
[0072] In the second implementation, the instruction parser can directly obtain the scheduling node association information from the instruction rule parsing results and analyze the scheduling node association information to determine the target control scheduling node.
[0073] For example, in the first implementation, assuming the node broadcast command is "Control the first and second nodes to turn on video," the command parser sends this node broadcast command to all scheduling nodes in the scheduling system. Upon receiving the node broadcast command, the first and second nodes can provide confirmation information to the command parser, indicating that they can execute the node broadcast command. Other scheduling nodes, on the other hand, provide negative information, indicating that they cannot execute the node broadcast command. Based on the feedback information from each node, the command parser can determine which nodes are the target control scheduling nodes. In the second implementation, the command parser can determine the name of the target control scheduling node as "first and second nodes" based on the node identifier in the scheduling node association information of the node broadcast command, and then determine the target control scheduling node based on its identifier.
[0074] Step 240: Generate the scheduling control parameters and service control logic of the target control scheduling node.
[0075] The scheduling control parameters can be data information from the scheduling system during the service control process. For example, scheduling control parameters may include, but are not limited to, session establishment parameters, message delivery parameters, media negotiation parameters, and audio / video distribution parameters. The service control logic can be the control logic implicit in the scheduling service instructions.
[0076] Specifically, the scheduling control parameters of the target control scheduling node are used to establish a connection between the target control scheduling node and the instruction parser, facilitating data transmission, such as audio / video data streams or communication data transmission. The business control logic of the target control scheduling node can determine the control logic contained in the scheduling business instructions, such as the control logic within each basic command line or between different basic command lines.
[0077] In an optional embodiment of the present invention, generating the scheduling control parameters and service control logic of the target control scheduling node may include: generating the scheduling control parameters of the target control scheduling node based on the object control parameters of the target control scheduling node and the object control parameters of the instruction parser; wherein the scheduling control parameters are used to establish a service connection between the target control scheduling node and the instruction parser; determining service logic rules based on the service control configuration file of the instruction parser, and converting the instruction rules included in the scheduling service instructions into the service control logic based on the service logic rules.
[0078] The object control parameters can be attribute information of the target control scheduling node. For example, object control parameters may include, but are not limited to, IP address, encoding format, audio / video format, and listening port. Service connections may include, but are not limited to, various connection methods capable of transmitting information, such as communication connections and / or audio / video connections. Business logic rules can be preset rules in the business control configuration file, which can be used to parse and determine the instruction rules included in the scheduling business instructions. Instruction rules can be logical rules included in the scheduling business instructions, such as, but not limited to, the execution rules required by a series of instructions, including, but not limited to, conditional dispatch instructions, multi-branch dispatch instructions, loop instructions, and jump instructions.
[0079] The scheduling control parameters for the target control scheduling node are generated based on the object control parameters of the target control scheduling node and the object control parameters of the instruction parser, enabling the transfer of data information between the target control scheduling node and the instruction parser. Simultaneously, the instruction parser needs to convert instruction rules into business control logic based on business logic rules, whereby the business logic rules are computer-executable control statements.
[0080] Step 250: Generate the basic control instruction set of the scheduling service instruction based on the scheduling control parameters and the service control logic.
[0081] For example, when the scheduling service instruction is intelligent broadcasting, the basic control instruction set may include, but is not limited to, video playback, image on demand, image stop, image display, display information, and sound playback. Basic control instructions can be generated based on scheduling control parameters and service control logic. When the basic control instruction is to play sound, the audio format and connection port of the target control scheduling node can be obtained based on the scheduling control parameters. The corresponding audio format can then be retrieved from the audio port of the instruction parser scheduling node according to the service logic rules, thereby enabling the playback of the audio stream. The basic control instruction set obtained from the scheduling service instruction includes at least one basic control instruction.
[0082] Figure 4 This is a logic diagram for generating a basic control instruction set provided in Embodiment 2 of the present invention, such as... Figure 4 As shown, when executing business control functions, the instruction parser first parses scheduling business instructions into basic command lines of a fixed format according to preset rules, and then establishes a mapping relationship between the basic command lines and business processing flow rules. Further, it obtains the control object based on the instruction rule parsing results, i.e., determines the target control scheduling node, and then generates scheduling control parameters and business control logic based on the target control scheduling node, thereby generating a basic control instruction set based on the scheduling control parameters and business control logic of the target scheduling node.
[0083] Step 260: Combine the basic control instructions in the basic control instruction set to generate a service control command that matches the scheduling service instruction.
[0084] Step 270: Send the service control command to the target service execution unit so that the scheduling service can be executed by the target service execution unit.
[0085] The technical solution of this embodiment obtains the scheduling service instructions sent by the scheduling nodes in the scheduling system according to the scheduling service, performs instruction rule parsing on the scheduling service instructions, and obtains the instruction rule parsing result. Further, based on the instruction rule parsing result, the target control scheduling node is determined, and the scheduling control parameters and service control logic of the target control scheduling node are generated. Then, a basic control instruction set for the scheduling service instructions is generated based on the scheduling control parameters and service control logic. After obtaining the basic control instruction set, the various basic control instructions in the basic control instruction set can be combined to generate a service control command matching the scheduling service instructions. After obtaining the service control command, it can be sent to the target service execution unit to execute the scheduling service. This achieves the customizability of all services and all control logic, meets the user's need for personalized business process customization, and reduces the development and maintenance costs of the scheduling service.
[0086] Example 3
[0087] Figure 5 This is a schematic diagram of a service control device based on a scheduling system provided in Embodiment 3 of the present invention, as shown below. Figure 5 As shown, the device includes: a scheduling service instruction acquisition module 310, a basic control instruction set acquisition module 320, a service control command generation module 330, and a service control command sending module 340, wherein:
[0088] The scheduling service instruction acquisition module 310 is used to acquire scheduling service instructions sent by scheduling nodes in the scheduling system according to scheduling services.
[0089] The basic control instruction set acquisition module 320 is used to parse the scheduling service instruction to obtain the basic control instruction set of the scheduling service instruction; wherein, the basic control instruction set includes at least one basic control instruction.
[0090] The service control command generation module 330 is used to combine the various basic control instructions in the basic control instruction set to generate a service control command that matches the scheduling service instruction.
[0091] The service control command sending module 340 is used to send the service control command to the target service execution unit so that the scheduling service can be executed by the target service execution unit.
[0092] Optionally, the basic control instruction set acquisition module includes:
[0093] The instruction rule parsing result generation submodule is used to parse the scheduling service instructions according to the instruction rules and obtain the instruction rule parsing result.
[0094] The target control and scheduling node determination submodule is used to determine the target control and scheduling node based on the instruction rule parsing results.
[0095] The parameter generation submodule is used to generate the scheduling control parameters and business control logic of the target control and scheduling node.
[0096] The basic control instruction set generation submodule is used to generate the basic control instruction set of the scheduling service instruction based on the scheduling control parameters and the service control logic.
[0097] Optionally, the instruction rule parsing result generation submodule includes:
[0098] The basic command line generation unit is used to parse the basic command lines of the scheduling service instructions to obtain the various basic command lines of the scheduling service instructions.
[0099] The verification unit is used to verify the command line writing format of the basic command line, and, if the command line writing format of the basic command line passes the verification, to perform device identification verification on each basic command line of the scheduling service instruction.
[0100] The business processing flow rule determination unit is used to determine the business processing flow rules of the basic command lines when it is determined that each basic command line of the scheduling business instruction has passed the device identification verification.
[0101] The instruction rule parsing result generation unit establishes a mapping relationship between the basic command line and the business processing flow rules, and obtains the instruction rule parsing result.
[0102] Optionally, the business processing flow rule determination unit is specifically used for:
[0103] Obtain the business control configuration file, and determine the predefined business processing flow rules of the basic command line based on the business control configuration file; and / or
[0104] Obtain user configuration data and determine the custom business processing flow rules of the basic command line based on the user configuration data.
[0105] Optionally, the scheduling service instruction generation unit is used to generate the service control configuration file and distribute the service control configuration file to each of the scheduling nodes before determining the target control scheduling node according to the instruction rule parsing result; wherein, the scheduling node is used to generate the scheduling service instruction according to the service control configuration file and the scheduling service.
[0106] Optionally, the target control scheduling node determination submodule is specifically used for:
[0107] A node broadcast instruction is generated based on the instruction rule parsing result, and the node broadcast instruction is broadcast to each of the scheduling nodes. The target control scheduling node is determined based on the broadcast instruction feedback information from each of the scheduling nodes; or
[0108] Obtain the scheduling node association information from the instruction rule parsing result, and determine the target control scheduling node based on the scheduling node association information.
[0109] Optionally, the parameter generation submodule is specifically used for:
[0110] The scheduling control parameters of the target control scheduling node are generated based on the object control parameters of the target control scheduling node and the object control parameters of the instruction parser; wherein, the scheduling control parameters are used to establish a service connection between the target control scheduling node and the instruction parser;
[0111] The business logic rules are determined based on the business control configuration file of the instruction parser, and the instruction rules included in the scheduling business instructions are converted into the business control logic based on the business logic rules.
[0112] The aforementioned service control device based on the scheduling system can execute the service control method based on the scheduling system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment can be found in the service control method based on the scheduling system provided in any embodiment of the present invention.
[0113] Since the service control device based on the scheduling system described above is an apparatus capable of executing the service control method based on the scheduling system in the embodiments of the present invention, those skilled in the art can understand the specific implementation methods and various variations of the service control device based on the scheduling system in this embodiment based on the service control method based on the scheduling system described in the embodiments of the present invention. Therefore, how the service control device based on the scheduling system implements the service control method based on the scheduling system in the embodiments of the present invention will not be described in detail here. Any apparatus used by those skilled in the art to implement the service control method based on the scheduling system in the embodiments of the present invention falls within the scope of protection of this application.
[0114] Example 4
[0115] Figure 6 This is a schematic diagram of an electronic device structure provided in Embodiment 4 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0116] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0117] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0118] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as business control methods based on a scheduling system.
[0119] In some embodiments, the service control method based on the scheduling system can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the service control method based on the scheduling system described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute the service control method based on the scheduling system by any other suitable means (e.g., by means of firmware).
[0120] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0121] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0122] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0123] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0124] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0125] A computing system may include clients and servers. Clients and servers are generally geographically separated and typically interact via a communication network. The client-server relationship is established by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within the cloud computing service system, which addresses the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability. Note that the above are merely preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A service control method based on a scheduling system, characterized in that, Applied to instruction parsers, including: Obtain scheduling service instructions sent by scheduling nodes in the scheduling system according to scheduling services; The scheduling service instruction is parsed to obtain the basic control instruction set of the scheduling service instruction; wherein the basic control instruction set includes at least one basic control instruction; The basic control instructions in the basic control instruction set are combined to generate a service control command that matches the scheduling service instruction. The service control command is sent to the target service execution unit so that the scheduling service is executed by the target service execution unit; The process of parsing the scheduling service instruction yields a basic control instruction set for the scheduling service instruction, including: The scheduling service instructions are parsed according to instructions rules to obtain the instructions rule parsing results; The target control and scheduling node is determined based on the parsing results of the instruction rules. Generate the scheduling control parameters and service control logic for the target control scheduling node; The basic control instruction set for the scheduling service instruction is generated based on the scheduling control parameters and the service control logic; The generation of the scheduling control parameters and service control logic for the target control scheduling node includes: The scheduling control parameters of the target control scheduling node are generated based on the object control parameters of the target control scheduling node and the object control parameters of the instruction parser; wherein, the scheduling control parameters are used to establish a service connection between the target control scheduling node and the instruction parser; The business logic rules are determined based on the business control configuration file of the instruction parser, and the instruction rules included in the scheduling business instructions are converted into the business control logic based on the business logic rules.
2. The method according to claim 1, characterized in that, The step of parsing the scheduling service instructions to obtain the instruction rule parsing result includes: The basic command lines of the scheduling service instruction are parsed to obtain the various basic command lines of the scheduling service instruction; The command line writing format of the basic command line is verified, and if the command line writing format of the basic command line passes the verification, device identification verification is performed on each basic command line of the scheduling service instruction. If it is determined that each basic command line of the scheduling service instruction passes the device identification and verification, the service processing flow rules of the basic command line are determined. Establish a mapping relationship between the basic command line and the business processing flow rules to obtain the instruction rule parsing results.
3. The method according to claim 2, characterized in that, The rules for determining the business processing flow of the basic command line include: Obtain the business control configuration file, and determine the predefined business processing flow rules of the basic command line based on the business control configuration file; and / or Obtain user configuration data and determine the custom business processing flow rules of the basic command line based on the user configuration data.
4. The method according to claim 3, characterized in that, Before determining the target control scheduling node based on the instruction rule parsing result, the method further includes: Generate the service control configuration file and distribute the service control configuration file to each of the scheduling nodes; The scheduling node is used to generate the scheduling service instructions based on the service control configuration file and the scheduling service.
5. The method according to claim 1, characterized in that, The step of determining the target control scheduling node based on the instruction rule parsing result includes: A node broadcast instruction is generated based on the instruction rule parsing result, and the node broadcast instruction is broadcast to each of the scheduling nodes. The target control scheduling node is determined based on the broadcast instruction feedback information from each of the scheduling nodes; or Obtain the scheduling node association information from the instruction rule parsing result, and determine the target control scheduling node based on the scheduling node association information.
6. A service control device based on a scheduling system, characterized in that, Configured in the instruction parser, including: The scheduling service instruction acquisition module is used to acquire scheduling service instructions sent by scheduling nodes in the scheduling system according to scheduling services. A basic control instruction set acquisition module is used to parse the scheduling service instruction to obtain the basic control instruction set of the scheduling service instruction; wherein, the basic control instruction set includes at least one basic control instruction; The service control command generation module is used to combine each of the basic control commands in the basic control command set to generate a service control command that matches the scheduling service command. A service control command sending module is used to send the service control command to the target service execution unit so that the target service execution unit can execute the scheduling service. The basic control instruction set acquisition module includes: The instruction rule parsing result generation submodule is used to parse the scheduling service instruction according to the instruction rule and obtain the instruction rule parsing result. The target control and scheduling node determination submodule is used to determine the target control and scheduling node based on the instruction rule parsing result. The parameter generation submodule is used to generate the scheduling control parameters and business control logic of the target control scheduling node; A basic control instruction set generation submodule is used to generate a basic control instruction set for the scheduling service instructions based on the scheduling control parameters and the service control logic. The parameter generation submodule is specifically used for: The scheduling control parameters of the target control scheduling node are generated based on the object control parameters of the target control scheduling node and the object control parameters of the instruction parser; wherein, the scheduling control parameters are used to establish a service connection between the target control scheduling node and the instruction parser; The business logic rules are determined based on the business control configuration file of the instruction parser, and the instruction rules included in the scheduling business instructions are converted into the business control logic based on the business logic rules.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the service control method based on the scheduling system as described in any one of claims 1-5.
8. A computer storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the service control method based on a scheduling system as described in any one of claims 1-5.
Citation Information
Patent Citations
Display data processing method and device
CN111125238A
