CN108228418A - A kind of method, server-side and the system of determining server-side processing progress - Google Patents

A kind of method, server-side and the system of determining server-side processing progress Download PDF

Info

Publication number
CN108228418A
CN108228418A CN201711267806.7A CN201711267806A CN108228418A CN 108228418 A CN108228418 A CN 108228418A CN 201711267806 A CN201711267806 A CN 201711267806A CN 108228418 A CN108228418 A CN 108228418A
Authority
CN
China
Prior art keywords
task
grade
processing
business
progress
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.)
Pending
Application number
CN201711267806.7A
Other languages
Chinese (zh)
Inventor
戴学升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201711267806.7A priority Critical patent/CN108228418A/en
Publication of CN108228418A publication Critical patent/CN108228418A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of method, server-side and the system of determining server-side processing progress, this method includes:Server-side decomposes root grade task, obtains task tree construction according to preset task decomposition strategy, quantization;It is performed both by for each leaf grade task in task tree construction:It is monitoring, when frontal lobe business in charge of a grade reaches preset task status, to call preset write-in interface, according to task status and task tree construction, write-in is when the processing progress information of frontal lobe business in charge of a grade;In the displaying request for receiving client, preset reading interface is called, according to the processing progress information of write-in, reads currently processed progress;Currently processed progress is returned to client.Each processing progress real-time exhibition that client can send server-side is in user, therefore this programme can improve user experience.

Description

