CN1630235A - Method for reflecting task progress of message based distributed platform client - Google Patents

Method for reflecting task progress of message based distributed platform client Download PDF

Info

Publication number
CN1630235A
CN1630235A CN 200310123625 CN200310123625A CN1630235A CN 1630235 A CN1630235 A CN 1630235A CN 200310123625 CN200310123625 CN 200310123625 CN 200310123625 A CN200310123625 A CN 200310123625A CN 1630235 A CN1630235 A CN 1630235A
Authority
CN
China
Prior art keywords
message
client
progress
server end
mdp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200310123625
Other languages
Chinese (zh)
Other versions
CN100341270C (en
Inventor
王元庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2003101236259A priority Critical patent/CN100341270C/en
Publication of CN1630235A publication Critical patent/CN1630235A/en
Application granted granted Critical
Publication of CN100341270C publication Critical patent/CN100341270C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

This invention discloses a method for user terminal reflecting task progress based on message distribution platform (MDP) which utilizes synchronous and asynchronous message interface to transmit information between user terminal and server terminal. Said method is that the user terminal activates a stand-by progress window and sends execution request through synchronous message interface, MDP retransmitting the request to server terminal which making relative treatment according to said request and transmitting report containing progress instruction, MDP retransmitting said report, user terminal receiving said message by asynchronous message interface, analyzing progress instruction and indicating progress. Said invention can accurately reflect task execution and raise system availability

Description

The method of the client reflection Task Progress of message based distributed platform
Technical field
The present invention relates to the message distribution formula platform technology in the communication system, relate in particular to the method for the client reflection server end progress of this distributed platform.
Background technology
In distributed integrated management application development platform (iMAP-MDP), message based distributed platform (MDP) is responsible for the message transmission of whole system.Other all application processes and platform connects in the system, carries out information interaction by the message transmission.Under this structure, directly do not connect between other application processes in the General System.In the iMAP-MDP platform, often a kind of client-server structure that adopts is, client (or claiming the foreground) and server end (or claiming the backstage) are all as an application program in the iMAP-MDP comprehensive platform.Consult shown in Figure 1.
The Message Processing of client generally has two kinds: synchronization message and asynchronous message.When client is connected to MDP, be actually set up two with being connected of MDP.Synchronization message is handled the synchronization request that client sends, and asynchronous message is then handled the asynchronous request that client sends and received notice reporting message from MDP.Asynchronous message does not block other threads of client.
Under the situation of synchronization request, client sends a request message to MDP, MDP handles to the specific task in backstage this forwards, in processing procedure, client is in the waiting process of an obstruction, up to receiving the response message that the backstage is returned, client just continues to carry out.
Under the situation of asynchronous request, client sends a request message to MDP, continues other processing then.After client asynchronous message processing module received message from MDP, if judge it is request message, the particular module that then sends to client was handled.If judge it is not request message, then traversal has been subscribed to the module of this message, and each module is carried out the processing of reporting message according to message content.
Characteristic according to above-mentioned MDP, client is if the progress on reflection backstage, then client must receive the implementation status on backstage, if and the message of this implementation status is handled by synchronization message, then the task of server end needs constantly to send response message to client in the process of implementation, the response of mid portion needs special processing, and the message of Fa Songing is only the result that client really needs at last.This mode can be called the mode of response stage by stage.Adopt this mode that following shortcoming is arranged:
(1) because each supports the server end of response stage by stage all to need the support of interface, therefore needs to revise existing interface;
(2) client can only be known and finished several steps, but under the initial situation, does not know total progress, thereby can not really reflect the progress of server end.
Summary of the invention
The object of the present invention is to provide a kind of method of client reflection Task Progress of message based distributed platform, exist client can not really reflect the problem of server end progress to solve in the prior art.
For addressing the above problem, the invention provides following technical scheme:
A kind of method of client reflection Task Progress of message based distributed platform, described distributed platform utilizes synchronization message interface and asynchronous message interface pass-along message between the client and server end; The method comprising the steps of:
But the wait window of a progress displaying of client terminal start-up, and send a request message by the synchronization message interface;
Carry out respective handling according to the message initiated server end of described request, and in processing procedure, send the notice reporting message that comprises the progress indication;
Described client receives described notice reporting message by the asynchronous message interface, analyzes wherein progress indication and progress displaying.
Wherein:
By determining that between the client and server end a specific message number reflects the message of server end progress, client is subscribed to this specific message number when starting the wait window, and goes to subscribe to this specific message number when waiting for close.
When the progress Indication message of a plurality of client query different server ends, server end is specified the recipient in notice reporting message, give this recipient by described message desk with this notice reporting forwards, only send to specific client to guarantee a progress indication.
The unique identification that also comprises the user ID or the client of current login in the progress indication that server end reports, client unique identification according to user ID or client when receiving the notice reporting message that comprises the progress indication judges whether should be the notice reporting message that this client receives, if then handle, otherwise abandon.
Server end is every carries out a progress point to notice reporting message that comprises the progress indication of client transmission, and wherein the progress indication can be and takes a step forward or multistep.
The present invention constantly indicates by notice reporting message transmission progress in the server-side processes process, client is by indication of asynchronous message interface reception progress and demonstration, therefore the present invention can accurately reflect the task executions situation on user interface, thereby improves availability.
Description of drawings
Fig. 1 is distributed integrated management application development platform schematic diagram;
Fig. 2 is a process chart of the present invention;
Fig. 3 is the schematic diagram of client reflection server end progress;
Fig. 4 A is the flow chart that MDP handles notice reporting message in the prior art;
Fig. 4 B handles the flow chart of notice reporting message for MDP of the present invention.
Embodiment
Consult shown in Figure 1, in this architecture, directly do not connect between client (or title " foreground ") and the server end (or title " backstage "), but the function that provides by MDP (subscribe to, go to subscribe to, request, response) realizes the transmission of message, and the foreground can be by synchronization request and two kinds of communication interfaces of asynchronous request and MDP communication.If the foreground sends a synchronization request, the message processing module on foreground is in the state of wait-for-response always, carries out the processing of corresponding task by the task of a server end, and up to disposing and returning response message, work is just proceeded on the foreground.Therefore, in the prior art, the operation progress of server end can't be known in the foreground, thereby can't offer the implementation status of user task.
After the foreground sends synchronization message,, promptly in task processes, send notice reporting message and response message because the message that server end returns has two kinds.To cause the foreground to obtain request results and end inquiry if send response message, the notice reporting message that sends then sends to the foreground by the asynchronous message interface on foreground, and therefore, the present invention utilizes this characteristic to realize the reflection of progress.
The present invention mainly be by server end in processing procedure, constantly send the notice reporting message comprise the progress indication, the foreground utilizes the progress bar on the interface to be prompted to the user by the indication of asynchronous message interface reception progress then.
Consult shown in Figure 2ly, client display server end progress implementation procedure is as follows:
Step 10: but the wait window of a progress displaying of client terminal start-up, and pass through the request message that the synchronization message interface sends executable operations.
In suc scheme, require the foreground before carrying out a long operation, window is waited in one of general startup earlier, this window is just having a mould dialog box in executable operations for expression that can progress displaying, send a request message then, request message is in the obstruction thread, waits for that window then is in the another one thread, can carry out and refresh and other operations.
When starting the wait window, subscribe to a specific message, the progress on this message sink backstage when user's termination by the time or synchronous query finish, goes to subscribe to this message.In order to realize this mode, to determine the special message of a specific message number (as 999888) between the AM/BAM as the reflection progress.When waiting for that dialog box starts, subscribe message numbers 999888 is gone subscribe message numbers 999888 when waiting for that dialog box is closed.
Step 20:MDP gives server end with the described request forwards.
Step 30: server end carries out corresponding task according to request message to be handled, and sends the notice reporting message that comprises the progress indication in processing procedure.
If the task of this server process can reflect progress, then handling the beginning of this task, at first send a notice reporting message with total length indication to client, server end is in follow-up processing procedure, whenever, carry out a progress point, then send a notice reporting message to the foreground.
Step 40:MDP transmits described notice reporting message.
MDP is a kind of broadcast mode to the forwarding of notice reporting message, will send to the application program that all have subscribed to this message.
Step 50: client receives this notice reporting message by the asynchronous message interface, analyzes wherein progress indication and progress displaying.
When client receives progress message, if progress indication greater than 0, progress displaying bar then, and total length is set.If the progress indication equals 0, show no progress bar; If the progress indication is less than 0, then progress bar takes a step forward, if control flexibly can be represented to take a step forward with-1 ,-2 expressions were advanced for two steps, and the like.
To 50, can show the progress of service end Processing tasks by step 10 in client, its display effect is consulted shown in Figure 3.
Inquiring about simultaneously for a plurality of clients, then a plurality of wait windows receive progress simultaneously, because MDP transmits the notice reporting message that comprises the progress indication with broadcast mode, may cause the confusion of the progress of different application like this, therefore also need MDP to support a kind of processing of message in addition.
The basic function that MDP provides is request, response, notice reporting.The request response modes is that return messages are directly returned to caller, and notice reporting then is a kind of broadcast mode, and message is sent to the application program that all have subscribed to this message.Therefore need MDP that a kind of function is provided, promptly be a kind of notice reporting mode, and the recipient of appointment is arranged.Under this demand, at first need to revise the API (API) of MDP, increase a method, the permission application program directly is provided with the recipient in the message, send at the service end Processing tasks like this and give the correct time on the such notification, can specify the recipient, the information when the obtaining of recipient can utilize security module to obtain the client login.Certainly also need MDP itself is done some modifications, MDP reads thread and one by one to write thread and constitute, and the thread process flow process of reading of the prior art is consulted shown in Fig. 4 A:
When reading a message,, then subscribe to or go to subscribe to and handle, return then and read message if be judged as subscribe message or go subscribe message; If be judged as response message, search request person then if the requestor is arranged then transmit this message to the recipient, returns then and reads message, if do not have the requestor then directly return and read message; If be notice reporting message, then search the subscribe message storehouse, if this message does not have the subscriber, then return, if the subscriber is arranged then transmit this message to all subscribers.
The reason of revising the recipient allows this flow process enter in the processing of " do not have the requestor, but the recipient is arranged " exactly, and being about to specify has recipient's notice reporting message to handle as special response message.Consult Fig. 4 B, the thread process flow process difference of reading of the present invention is:
If be judged as response message, search request person then, if can not find the recipient, then search the subscribe message storehouse according to the recipient, if have subscription and subscriber consistent, then transmit this message, if do not find suitable subscriber to this subscriber with the recipient, then abandon this message, return then and read message.
Like this, can guarantee that a progress indication only sends to specific client, can not cause the unusual of a plurality of client progress indications, this also is a kind of solution more completely.This method also can further expand in the asynchronous request.Certainly if asynchronous request then owing to can operate simultaneously on the interface, may have a plurality of progress bars and show that simultaneously this just needs some expansions, as in the progress indication except the reflection progress, information such as user that can also additional request or module.
In addition, if only allow user's login in the system once, then can utilize this characteristic to realize client reflection back server end Task Progress, this mode does not need MDP is made an amendment fairly simplely.This method is:
If only allow user's login in the system once, then a dialog box is ejected in the foreground when sending synchronization request message, subscribes to specific message; And the transmission progress that server end does not stop in the process of Processing tasks indication, the progress indication that reports comprises: user name of current login (the perhaps unique identification on a foreground) and progress (comprise user name and progress in the particular content of message, as for embodying with what form, be numeral or character string etc., arrange to get final product) by the AM/BAM of concrete system.After client receives notice reporting message, judge whether the login username or the unique identification that return be consistent with active client, if consistent, then if progress displaying inconsistent, is not then handled.
The shortcoming of this mode is if a plurality of client is being carried out solicit operation simultaneously, then may receive the message of other client progresses of reflection, and this part message need be abandoned.Because client all will compare processing to each notice reporting message, if client is very many, can take a large amount of resource of client.Therefore, for the few application of client, can adopt this mode.
By said method, under the structure of existing iMAP-MDP, can provide progress bar accurately, the implementation progress of reflection background task, thereby the availability of raising system on the foreground of system.

Claims (5)

1, the method for a kind of client of message based distributed platform reflection Task Progress, described message based distributed platform (MDP) utilizes synchronization message interface and asynchronous message interface pass-along message between the client and server end; It is characterized in that the method comprising the steps of:
But the wait window of a progress displaying of client terminal start-up, and pass through the request message that the synchronization message interface sends executable operations;
MDP gives server end with the described request forwards, and server end carries out corresponding task according to described request message to be handled, and sends the notice reporting message that comprises the progress indication in processing procedure;
MDP transmits described notice reporting message, and client receives this notice reporting message by the asynchronous message interface, analyzes wherein progress indication and progress displaying.
2, the method for claim 1, it is characterized in that, a definite specific message number represents to reflect the message of server end progress between the client and server end, client is subscribed to this specific message number when starting the wait window, and goes to subscribe to this specific message number when waiting for close.
3, the method for claim 1, it is characterized in that, when the progress Indication message of a plurality of client query different server ends, server end is specified the recipient in notice reporting message, give this recipient by described message desk with this notice reporting forwards, only send to specific client to guarantee a progress indication.
4, method as claimed in claim 2, it is characterized in that, the unique identification that also comprises the user ID or the client of current login in the progress indication that server end reports, client unique identification according to user ID or client when receiving the notice reporting message that comprises the progress indication judges whether should be the notice reporting message that this client receives, if then handle, otherwise abandon.
As the arbitrary described method of claim 1 to 4, it is characterized in that 5, server end is every carries out a progress point to notice reporting message that comprises the progress indication of client transmission, wherein the progress indication can be and takes a step forward or multistep.
CNB2003101236259A 2003-12-15 2003-12-15 Method for reflecting task progress of message based distributed platform client Expired - Fee Related CN100341270C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101236259A CN100341270C (en) 2003-12-15 2003-12-15 Method for reflecting task progress of message based distributed platform client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101236259A CN100341270C (en) 2003-12-15 2003-12-15 Method for reflecting task progress of message based distributed platform client

Publications (2)

Publication Number Publication Date
CN1630235A true CN1630235A (en) 2005-06-22
CN100341270C CN100341270C (en) 2007-10-03

Family

ID=34844829

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101236259A Expired - Fee Related CN100341270C (en) 2003-12-15 2003-12-15 Method for reflecting task progress of message based distributed platform client

Country Status (1)

Country Link
CN (1) CN100341270C (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100459773C (en) * 2006-08-17 2009-02-04 华为技术有限公司 Method and system for displaying message
WO2011054224A1 (en) * 2009-11-03 2011-05-12 中兴通讯股份有限公司 Client terminal interface machine, service terminal interface machine, and message processing method and system thereof
CN102426579A (en) * 2011-08-25 2012-04-25 中兴通讯股份有限公司 Web mode-based method for importing/exporting file
CN101964739B (en) * 2009-07-22 2014-03-26 ***通信集团公司 Data transmission method, device and system
CN106034113A (en) * 2015-03-12 2016-10-19 阿里巴巴集团控股有限公司 Data processing method and data processing device
CN110023975A (en) * 2016-11-30 2019-07-16 微软技术许可有限责任公司 Task delegation manager and interface
CN110417910A (en) * 2019-08-07 2019-11-05 北京达佳互联信息技术有限公司 Sending method, device, server and the storage medium of notification message
CN113315683A (en) * 2021-06-23 2021-08-27 北京精密机电控制设备研究所 Efficient distributed equipment state management method
CN113435616A (en) * 2017-08-23 2021-09-24 北京嘀嘀无限科技发展有限公司 Travel order information processing method and device
CN113568723A (en) * 2021-06-11 2021-10-29 济南浪潮数据技术有限公司 Method, device and equipment for updating foreground task progress and readable medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6584491B1 (en) * 1999-06-25 2003-06-24 Cisco Technology, Inc. Arrangement for monitoring a progress of a message flowing through a distributed multiprocess system
CN1405709A (en) * 2001-09-18 2003-03-26 英业达股份有限公司 Order-form tracing service system and method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100459773C (en) * 2006-08-17 2009-02-04 华为技术有限公司 Method and system for displaying message
CN101964739B (en) * 2009-07-22 2014-03-26 ***通信集团公司 Data transmission method, device and system
WO2011054224A1 (en) * 2009-11-03 2011-05-12 中兴通讯股份有限公司 Client terminal interface machine, service terminal interface machine, and message processing method and system thereof
CN101729399B (en) * 2009-11-03 2012-06-06 中兴通讯股份有限公司 Client interface machine, server interface machine and method and system for processing messages thereof
CN102426579A (en) * 2011-08-25 2012-04-25 中兴通讯股份有限公司 Web mode-based method for importing/exporting file
CN106034113A (en) * 2015-03-12 2016-10-19 阿里巴巴集团控股有限公司 Data processing method and data processing device
CN110023975A (en) * 2016-11-30 2019-07-16 微软技术许可有限责任公司 Task delegation manager and interface
CN113435616A (en) * 2017-08-23 2021-09-24 北京嘀嘀无限科技发展有限公司 Travel order information processing method and device
CN110417910A (en) * 2019-08-07 2019-11-05 北京达佳互联信息技术有限公司 Sending method, device, server and the storage medium of notification message
CN110417910B (en) * 2019-08-07 2022-04-22 北京达佳互联信息技术有限公司 Notification message sending method, device, server and storage medium
CN113568723A (en) * 2021-06-11 2021-10-29 济南浪潮数据技术有限公司 Method, device and equipment for updating foreground task progress and readable medium
CN113315683A (en) * 2021-06-23 2021-08-27 北京精密机电控制设备研究所 Efficient distributed equipment state management method

Also Published As

Publication number Publication date
CN100341270C (en) 2007-10-03

Similar Documents

Publication Publication Date Title
CN1117333C (en) Providing communication links in a computer network
CN1328736A (en) Method and apparatus for synchronizing information browsing among multiple systems
CN100341270C (en) Method for reflecting task progress of message based distributed platform client
CN1729468A (en) Data synchronization
CN1813451A (en) Actionable messaging
JP5744717B2 (en) Method and device for accessing a directory
CN1113297C (en) Transmitter-receiver for electronic mail system
CN1681248A (en) Method and system for transmitting data for data synchronization between server and client
CN1281611A (en) Communication network
CN1252565A (en) Method and device for user and self adaptive synchronous and conversion service device
CN1826792A (en) Integrated messaging user interface with message-based logging
CN1649369A (en) Smart dial content search
CN1863050A (en) Method of document synchronization between server and system thereof
CN1531239A (en) Re-synchronizing method in wireless specific network environment
CN1407780A (en) Method and device for maintaining course continuance as multiple terminals accessing service content
CN1874254A (en) Method for browsing data based on structure of client end / server end
CN101227379A (en) Method and system for implementation of data synchronization
CN1976322A (en) Method and system for realizing multimedia immediate communicating and control flow
CN100352198C (en) Method and system for processing a request for a plurality of web services
CN1933454A (en) Synchronous information interface realizing method based on JAVA information service
CN1467656A (en) Information sending method and system for instant communication tool
CN1293463C (en) System for group distinctive operation and method
CN1620064A (en) Method, system, and apparatus for scheduling pattern based web services
CN1617499A (en) Method of processing a request for a plurality of web services, server and system
CN1812338A (en) Method of inter master-slave nodal state synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: HUAWEI TECH CO., LTD., SHANGHAI

Free format text: FORMER OWNER: HUAWEI TECHNOLOGY CO., LTD.

Effective date: 20081017

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20081017

Address after: No. 615 Nanjing Road, Shanghai, Pudong New Area

Patentee after: Shanghai Huawei Technologies Co., Ltd.

Address before: Intellectual Property Department, F1-18 building, research center of Bantian HUAWEI headquarters, Longgang District, Shenzhen, Guangdong

Patentee before: Huawei Technologies Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071003

Termination date: 20171215

CF01 Termination of patent right due to non-payment of annual fee