CN107341058A - A kind of its recovery method as resource and device - Google Patents

A kind of its recovery method as resource and device Download PDF

Info

Publication number
CN107341058A
CN107341058A CN201710570036.7A CN201710570036A CN107341058A CN 107341058 A CN107341058 A CN 107341058A CN 201710570036 A CN201710570036 A CN 201710570036A CN 107341058 A CN107341058 A CN 107341058A
Authority
CN
China
Prior art keywords
resource
state
take
back model
configuration
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
CN201710570036.7A
Other languages
Chinese (zh)
Inventor
陈培培
吕广杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710570036.7A priority Critical patent/CN107341058A/en
Publication of CN107341058A publication Critical patent/CN107341058A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Abstract

The invention discloses a kind of its recovery method as resource and device, wherein, methods described includes:Cloud platform determines pending resource according to the selection of user;The pending resource is handled according to the take-back model that user selects;Wherein, take-back model is pre-set, including puncturing pattern, buffer mode or reforestation practices.The present invention is by configuring different resource reclaim patterns, it is achieved thereby that the flexible recovery to resource.Meanwhile the present invention effectively reduces the loss that maloperation is brought by reasonably being recycled to resource.

Description

A kind of its recovery method as resource and device
Technical field
The present invention relates to computer technology, espespecially its recovery method as resource and device.
Background technology
In cloud computing era, the resource of a large amount of isomeries is managed collectively by cloud platform, when resource does not use, just directly To delete, the resource of deletion can not be recovered, flexibly resource can not be recycled, therefore how more reasonably to resource Reclaimed exactly one and need to face and solved the problems, such as.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of its recovery method as resource and device, resource can be set Way of recycling, so as to flexibly be recycled to resource.
In order to reach the object of the invention, the invention provides a kind of its recovery method as resource, methods described includes:
Cloud platform determines pending resource according to the selection of user;
The pending resource is handled according to the take-back model that user selects;
Wherein, take-back model is pre-set, including puncturing pattern, buffer mode or reforestation practices.Further, it is described The take-back model selected according to user carries out processing to the pending resource to be included:
When the take-back model is buffer mode, judge whether the end buffer condition for meeting configuration;
When meeting the end buffer condition, resource is handled according to the deletion strategy of configuration;
Wherein, the deletion strategy includes only deleting corresponding to the resource and recorded, or, deletes and remember corresponding to the resource Record and the resource;
The end buffer condition includes any one of following:
The buffer time of configuration reaches;
The state of resource is without using state;
The buffer time of configuration reaches and the state of resource is without using state;
The buffer time of configuration reaches or the state of resource is without using state.
Further, the take-back model selected according to user is handled the pending resource and also included:
It is entrance by the resource recovery if user selects recovery operation when being unsatisfactory for the end buffer condition State before the cloud platform recycle bin.
Further, the take-back model selected according to user is handled the pending resource and also included:
When the take-back model is puncturing pattern, resource is handled according to the deletion strategy of the configuration.
Further, the take-back model selected according to user is handled the pending resource and also included:
It is the shape into before the cloud platform recycle bin by the resource recovery when the take-back model is reforestation practices State.
The present embodiment also provides a kind of resource recovery device, is arranged at cloud platform, and described device includes:
Selecting module, pending resource is determined for the selection according to user;
Processing module, for being handled according to the take-back model that user selects the pending resource;
Wherein, take-back model is pre-set, including puncturing pattern, buffer mode or reforestation practices.Further, it is described Processing module includes buffering submodule,
The buffering submodule, for the end for when the take-back model is buffer mode, judging whether to meet configuration Buffer condition;When meeting the end buffer condition, resource is handled according to the deletion strategy of the configuration;
Wherein, the deletion strategy includes only deleting corresponding to the resource and recorded, or, deletes and remember corresponding to the resource Record and the resource;
The end buffer condition includes any one of following:
The buffer time of configuration reaches;
The state of resource is without using state;
The buffer time of configuration reaches and the state of resource is without using state;
The buffer time of configuration reaches or the state of resource is without using state.
Further, the buffering submodule, it is additionally operable to when being unsatisfactory for the end buffer condition, if user selects to recover Operation, then it is the state into before the cloud platform recycle bin by the resource recovery.
Further, the processing module also includes deleting submodule,
The deletion submodule, for when the take-back model is puncturing pattern, according to the deletion strategy of configuration to money Source is handled.
Further, the processing module also includes recovering submodule,
The recovery submodule, for when the take-back model is reforestation practices, by the resource recovery for into institute State the state before cloud platform recycle bin.
Compared with prior art, the present invention includes:Cloud platform recycle bin determines pending resource according to the selection of user; The pending resource is handled according to the take-back model that user selects;Wherein, take-back model is pre-set, bag Include puncturing pattern, buffer mode or reforestation practices.The present invention is by configuring different resource reclaim patterns, it is achieved thereby that to money The flexible recovery in source.
Further, the present invention effectively reduces the damage that maloperation is brought by reasonably being recycled to resource Lose.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of its recovery method as resource of the embodiment of the present invention;
Fig. 2 is the structural representation of the resource recovery device of the embodiment of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein Sequence performs shown or described step.
As shown in figure 1, the present embodiment provides a kind of its recovery method as resource, methods described includes:
Step S100:Cloud platform recycle bin determines pending resource according to the selection of user;
Step S101:The pending resource is handled according to the take-back model that user selects;
Wherein, take-back model is pre-set, including puncturing pattern, buffer mode or reforestation practices.In the present embodiment, User can configure different resource reclaim patterns, it is achieved thereby that the flexible recovery to resource.
Further, the take-back model selected according to user carries out processing to the pending resource includes:
When the take-back model is buffer mode, judge whether the end buffer condition for meeting configuration;
When meeting the end buffer condition, resource is handled according to the deletion strategy of configuration;
Wherein, the deletion strategy includes only deleting corresponding to the resource and recorded, or, deletes and remember corresponding to the resource Record and the resource;
The end buffer condition includes any one of following:
The buffer time of configuration reaches;
The state of resource is without using state;
The buffer time of configuration reaches and the state of resource is without using state;
The buffer time of configuration reaches or the state of resource is without using state.
Further, the take-back model selected according to user is handled the pending resource and also included:
It is entrance by the resource recovery if user selects recovery operation when being unsatisfactory for the end buffer condition State before the cloud platform recycle bin.
In the present embodiment, user, which can be pre-configured with, terminates buffer condition and deletion strategy, is meeting to terminate buffer condition When, corresponding operation is performed according to the deletion strategy of configuration;When not meeting to terminate buffer condition, user at any time can provide this Source reverts to the state into before the cloud platform recycle bin.
The processing of resource under buffer mode is further illustrated below by example:
Example one
The end buffer condition of user configuration is to reach the buffer time of configuration, when user can set buffering according to demand Between, such as 5 minutes, the deletion strategy of user configuration was only to delete to record corresponding to the resource.When user have selected it is pending Resource, and after have selected buffer mode, system start time monitoring, timing 5 minutes, when 5 minutes reach, then delete Recorded corresponding to the resource, but retain underlying resource;Before buffer time reaches, the resource is in buffer status, user Can be at any time the state into before the cloud platform recycle bin by the resource recovery.
Example two
The end buffer condition of user configuration is that the state of resource is that the deletion strategy of configuration is deletion institute without using state State record and the resource corresponding to resource.When user have selected pending resource, and after have selected buffer mode, it is System start to detect the service condition of the resource, when detect using the resource equipment shut down or detect the resource not by In use, then delete record and the resource corresponding to the resource.
Example three
The end buffer condition of user configuration is that the buffer time of configuration reaches or the state of resource is without using state, is used The deletion strategy of family configuration is only to delete to record corresponding to the resource.When user have selected pending resource, and select After buffer mode, system start time monitoring, and detect the use state of resource, reach or detect inspection when buffer time When measuring resource and being not used, then delete and recorded corresponding to the resource, but retain underlying resource.
Example four
The end buffer condition of user configuration be the buffer time of configuration reach and the state of resource be without using state, The deletion strategy of user configuration is to delete record and the resource corresponding to the resource.When user have selected pending money Source, and after have selected buffer mode, system start time monitoring, and the use state of resource is detected, arrived when buffer time Reach and detect when detecting that resource is not used, then delete record and the resource corresponding to the resource.
It should be noted that in the present embodiment, buffer condition and deletion strategy can be combined according to demand, be not limited to Combination in above example.
Further, the take-back model selected according to user is handled the pending resource and also included:
When the take-back model is puncturing pattern, corresponding operation is performed according to the deletion strategy of configuration;
Wherein, the deletion strategy includes only deleting corresponding to the resource and recorded, or, deletes and remember corresponding to the resource Record and the resource.
Further, the take-back model selected according to user is handled the pending resource and also included:
It is the shape into before the cloud platform recycle bin by the resource recovery when the take-back model is reforestation practices State.
In the present embodiment, user can configure resource reclaim pattern and deletion strategy according to demand, it is achieved thereby that to money The flexible recovery in source.Meanwhile the present embodiment effectively reduces the damage that maloperation is brought by reasonably being reclaimed to resource Lose.
As shown in Fig. 2 the present embodiment also provides a kind of resource recovery device, cloud platform is arranged at, described device includes:
Selecting module 11, pending resource is determined for the selection according to user;
Processing module 12, for being handled according to the take-back model that user selects the pending resource;
Wherein, take-back model is pre-set, including puncturing pattern, buffer mode or reforestation practices.Further, it is described Processing module 12 includes buffering submodule 121,
The buffering submodule 121, for the knot for when the take-back model is buffer mode, judging whether to meet configuration Beam buffer condition;When meeting the end buffer condition, resource is handled according to the deletion strategy of the configuration;
Wherein, the deletion strategy includes only deleting corresponding to the resource and recorded, or, deletes and remember corresponding to the resource Record and the resource;
The end buffer condition includes any one of following:
The buffer time of configuration reaches;
The state of resource is without using state;
The buffer time of configuration reaches and the state of resource is without using state;
The buffer time of configuration reaches or the state of resource is without using state.
Further,
The buffering submodule 121, it is additionally operable to when being unsatisfactory for the end buffer condition, if user selects to recover behaviour Make, be then the state into before the cloud platform recycle bin by the resource recovery.
Further, the processing module also includes deleting submodule 122,
The deletion submodule 122, for when the take-back model is puncturing pattern, being held according to the deletion strategy of configuration The corresponding operation of row.
Further, the processing module also includes recovering submodule 123,
The recovery submodule 123, for being entrance by the resource recovery when the take-back model is reforestation practices State before the cloud platform recycle bin.
Although disclosed herein embodiment as above, described content be only readily appreciate the present invention and use Embodiment, it is not limited to the present invention.Technical staff in any art of the present invention, taken off not departing from the present invention On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (10)

