[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110275866A - Exchange method, device, server and the user terminal of file generated process - Google Patents

Exchange method, device, server and the user terminal of file generated process Download PDF

Info

Publication number
CN110275866A
CN110275866A CN201910347330.0A CN201910347330A CN110275866A CN 110275866 A CN110275866 A CN 110275866A CN 201910347330 A CN201910347330 A CN 201910347330A CN 110275866 A CN110275866 A CN 110275866A
Authority
CN
China
Prior art keywords
generated
file
time
user terminal
polling cycle
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
CN201910347330.0A
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.)
Wuhan Zhongbang Bank Co Ltd
Original Assignee
Wuhan Zhongbang Bank 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 Wuhan Zhongbang Bank Co Ltd filed Critical Wuhan Zhongbang Bank Co Ltd
Priority to CN201910347330.0A priority Critical patent/CN110275866A/en
Publication of CN110275866A publication Critical patent/CN110275866A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of exchange methods of file generated process, it include: when receiving the file generated instruction that user terminal reports, calculate the estimated generation time of file to be generated, the estimated generation time is sent to the user terminal, so that the user terminal generates according to the estimated generation time and feeds back the polling cycle of the file to be generated;When reaching the polling cycle at current time, the generation progress of the file to be generated is inquired;The estimated generation time of the file to be generated is updated and returned according to the generation progress, so that the user terminal was updated and fed back the polling cycle according to the updated estimated generation time, until the file generated success to be generated.The invention also discloses interactive device, server, user terminal and the storage mediums of a kind of file generated process.The present invention realizes the low consumption of the accuracy and resource that have both the generation progress that file generated to be generated obtains in the process.

Description

