Nothing Special   »   [go: up one dir, main page]

CN105786863B - For the method, apparatus and platform of file write-back process token effective time to be arranged - Google Patents

For the method, apparatus and platform of file write-back process token effective time to be arranged Download PDF

Info

Publication number
CN105786863B
CN105786863B CN201410814504.7A CN201410814504A CN105786863B CN 105786863 B CN105786863 B CN 105786863B CN 201410814504 A CN201410814504 A CN 201410814504A CN 105786863 B CN105786863 B CN 105786863B
Authority
CN
China
Prior art keywords
write
file
back process
file write
token
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.)
Active
Application number
CN201410814504.7A
Other languages
Chinese (zh)
Other versions
CN105786863A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201410814504.7A priority Critical patent/CN105786863B/en
Publication of CN105786863A publication Critical patent/CN105786863A/en
Application granted granted Critical
Publication of CN105786863B publication Critical patent/CN105786863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a kind of for the method, apparatus and platform of file write-back process token effective time to be arranged.This method comprises: obtaining the current write-back parameter of file write-back process, wherein new session application is issued after file write-back process is interrupted when receiving the new session application of file write-back process transmission;When getting current write-back parameter, token effective time is obtained according to current write-back parameter;According to the token effective time of acquisition, the new session with token effective time is created;The new session is distributed into file write-back process, so that file write-back process continues to upload files to cloud storage space according to new session.The present invention passes through to the different file write-back processes being interrupted, carry out the different settings of reasonable token duration, to reduce the response times that cloud storage platform requests file write-back process application token, reduce the number that file write-back process is interrupted, improves the concurrency of cloud storage platform processes file write-back process.

Description