A kind of method, server-side and the system of determining server-side processing progress
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method, the server-side of determining server-side processing progress And system.
Background technology
The management software of enterprise-level will often handle the data of magnanimity, and processing procedure is relatively time consuming, and need in server-side It carries out.For example, financial data is formed archives and is saved in independent storage server, few then dozens of minutes are at most several small When.
At present, during the long time treatment of server-side, the feedback of usually not one processing progress.In this way, user Easily lose perception and the control to processing procedure so that user experience is bad.
Invention content
The present invention provides a kind of method, server-side and the systems of determining server-side processing progress, can improve user's body It tests.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
In a first aspect, the present invention provides a kind of method of determining server-side processing progress, applied to server-side, according to pre- If task decomposition strategy, quantization decompose root grade task, obtain task tree construction;For each in the task tree construction Leaf grade task is performed both by:It is monitoring, when frontal lobe business in charge of a grade reaches preset task status, to call preset write-in interface, root According to the task status and the task tree construction, the write-in processing progress information for working as frontal lobe business in charge of a grade;It further includes:
In the displaying request for receiving external client, preset reading interface is called, according to the processing progress of write-in Information reads currently processed progress;
The currently processed progress is returned to the external client.
Further, it is described when the processing progress information of frontal lobe business in charge of a grade includes:The task decomposition strategy, described grade The identifying of task, the task description of described grade task, the processed task amount of described grade task, described grade task are Processing task amount accounting, it is described when the identifying of frontal lobe business in charge of a grade, the serial number when frontal lobe business in charge of a grade, described work as frontal lobe business in charge of a grade Task description, it is described when the task status of frontal lobe business in charge of a grade, timestamp, whether read in any one or more.
Further, the currently processed progress includes:Write-in but each processing progress information do not read;
Described after the external client returns to the currently processed progress, further comprise:It will be described current Each processing progress information that processing progress includes is set as having read.
Further, before the currently processed progress of reading, further comprise:Determine write-in but each do not read Processing progress information;Using each processing progress information determined, the task tree construction is updated;It is each by what is determined Processing progress information is set as having read;
The currently processed progress includes:The updated task tree construction.
Further, the task tree construction includes the task amount of each task and processed task amount;
The task status includes:Task processing starts or, task processing terminates;
It is described when the processing progress information of frontal lobe business in charge of a grade includes the task status;
It is described to utilize each processing progress information determined, the task tree construction is updated, including:
A1:It is performed both by for each processing progress information determined:Task status in currently processed progress msg At the end of for task processing, it is current task to determine the corresponding target leaf grade task of the currently processed progress msg;
A2:The corresponding upper level task of current task is judged whether, if so, performing A3;
A3:The processed task amount update of the upper level task is replaced with into the processed task amount and the target leaf The adduction of the processed task amount of grade task determines that the upper level task for current task, performs A2.
Second aspect, the present invention provides a kind of server-side, including:
Task-decomposing unit, for according to preset task decomposition strategy, quantization to decompose root grade task, obtains Task Tree knot Structure;
Processing unit, each leaf grade task for being directed in the task tree construction are performed both by:It is monitoring currently When leaf grade task reaches preset task status, preset write-in interface is called, according to the task status and the Task Tree Structure, the write-in processing progress information for working as frontal lobe business in charge of a grade;
Interactive unit, in the displaying request for receiving external client, preset reading interface being called, according to writing The processing progress information entered, reads currently processed progress;The currently processed progress is returned to the external client.
Further, it is described when the processing progress information of frontal lobe business in charge of a grade includes:The task decomposition strategy, described grade The identifying of task, the task description of described grade task, the processed task amount of described grade task, described grade task are Processing task amount accounting, it is described when the identifying of frontal lobe business in charge of a grade, the serial number when frontal lobe business in charge of a grade, described work as frontal lobe business in charge of a grade Task description, it is described when the task status of frontal lobe business in charge of a grade, timestamp, whether read in any one or more.
Further, the currently processed progress includes:Write-in but each processing progress information do not read;
The interactive unit is additionally operable to after the external client returns to the currently processed progress, described will be worked as Each processing progress information that pre-treatment progress includes is set as having read.
Further, the interactive unit is additionally operable to each processing progress information for determining write-in but not reading;Using true The each processing progress information made, updates the task tree construction;The each processing progress information determined is set To have read;
The currently processed progress includes:The updated task tree construction.
Further, the task tree construction includes the task amount of each task and processed task amount;
The task status includes:Task processing starts or, task processing terminates;
It is described when the processing progress information of frontal lobe business in charge of a grade includes the task status;
The interactive unit includes:Determination subelement, judgment sub-unit, update subelement;
The determination subelement is performed both by for being directed to each processing progress information determined:Currently processed progress At the end of task status in information is handled for task, determine that the corresponding target leaf grade task of the currently processed progress msg is Current task;
The judgment sub-unit, for judging whether the corresponding upper level task of current task, if so, described in triggering Update subelement;
The update subelement, for the update of the processed task amount of the upper level task to be replaced with this processed Business amount and the adduction of the processed task amount of the target leaf grade task determine the upper level task as current task, triggering The judgment sub-unit.
The third aspect, the present invention provides a kind of system of determining server-side processing progress, including:
Any of the above-described server-side and at least one client;
Each described client is used to the displaying frequency according to outside setting, is periodically sent out to the server-side Request is shown in putting on display;Show the currently processed progress that the server-side is sent.
The present invention provides a kind of method, server-side and the system of determining server-side processing progress, this method includes:Service Root grade task is decomposed, obtains task tree construction according to preset task decomposition strategy, quantization in end;For every in task tree construction One leaf grade task is performed both by:It is monitoring, when frontal lobe business in charge of a grade reaches preset task status, preset write-in to be called to connect Mouthful, according to task status and task tree construction, write-in is when the processing progress information of frontal lobe business in charge of a grade;In the exhibition for receiving client When showing request, preset reading interface is called, according to the processing progress information of write-in, reads currently processed progress;To client Return to currently processed progress.Each processing progress real-time exhibition that client can send server-side is in user, therefore energy of the present invention Enough improve user experience.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments, for those of ordinary skill in the art, without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow chart of the method for determining server-side processing progress that one embodiment of the invention provides;
Fig. 2 is a kind of schematic diagram for task tree construction that one embodiment of the invention provides;
Fig. 3 is the flow chart for the method that the another kind that one embodiment of the invention provides determines server-side processing progress;
Fig. 4 is a kind of schematic diagram for server-side that one embodiment of the invention provides;
Fig. 5 is the schematic diagram for another server-side that one embodiment of the invention provides;
Fig. 6 is the schematic diagram of the system for the determining server-side processing progress that one embodiment of the invention provides.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art The all other embodiments obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
As shown in Figure 1, an embodiment of the present invention provides a kind of method of determining server-side processing progress, applied to service End, may comprise steps of:
Step 101:According to preset task decomposition strategy, quantization decomposes root grade task, obtains task tree construction.
Step 102:It is performed both by for each leaf grade task in the task tree construction:It is monitoring when frontal lobe is in charge of a grade When business reaches preset task status, preset write-in interface is called, according to the task status and the task tree construction, is write Enter the processing progress information for working as frontal lobe business in charge of a grade.
Step 103:In the displaying request for receiving external client, preset reading interface is called, according to write-in Processing progress information reads currently processed progress.
Step 104:The currently processed progress is returned to the external client.
An embodiment of the present invention provides a kind of methods of determining server-side processing progress, and server-side is according to preset task point Solution strategy, quantization decompose root grade task, obtain task tree construction;It is held for each leaf grade task in task tree construction Row:Monitoring, when frontal lobe business in charge of a grade reaches preset task status, to call preset write-in interface, according to task status and Task tree construction, write-in is when the processing progress information of frontal lobe business in charge of a grade;In the displaying request for receiving client, call default Reading interface, according to the processing progress information of write-in, read currently processed progress;Currently processed progress is returned to client. Each processing progress real-time exhibition that client can send server-side is in user, therefore the embodiment of the present invention can improve user's body It tests.
In detail, after the quantization of root grade task is decomposed, root grade task, several can be included in obtained task tree construction Leaf grade task and several intergrade tasks can be included.
As the term suggests, in task tree construction, there is no corresponding upper level task or parents times for root grade task Corresponding next stage task or sub- grade task is not present in business, leaf grade task.
In addition, the upper level task of leaf grade task can be root grade task, can not also be root grade task.Therefore, leaf grade When the upper level task of task is not root grade task, there may be at least level-one intergrade between root grade task and any leaf grade task Task.Wherein, each intergrade task and Ge Ye grades of tasks are non-root grade task.
In detail, staff can be based on self-demand, flexibly set task decomposition strategy.
As an example it is assumed that server-side needs the files of Mass production voucher, and it is uploaded to archive server progress Storage.Wherein, root grade task can be an accounting period, such as the files of institute's documentary in one month.Assuming that root is in charge of a grade The task amount of business is 3000 vouchers.
In this way, the task decomposition strategy of setting can be:First by voucher category breakdown, then decomposed by voucher quantity. Wherein, type of credentials is respectively paying voucher, payment voucher, transfer voucher, self-defined voucher, cash flow voucher;Each leaf grade The voucher quantity of task is not more than 50.
Based on the above, in an embodiment of the invention, obtained task is decomposed to above-mentioned grade task quantization Tree construction can be as shown in Figure 2.In fig. 2, root grade task is number the unit for being 0101 during October 3000 Voucher.It is decomposed through type of credentials, 5 sub- grade tasks can be decomposed into.
However, it is possible to find out, the voucher quantity m under same type of credentials is still very big, is handled as a request call When, IIS (Internet Information Services, Internet Information Service) time-out is easy to cause, therefore can be incited somebody to action each It is a processing unit that voucher under type of credentials opens vouchers according to n, and it is identical that sub- grade task is again split into m/n task amount Detailed sub- grade task.In task tree construction shown in Fig. 2, n=50.Since without decomposing again, then each detail in Fig. 2 is sub Grade task can be above-mentioned leaf grade task.
After root grade Task-decomposing is completed, for each task in task tree construction, can show its task amount and Task amount accounting.For example, please referring to Fig.2, the task amount of the sub- grade task of paying voucher classification is 750, and task amount accounting is 25%;The task amount of the sub- grade task of payment voucher classification is 450, and task amount accounting is 15%;The son of transfer voucher classification The task amount of grade task is 900, and task amount accounting is 30%;The task amount of the sub- grade task of self-defined voucher classification is 750 , task amount accounting is 25%;The task amount of the sub- grade task of cash flow voucher classification is 150, and task amount accounting is 5%.
Since the quantity of detailed sub- grade task is more, therefore do not carry out expansion displaying in fig. 2.Certainly, times of root grade task Business amount is 3000, and task amount accounting is 100%.
In an embodiment of the invention, task decomposition strategy can be entity object, therefore can be in server-side for not With preset corresponding xml (Extensible Markup Language, the extensible markup language) configuration file of root grade task.Service During the operation of end, the corresponding task decomposition strategy of loading current root grade task can be read, to realize that quantization is decomposed.
As can be seen that above-mentioned steps 101 to step 104 is for a root grade task, based on same realization principle, In other embodiments of the present invention, server-side can be directed to each root grade task simultaneously, perform determining for respective handling progress Flow.
In one embodiment of the invention, the task status includes:Task processing starts or, task processing terminates.
In this way, for any leaf grade task, it, can be to corresponding when task processing starts or at the end of task is handled Whether processing progress information is recorded, staff to be facilitated to understand whether the starting of each task, when starts, terminate, what When terminate, so as to understand the task processing progress of server-side.
By taking the paying voucher in task tree construction shown in Fig. 2 this sub- grade task as an example, the next stage of the sub- grade task There are the sub- grade tasks of 15 details.Assuming that the sub- grade task order of this 15 details performs, then, when first therein detailed son During grade task start to process, this sub- grade task start to process of paying voucher;When the last one detailed sub- grade task knot therein During beam processing, this sub- grade task of paying voucher terminates to handle.
Certainly, in other embodiments of the present invention, the sub- grade task of each detail can also asynchronous execution, server-side can be simultaneously Handle the sub- grade task of at least one detail.
Therefore, according to the processing progress of affiliated each next stage task, it may be determined that each task in tree construction of going out on missions Time started and processing end time are handled, and then can determine that the processed task amount of each task, processed task amount account for Than.Based on these information, it can reflect the processing progress of each task.
For example, the task amount of paying voucher this sub- grade task in task tree construction shown in Fig. 2 is 750, Task amount accounting is 25%.When a detailed sub- grade task start to process of its next stage, this sub- grade task of paying voucher Processed task amount, processed task amount accounting are unchanged, the processed task amount of root grade task, processed task amount accounting without Variation;When a detailed sub- grade task of its next stage terminates processing, the processed task amount of this sub- grade task of paying voucher Add 50, processed task amount accounting add 1/60, the processed task amount of root grade task adds 50, processed task amount accounting adds 1/60.Wherein, 1/60=25% × (1/15).
In one embodiment of the invention, it is described when the processing progress information of frontal lobe business in charge of a grade includes:The task point Solution strategy, the identifying of described grade task, the task description of described grade task, described grade task processed task amount, The processed task amount accounting of described grade task, it is described when the identifying of frontal lobe business in charge of a grade, the serial number when frontal lobe business in charge of a grade, The task description when frontal lobe business in charge of a grade, it is described when the task status of frontal lobe business in charge of a grade, timestamp, whether read in it is arbitrary It is one or more.
In detail, preset real-time processing progress write-in interface can be called, it is real-time to be written in database purchase Processing progress information.And during client request displaying processing progress, preset real-time processing progress can be called to read interface, To read currently processed progress from database purchase.
In detail, user can carry out required set, for example whether can set needs displaying server-side real in client When processing progress and displaying frequency can be set.It, can be according to setting when the setting option of a client is needs displaying Show frequency cycle sends displaying request to server-side, so that server-side returns to its currently processed progress in real time.
In detail, it after processing progress information is written in database purchase, will be write in the database purchase including each The processing progress information entered.
In an embodiment of the invention, the data list structure for storing real-time processing progress information can be defined.Wherein, this One data list structure can at least include each field as shown in table 1 below.
Table 1
RootTaskID Root grade task identification
RootTaskInfo Root grade task description
CurrentTaskID Currently processed detail task identification
CurrentTaskCode Currently processed detail task number
CurrentTaskInfo Currently processed detail task description
CurrentTaskState Currently processed detail task status
DecoStrategy Task decomposition strategy
Readed Whether read
DateTime Timestamp
Based on the above, the current place returned for each processing progress information in database purchase, server-side Reason progress at least can be following either types:
Mode 1:Processing progress information itself;
Mode 2:This task tree construction after task tree construction is updated using processing progress information;
Mode 3:Aforesaid way 1 and aforesaid way 2.
In detail, for aforesaid way 1:
In one embodiment of the invention, the currently processed progress includes:Write-in but each do not read handle into Spend information;
Described after the external client returns to the currently processed progress, further comprise:It will be described current Each processing progress information that processing progress includes is set as having read.
For example, when server-side often monitors a leaf grade task start to process or terminates processing, you can one phase of write-in The processing progress information answered.In this way, several processing progress arranged sequentially in time can be stored in database purchase Information.Based on each processing progress information, you can understand the real-time processing progress of server-side.
When client request shows real-time processing progress, at each that can not be read into its returned data library storage Manage progress msg.Certainly, it since client has appreciated that each processing progress information, therefore can be set to read.Such as This, when client is asked again, only return is newly written and that does not read respectively handles progress msg.
On the other hand, when any processing progress information is not written between Twice requests, to the current place of client return The content of reason progress can be to be updated without real-time processing progress.
In detail, in client, can equally be arranged in order sequentially in time server-side return each handle into Information is spent, so that user understands the task processing progress of server-side in real time.
In detail, for aforesaid way 2:
In one embodiment of the invention, before the currently processed progress of reading, further comprise:Determine write-in But each processing progress information do not read;Using each processing progress information determined, the task tree construction is updated; The each processing progress information determined is set as having read;
The currently processed progress includes:The updated task tree construction.
In detail, each processing progress information of write-in can represent the current task processing progress of server-side, therefore Can each processing progress information based on write-in to be updated to task tree construction, and by updated task tree construction It is back to client.
Based on aforesaid way 2, in one embodiment of the invention, in order to illustrate a kind of possibility of update task tree construction Realization method, so, the task tree construction includes the task amount of each task and processed task amount;
The task status includes:Task processing starts or, task processing terminates;
It is described when the processing progress information of frontal lobe business in charge of a grade includes the task status;
It is described to utilize each processing progress information determined, the task tree construction is updated, including:
A1:It is performed both by for each processing progress information determined:Task status in currently processed progress msg At the end of for task processing, it is current task to determine the corresponding target leaf grade task of the currently processed progress msg;
A2:The corresponding upper level task of current task is judged whether, if so, performing A3;
A3:The processed task amount update of the upper level task is replaced with into the processed task amount and the target leaf The adduction of the processed task amount of grade task determines that the upper level task for current task, performs A2.
For example, when server-side handles shown in Fig. 2 grade task, first under this sub- grade task of processing paying voucher The sub- grade task of first detail:Task 1.Since each leaf grade task is not processed, so when task tree construction in Each processed task amount is 0.
When the task 1 processing is completed, respective handling progress msg can be written:Processing progress information 1.It is assuming that objective at this time The request displaying of family end, therefore can task tree construction be updated based on above-mentioned steps A1 to A3.
More new technological process is specifically as follows for this:Currently processed progress msg be processing progress information 1, processing progress information 1 In task status terminate for task processing, therefore determine that task 1 is target leaf grade task.Through judging, this sub- grade of paying voucher Task is the upper level task of task 1.The processed task amount of the sub- grade task is 0, therefore can be updated to itself and task 1 Processed task amount adduction, i.e., by 0 update replace with 50.For the sub- grade task, there are its upper level tasks, i.e. root grade Task.The processed task amount of root grade task is 0, therefore can be updated to the adduction of its processed task amount with task 1, 50 are replaced with by 0 update.For the root grade task, there is no its upper level task, therefore terminate.
In detail, when the processing of each leaf grade task is completed, processed task amount will be changed to the task of its own by 0 Amount.For example, when the processing of task 1 is completed, the processed task amount of task 1 will be changed to 50 by 0.
Based on same realization principle, in addition to the processed task amount to each task in task tree construction carries out real-time update Outside, the processed task amount accounting of each task can be equally updated.
Wherein, the task amount accounting of each task can be the ratio of the task amount and the task amount of root grade task of the task. In this way, the task amount accounting of root grade task can be 100%.
For example, please referring to Fig.2, the task amount accounting of this sub- grade task of paying voucher is 25%, and subordinate's is any bright The task amount accounting of thin sub- grade task can be 1/60.Wherein, 1/60=25% × (1/15).When initial, the place of each task It is 0% to manage task amount accounting.
Assuming that when the detailed sub- grade task processing under this sub- grade task of paying voucher is completed, the sub- grade task of the detail Processed task amount accounting is 1/60, that is, is fully completed;The processed task amount accounting of this sub- grade task of paying voucher adds 1/ 60;Similarly, the processed task amount accounting of root grade task adds 1/60.
As shown in figure 3, the method that one embodiment of the invention provides another determining server-side processing progress, specific to wrap Include following steps:
Step 301:Server-side decomposes root grade task, obtains task tree construction according to preset task decomposition strategy, quantization.
Step 302:Each leaf grade task that server-side is directed in task tree construction is performed both by:It is monitoring when frontal lobe grade When task reaches preset task status, preset write-in interface is called, according to task status and task tree construction, write-in is current The processing progress information of leaf grade task.
In detail, this processing progress information can include task decomposition strategy, the mark of root grade task, root grade task Task description, the processed task amount of root grade task, the processed task amount accounting of root grade task, the mark when frontal lobe business in charge of a grade Knowledge the serial number when frontal lobe business in charge of a grade, the task description when frontal lobe business in charge of a grade, the task status when frontal lobe business in charge of a grade, timestamp, is It is no to have read.
Step 303:Client periodically sends displaying request according to the displaying frequency of outside setting to server-side.
Step 304:Server-side calls preset reading interface, according to write-in in the displaying request for receiving client Processing progress information, read currently processed progress, which includes write-in but each processing progress for not reading Information.
Step 305:Server-side returns to currently processed progress to client.
Step 306:Each processing progress information that currently processed progress includes is set as having read by server-side.
Step 307:The currently processed progress that client displaying server-side returns.
As shown in figure 4, one embodiment of the invention provides a kind of server-side, including:
Task-decomposing unit 401, for according to preset task decomposition strategy, quantization to decompose root grade task, obtains task Tree construction;
Processing unit 402, each leaf grade task for being directed in the task tree construction are performed both by:It is monitoring to work as When frontal lobe grade task reaches preset task status, preset write-in interface is called, according to the task status and the task Tree construction, the write-in processing progress information for working as frontal lobe business in charge of a grade;
Interactive unit 403, in the displaying request for receiving external client, calling preset reading interface, root According to the processing progress information of write-in, currently processed progress is read;The currently processed progress is returned to the external client.
In an embodiment of the invention, it is described when the processing progress information of frontal lobe business in charge of a grade includes:The Task-decomposing The identifying of tactful, described grade task, the task description of described grade task, the processed task amount of described grade task, institute State root grade task processed task amount accounting, it is described when the identifying of frontal lobe business in charge of a grade, the serial number when frontal lobe business in charge of a grade, institute State when frontal lobe business in charge of a grade task description, it is described when the task status of frontal lobe business in charge of a grade, timestamp, whether read in it is any one Kind is a variety of.
In an embodiment of the invention, the currently processed progress includes:Write-in but each processing progress do not read Information;
The interactive unit 403 is additionally operable to after the external client returns to the currently processed progress, by described in Each processing progress information that currently processed progress includes is set as having read.
In an embodiment of the invention, the interactive unit 403 is additionally operable to each processing for determining write-in but not reading Progress msg;Using each processing progress information determined, the task tree construction is updated;At each determined Reason progress msg is set as having read;
The currently processed progress includes:The updated task tree construction.
In an embodiment of the invention, Fig. 5 is please referred to, the task tree construction includes the task amount of each task With processed task amount;
The task status includes:Task processing starts or, task processing terminates;
It is described when the processing progress information of frontal lobe business in charge of a grade includes the task status;
The interactive unit 403 includes:Determination subelement 4031, judgment sub-unit 4032, update subelement 4033;
The determination subelement 4031 is performed both by for being directed to each processing progress information determined:It is currently processed At the end of task status in progress msg is handled for task, determine that the corresponding target leaf of the currently processed progress msg is in charge of a grade It is engaged in as current task;
The judgment sub-unit 4032, for judging whether the corresponding upper level task of current task, if so, triggering The update subelement 4033;
The update subelement 4033, has located for the update of the processed task amount of the upper level task to be replaced with this The adduction of task amount and the processed task amount of the target leaf grade task is managed, determines the upper level task as current task, Trigger the judgment sub-unit 4032.
As shown in fig. 6, an embodiment of the present invention provides a kind of system of determining server-side processing progress, including:
Any of the above-described server-side 601 and at least one client 602;
Each described client 602 is used to the displaying frequency according to outside setting, periodically to the server-side 601 send displaying request;Show the currently processed progress that the server-side 601 is sent.
In detail, user can set whether need real-time exhibition and setting displaying frequency in client.
In this way, can in the foreground window of client, visualize real-time exhibition server-side batch processing task it is detailed into Degree.The embodiment of the present invention is applicable to the scene in backstage mass disposal data and task, has certain versatility, leads to Cross and processing procedure decomposed, synchronous feedback completed with ongoing detailed processing item, processing procedure flowing is allowed to be carried at the moment High user experience.
In an embodiment of the invention, client can be synchronous to open while entire root grade task processing is started Another window process, with the displaying frequency that client is set, such as 5 milliseconds are time interval, and real-time progress is called to read interface, is obtained Current schedules is taken to describe and be shown.
The contents such as the information exchange between each unit, implementation procedure in above device, due to implementing with the method for the present invention Example can be found in the narration in the method for the present invention embodiment based on same design, particular content, and details are not described herein again.
In conclusion each embodiment of the present invention at least has the advantages that:
1st, in the embodiment of the present invention, server-side is decomposed root grade task, must be taken office according to preset task decomposition strategy, quantization Business tree construction;It is performed both by for each leaf grade task in task tree construction:It is monitoring to reach default when frontal lobe business in charge of a grade Task status when, call preset write-in interface, according to task status and task tree construction, write-in is when the place of frontal lobe business in charge of a grade Manage progress msg;In the displaying request for receiving client, preset reading interface is called, is believed according to the processing progress of write-in Breath, reads currently processed progress;Currently processed progress is returned to client.What client can send server-side respectively handled into Real-time exhibition is spent in user, therefore the embodiment of the present invention can improve user experience.
2nd, in the embodiment of the present invention, real-time exhibition server-side batch processing can be visualized in the foreground window of client The detailed progress of task.The embodiment of the present invention is applicable to the scene in backstage mass disposal data and task, has one Fixed versatility, by being decomposed to processing procedure, synchronous feedback completed with ongoing detailed processing item, allow processing procedure It flows at the moment, improves user experience.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation Any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those elements, But also it including other elements that are not explicitly listed or further includes solid by this process, method, article or equipment Some elements.In the absence of more restrictions, the element limited by sentence " including a 〃 〃 ", it is not excluded that Also there is other identical factor in the process, method, article or apparatus that includes the element.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and aforementioned program can be stored in computer-readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is performed;And aforementioned storage medium includes:ROM, RAM, magnetic disc or light In the various media that can store program code such as disk.
It is last it should be noted that:The foregoing is merely presently preferred embodiments of the present invention, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention, Equivalent replacement, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

  1. A kind of 1. method of determining server-side processing progress, which is characterized in that applied to server-side, according to preset Task-decomposing Strategy, quantization decompose root grade task, obtain task tree construction;It is held for each leaf grade task in the task tree construction Row:It is monitoring, when frontal lobe business in charge of a grade reaches preset task status, preset write-in interface to be called, according to the task shape State and the task tree construction, the write-in processing progress information for working as frontal lobe business in charge of a grade;It further includes:
    In the displaying request for receiving external client, preset reading interface is called, according to the processing progress information of write-in, Read currently processed progress;
    The currently processed progress is returned to the external client.
  2. 2. according to the method described in claim 1, it is characterized in that,
    It is described when the processing progress information of frontal lobe business in charge of a grade includes:The task decomposition strategy, the mark of described grade task, institute State the task description of root grade task, the processed task amount of described grade task, described grade task processed task amount account for Than, it is described when the identifying of frontal lobe business in charge of a grade, the serial number when frontal lobe business in charge of a grade, the task description when frontal lobe business in charge of a grade, It is described when the task status of frontal lobe business in charge of a grade, timestamp, whether read in any one or more.
  3. 3. according to the method described in claim 1, it is characterized in that,
    The currently processed progress includes:Write-in but each processing progress information do not read;
    Described after the external client returns to the currently processed progress, further comprise:It will be described currently processed Each processing progress information that progress includes is set as having read.
  4. 4. according to the method any in claims 1 to 3, which is characterized in that
    Before the currently processed progress of reading, further comprise:Determine write-in but each processing progress information do not read; Using each processing progress information determined, the task tree construction is updated;The each processing progress determined is believed Breath is set as having read;
    The currently processed progress includes:The updated task tree construction.
  5. 5. according to the method described in claim 4, it is characterized in that,
    The task tree construction includes the task amount of each task and processed task amount;
    The task status includes:Task processing starts or, task processing terminates;
    It is described when the processing progress information of frontal lobe business in charge of a grade includes the task status;
    It is described to utilize each processing progress information determined, the task tree construction is updated, including:
    A1:It is performed both by for each processing progress information determined:Task status in currently processed progress msg is appoints At the end of business is handled, it is current task to determine the corresponding target leaf grade task of the currently processed progress msg;
    A2:The corresponding upper level task of current task is judged whether, if so, performing A3;
    A3:The processed task amount update of the upper level task is replaced with into the processed task amount and the target leaf is in charge of a grade The adduction of the processed task amount of business determines that the upper level task for current task, performs A2.
  6. 6. a kind of server-side, which is characterized in that including:
    Task-decomposing unit, for according to preset task decomposition strategy, quantization to decompose root grade task, obtains task tree construction;
    Processing unit, each leaf grade task for being directed in the task tree construction are performed both by:It is monitoring when frontal lobe grade When task reaches preset task status, preset write-in interface is called, according to the task status and the task tree construction, The write-in processing progress information for working as frontal lobe business in charge of a grade;
    Interactive unit, in the displaying request for receiving external client, preset reading interface being called, according to write-in Processing progress information reads currently processed progress;The currently processed progress is returned to the external client.
  7. 7. server-side according to claim 6, which is characterized in that
    It is described when the processing progress information of frontal lobe business in charge of a grade includes:The task decomposition strategy, the mark of described grade task, institute State the task description of root grade task, the processed task amount of described grade task, described grade task processed task amount account for Than, it is described when the identifying of frontal lobe business in charge of a grade, the serial number when frontal lobe business in charge of a grade, the task description when frontal lobe business in charge of a grade, It is described when the task status of frontal lobe business in charge of a grade, timestamp, whether read in any one or more.
  8. 8. the server-side described according to claim 6 or 7, which is characterized in that
    The currently processed progress includes:Write-in but each processing progress information do not read;
    The interactive unit is additionally operable to after the external client returns to the currently processed progress, by the current place Each processing progress information that reason progress includes is set as having read;
    And/or
    The interactive unit is additionally operable to each processing progress information for determining write-in but not reading;Utilize each determined Processing progress information updates the task tree construction;The each processing progress information determined is set as having read;
    The currently processed progress includes:The updated task tree construction.
  9. 9. server-side according to claim 8, which is characterized in that
    The task tree construction includes the task amount of each task and processed task amount;
    The task status includes:Task processing starts or, task processing terminates;
    It is described when the processing progress information of frontal lobe business in charge of a grade includes the task status;
    The interactive unit includes:Determination subelement, judgment sub-unit, update subelement;
    The determination subelement is performed both by for being directed to each processing progress information determined:Currently processed progress msg In task status for task processing at the end of, determine that the corresponding target leaf grade task of the currently processed progress msg is current Task;
    The judgment sub-unit, for judging whether the corresponding upper level task of current task, if so, triggering the update Subelement;
    The update subelement, for the update of the processed task amount of the upper level task to be replaced with the processed task amount With the adduction of the processed task amount of the target leaf grade task, the upper level task is determined as current task, described in triggering Judgment sub-unit.
  10. 10. a kind of system of determining server-side processing progress, which is characterized in that including:
    Server-side and at least one client as described in any in claim 5 to 9;
    Each described client is used to the displaying frequency according to outside setting, periodically sends exhibition to the server-side Show request;Show the currently processed progress that the server-side is sent.