Exchange method, device, server and the user terminal of file generated process
Technical field
The present invention relates to computer field more particularly to a kind of exchange method of file generated process, device, server, User terminal and storage medium.
Background technique
Client is when carrying out the down operation of file, if occurring needing the asynchronous scene for generating file, in order to prompt client It is expected that generating the time, the prompt information for carrying documentary generation progress can be generally shown to client, one is completed between client The information exchange of a simple file generated process.In order to realize that above-mentioned information exchange, general way are that precomputation generates Time or timer poll file whether generate and terminate.However the accuracy that precomputation generates the time is too low, usually in life It shows and is still also needed to wait for when having generated 99% for a long time at the prompt information of progress, inaccurate prompt information will give client Bring misleading waste client's waiting time.And use the method for timer poll by unified fixed shorter polling cycle into Generation progress in row poll All Files generating process, for generating time longer file, the polling cycle of use is shorter Biggish system resource will be consumed.To sum up, there are obtain during file generated for the interactive mode of current file generated process File the accuracy of generation progress and the low consumption of resource the problem of can not having both.
Summary of the invention
The main purpose of the present invention is to provide a kind of exchange method of file generated process, device, server, user are whole End and storage medium, it is intended to solve the low consumption of the accuracy and resource of the generation progress of the file obtained during file generated The problem of property can not have both.
To achieve the above object, the present invention provides a kind of exchange method of file generated process, the friendship of file generated process Mutual method includes: to calculate the estimated generation time of file to be generated when receiving the file generated instruction that user terminal reports, The estimated generation time is sent to the user terminal, so that the user terminal is generated according to the estimated generation time And feed back the polling cycle of the file to be generated;When reaching the polling cycle at current time, inquire described to be generated written The generation progress of part;It the estimated generation time that the file to be generated is updated according to the generation progress, will be updated estimated The generation time is sent to the user terminal, so that the user terminal is looked into described in time update according to updated estimated generate The period is ask, and feeds back updated polling cycle;Return to described when reaching the polling cycle, the inquiry file to be generated Generation progress the step of, until the file generated to be generated success.
Optionally, the step of estimated generation time that the file to be generated is updated according to generation progress packet It includes: obtaining and receiving file generated instruction that user terminal reports up to the generation used time at current time;According to it is described The generation progress for generating used time and the file to be generated calculates and updates the estimated generation time of the file to be generated.
To achieve the above object, the present invention also provides a kind of interactive device of file generated process, the file generated mistakes The interactive device of journey includes: computing module, for calculating to be generated when receiving the file generated instruction that user terminal reports The estimated generation time of file, will it is described it is estimated generate the time and be sent to the user terminal so that the user terminal according to The estimated generation time generates and feeds back the polling cycle of the file to be generated;Enquiry module, for being arrived at current time When up to the polling cycle, the generation progress of the file to be generated is inquired;Update module is used for according to the generation progress more The updated estimated generation time is sent to the user terminal by the estimated generation time of the new file to be generated, so that The user terminal updates the polling cycle according to the updated estimated generation time, and feeds back updated polling cycle; Return module, inquire the generation progress of to be generated file the step of described when reaching the polling cycle for returning, Until the file generated success to be generated.
To achieve the above object, the present invention also provides a kind of server, the server include: memory, processor and It is stored in the interactive program for the file generated process that can be run on the memory and on the processor, the file generated The step of exchange method such as above-mentioned file generated process is realized when the interactive program of process is executed by the processor.
To achieve the above object, the present invention also provides a kind of storage medium, the storage medium includes: memory, processing Device and the interactive program for being stored in the file generated process that can be run on the memory and on the processor, the file The step of exchange method such as above-mentioned file generated process is realized when the interactive program of generating process is executed by the processor.
To achieve the above object, the present invention also provides a kind of exchange method of file generated process, the file generated mistakes The exchange method of journey includes: file generated instruction to be reported to server, so that institute when getting file generated instruction Server is stated when receiving file generated instruction, calculates and feed back the estimated generation time of file to be generated;According to institute Estimated generation time generation progress msg is stated, and generates the inquiry week of the file to be generated according to the estimated generation time The polling cycle is sent to the server by the phase, so that the server is judging that current time reaches the inquiry week When the phase, the generation progress of the file to be generated is inquired, is updated according to the generation progress and feeds back the file to be generated It is expected that generating the time;The progress msg is updated according to the updated estimated generation time, and according to updated estimated generation Time updates the polling cycle, and updated polling cycle is sent to the server, until the file to be generated is raw At success.
Optionally, the progress msg is shown in the form of the temporal information of countdown or countdown progress bar.
To achieve the above object, the present invention also provides a kind of interactive device of file generated process, the file generated mistakes The interactive device of journey includes: reporting module, for when getting file generated instruction, file generated instruction to be reported to Server, so that the server calculates and feed back the pre- family planning of file to be generated when receiving file generated instruction At the time;Information generating module, for according to it is described it is estimated generate the time and generate progress msg, and according to it is described it is estimated generate when Between generate polling cycle of the file to be generated, the polling cycle is sent to the server, so that the server When judging that current time reaches the polling cycle, inquire the generation progress of the file to be generated, according to it is described generate into Degree updates and feeds back the estimated generation time of the file to be generated;Information updating module, for according to updated pre- family planning The progress msg is updated at the time, and the polling cycle is updated according to the updated estimated generation time, it will be updated Polling cycle is sent to the server, until the file generated success to be generated.
To achieve the above object, the present invention also provides a kind of user terminal, the user terminal includes: memory, processing Device and the interactive program for being stored in the file generated process that can be run on the memory and on the processor, the file The step of exchange method such as above-mentioned file generated process is realized when the interactive program of generating process is executed by the processor.
To achieve the above object, the present invention also provides a kind of storage medium, the storage medium includes: memory, processing Device and the interactive program for being stored in the file generated process that can be run on the memory and on the processor, the file The step of exchange method such as above-mentioned file generated process is realized when the interactive program of generating process is executed by the processor.
Exchange method, device, server, user terminal and the storage for the file generated process that the embodiment of the present invention proposes are situated between Matter calculates the estimated generation time of file to be generated, and will be described when receiving the file generated instruction that user terminal reports It is expected that generating the time is sent to the user terminal, so that user terminal generates on the estimation, the time is calculated and feedback query is all Phase inquires the generation progress of the file to be generated when reaching polling cycle, is updated according to the generation progress described to be generated At the estimated generation time of file, the updated estimated generation time is sent to the user terminal, so that the user is whole End updates the polling cycle according to the updated estimated generation time, and feeds back updated polling cycle, according to update The generation that polling cycle inquires file to be generated carries out, until file generated to be generated success, so that polling cycle is always It is maintained at suitable time span corresponding with the generation progress of file to be generated, reduces the consumption of resource, while constantly Inquiry file to be generated generation progress ensure that acquisition generation progress accuracy, had both file generated mistake to be generated The accuracy of the generation progress obtained in journey and the low consumption of resource.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the server for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the exchange method first embodiment of file generated process of the present invention;
Fig. 3 is the refinement flow diagram of the step S206 of the exchange method first embodiment of file generating process in Fig. 2;
Fig. 4 is the structural block diagram of device corresponding with the exchange method first embodiment of file generated process of the present invention;
Fig. 5 is the structural schematic diagram of the user terminal for the hardware running environment that the embodiment of the present invention is related to;
Fig. 6 is the flow diagram of the exchange method second embodiment of file generated process of the present invention;
Fig. 7 is the structural block diagram of device corresponding with the exchange method second embodiment of file generated process of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Fig. 1 is the server architecture schematic diagram for the hardware running environment that the embodiment of the present invention is related to.Server can be with It include: processor 1001, such as CPU, network interface 1003, memory 1004, communication bus 1002.Wherein, communication bus 1002 for realizing the connection communication between these components.Network interface 1003 optionally may include standard wireline interface, Wireless interface (such as WI-FI interface).Memory 1004 can be high speed RAM memory, be also possible to stable memory (non- Volatile memory), such as magnetic disk storage.Memory 1004 optionally can also be independently of aforementioned processor 1001 Storage device.It will be understood by those skilled in the art that server architecture shown in Fig. 1 does not constitute the limit to server It is fixed, it may include perhaps combining the different arrangements of certain components or component than illustrating more or fewer components.Server It can be realized with the server cluster of the either multiple server compositions of independent server.
As may include operating system, network communication module, use in a kind of memory 1004 of computer storage medium The interactive program of family interface module and file generated process.Network interface 1003 is mainly used for connecting user terminal, with user Terminal carries out data communication;And processor 1001 can be used for calling the interaction of the file generated process stored in memory 1004 Program, and execute following operation: when receiving the file generated instruction that user terminal reports, calculate the estimated of file to be generated The time is generated, the estimated generation time is sent to the user terminal, so that the user terminal is according to the pre- family planning The polling cycle of the file to be generated is generated and fed back at the time;When reaching the polling cycle at current time, institute is inquired State the generation progress of file to be generated;It the estimated generation time that the file to be generated is updated according to the generation progress, will more The estimated generation time after new is sent to the user terminal, so that the user terminal is according to the updated estimated generation time The polling cycle is updated, and feeds back updated polling cycle;Described in returning when reaching the polling cycle, described in inquiry The step of generation progress of file to be generated, until the file generated success to be generated.
Optionally, the step of estimated generation time that the file to be generated is updated according to generation progress packet It includes: obtaining and receiving file generated instruction that user terminal reports up to the generation used time at current time;According to it is described The generation progress for generating used time and the file to be generated calculates and updates the estimated generation time of the file to be generated.
Referring to Fig. 2, a kind of exchange method first embodiment of file generated process, the interaction side of the file generated process Method includes:
Step S202 calculates the pre- family planning of file to be generated when receiving the file generated instruction that user terminal reports At the time, the estimated generation time is sent to the user terminal, so that the user terminal is according to the estimated generation Time generates and feeds back the polling cycle of the file to be generated;
Wherein, file to be generated is the indicated corresponding file to be generated of file generated instruction.The present embodiment does not limit The content and format of file to be generated, for example, can be text (Text, txt) file, document (DOCument, doc) file, can Transplant document (Portable Document Format, pdf) and diagram file etc..In the present embodiment, using content as bank It is illustrated for the file of data.Wherein, bank data can be, but not limited to be bank's flowing water, bank transaction data and sign Letter data etc..
When user needs to check the bank data of oneself, file generated can be issued by operating the interface of user terminal Instruction, after file generated instruction is reported to server by user terminal, server starts to generate the bank data for carrying user File file is then returned into user terminal after file generated success, exported by the display screen of user terminal clear for user It lookes at, wherein the file for carrying the bank data of user is that the file generated issued with user's operation user terminal instructs relatively The file to be generated answered.In the generating process of file to be generated, by the processing of user terminal and server, use can be passed through Family terminal generates progress msg, to prompt the generation progress of user's file to be generated.
Server is when receiving the file generated instruction that user terminal reports, when calculating the estimated generation of file to be generated Between.Specifically, server obtains the total data size of the file to be generated to be written, according to the total data size and presets Rule calculates the estimated generation time of the file to be generated.Wherein, preset rules are obtained by test in advance.Specifically, in advance If rule is the numerical value corresponding relationship of the estimated total data size for generating time and the file to be generated to be written.For example, root According to multiple test obtain size of data be respectively 10,20,30 datas corresponding the generations time be 2 seconds, 3 seconds, 4 seconds, then It is expected that generating total data size/10 of time=1+ file to be generated to be written.
Further, the estimated generation time is sent to the user terminal by server, so that user terminal generates on the estimation Time generates the polling cycle of file to be generated and polling cycle will feed back to server.Specifically, user terminal is on the estimation Big minizone where generating the time generates corresponding polling cycle.For example, the time is generated in the first range intervals when estimated, Corresponding polling cycle is constant.The time is generated in the second range intervals when estimated, polling cycle=estimated generation time/N, Wherein, N is the positive number greater than 1.More specifically, the value of N is determined according to the subdivided interval of the second range intervals.Such as when estimated The time is generated in the second range intervals, if N value is 2, if it is expected that generating it is expected that generating the time falls into third range intervals Time falls into the 4th range intervals, then N value is 3 etc..Polling cycle acquisition modes through this embodiment, can be on the estimation Generate time selection most suitable polling cycle.
In the present embodiment, after it will be sent to the user terminal the estimated generation time, also user terminal is given birth on the estimation Corresponding progress msg is generated at the time.The progress msg is browsed by the display screen output of user terminal for user.At it In middle one embodiment, progress msg is shown in the form of the temporal information of countdown or countdown progress bar.Progress letter When breath is shown in the form of the temporal information of countdown, for example, if user terminal is raw it is expected that generating the time is 5 minutes At " file generated remaining the time required to 5 minutes " text prompt information and show, the present embodiment is not believed the time of countdown The particular content of breath makees specific limit.When progress msg is shown in the form of countdown progress bar, terminal is according to be generated The progress of file generates the progress of countdown progress bar, when user terminal receives the initial estimated generation time, countdown The progress of progress bar is 0%, and specific limit is not made in the appearance to countdown progress bar and position to the present embodiment.
Step S204 inquires the generation progress of the file to be generated when reaching the polling cycle at current time;
Server when judging that current time reaches polling cycle, call query interface inquire the generation of file to be generated into Degree.Specifically, server inquiry has been written into the written data size of file to be generated, according to written data size and to be written The total data size for entering file to be generated obtains the generation progress of file to be generated.Wherein, generating progress is that written data is big The percentage of little Zhan total data size.In the present embodiment, written data size is denoted as M1, total data size is denoted as M, then gives birth to At progress R=M1/M。
Step S206 updates the estimated generation time of the file to be generated according to the generation progress, will be updated It is expected that generating the time is sent to the user terminal, so that the user terminal updates institute according to the updated estimated generation time Polling cycle is stated, and feeds back updated polling cycle;
Server recalculates according to generation progress and updates the estimated generation time of file to be generated.
Referring to Fig. 3, specifically, step S206 includes: in one of the embodiments,
Step S302 is obtained and is used receiving the generation of file generated instruction that user terminal reports up to current time When;
Step S304, calculated according to the generation progress for having generated used time and the file to be generated and update it is described to Generate the estimated generation time of file.
Specifically, server utilizes formula (1) according to the generation progress for having generated used time and the file to be generated Calculate and update the estimated generation time of file to be generated:
T0=T/R-T (1)
Wherein, T0The time is generated to be estimated, T is to have generated the used time, and R is generation progress.
Further, server will it is updated it is estimated generate the time and be sent to the user terminal so that user terminal according to The updated estimated generation time updates polling cycle, and feeds back updated polling cycle.In addition, user terminal is receiving When the updated estimated generation time, progress msg is also updated.Wherein, user terminal updates polling cycle and updates progress msg Method with described in step S202, details are not described herein.
Step S208, return step S204, until the file generated success to be generated.
Server constantly inquires the generation progress of file to be generated according to new polling cycle, and updates it is expected that when generating Between, so that user terminal constantly updates progress msg, and update polling cycle.When file generated to be generated success, stop Circulation.In the present embodiment, the generation progress of file to be generated is inquired in server, it, will when judging file generated to be generated success The successful information of file generated to be generated feeds back to user terminal, so that progress msg is updated to carry file by user terminal Generate the display information of successful information.
In the present embodiment, when receiving the file generated instruction that user terminal reports, the estimated of file to be generated is calculated The time is generated, and the estimated generation time is sent to the user terminal, so that user terminal generates the time on the estimation The simultaneously feedback query period is calculated, the generation progress of the file to be generated is inquired when reaching polling cycle, according to the generation Progress updates the estimated generation time of the file to be generated, and it is whole that the updated estimated generation time is sent to the user Updated look into so that the user terminal updates the polling cycle according to the updated estimated generation time, and is fed back in end The period is ask, is carried out according to the generation that the polling cycle of update inquires file to be generated, until file generated to be generated success, thus So that polling cycle remains at suitable time span corresponding with the generation progress of file to be generated, resource is reduced Consumption, while the generation progress for constantly inquiring file to be generated ensure that the accuracy of the generation progress of acquisition, have both The accuracy of the generation progress obtained during file generated to be generated and the low consumption of resource.
Referring to Fig. 4, the embodiment of the present invention also proposes a kind of interactive device of file generated process, the file generated process Interactive device include:
Computing module 410, for calculating file to be generated when receiving the file generated instruction that user terminal reports It is expected that generating the time, the estimated generation time is sent to the user terminal, so that the user terminal is according to described pre- Family planning generates at the time and feeds back the polling cycle of the file to be generated;
Enquiry module 420, for inquiring the generation of the file to be generated when reaching the polling cycle at current time Progress;
Update module 430 will more for updating the estimated generation time of the file to be generated according to the generation progress The estimated generation time after new is sent to the user terminal, so that the user terminal is according to the updated estimated generation time The polling cycle is updated, and feeds back updated polling cycle;
Return module 440, it is described when reaching the polling cycle for returning, inquire the generation of the file to be generated The step of progress, until the file generated success to be generated.
Optionally, the enquiry module 420 is also used to obtain when receiving the file generated instruction that user terminal reports To the generation used time at current time;It calculates and updates according to the generation progress for having generated used time and the file to be generated The estimated generation time of the file to be generated.
The embodiment of the present invention also proposes that a kind of server, the server include: memory, processor and be stored in described On memory and the interactive program of file generated process that can run on the processor, the interaction of the file generated process The step of exchange method first embodiment such as above-mentioned file generated process is realized when program is executed by the processor.
The embodiment of the present invention also proposes that a kind of storage medium, the storage medium include: memory, processor and be stored in On the memory and the interactive program of file generated process that can run on the processor, the file generated process The step of exchange method first embodiment such as above-mentioned file generated process is realized when interactive program is executed by the processor.
Fig. 5 is the user terminal structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to.User terminal It may include: processor 5001, such as CPU, network interface 5004, user interface 5003, memory 5005, communication bus 5002.Wherein, communication bus 5002 is for realizing the connection communication between these components.User interface 5003 may include display Shield (Display), input unit such as keyboard (Keyboard) etc..Optionally user interface 5003 can also include having for standard Line interface, wireless interface.Network interface 5004 optionally may include that (such as WI-FI connects standard wireline interface and wireless interface Mouthful).Network interface 5004 is mainly used for connecting server, carries out data communication with server.Memory 5005 can be high speed RAM memory is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 5005 It optionally can also be the storage device independently of aforementioned processor 5001.
Optionally, user terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, Voicefrequency circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically Ground, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to the bright of ambient light The brightness of display screen secretly is adjusted, proximity sensor can close display screen and/or back when mobile subscriber terminal is moved in one's ear Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions Size can detect that size and the direction of gravity when static, the application that can be used to identify mobile subscriber terminal posture is (such as vertical and horizontal Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;Certainly, mobile User terminal can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, herein no longer It repeats.User terminal can be, but not limited to be various personal computers, laptop, smart phone, tablet computer, e-book Reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard Audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert Compression standard audio level 4) the packaged type subscriber terminal equipment having a display function such as player, portable computer.Ability Field technique personnel are appreciated that user terminal structure shown in Fig. 5 does not constitute the restriction to user terminal, may include ratio More or fewer components are illustrated, the different arrangements of certain components or component are perhaps combined.
As may include operating system, network communication module, use in a kind of memory 5005 of computer storage medium The interactive program of family interface module and file generated process.Processor 5001 can be used for calling to be stored in memory 5005 The interactive program of file generated process, and execute following operation: when getting file generated instruction, the file generated is referred to Order reports to server, so that the server calculates when receiving file generated instruction and feeds back file to be generated The estimated generation time;Progress msg is generated according to the estimated generation time, and institute is generated according to the estimated generation time The polling cycle is sent to the server by the polling cycle for stating file to be generated, so that the server is worked as in judgement When the preceding moment reaches the polling cycle, the generation progress of the file to be generated is inquired, is updated simultaneously according to the generation progress Feed back the estimated generation time of the file to be generated;The progress msg is updated according to the updated estimated generation time, and The polling cycle is updated according to the updated estimated generation time, updated polling cycle is sent to the server, Until the file generated success to be generated.
Optionally, the progress msg is shown in the form of the temporal information of countdown or countdown progress bar.
Referring to Fig. 6, a kind of exchange method second embodiment of file generated process, the interaction side of the file generated process Method includes:
File generated instruction is reported to server, so that institute when getting file generated instruction by step S602 Server is stated when receiving file generated instruction, calculates and feed back the estimated generation time of file to be generated;
User terminal obtains file generated instruction.Specifically, user terminal can be according to the operation of user to user terminal Generate corresponding file generated instruction.User terminal can also be instructed by receiving the file generated that other equipment are sent.Into One step, file generated instruction is reported to server by user terminal, so that the server is receiving the file When generating instruction, calculates the estimated generation time of file to be generated and estimated will generate time feedbacking to user terminal.
Step S604 generates progress msg according to the estimated generation time, and is generated according to the estimated generation time The polling cycle is sent to the server by the polling cycle of the file to be generated, so that the server is judging When current time reaches the polling cycle, the generation progress of the file to be generated is inquired, is updated according to the generation progress And feed back the estimated generation time of the file to be generated;
User terminal generates the corresponding progress msg of time generation when receiving the estimated generation time on the estimation.Institute Progress msg is stated to browse by the display screen output of user terminal for user.Progress msg is in one of the embodiments, to fall The temporal information of timing or the form of countdown progress bar are shown.Progress msg in the form of the temporal information of countdown into When row is shown, for example, if user terminal generates " the remaining required time of file generated 5 minutes " it is expected that generating the time is 5 minutes Text prompt information and show, the present embodiment does not make specific limit to the particular content of the temporal information of countdown.Progress letter Breath is in the form of countdown progress bar when being shown, terminal according to the progress of file to be generated generate countdown progress bar into Degree, when user terminal receives the initial estimated generation time, the progress of countdown progress bar is 0%, and the present embodiment is not right Specific limit is made in the appearance of countdown progress bar and position.
User terminal generates the inquiry of file to be generated also according to the estimated generation time when receiving the estimated generation time Period simultaneously will feed back to server polling cycle.Specifically, the big minizone where user terminal generates the time on the estimation is raw At corresponding polling cycle.For example, generating the time in the first range intervals when estimated, corresponding polling cycle is constant.When It is expected that the time is generated in the second range intervals, polling cycle=estimated generation time/N, wherein N is the positive number greater than 1.More Specifically, the value of N is determined according to the subdivided interval of the second range intervals.Such as the time is generated in the second range intervals when estimated When, if N value is 2 it is expected that generating the time falls into third range intervals, if it is expected that generating the time falls into the 4th range intervals, Then N value is 3 etc..It is most suitable can to generate time selection on the estimation for polling cycle acquisition modes through this embodiment Polling cycle.
Further, the polling cycle is sent to the server by user terminal, so that the server is judging When current time reaches the polling cycle, the generation progress of the file to be generated is inquired, is updated according to the generation progress Updated sentence is simultaneously generated time feedbacking to user terminal by the estimated generation time of the file to be generated.
Step S606 updates the progress msg according to the updated estimated generation time, and according to updated estimated The time update polling cycle is generated, updated polling cycle is sent to the server, until described to be generated written Part generates successfully.
User terminal constantly updates polling cycle according to the new estimated generation time, and updated polling cycle is sent to Server, so that server constantly updates the estimated time feedbacking that generates to user terminal.User terminal simultaneously can continuous basis The new estimated generation time updates progress msg, and is further shown by the display screen of user terminal, allows a user to Enough generation progresses for obtaining file to be generated in real time.Progress msg is in one of the embodiments, with the temporal information of countdown Or the form of countdown progress bar is shown.
In the present embodiment, when getting file generated instruction, file generated instruction is reported to clothes by user terminal Business device, so that the server calculates and feed back the estimated generation of file to be generated when receiving file generated instruction Time, user terminal generates the time on the estimation and generates progress msg, and calculates polling cycle and feed back to server, so that service When device judges that current time reaches polling cycle, updates and expect that the generation time returns to user terminal, user terminal is according to update Sentence generate the time and update progress msg, and update polling cycle and feed back to server, by the operation of circulation so that user The carry out information that terminal generates is constantly updated, and ensure that the accuracy of progress msg, while polling cycle can protect always Suitable time span corresponding in generation progress with file to be generated is held, the consumption of resource is reduced, has had both to be generated At the accuracy of the generation progress obtained in file generating process and the low consumption of resource.
Referring to Fig. 7, the embodiment of the present invention also proposes a kind of interactive device of file generated process, the file generated process Interactive device include:
Reporting module 710, for when getting file generated instruction, file generated instruction to be reported to service Device so that the server receive the file generated instruction when, when calculating and feeding back the estimated generation of file to be generated Between;
Information generating module 720, for generating progress msg according to the estimated generation time, and according to the pre- family planning The polling cycle is sent to the server by the polling cycle that the file to be generated is generated at the time, so that the clothes Business device inquires the generation progress of the file to be generated, according to the life when judging that current time reaches the polling cycle The estimated generation time of the file to be generated is updated and fed back at progress;
Information updating module 730, for updating the progress msg according to the updated estimated generation time, and according to more The estimated generation time after new updates the polling cycle, and updated polling cycle is sent to the server, until institute State file generated success to be generated.
Optionally, the progress msg is shown in the form of the temporal information of countdown or countdown progress bar.
The embodiment of the present invention also proposes that a kind of user terminal, the user terminal include: memory, processor and be stored in On the memory and the interactive program of file generated process that can run on the processor, the file generated process The step of exchange method second embodiment such as above-mentioned file generated process is realized when interactive program is executed by the processor.
The embodiment of the present invention also proposes that a kind of storage medium, the storage medium include: memory, processor and be stored in On the memory and the interactive program of file generated process that can run on the processor, the file generated process The step of exchange method second embodiment such as above-mentioned file generated process is realized when interactive program is executed by the processor.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of exchange method of file generated process, which is characterized in that the exchange method of the file generated process include with Lower step:
When receiving the file generated instruction that user terminal reports, the estimated generation time of file to be generated is calculated, it will be described It is expected that generating the time is sent to the user terminal, so that the user terminal was generated and fed back according to the estimated generation time The polling cycle of the file to be generated;
When reaching the polling cycle at current time, the generation progress of the file to be generated is inquired;
The estimated generation time that the file to be generated is updated according to the generation progress, by updated estimated generation time hair It send to the user terminal, so that the user terminal updates the polling cycle according to the updated estimated generation time, and Feed back updated polling cycle;
The step of return is described when reaching the polling cycle, inquires the generation progress of the file to be generated, until described in File generated success to be generated.
2. the exchange method of file generated process as described in claim 1, which is characterized in that described according to the generation progress The step of updating the estimated generation time of the file to be generated include:
It obtains and is receiving file generated instruction that user terminal reports up to the generation used time at current time;
It is calculated according to the generation progress for having generated used time and the file to be generated and updates the pre- of the file to be generated Family planning is at the time.
3. a kind of interactive device of file generated process, which is characterized in that the interactive device of the file generated process includes:
Computing module, for calculating the pre- family planning of file to be generated when receiving the file generated instruction that user terminal reports At the time, the estimated generation time is sent to the user terminal, so that the user terminal is according to the estimated generation Time generates and feeds back the polling cycle of the file to be generated;
Enquiry module, for inquiring the generation progress of the file to be generated when reaching the polling cycle at current time;
Update module will be updated for updating the estimated generation time of the file to be generated according to the generation progress It is expected that generating the time is sent to the user terminal, so that the user terminal updates institute according to the updated estimated generation time Polling cycle is stated, and feeds back updated polling cycle;
Return module, it is described when reaching the polling cycle for returning, inquire the generation progress of the file to be generated Step, until the file generated success to be generated.
4. a kind of server, which is characterized in that the server includes: memory, processor and is stored on the memory And the interactive program for the file generated process that can be run on the processor, the interactive program of the file generated process is by institute State the step of realizing the exchange method of file generated process as claimed in claim 1 or 2 when processor executes.
5. a kind of storage medium, which is characterized in that the interactive program of file generated process is stored on the storage medium, it is described The interactive program of file generated process realizes the friendship of file generated process as claimed in claim 1 or 2 when being executed by processor The step of mutual method.
6. a kind of exchange method of file generated process, which is characterized in that the exchange method of the file generated process include with Lower step:
When getting file generated instruction, file generated instruction is reported into server, so that the server is connecing When receiving file generated instruction, the estimated generation time of file to be generated is calculated and fed back;
Progress msg is generated according to the estimated generation time, and the file to be generated is generated according to the estimated generation time Polling cycle, the polling cycle is sent to the server so that the server judging current time reach institute When stating polling cycle, the generation progress of the file to be generated is inquired, is updated and is fed back described to be generated according to the generation progress At the estimated generation time of file;
The progress msg is updated according to the updated estimated generation time, and institute is updated according to the updated estimated generation time Polling cycle is stated, updated polling cycle is sent to the server, until the file generated success to be generated.
7. the exchange method of file generated process as claimed in claim 6, which is characterized in that the progress msg is with countdown Temporal information or the form of countdown progress bar shown.
8. a kind of interactive device of file generated process, which is characterized in that the interactive device of the file generated process includes:
Reporting module, for file generated instruction being reported to server, so that institute when getting file generated instruction Server is stated when receiving file generated instruction, calculates and feed back the estimated generation time of file to be generated;
Information generating module for generating progress msg according to the estimated generation time, and expects to generate the time according to described The polling cycle is sent to the server by the polling cycle for generating the file to be generated, so that the server exists When judging that current time reaches the polling cycle, the generation progress of the file to be generated is inquired, according to the generation progress Update and feed back the estimated generation time of the file to be generated;
Information updating module, for updating the progress msg according to the updated estimated generation time, and according to updated It is expected that generating the time updates the polling cycle, updated polling cycle is sent to the server, until described to be generated At file generated success.
9. a kind of user terminal, which is characterized in that the user terminal includes: memory, processor and is stored in the storage On device and the interactive program of file generated process that can run on the processor, the interactive program of the file generated process The step of exchange method of file generated process as claimed in claims 6 or 7 is realized when being executed by the processor.
10. a kind of storage medium, which is characterized in that be stored with the interactive program of file generated process, institute on the storage medium It states and realizes file generated process as claimed in claims 6 or 7 when the interactive program of file generated process is executed by processor The step of exchange method.
CN201910347330.0A 2019-04-25 2019-04-25 Exchange method, device, server and the user terminal of file generated process Pending CN110275866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910347330.0A CN110275866A (en) 2019-04-25 2019-04-25 Exchange method, device, server and the user terminal of file generated process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910347330.0A CN110275866A (en) 2019-04-25 2019-04-25 Exchange method, device, server and the user terminal of file generated process