For the method, apparatus and platform of file write-back process token effective time to be arranged
Technical field
It is the present invention relates to cloud storage field, in particular to a kind of for the side of file write-back process token effective time to be arranged Method, device and platform.
Background technique
When file write-back process is to cloud storage platform write-back file, Documents Comparison is big sometimes, and the process of write-back can consume When it is long, be easy to cause the session session of file write-back process to fail, so that file write-back process interrupt.
In the prior art, cloud storage platform uses the mechanism of the token token duration unified distribution to file write-back process, The distribution of differentiation token duration is not carried out for the file write-back process being each interrupted, to increase file write-back process The number being interrupted increases the number of cloud storage platform distribution token, increases the reply process burden of cloud storage platform.
Summary of the invention
In view of the above technical problem, the present invention provides a kind of for the side of file write-back process token effective time to be arranged Method, device and platform, the different durations of the token by the way that each file write-back process is set dynamically, reduce file write-back process It is interrupted number, improves the concurrency of cloud storage platform processes file write-back process.
According to an aspect of the present invention, provide it is a kind of for the method for file write-back process token effective time to be arranged, Include:
When receiving the new session application of file write-back process transmission, the current write-back ginseng of file write-back process is obtained Number, wherein after file write-back process is interrupted during uploading files to cloud storage space, issue the new session Shen Please;
When getting current write-back parameter, token effective time is obtained according to current write-back parameter;
According to the token effective time of acquisition, the new session with token effective time is created;
New session with token effective time is distributed into file write-back process, so that file write-back process is according to new meeting Words continue to upload files to cloud storage space.
In one embodiment of the invention, the step of current write-back parameter of acquisition file write-back process includes:
The current residual file size of file write-back process is obtained from write-back task list;
Estimation file write-back process resumption uploads files to estimated uploading rate when cloud storage space.
In one embodiment of the invention, token effective time is obtained according to the current write-back parameter of file write-back process The step of include:
When according to the current residual file size of file write-back process and effective estimated uploading rate acquisition token It is long.
In one embodiment of the invention, the method also includes:
At the end of file write-back process is interrupted or uploads, it is renewed back to the parameter information of writing task table, wherein the ginseng Number information includes current residual file size.
In one embodiment of the invention, estimate pre- when file write-back process resumption uploads files to cloud storage space Count uploading rate the step of include:
The average uploading rate before file write-back process is interrupted in the predetermined time is obtained as the estimated uploading rate.
According to another aspect of the present invention, provide it is a kind of for the device of file write-back process token effective time to be arranged, Module, session distribution module are obtained including write-back parameter acquisition module, token duration, in which:
Write-back parameter acquisition module, for obtaining file when receiving the new session application of file write-back process transmission The current write-back parameter of write-back process, wherein file write-back process is interrupted during uploading files to cloud storage space Afterwards, the new session application is issued;
Token duration obtains module, for when write-back parameter acquisition module gets current write-back parameter, according to current Write-back parameter obtains token effective time;
Session distribution module, for obtaining the token effective time that module obtains according to token duration, creation has token The new session of effective time;And the new session with token effective time is distributed into file write-back process, so as to file write-back Process continues to upload files to cloud storage space according to new session.
In one embodiment of the invention, write-back parameter acquisition module includes that file size acquiring unit and rate obtain Unit, in which:
File size acquiring unit, for obtaining the current residual file size of file write-back process from write-back task list;
Rate acquiring unit, estimated upload when for estimating that file write-back process resumption uploads files to cloud storage space Rate.
In one embodiment of the invention, token duration obtains module and is specifically used for according to the current of file write-back process Remaining file size and the estimated uploading rate obtain token effective time.
In one embodiment of the invention, described device further includes task list update module, in which:
Task list update module, for being renewed back to writing task table at the end of file write-back process is interrupted or uploads Parameter information, wherein the parameter information includes current residual file size.
In one embodiment of the invention, rate acquiring unit is specifically used for obtaining pre- before file write-back process is interrupted Average uploading rate in fixing time is as the estimated uploading rate.
According to another aspect of the present invention, provide it is a kind of for the platform of file write-back process token effective time to be arranged, Including process interrupt device, file reception device, cloud storage space and token duration, device is set, in which:
Process interrupt device, for interrupting file write-back process;
File reception device, for receiving the file stream of file write-back process upload;
Cloud storage space, the file stream received for storage file reception device;
Device is arranged in token duration, is any of the above-described as described in the examples effective for file write-back process token to be arranged The device of duration.
In one embodiment of the invention, the process interrupt device includes identification module and process interrupt module, In:
Identification module after transmitting file, judges that uplink time is on cloud storage space for starting in file write-back process No has been more than token effective time;
Process interrupt module has been more than token effective time in uplink time for the judging result according to identification module When, interrupt file write-back process.
The present invention is directed to the different file write-back processes being interrupted, and carries out the different settings of reasonable token duration, thus Reduce the response times that cloud storage platform requests file write-back process application token, reduces file write-back process and be interrupted Number, improve the concurrency of cloud storage platform processes file write-back process.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the schematic diagram of the method one embodiment of the present invention for file write-back process token effective time to be arranged.
Fig. 2 is the schematic diagram of method another embodiment of the present invention for file write-back process token effective time to be arranged.
Fig. 3 is the schematic diagram of the device one embodiment of the present invention for file write-back process token effective time to be arranged.
Fig. 4 is the schematic diagram of device another embodiment of the present invention for file write-back process token effective time to be arranged.
Fig. 5 is the schematic diagram of device another embodiment of the present invention for file write-back process token effective time to be arranged.
Fig. 6 is the schematic diagram of the platform one embodiment of the present invention for file write-back process token effective time to be arranged.
Fig. 7 is the schematic diagram of process interrupt device in one embodiment of the invention.
Fig. 8 is the schematic diagram of method another embodiment of the present invention for file write-back process token effective time to be arranged.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Below Description only actually at least one exemplary embodiment be it is illustrative, never as to the present invention and its application or make Any restrictions.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Unless specifically stated otherwise, positioned opposite, the digital table of the component and step that otherwise illustrate in these embodiments It is not limited the scope of the invention up to formula and numerical value.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality Proportionate relationship draw.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
Fig. 1 is the schematic diagram of the method one embodiment of the present invention for file write-back process token effective time to be arranged. Preferably, the present embodiment can be executed by the present invention for the device of file write-back process token effective time to be arranged.This method packet Include following steps:
Step 101, it when receiving the new session session application of file write-back process transmission, obtains file and is written back into The current write-back parameter of journey, wherein after file write-back process is interrupted during uploading files to cloud storage space, issue The new session application.
In one embodiment of the invention, file write-back process start to cloud storage spatially transmitting file when, due to upper The file of biography is sometimes excessive, and the overlong time for causing file write-back process to upload, has been more than the available time of token token, So that file write-back process is interrupted.
In one embodiment of the invention, in step 101, obtain file write-back process current write-back parameter the step of It may include: the current residual file size that file write-back process is obtained from write-back task list;Estimate file write-back process resumption Upload files to estimated uploading rate when cloud storage space.
In one embodiment of the invention, when the estimation file write-back process resumption uploads files to cloud storage space Estimated uploading rate the step of include: the average uploading rate conduct obtained before file write-back process is interrupted in the predetermined time The estimated uploading rate.
Step 102, when getting current write-back parameter, token effective time is obtained according to current write-back parameter.
In one embodiment of the invention, token effective time is obtained according to the current write-back parameter of file write-back process The step of include: that obtain token according to the current residual file size of file write-back process and the estimated uploading rate effective Duration.
Step 103, according to the token effective time of acquisition, the new session with token effective time is created.
Step 104, the new session with token effective time is dynamically assigned to file write-back process, so as to file write-back Process continues to upload files to cloud storage space according to new session.
Based on the method for being used to be arranged file write-back process token effective time that the above embodiment of the present invention provides, pass through During file write-back process is toward transmitting file on cloud storage platform, cloud storage platform is according to the progress of upper transmitting file come dynamic Optimize the token duration of each file write-back process, to reduce the number that file write-back process is interrupted, improves simultaneously Handle the concurrency of file write-back process.
Fig. 2 is the schematic diagram of method another embodiment of the present invention for file write-back process token effective time to be arranged. Method includes the following steps:
Step 201, at the end of file write-back process is interrupted or uploads, it is renewed back to the parameter information of writing task table, Described in parameter information include current residual file size, time started, end time, token duration, mode bit.
Table 1 is the example of write-back task list in one embodiment of the invention.Starting and end time indicates every in table 1 A write-back subtask (file write-back process) starts to upload and terminate the time uploaded;Mode bit " 0 " indicates file without all Upload finishes, and mode bit " 1 " indicates that file all uploads and finishes;Token duration indicates current token effective time;It is remaining At the end of file size indicates that file write-back process is interrupted or uploads, remaining file size.
Table 1
Task ID Time started End time Remaining file size Token duration Mode bit
1001 9:00 250M 40 0
1002 11:00 120M 25 0
1003 13:00 15:00 0 80 1
In one embodiment of the invention, the method also includes: with predetermined time interval (such as 24 hours) removing The subtask being in write-back task list, that is, the subtask that mode bit in write-back task list is " 1 " is removed, to reduce The memory space that write-back task list occupies has been saved and has retrieved the time that relevant parameter information is spent from task list.
For example, write-back task list shown in table 1 becomes write-back as shown in Table 2 after removing the subtask being over Task list.
Table 2
Task ID Time started End time Remaining file size Token duration Mode bit
1001 9:00 250M 40 0
1002 11:00 120M 25 0
Step 202, when receiving the new session application of file write-back process transmission, the current of file write-back process is obtained Write-back parameter, wherein after file write-back process is interrupted during uploading files to cloud storage space, issue the new meeting Words application.
In one embodiment of the invention, current write-back parameter includes current residual file size and it is expected that uploads speed Rate.
In one embodiment of the invention, in step 202, obtain file write-back process current write-back parameter the step of It may include: the current residual file size that file write-back process is obtained from write-back task list;Estimate file write-back process resumption Upload files to estimated uploading rate when cloud storage space.
In one embodiment of the invention, the current residual file size of file write-back process is obtained from write-back task list The step of include: that the surplus of corresponding write-back subtask is inquired from write-back task list using the task ID number of file write-back process Remaining file size.
In one embodiment of the invention, estimate pre- when file write-back process resumption uploads files to cloud storage space The step of counting uploading rate includes: to obtain described in the average uploading rate conduct that file write-back process was interrupted in the preceding predetermined time It is expected that uploading rate.
In one embodiment of the invention, the predetermined time is the file write-back before the file write-back process is interrupted Process is interrupted first 1 hour or half an hour.
Step 203, when getting current write-back parameter, token effective time is obtained according to current write-back parameter.
In one embodiment of the invention, it in step 203, is obtained and is enabled according to the current write-back parameter of file write-back process The step of board effective time includes:
According to formula
Token effective time=current residual file size/estimated uploading rate
Obtain token effective time.
Step 204, according to the token effective time of acquisition, the new session with token effective time is created.
Step 205, the new session with token effective time is dynamically assigned to file write-back process, so as to file write-back Process continues to upload files to cloud storage space according to new session.
The above embodiment of the present invention is directed to the file write-back process being each interrupted, cloud storage platform combination file write-back Information in task status table where process, dynamically calculates the effective time of its token;Cloud storage is flat before the present invention is different from For platform to the mechanism of the token duration unified distribution of file write-back process, the present invention carries out difference distribution to token duration, effective to close System resource is utilized to reason, improves the concurrency of processing file write-back process;The present invention is due to being written back into each file The setting of the reasonable token duration of Cheng Jinhang reduces the number of cloud storage platform distribution token, reduces file write-back process The number being interrupted reduces the reply process burden of cloud storage platform.
Fig. 3 is the schematic diagram of the device one embodiment of the present invention for file write-back process token effective time to be arranged. As shown in figure 3, described device includes write-back parameter acquisition module 301, token duration acquisition module 302, session distribution module 303, in which:
Write-back parameter acquisition module 301, for obtaining text when receiving the new session application of file write-back process transmission The current write-back parameter of part write-back process, wherein file write-back process is during uploading files to cloud storage space by It has no progeny, issues the new session application.
In one embodiment of the invention, the current write-back parameter includes the current residual file of file write-back process Size and it is expected that uploading rate.
In one embodiment of the invention, the estimated uploading rate is that file write-back process is interrupted the preceding predetermined time Interior average uploading rate.
Token duration obtains module 302, exceeds former token duration for the uplink time in file write-back process, file returns When write process has uploaded not yet and write-back parameter acquisition module 301 gets current write-back parameter, according to current write-back parameter Obtain token effective time.
Session distribution module 303, for obtaining the token effective time that module obtains according to token duration, creation, which has, to be enabled The new session of board effective time;And the new session with token effective time distributes to file write-back process, so as to file write-back Process continues to upload files to cloud storage space according to new session.
Based on the device for being used to be arranged file write-back process token effective time that the above embodiment of the present invention provides, pass through During file write-back process is toward transmitting file on cloud storage platform, cloud storage platform is according to the progress of upper transmitting file come dynamic Optimize the token duration of each file write-back process, to reduce the number that file write-back process is interrupted, improves simultaneously Handle the concurrency of file write-back process.
Fig. 4 is the schematic diagram of device another embodiment of the present invention for file write-back process token effective time to be arranged. Compared with embodiment illustrated in fig. 3, in the embodiment shown in fig. 4, write-back parameter acquisition module 301 includes file size acquiring unit 401 and rate acquiring unit 402, in which:
File size acquiring unit 401, the current residual file for obtaining file write-back process from write-back task list are big It is small.
Rate acquiring unit 402, it is estimated when for estimating that file write-back process resumption uploads files to cloud storage space Uploading rate.
In one embodiment of the invention, file size acquiring unit 401 is specifically used for utilizing file write-back process Task ID number inquires the remaining file size of corresponding write-back subtask from write-back task list, wherein such as Tables 1 and 2 institute Show, write-back task list includes the files write-backs such as current residual file size, time started, end time, token duration, mode bit The parameter information of process (write-back subtask).
In one embodiment of the invention, rate acquiring unit 402 is interrupted specifically for obtaining file write-back process Average uploading rate in the preceding predetermined time is as the estimated uploading rate.
In one embodiment of the invention, rate acquiring unit 402 is interrupted specifically for obtaining file write-back process Average uploading rate in first 1 hour or half an hour is as the estimated uploading rate.
In one embodiment of the invention, token duration obtains module 302 and is specifically used for according to file write-back process Current residual file size and the estimated uploading rate obtain token effective time.
In one embodiment of the invention, token duration obtains module 302 with specific reference to formula
Token effective time=current residual file size/estimated uploading rate
Obtain token effective time.
Fig. 5 is the schematic diagram of device another embodiment of the present invention for file write-back process token effective time to be arranged. Compared with embodiment illustrated in fig. 3, in the embodiment shown in fig. 5, described device further includes task list update module 501, in which:
Task list update module 501, for being renewed back to writing task table at the end of file write-back process is interrupted or uploads Parameter information, wherein the parameter information includes current residual file size.
In one embodiment of the invention, task list update module 501 is also used to that (such as 24 is small with predetermined time interval When) remove the subtask being in write-back task list, that is, the subtask that mode bit in write-back task list is " 1 " is removed, from And reduce the memory space of write-back task list occupancy, it has saved and has retrieved the time that relevant parameter information is spent from task list.
The above embodiment of the present invention is directed to the file write-back process being each interrupted, cloud storage platform combination file write-back Information in task status table where process, dynamically calculates the effective time of its token;Cloud storage is flat before the present invention is different from For platform to the mechanism of the token duration unified distribution of file write-back process, the present invention carries out difference distribution to token duration, effective to close System resource is utilized to reason, improves the concurrency of processing file write-back process;The present invention is due to being written back into each file The setting of the reasonable token duration of Cheng Jinhang reduces the number of cloud storage platform distribution token, reduces file write-back process The number being interrupted reduces the reply process burden of cloud storage platform.
Fig. 6 is the schematic diagram of the platform one embodiment of the present invention for file write-back process token effective time to be arranged. As shown in fig. 6, described for the platform of file write-back process token effective time, including process interrupt device 601, file to be arranged Device 604 is arranged in reception device 602, cloud storage space 603 and token duration, in which:
Process interrupt device 601, for interrupting file write-back process.
File reception device 602, for receiving the file stream of file write-back process upload.
Cloud storage space 603, the file stream received for storage file reception device 602.
Device 604 is arranged in token duration, is any of the above-described as described in the examples for file write-back process token to be arranged The device of effective time.
In one embodiment of the invention, it is described for be arranged file write-back process token effective time platform be can The cloud storage platform of file write-back process token effective time is set dynamically
Based on the platform for being used to be arranged file write-back process token effective time that the above embodiment of the present invention provides, pass through During file write-back process is toward transmitting file on cloud storage platform, cloud storage platform is according to the progress of upper transmitting file come dynamic Optimize the token duration of each file write-back process, to reduce the number that file write-back process is interrupted, improves simultaneously Handle the concurrency of file write-back process.
Fig. 7 is the schematic diagram of process interrupt device 601 in embodiment described in Fig. 6.As shown in fig. 7, the process interrupt dress Setting 601 includes identification module 701 and process interrupt module 702, in which:
Identification module 701, for starting after transmitting file, to judge to upload on cloud storage space 603 in file write-back process Whether the time has been more than token effective time.
Process interrupt module 702 has been more than that token has in uplink time for the judging result according to identification module 701 When imitating duration, file write-back process is interrupted.
For the above embodiment of the present invention when file write-back process uploads big file toward memory space, cloud storage platform can be The status information that each file write-back process is recorded in write-back task status table, when file write-back process is due to write-back overlong time When time-out is interrupted, cloud storage platform can be according to upper in write-back task status table where the file write-back process being each interrupted The difference of transmitting file progress, dynamic calculates the different durations for distributing to the token value of different file write-back processes, to reduce The request number of times of cloud storage platform answer file write-back process application token, reduces the number that file write-back process is interrupted. Optimize cloud storage platform resource.This patent is suitable for all big files of upload to memory space, is interrupted in uploading process Afterwards, the token value of different durations can be dynamically allocated.
Fig. 8 is the schematic diagram of method another embodiment of the present invention for file write-back process token effective time to be arranged. The described method includes:
Step 801, after file write-back process is interrupted during uploading files to cloud storage space, to write-back parameter It obtains module and issues new session application.Wherein, file write-back process start to cloud storage spatially transmitting file when, due to upload File is sometimes excessive, and the overlong time for causing file write-back process to upload, has been more than the available time of token token, so that File write-back process is interrupted.
Step 802, write-back parameter acquisition module is in the new session session application for receiving the transmission of file write-back process When, obtain the current write-back parameter of file write-back process, wherein the write-back parameter includes: the text obtained from write-back task list The current residual file size of part write-back process;And the file write-back process resumption of estimation is when uploading files to cloud storage space Estimated uploading rate, wherein the estimated uploading rate can be interrupted by obtaining file write-back process before in the predetermined time Average uploading rate determine.
Step 803, the write-back parameter that write-back parameter acquisition module will acquire sends the duration that gives token and obtains module.
Step 804, token duration obtains module and obtains order according to the current write-back parameter that write-back parameter acquisition module is sent Board effective time.
Such as: token duration obtains module according to formula
Token effective time=current residual file size/estimated uploading rate
Obtain token effective time.
Step 805, token duration obtains module and the token effective time is sent to session distribution module.
Step 806, session distribution module obtains the token effective time that module is sent according to token duration, and creation, which has, to be enabled The new session of board effective time.
Step 807, the new session with token effective time is dynamically assigned to file write-back process by session distribution module, So that file write-back process continues to upload files to cloud storage space according to new session.
By applying the present invention, it is available following the utility model has the advantages that
1, the present invention appoints for the file write-back process being each interrupted, cloud storage platform combination file write-back process place The information being engaged in state table, dynamically calculates its token effective time.
2, the present invention is different from the machine of token effective time unified distribution of the former cloud storage platform to file write-back process System, difference distribution is carried out to token duration, system resource is utilized effective and reasonablely, improve processing file write-back process and Hair property.
3, the present invention carries out the setting of reasonable token effective time to each file write-back process, and it is flat to reduce cloud storage Platform distributes the number of token, reduces the number that file write-back process is interrupted, and the reply process for reducing cloud storage platform is negative Load.
So far, the present invention is described in detail.In order to avoid covering design of the invention, it is public that this field institute is not described The some details known.Those skilled in the art as described above, completely it can be appreciated how implementing technology disclosed herein Scheme.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
Description of the invention is given for the purpose of illustration and description, and is not exhaustively or will be of the invention It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage The solution present invention is to design various embodiments suitable for specific applications with various modifications.