CN201711267806.7A 2017-12-05 2017-12-05 A kind of method, server-side and the system of determining server-side processing progress Pending CN108228418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711267806.7A CN108228418A (en) 2017-12-05 2017-12-05 A kind of method, server-side and the system of determining server-side processing progress

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711267806.7A CN108228418A (en) 2017-12-05 2017-12-05 A kind of method, server-side and the system of determining server-side processing progress

Publications (1)

Publication Number Publication Date
CN108228418A true CN108228418A (en) 2018-06-29

Family

ID=62653237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711267806.7A Pending CN108228418A (en) 2017-12-05 2017-12-05 A kind of method, server-side and the system of determining server-side processing progress

Country Status (1)

Country Link
CN (1) CN108228418A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881493A (en) * 2018-08-08 2018-11-23 郑州云海信息技术有限公司 A kind of Task Progress information-pushing method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130063652A (en) * 2011-12-07 2013-06-17 한국전자통신연구원 Incremental vocabulary tree structure forming method for depth map retrieval
CN103699473A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Indicating method and device for task progress
CN104123214A (en) * 2013-04-26 2014-10-29 阿里巴巴集团控股有限公司 Method and system for measuring and displaying task executing progress based on runtime data
CN106547523A (en) * 2015-09-17 2017-03-29 北大方正集团有限公司 Progress bar progress display packing, apparatus and system
CN106557991A (en) * 2016-11-04 2017-04-05 广东电网有限责任公司电力科学研究院 Voltage monitoring data platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130063652A (en) * 2011-12-07 2013-06-17 한국전자통신연구원 Incremental vocabulary tree structure forming method for depth map retrieval
CN104123214A (en) * 2013-04-26 2014-10-29 阿里巴巴集团控股有限公司 Method and system for measuring and displaying task executing progress based on runtime data
CN103699473A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Indicating method and device for task progress
CN106547523A (en) * 2015-09-17 2017-03-29 北大方正集团有限公司 Progress bar progress display packing, apparatus and system
CN106557991A (en) * 2016-11-04 2017-04-05 广东电网有限责任公司电力科学研究院 Voltage monitoring data platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881493A (en) * 2018-08-08 2018-11-23 郑州云海信息技术有限公司 A kind of Task Progress information-pushing method, device and equipment