Publications (1)

Publication Number Publication Date
CN110275866A true CN110275866A (en) 2019-09-24

Family

ID=67959638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910347330.0A Pending CN110275866A (en) 2019-04-25 2019-04-25 Exchange method, device, server and the user terminal of file generated process

Country Status (1)

Country Link
CN (1) CN110275866A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115693A (en) * 2020-09-25 2020-12-22 平安国际智慧城市科技股份有限公司 Method and device for exporting Word document with dynamic rendering chart and computer equipment
CN112684958A (en) * 2021-03-11 2021-04-20 荣耀终端有限公司 Order state tracking method and electronic equipment
CN113015002A (en) * 2021-03-04 2021-06-22 天九共享网络科技集团有限公司 Processing method and device for anchor video data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090144822A1 (en) * 2007-11-30 2009-06-04 Barracuda Inc. Withholding last packet of undesirable file transfer
CN105208107A (en) * 2015-08-28 2015-12-30 小米科技有限责任公司 File downloading method, device, intelligent terminal and downloading device
CN105224643A (en) * 2015-09-28 2016-01-06 小米科技有限责任公司 Logistics information querying method and device
US20170316384A1 (en) * 2016-04-28 2017-11-02 Matt Person Methods and systems for scheduling and managing manicure/pedicure appointments and payments
CN109213512A (en) * 2018-08-15 2019-01-15 中国平安人寿保险股份有限公司 Offline packet loading method, system, terminal and readable storage medium storing program for executing
CN109375968A (en) * 2018-08-28 2019-02-22 苏州浪潮智能软件有限公司 A kind of file uploading method that can graphically interact
CN109561146A (en) * 2018-11-29 2019-04-02 深圳市买买提信息科技有限公司 Document down loading method, device, terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090144822A1 (en) * 2007-11-30 2009-06-04 Barracuda Inc. Withholding last packet of undesirable file transfer
CN105208107A (en) * 2015-08-28 2015-12-30 小米科技有限责任公司 File downloading method, device, intelligent terminal and downloading device
CN105224643A (en) * 2015-09-28 2016-01-06 小米科技有限责任公司 Logistics information querying method and device
US20170316384A1 (en) * 2016-04-28 2017-11-02 Matt Person Methods and systems for scheduling and managing manicure/pedicure appointments and payments
CN109213512A (en) * 2018-08-15 2019-01-15 中国平安人寿保险股份有限公司 Offline packet loading method, system, terminal and readable storage medium storing program for executing
CN109375968A (en) * 2018-08-28 2019-02-22 苏州浪潮智能软件有限公司 A kind of file uploading method that can graphically interact
CN109561146A (en) * 2018-11-29 2019-04-02 深圳市买买提信息科技有限公司 Document down loading method, device, terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李文静: ""目录 项目群前期文件行政报批进度管理研究"", 《南开大学》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115693A (en) * 2020-09-25 2020-12-22 平安国际智慧城市科技股份有限公司 Method and device for exporting Word document with dynamic rendering chart and computer equipment
CN113015002A (en) * 2021-03-04 2021-06-22 天九共享网络科技集团有限公司 Processing method and device for anchor video data
CN112684958A (en) * 2021-03-11 2021-04-20 荣耀终端有限公司 Order state tracking method and electronic equipment