Claims (12)

1. a kind of for the method for file write-back process token effective time to be arranged characterized by comprising
When receiving the new session application of file write-back process transmission, the current write-back parameter of file write-back process is obtained, In, after file write-back process is interrupted during uploading files to cloud storage space, issue the new session application;
When getting current write-back parameter, token effective time is obtained according to current write-back parameter;
According to the token effective time of acquisition, the new session with token effective time is created;
New session with token effective time is distributed into file write-back process, so as to file write-back process according to new session after It is continuous to upload files to cloud storage space;
Wherein, the step of current write-back parameter of acquisition file write-back process includes:
The current residual file size of file write-back process is obtained from write-back task list.
2. the method according to claim 1, wherein the step of obtaining the current write-back parameter of file write-back process Include:
Estimation file write-back process resumption uploads files to estimated uploading rate when cloud storage space.
3. according to the method described in claim 2, being enabled it is characterized in that, being obtained according to the current write-back parameter of file write-back process The step of board effective time includes:
Token effective time is obtained according to the current residual file size of file write-back process and the estimated uploading rate.
4. method according to any one of claim 1-3, which is characterized in that further include:
At the end of file write-back process is interrupted or uploads, it is renewed back to the parameter information of writing task table, wherein the parameter is believed Breath includes current residual file size.
5. according to the method in claim 2 or 3, which is characterized in that estimation file write-back process resumption uploads files to cloud The step of estimated uploading rate when memory space includes:
The average uploading rate before file write-back process is interrupted in the predetermined time is obtained as the estimated uploading rate.
6. a kind of for the device of file write-back process token effective time to be arranged, which is characterized in that obtained including write-back parameter Module, token duration obtain module, session distribution module, in which:
Write-back parameter acquisition module, for obtaining file write-back when receiving the new session application of file write-back process transmission The current write-back parameter of process, wherein after file write-back process is interrupted during uploading files to cloud storage space, hair The new session application out;
Token duration obtains module, for when write-back parameter acquisition module gets current write-back parameter, according to current write-back Parameter obtains token effective time;
Session distribution module, for obtaining the token effective time that module obtains according to token duration, creation has token effective The new session of duration;And the new session with token effective time is distributed into file write-back process, so as to file write-back process Continued to upload files to cloud storage space according to new session;
Wherein, write-back parameter acquisition module includes file size acquiring unit, in which:
File size acquiring unit, for obtaining the current residual file size of file write-back process from write-back task list.
7. device according to claim 6, which is characterized in that write-back parameter acquisition module includes rate acquiring unit, In:
Rate acquiring unit, estimated upload speed when for estimating that file write-back process resumption uploads files to cloud storage space Rate.
8. device according to claim 7, which is characterized in that
Token duration obtain module be specifically used for according to the current residual file size of file write-back process and it is described it is estimated on It passes rate and obtains token effective time.
9. device a method according to any one of claims 6-8, which is characterized in that further include task list update module, in which:
Task list update module, for being renewed back to the parameter of writing task table at the end of file write-back process is interrupted or uploads Information, wherein the parameter information includes current residual file size.
10. device according to claim 7 or 8, which is characterized in that
Rate acquiring unit is specifically used for obtaining the average uploading rate conduct before file write-back process is interrupted in the predetermined time The estimated uploading rate.
11. a kind of for the platform of file write-back process token effective time to be arranged, which is characterized in that filled including process interrupt It sets, file reception device, cloud storage space and token duration setting device, in which:
Process interrupt device, for interrupting file write-back process;
File reception device, for receiving the file stream of file write-back process upload;
Cloud storage space, the file stream received for storage file reception device;
Device is arranged in token duration, is effective for file write-back process token to be arranged described in any one of claim 6-10 The device of duration.
12. platform according to claim 11, which is characterized in that the process interrupt device includes identification module and process Interrupt module, in which:
Identification module after transmitting file, judges whether uplink time surpasses on cloud storage space for starting in file write-back process Token effective time is crossed;
Process interrupt module, for the judging result according to identification module, when uplink time has been more than token effective time, in Disconnected file write-back process.
CN201410814504.7A 2014-12-24 2014-12-24 For the method, apparatus and platform of file write-back process token effective time to be arranged Active CN105786863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410814504.7A CN105786863B (en) 2014-12-24 2014-12-24 For the method, apparatus and platform of file write-back process token effective time to be arranged

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410814504.7A CN105786863B (en) 2014-12-24 2014-12-24 For the method, apparatus and platform of file write-back process token effective time to be arranged