Similar Documents

Publication Publication Date Title
CN103999047B (en) repair delivery system
EP2778929B1 (en) Test script generation system
CN104317618B (en) A kind of firmware partition treating method and apparatus
CN109582301A (en) Method for processing business, device, equipment and the medium of task based access control scheduling system
US7937176B2 (en) Hybrid part installation process combining mass part installation techniques with discrete part number assembly activities
CN113157419A (en) Task processing method based on robot process automation
CN108491254A (en) A kind of dispatching method and device of data warehouse
CN109598486A (en) A kind of method and apparatus for checking abnormal order
CN108196959A (en) The method for managing resource and device of ETL system
JP5989194B1 (en) Test management system and program
CN112465446A (en) Work order data processing method and device, electronic equipment and storage medium
CN109800081A (en) A kind of management method and relevant device of big data task
CN109213736A (en) The compression method and device of log
CN108228418A (en) A kind of method, server-side and the system of determining server-side processing progress
CN113721950A (en) Resource loss prevention and control processing method and device
CN115760009B (en) Engineering progress management method, device, equipment and storage medium
CN107092556A (en) Method of testing, device and equipment
CN112399204B (en) Alternate type information pushing method, device, equipment and storage medium
CN114880387A (en) Data integration script generation method and device, storage medium and electronic equipment
US20040073887A1 (en) Generating a request log of requests received by a workflow management system
Efrilianda et al. Inventory control and distribution of medicine stocks by using a just in time method based on interactive web applications
US8352337B2 (en) Automatic loaner part replacement to prevent system callback
JP2004062439A (en) Information management support device, information management support system, information management support method, recording medium, and program
CN110519714A (en) Short message approval processing method and device, electronic equipment and storage medium
CN117519838B (en) AI workflow modeling method, related device, equipment, system and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629

RJ01 Rejection of invention patent application after publication