Similar Documents

Publication Publication Date Title
CN105388931B (en) The devices and methods therefor of undulated control device performance based on internal temperature
CN106548364B (en) Information sending method and device
CN103403644B (en) The delay of computer is closed down
WO2018113409A1 (en) Method and device for loading startup resource
CN104246748B (en) System and method for determining situation
US20170041272A1 (en) Electronic device and method for transmitting and receiving content
CN108470253B (en) User identification method and device and storage equipment
CN110096344A (en) Task management method, system, server cluster and computer-readable medium
CN107924527A (en) Advertisement is shown in application launcher
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN105009024A (en) Conserving battery and data usage
US20170270433A1 (en) Information processing apparatus, information processing system, information processing method, and computer-readable recording medium
CN109146446B (en) Virtual article issuing method, device and system
CN108337326A (en) Opportunistic network updates
TW201015438A (en) Targeted instant messenger behaviors employed for optimization of a client
CN110275866A (en) Exchange method, device, server and the user terminal of file generated process
CN111247782B (en) Method and system for automatically creating instant AD-HOC calendar events
CN107037966A (en) Sense the electronic equipment and method of operating an electronic device of the pressure of input
CN111435377B (en) Application recommendation method, device, electronic equipment and storage medium
CN106471481A (en) The method of sharing application program and its electronic installation
CN107807940B (en) Information recommendation method and device
CN101180865A (en) Methods, systems and computer program products for displaying video content with aging
EP3374860B1 (en) Communicating information about an update of an application
CN109688175A (en) Resource packet distribution method, resource packet acquisition methods, device and storage medium
US20140358659A1 (en) Electronic commerce apparatus, privilege control method, privilege control program, and computer readable storage medium for storing program

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: 20190924

RJ01 Rejection of invention patent application after publication