Publications (2)

Publication Number Publication Date
CN105786863A CN105786863A (en) 2016-07-20
CN105786863B true CN105786863B (en) 2019-07-02

Family

ID=56378290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410814504.7A Active CN105786863B (en) 2014-12-24 2014-12-24 For the method, apparatus and platform of file write-back process token effective time to be arranged

Country Status (1)

Country Link
CN (1) CN105786863B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704133B (en) * 2017-09-28 2021-09-21 努比亚技术有限公司 Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082693A (en) * 2011-02-15 2011-06-01 中兴通讯股份有限公司 Method and device for monitoring network traffic
CN103118123A (en) * 2013-02-22 2013-05-22 上海上讯信息技术有限公司 Data write-back method and system based on distributed server
CN103327115A (en) * 2013-07-05 2013-09-25 百度在线网络技术(北京)有限公司 Entry control method and device of application program
CN103618605A (en) * 2013-11-26 2014-03-05 中国联合网络通信集团有限公司 Time varying access token generation method and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10306293B4 (en) * 2003-02-14 2006-08-31 Siemens Ag Method for transmission bandwidth allocation in a packet-oriented communication device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082693A (en) * 2011-02-15 2011-06-01 中兴通讯股份有限公司 Method and device for monitoring network traffic
CN103118123A (en) * 2013-02-22 2013-05-22 上海上讯信息技术有限公司 Data write-back method and system based on distributed server
CN103327115A (en) * 2013-07-05 2013-09-25 百度在线网络技术(北京)有限公司 Entry control method and device of application program
CN103618605A (en) * 2013-11-26 2014-03-05 中国联合网络通信集团有限公司 Time varying access token generation method and server

