Summary of the invention
The embodiment of the invention provides a kind of Dropbox space calculation method and device, solve at present by user in network
Once-through operation is carried out in hard disk and just calculates the whether enough designs of memory space in real time, just carries out storage sky due to operating each time
Between calculating so that the server moment is in the working condition of intensive, thus the work of highly energy-consuming easily lead to server by
The technical issues of damage.
A kind of Dropbox space calculation method provided in an embodiment of the present invention, comprising:
The queue lists for being added with operating side ID are obtained, the operating side ID is opposite with the operational order that Dropbox is operated
It answers;
The queue lists are scanned, and successively extract the behaviour in the queue lists according to sequence is introduced into
Make end ID;
During successively extracting, the Dropbox corresponding to the operating side ID extracted every time carries out space meter
It calculates, and deletes all information of operating side ID in presently described queue lists.
Preferably, in above-mentioned Dropbox space calculation method,
The queue lists for being added with operating side ID are obtained, the operating side ID is opposite with the operational order that Dropbox is operated
It should specifically include:
The queue lists for being added with operating side ID are obtained every preset time period, the operating side ID is operated with Dropbox
Operational order it is corresponding.
Preferably, in above-mentioned Dropbox space calculation method,
The queue lists for being added with operating side ID are obtained, the operating side ID is opposite with the operational order that Dropbox is operated
Before answering further include:
Continuously acquire the queue lists added with operating side ID, the operational order that the operating side ID and Dropbox are operated
It is corresponding.
Preferably, in above-mentioned Dropbox space calculation method,
During successively extracting, the Dropbox corresponding to the operating side ID extracted every time carries out space meter
It calculates, and deletes all information of operating side ID in presently described queue lists and specifically include:
The Dropbox corresponding to the operating side ID of extraction carries out space calculating, and in presently described queue lists
Delete all information of operating side ID;
Judge whether the queue lists empty, if so, terminating Dropbox space calculating operation, if it is not, then returning to upper one
The step Dropbox corresponding to the operating side ID of next extraction carries out space calculating, and deletes in the queue lists
Except all information of operating side ID of next extraction.
Preferably, in above-mentioned Dropbox space calculation method,
The operational order includes newly-built operation, delete operation and updates operation.
A kind of Dropbox space computing device provided in an embodiment of the present invention, comprising:
Adding unit, for obtaining the queue lists for being added with operating side ID, the operating side ID is operated with Dropbox
Operational order it is corresponding;
Scanning element successively extracts the queue for being scanned to the queue lists, and according to sequence is introduced into
The operating side ID in list;
Computing unit is used for during successively extracting, to the corresponding net of the operating side ID extracted every time
Disk carries out space calculating, and all information of operating side ID are deleted in presently described queue lists.
Preferably, in above-mentioned Dropbox space computing device,
The adding unit includes:
First addition subelement, for obtaining the queue lists for being added with operating side ID, the behaviour every preset time period
It is corresponding with the operational order that Dropbox is operated to make end ID.
Preferably, in above-mentioned Dropbox space computing device,
The adding unit includes:
Second addition subelement, for continuously acquiring the queue lists for being added with operating side ID, the operating side ID and net
The operational order that disk is operated is corresponding.
Preferably, in above-mentioned Dropbox space computing device,
The computing unit specifically includes:
Computation subunit for carrying out space calculating to the corresponding Dropbox of the operating side ID of extraction, and is being worked as
All information of operating side ID are deleted in the preceding queue lists;
Judgment sub-unit, for judging whether the queue lists empty, if so, terminate Dropbox space calculating operation,
If it is not, then triggering the computation subunit Dropbox corresponding to the operating side ID of next extraction again carries out space
It calculates, and deletes all information of operating side ID of next extraction in the queue lists.
Preferably, in above-mentioned Dropbox space computing device, the operational order includes newly-built operation, delete operation and more
New operation.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
A kind of Dropbox space calculation method provided in an embodiment of the present invention and device, wherein Dropbox space calculation method step
It suddenly include: to obtain the queue lists for being added with operating side ID, operating side ID is corresponding with the operational order that Dropbox is operated;It is right
Queue lists are scanned, and according to be introduced into sequence successively extract queue lists in operating side ID;In the mistake successively extracted
Cheng Zhong carries out space calculating, and the delete operation end in current queue list to the corresponding Dropbox of the operating side ID extracted every time
All information of ID.It in the present embodiment, is scanned to added with the queue lists of operating side ID, and according to being introduced into sequence successively
The operating side ID in queue lists is extracted, and during successively extracting, to the corresponding Dropbox of operating side ID extracted every time
Space calculating, and all information of delete operation end ID in current queue list are carried out, are just realized as unit of the ID of operating side
Calculating, the technical issues of avoiding the multiple calculating due to caused by multi-pass operation in short time of the same operating side ID,
Meanwhile it correspondingly solving and carrying out whether enough once-through operation just calculates memory space in real time in network hard disc by user at present
Enough designs just carry out the calculating of memory space due to operating each time, so that the server moment is in the work of intensive
State, so that the work of highly energy-consuming easily leads to the impaired technical problem of server.
Specific embodiment
The embodiment of the invention provides a kind of Dropbox space calculation method and device, solve at present by user in network
Once-through operation is carried out in hard disk and just calculates the whether enough designs of memory space in real time, just carries out storage sky due to operating each time
Between calculating so that the server moment is in the working condition of intensive, thus the work of highly energy-consuming easily lead to server by
The technical issues of damage.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, a kind of one embodiment of the Dropbox space calculation method provided in the embodiment of the present invention includes:
101, the queue lists for being added with operating side ID are obtained;
In the present embodiment, when needing the space to Dropbox to calculate, need to obtain the queue for being added with operating side ID
List, operating side ID are corresponding with the operational order that Dropbox is operated, it is to be understood that operating side ID above-mentioned can be with
It is user name ID etc..
It should be noted that needing to establish for storing up in the present embodiment before needing the space to Dropbox to calculate
The queue lists of the operating side ID of row operation, such as user list are deposited into, often have an operating side ID to carry out once-through operation, then queue
It needs once to be recorded operating side ID in list.
102, queue lists are scanned, and according to be introduced into sequence successively extract queue lists in operating side ID;
After obtaining the queue lists for being added with operating side ID, need to be scanned queue lists, and according to advanced
Enter the operating side ID sequentially successively extracted in queue lists.
It is understood that the sequence above-mentioned that is introduced into can be by queue lists, such as the row of queue lists
Sequence sequence be from top to bottom or/and from front to back, or vice versa under it is supreme or/and from back to front according to all operating side ID with its
The sequence that corresponding Dropbox is operated at first enters in queue lists.
103, during successively extracting, space calculating is carried out to the corresponding Dropbox of the operating side ID extracted every time, and
All information of delete operation end ID in current queue list.
Be scanned when to queue lists, and according to be introduced into sequence successively extract queue lists in operating side ID it
Afterwards, it needs during successively extracting, space calculating is carried out to the corresponding Dropbox of the operating side ID extracted every time, and current
ID all information in delete operation end in queue lists.
It should be noted that it is above-mentioned during successively extracting, to the corresponding Dropbox of operating side ID extracted every time
Carry out space calculating, and all information of delete operation end ID in current queue list, can be when in queue lists according to elder generation
The arrangement of entering order such as operating side ID is respectively the record of c user, b user, a user, b user, a user, a user, then first
The record of all c users in queue lists is extracted, and the space of Dropbox corresponding to c user is calculated in time, and
The record of all c users in the queue lists extracted is deleted, the subsequent meter for carrying out operating side ID in queue lists is carried out
It calculates, it is to be understood that the detailed process above-mentioned for carrying out the subsequent calculating that operating side ID is carried out in queue lists will be
It is described in detail in subsequent embodiment, just repeats no more herein.
In the present embodiment, the queue lists added with operating side ID are scanned, and is successively mentioned according to sequence is introduced into
Take the operating side ID in queue lists, and during successively extracting, to the corresponding Dropbox of operating side ID extracted every time into
Row space calculates, and all information of delete operation end ID in current queue list, just realizes as unit of the ID of operating side
The technical issues of calculating, avoiding the multiple calculating due to caused by multi-pass operation in the short time of the same operating side ID, together
When, correspondingly solve at present by user is carried out in network hard disc once-through operation just in real time calculating memory space it is whether enough
Design, due to operate each time just carry out memory space calculating so that the server moment is in the work shape of intensive
State, so that the work of highly energy-consuming easily leads to the impaired technical problem of server.
The above is that the process of Dropbox space calculation method is described in detail, and will be swept below to queue lists
It retouches, and be described in detail according to the process for sequentially successively extracting the operating side ID in queue lists is introduced into, please refers to figure
2, a kind of one embodiment of the Dropbox space calculation method provided in the embodiment of the present invention includes:
201, the queue lists for being added with operating side ID are obtained;
In the present embodiment, when needing the space to Dropbox to calculate, need to obtain the queue for being added with operating side ID
List, operating side ID are corresponding with the operational order that Dropbox is operated, it is to be understood that operating side ID above-mentioned can be with
It is user name ID etc., operational order above-mentioned includes newly-built operation, delete operation and updates operation.
It should be noted that needing to establish for storing up in the present embodiment before needing the space to Dropbox to calculate
The queue lists of the operating side ID of row operation, such as user list are deposited into, often have an operating side ID to carry out once-through operation, then queue
It needs once to be recorded operating side ID in list.
It should be noted that above-mentioned obtain the queue lists for being added with operating side ID, can be every preset time period
The queue lists for being added with operating side ID are obtained, or continuously acquire the queue lists added with operating side ID, it is each preset
Period and continuous situation will be described in detail in subsequent step again, and details are not described herein again.
202, queue lists are scanned, and according to be introduced into sequence successively extract queue lists in operating side ID;
After obtaining the queue lists for being added with operating side ID, need to be scanned queue lists, and according to advanced
Enter the operating side ID sequentially successively extracted in queue lists.
It is understood that the sequence above-mentioned that is introduced into can be by queue lists, such as the row of queue lists
Sequence sequence be from top to bottom or/and from front to back, or vice versa under it is supreme or/and from back to front according to all operating side ID with its
The sequence that corresponding Dropbox is operated at first enters in queue lists.
203, space calculating, and the delete operation in current queue list are carried out to the corresponding Dropbox of the operating side ID of extraction
Hold all information of ID;
Be scanned when to queue lists, and according to be introduced into sequence successively extract queue lists in operating side ID it
Afterwards, need to carry out the operating side ID of extraction corresponding Dropbox space calculating, and the delete operation end ID in current queue list
All information.
It should be noted that above-mentioned carry out space calculating to the corresponding Dropbox of the operating side ID of extraction, and in current team
ID all information in delete operation end in column list, can be when in queue lists according to the arrangement such as operating side ID for being introduced into sequence
The respectively record of c user, b user, a user, b user, a user, a user, the then all c first extracted in queue lists are used
The record at family, and the space of Dropbox corresponding to c user being calculated in time, and delete all in the queue lists of extraction
The record of c user.
204, judge whether queue lists empty, if so, 205 are thened follow the steps, if it is not, then repeating step 203;
When carrying out space calculating, and the delete operation end in current queue list to the corresponding Dropbox of the operating side ID of extraction
After all information of ID, judge whether queue lists empty, if so, 205 are thened follow the steps, if it is not, then repeating step 203, i.e.,
Space calculating is carried out to return to previous step to the corresponding Dropbox of the operating side ID of next extraction, and is deleted in queue lists
All information of operating side ID of next extraction.
It should be noted that judgement queue lists above-mentioned do not empty, if so, repeating step 203, it can be and work as queue
It according to the arrangement such as operating side ID for being introduced into sequence is respectively c user, b user, a user, b user, a user, a user in list
Record, then first extract the record of all c users in queue lists, and in time to the space of Dropbox corresponding to c user
It is calculated, and deletes the record of all c users in the queue lists of extraction, then judge that queue lists do not empty, then to b
The space of Dropbox corresponding to user calculates, and deletes the record of all b users in the queue lists of extraction, successively directly
To after judging that queue lists empty, step 205 is executed.
It must be noted that queue lists above-mentioned change always, for example calculate c user now, at the same time c
User may also constantly operate, and at this time the operation of c finally enters queue lists, after finishing to c calculating, entire team
Column c user all deletes, if horse back c user comes in again, c user can only be waited in queue tail, if used deleting c
It gets into queue in a flash before family, then will be deleted, if it is just getting into a flash after deletion, just in team
In column list.
205, terminate Dropbox space calculating operation.
After judging that queue lists empty, then terminate Dropbox space calculating operation.
It should be noted that in the present embodiment, after end Dropbox space calculating operation above-mentioned, can be every
Preset time period or continuous repetition step 201, e.g. when the Dropbox system non-busy stage, possible noncontinuity has behaviour
Make, therefore can be according to the property of its Dropbox system is that server further decreases working frequency.
In the present embodiment, the queue lists added with operating side ID are scanned, and is successively mentioned according to sequence is introduced into
Take the operating side ID in queue lists, and during successively extracting, to the corresponding Dropbox of operating side ID extracted every time into
Row space calculates, and all information of delete operation end ID in current queue list, just realizes as unit of the ID of operating side
The technical issues of calculating, avoiding the multiple calculating due to caused by multi-pass operation in the short time of the same operating side ID, together
When, correspondingly solve at present by user is carried out in network hard disc once-through operation just in real time calculating memory space it is whether enough
Design, due to operate each time just carry out memory space calculating so that the server moment is in the work shape of intensive
State, so that the work of highly energy-consuming easily leads to the impaired technical problem of server, meanwhile, judge whether queue lists empty, if so,
Then terminate Dropbox space calculating operation, if it is not, then return previous step to the corresponding Dropbox of operating side ID of next extraction into
Row space calculates, and deletes in queue lists the design of all information of operating side ID of next extraction, passes through and determines queue
Whether list empties, and correspondingly to be operated, the frequent modified space for not only realizing big data quantity is calculated, meanwhile,
The perfect calculating in the frequent modified Dropbox space of big data quantity.
Referring to Fig. 3, a kind of one embodiment of the Dropbox space computing device provided in the embodiment of the present invention includes:
Adding unit 301, for obtaining the queue lists for being added with operating side ID, what operating side ID and Dropbox were operated
Operational order is corresponding;
Scanning element 302 is successively extracted in queue lists for being scanned to queue lists, and according to sequence is introduced into
Operating side ID;
Computing unit 303, for being carried out to the corresponding Dropbox of the operating side ID extracted every time during successively extracting
Space calculates, and all information of delete operation end ID in current queue list.
In the present embodiment, scanning element 302 is scanned to added with the queue lists of operating side ID, and according to being introduced into
Sequence successively extract queue lists in operating side ID, and computing unit 303 successively extract during, to what is extracted every time
ID corresponding Dropbox in operating side carries out space calculating, and all information of delete operation end ID in current queue list, just realizes
Calculating as unit of the ID of operating side avoids more due to caused by multi-pass operation in the short time of same operating side ID
The technical issues of secondary calculating, meanwhile, correspondingly solve at present that once-through operation is carried out in network hard disc is just real-time by user
The whether enough designs of memory space are calculated, the calculating of memory space are just carried out due to operating each time, so that the server moment
Working condition in intensive, so that the work of highly energy-consuming easily leads to the impaired technical problem of server.
The above is that each unit of Dropbox space computing device is described in detail, below by each son to computing unit
Unit is described in detail, referring to Fig. 4, an a kind of reality of the Dropbox space computing device provided in the embodiment of the present invention
Applying example includes:
Adding unit 401, for obtaining the queue lists for being added with operating side ID, what operating side ID and Dropbox were operated
Operational order is corresponding, and operational order above-mentioned includes newly-built operation, delete operation and updates operation;
Wherein, adding unit 401 can further include:
First addition subelement 4011, for obtaining the queue lists for being added with operating side ID, behaviour every preset time period
It is corresponding with the operational order that Dropbox is operated to make end ID.
And/or
Second addition subelement 4012, for continuously acquiring the queue lists for being added with operating side ID, operating side ID and net
The operational order that disk is operated is corresponding.
Scanning element 402 is successively extracted in queue lists for being scanned to queue lists, and according to sequence is introduced into
Operating side ID;
Computing unit 403, for being carried out to the corresponding Dropbox of the operating side ID extracted every time during successively extracting
Space calculates, and all information of delete operation end ID in current queue list.
Wherein, computing unit 403 can further include:
Computation subunit 4031, for carrying out space calculating to the corresponding Dropbox of the operating side ID of extraction, and in current team
ID all information in delete operation end in column list;
Judgment sub-unit 4032, for judging whether queue lists empty, if so, terminate Dropbox space calculating operation,
If it is not, then triggering computation subunit 4031 carries out space calculating to the corresponding Dropbox of the operating side ID of next extraction again, and
All information of operating side ID of next extraction are deleted in queue lists.
In the present embodiment, scanning element 402 is scanned to added with the queue lists of operating side ID, and according to being introduced into
Sequence successively extract queue lists in operating side ID, and computing unit 403 successively extract during, to what is extracted every time
ID corresponding Dropbox in operating side carries out space calculating, and all information of delete operation end ID in current queue list, just realizes
Calculating as unit of the ID of operating side avoids more due to caused by multi-pass operation in the short time of same operating side ID
The technical issues of secondary calculating, meanwhile, correspondingly solve at present that once-through operation is carried out in network hard disc is just real-time by user
The whether enough designs of memory space are calculated, the calculating of memory space are just carried out due to operating each time, so that the server moment
Working condition in intensive, so that the work of highly energy-consuming easily leads to the impaired technical problem of server, meanwhile, it calculates single
The judgment sub-unit 4032 of member 403 judges whether queue lists empty, if so, terminating Dropbox space calculating operation, if it is not, then
It returns to previous step and space calculating is carried out to the corresponding Dropbox of the operating side ID of next extraction, and in queue lists under deletion
The design of all information of operating side ID of one extraction, by determining whether queue lists empty, correspondingly to be operated, no
The frequent modified space for only realizing big data quantity calculates, meanwhile, the perfect frequent modified Dropbox of big data quantity
The calculating in space.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.