1. a kind of its recovery method as resource, it is characterised in that methods described includes:
Cloud platform determines pending resource according to the selection of user;
The pending resource is handled according to the take-back model that user selects;
Wherein, take-back model is pre-set, including puncturing pattern, buffer mode or reforestation practices.
2. its recovery method as resource as claimed in claim 1, it is characterised in that the take-back model selected according to user is to institute Stating pending resource and carrying out processing includes:
When the take-back model is buffer mode, judge whether the end buffer condition for meeting configuration;
When meeting the end buffer condition, resource is handled according to the deletion strategy of configuration;
Wherein, the deletion strategy includes only deleting corresponding to the resource and recorded, or, delete record corresponding to the resource with And the resource;
The end buffer condition includes any one of following:
The buffer time of configuration reaches;
The state of resource is without using state;
The buffer time of configuration reaches and the state of resource is without using state;
The buffer time of configuration reaches or the state of resource is without using state.
3. its recovery method as resource as claimed in claim 2, it is characterised in that the take-back model selected according to user is to institute Stating pending resource and being handled also includes:
When being unsatisfactory for the end buffer condition, if user selects recovery operation, by the resource recovery for described in entrance State before cloud platform recycle bin.
4. its recovery method as resource as claimed in claim 3, it is characterised in that the take-back model selected according to user is to institute Stating pending resource and being handled also includes:
When the take-back model is puncturing pattern, resource is handled according to the deletion strategy of the configuration.
5. its recovery method as resource as claimed in claim 4, it is characterised in that the take-back model pair selected according to user The pending resource, which is handled, also to be included:
It is the state into before the cloud platform recycle bin by the resource recovery when the take-back model is reforestation practices.
6. a kind of resource recovery device, is arranged at cloud platform, it is characterised in that described device includes:
Selecting module, pending resource is determined for the selection according to user;
Processing module, for being handled according to the take-back model that user selects the pending resource;
Wherein, take-back model is pre-set, including puncturing pattern, buffer mode or reforestation practices.
7. resource recovery device as claimed in claim 6, it is characterised in that the processing module includes buffering submodule,
The buffering submodule, for the end buffering for when the take-back model is buffer mode, judging whether to meet configuration Condition;When meeting the end buffer condition, resource is handled according to the deletion strategy of the configuration;
Wherein, the deletion strategy includes only deleting corresponding to the resource and recorded, or, delete record corresponding to the resource with And the resource;
The end buffer condition includes any one of following:
The buffer time of configuration reaches;
The state of resource is without using state;
The buffer time of configuration reaches and the state of resource is without using state;
The buffer time of configuration reaches or the state of resource is without using state.
8. resource recovery device as claimed in claim 7, it is characterised in that:
The buffering submodule, it is additionally operable to when being unsatisfactory for the end buffer condition, if user selects recovery operation, by institute It is the state entered before the cloud platform recycle bin to state resource recovery.
9. resource recovery device as claimed in claim 8, it is characterised in that the processing module also includes deleting submodule,
The deletion submodule, for when the take-back model is puncturing pattern, being entered according to the deletion strategy of configuration to resource Row processing.
10. resource recovery device as claimed in claim 9, it is characterised in that the processing module also includes recovering submodule,
The recovery submodule, for being to enter the cloud by the resource recovery when the take-back model is reforestation practices State before platform recycle bin.
CN201710570036.7A 2017-07-13 2017-07-13 A kind of its recovery method as resource and device Pending CN107341058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710570036.7A CN107341058A (en) 2017-07-13 2017-07-13 A kind of its recovery method as resource and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710570036.7A CN107341058A (en) 2017-07-13 2017-07-13 A kind of its recovery method as resource and device