Also Published As

Publication number Publication date
CN105786863A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
CN108052384B (en) Task processing method, service platform and electronic equipment
CN105320561A (en) Task management method and system
EP2819010A3 (en) Performance-driven resource management in a distributed computer system
SG11201810195VA (en) Exclusive agent pool allocation method, electronic device, and computer readable storage medium
CN105159782A (en) Cloud host based method and apparatus for allocating resources to orders
CN104714851A (en) Method and device for realizing resource distribution
EP2107762A3 (en) Session management system and method of controlling the same
CN106201723A (en) The resource regulating method of a kind of data center and device
CN104980472A (en) Network traffic control method and device
CN109377023A (en) Distribution method, device and the electronic equipment of order
CN107239347B (en) Equipment resource allocation method and device in virtual scene
CN107589997A (en) Ensure delay-sensitive program QoS dynamic regulating method under data center environment
CN107065616A (en) Inter-linked controlling method and device, computer-readable recording medium
CN105786863B (en) For the method, apparatus and platform of file write-back process token effective time to be arranged
CN106231235B (en) Long-distance video meets with method and system under a kind of constrained environment
CN107222618A (en) Terminal screenshotss method and device
CN102201922A (en) Data charging method and relevant apparatus
EP1939741A3 (en) Resource management apparatus and radio network controller
WO2015167813A4 (en) Apparatus and method for distributing rule ownership among devices in a system
CN106411971B (en) Load adjusting method and device
CN105591964A (en) Device and method for overload protection for Internet system
EP2677729A3 (en) Transmission management system, transmission terminal, transmission system, method of managing data transmission, and data transmission management carrier means
CN104021046A (en) Method and device for processing applications
CN104063451B (en) A kind of database connection management method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant