Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Service scheduling method and device, and storage medium

A business scheduling and business entity technology, applied in the computer field, can solve problems such as resource waste, achieve the effects of avoiding resource waste, realizing function reuse, and reducing implementation complexity

Pending Publication Date: 2020-05-19
ZTE CORP
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a business scheduling method, equipment and storage medium to solve the problem that the existing business modules not only need to execute the business logic of the corresponding business, but also pay attention to the underlying scheduling mechanism, which is easy to cause waste of resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Service scheduling method and device, and storage medium
  • Service scheduling method and device, and storage medium
  • Service scheduling method and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] This embodiment provides a service scheduling method executed on the scheduling system side. Such as figure 1 Shown is a flow chart of the service scheduling method executed on the scheduling system side according to the first embodiment of the present invention.

[0028] Step S110, when starting the system, correspondingly create scheduling tasks for registered JOBs.

[0029] JOB refers to a working entity, also known as a finite state machine. JOB is obtained by encapsulating the business logic of the business entity according to the JOB template.

[0030] The scheduling task is used to dispatch the message received by the scheduling system to the receiver JOB of the message.

[0031] Specifically, since different business entities are responsible for different types of businesses, in order to distinguish different types of JOBs (business entities), and to accurately find a JOB in the scheduling system, the communication information of the JOB is unique. The commu...

Embodiment 2

[0067] This embodiment provides a service scheduling method executed on the service entity side. Such as Figure 4 Shown is a flow chart of the service scheduling method executed on the service entity side according to the second embodiment of the present invention.

[0068] Step S410, acquiring a JOB template.

[0069] The JOB template can be obtained from a preset JOB template server or a storage device of the scheduling system.

[0070] The JOB template can be used as a reference by the business entity to implement the business logic of the business entity.

[0071] A JOB template is essentially a function. The entry parameters include but are not limited to: JOB status, message number, message body, and message byte order.

[0072] The code representation of a JOB template is given below:

[0073]

[0074] Among them, JobState describes the state of the JOB, MsgId describes the message number, MsgData describes the message body, and ByteOrder describes the byte orde...

Embodiment 3

[0098] This embodiment provides a service scheduling device. Such as Figure 6 Shown is a structural diagram of a service scheduling device according to a third embodiment of the present invention.

[0099] In this embodiment, the service-based scheduling device includes, but is not limited to: a processor 610 and a memory 620 . The processor 610 is configured to execute the service scheduling program stored in the memory 620, so as to realize the above-mentioned service scheduling method executed on the scheduling system side, or realize the above-mentioned service scheduling method executed on the service entity side.

[0100] Specifically, the processor 610 is used to execute the business scheduling program stored in the memory 620, so as to realize the following steps of the business scheduling method executed on the scheduling system side: when starting the system, correspondingly create Scheduling tasks; wherein, the JOB is obtained by the business entity encapsulating...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a service scheduling method and device, and a storage medium. The method is executed on a scheduling system side, and comprises the following steps: when a system is started, correspondingly creating a scheduling task for a registered working entity JOB; receiving a message for transmission to the JOB; and distributing the message to the JOB through the scheduling task corresponding to the JOB. The method is executed on a service entity side and comprises the following steps: acquiring a JOB template; according to the JOB template, packaging the service logic of the service entity into a JOB; registering a JOB; and in the working state, if a message sent by the scheduling task corresponding to the JOB is received, executing logic processing on the message. Accordingto the invention, the service entity at the upper layer is abstracted into the JOB driven by the message, and after receiving the message, the JOB only needs to pay attention to the business logic and is responsible for executing the corresponding logic processing flow, and does not need to pay attention to a scheduling mechanism at the bottom layer, thereby avoiding resource waste.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a service scheduling method, equipment and storage medium. Background technique [0002] Modern large-scale communication systems are composed of many business modules (business entities), for example: some business modules are responsible for call service processing, some business modules are responsible for database operations, and some business modules are responsible for version management and so on. The various business modules cooperate with each other to complete the functions of the entire communication system. [0003] The traditional development model is to implement a complete set of application architecture independently by business modules. For example: for any business module A, the business module A needs to independently implement the main processing function, create corresponding sub-threads according to actual needs, independently create sockets, and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F9/54
CPCG06F9/4843G06F9/546G06F9/48G06F9/54
Inventor 缪红保
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products