Publications (1)

Publication Number Publication Date
CN107341058A true CN107341058A (en) 2017-11-10

Family

ID=60218031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710570036.7A Pending CN107341058A (en) 2017-07-13 2017-07-13 A kind of its recovery method as resource and device

Country Status (1)

Country Link
CN (1) CN107341058A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491264A (en) * 2018-03-05 2018-09-04 国云科技股份有限公司 A kind of unified resource retrieval management method suitable for isomery cloud
CN110489241A (en) * 2019-08-26 2019-11-22 北京首都在线科技股份有限公司 Recovery method as resource, device, equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110128964A1 (en) * 2000-01-18 2011-06-02 Juniper Networks, Inc. Atm connection band control method and control system
CN102521031A (en) * 2011-12-13 2012-06-27 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN103473296A (en) * 2013-09-04 2013-12-25 国云科技股份有限公司 Recycle bin mechanism and recycle bin system applicable to cloud computing
CN104317623A (en) * 2011-12-13 2015-01-28 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN104424015A (en) * 2013-09-11 2015-03-18 华为技术有限公司 Virtual machine management method and virtual machine management device
CN104486735A (en) * 2014-12-17 2015-04-01 百度在线网络技术(北京)有限公司 Method and device for traceless communication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110128964A1 (en) * 2000-01-18 2011-06-02 Juniper Networks, Inc. Atm connection band control method and control system
CN102521031A (en) * 2011-12-13 2012-06-27 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN104317623A (en) * 2011-12-13 2015-01-28 华为终端有限公司 Management method of preset application programs of mobile terminal and mobile terminal
CN103473296A (en) * 2013-09-04 2013-12-25 国云科技股份有限公司 Recycle bin mechanism and recycle bin system applicable to cloud computing
CN104424015A (en) * 2013-09-11 2015-03-18 华为技术有限公司 Virtual machine management method and virtual machine management device
CN104486735A (en) * 2014-12-17 2015-04-01 百度在线网络技术(北京)有限公司 Method and device for traceless communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491264A (en) * 2018-03-05 2018-09-04 国云科技股份有限公司 A kind of unified resource retrieval management method suitable for isomery cloud
CN110489241A (en) * 2019-08-26 2019-11-22 北京首都在线科技股份有限公司 Recovery method as resource, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105491452B (en) A kind of more video window level switching methods and device
US20090202172A1 (en) Image Inspection Apparatus, Image Inspection Method and Computer Program
CN106201170A (en) The footmark processing method of a kind of application icon and terminal
CN104217151A (en) Locking method for application of intelligent terminal and intelligent terminal
CN103955421A (en) Method and system for file deletion
CN105022955B (en) A kind of locking means and mobile terminal of application program
CN107341058A (en) A kind of its recovery method as resource and device
CN104765559A (en) Misoperation preventing method
CN104142792B (en) A kind of application interface changing method and device
CN105718815A (en) Method and device for automatically cleaning up system files
CN107680003A (en) The node tree generation method and device of project supervision task
CN106775666A (en) A kind of application icon display methods and terminal
CN108255620A (en) A kind of business logic processing method, apparatus, service server and system
CN106228364A (en) A kind of information demonstrating method and present device
CN106096391A (en) Process control method and user terminal
CN103559098B (en) Smart card test number control, Apparatus and system
CN103077049A (en) Smart method and system for updating desktop navigation bar
CN106354359B (en) A kind of method, apparatus and terminal managing application of attending to anything else
CN106469027A (en) A kind of method and device of limited storage space memory storage historical trend data
CN105068781B (en) Splicing display device windowing method and system
CN104200164B (en) Loader virus searching and killing method, device and terminal
CN106384029A (en) Terminal screen-locking setting processing method and apparatus
WO2016204241A1 (en) Image processing device, image processing method, program, and recording medium
KR101225196B1 (en) Method and apparatus for blob labelling in image processing
CN104317673A (en) Program recycling method and device and recovering method and device

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

RJ01 Rejection of invention patent application after publication