CN106407269A - Processing method and device of storage space object - Google Patents

Processing method and device of storage space object Download PDF

Info

Publication number
CN106407269A
CN106407269A CN201610728681.2A CN201610728681A CN106407269A CN 106407269 A CN106407269 A CN 106407269A CN 201610728681 A CN201610728681 A CN 201610728681A CN 106407269 A CN106407269 A CN 106407269A
Authority
CN
China
Prior art keywords
object data
life cycle
described object
data
memory space
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
CN201610728681.2A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201610728681.2A priority Critical patent/CN106407269A/en
Publication of CN106407269A publication Critical patent/CN106407269A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/1827Management specifically adapted to NAS

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a processing method and device of a storage space object. The method comprises the following steps: starting a timer to record remaining life cycle of object data for the received uploaded object data, wherein the object data comprises the type of the object data and the identity information of the object data; checking the remaining life cycle of the object data at preset time interval, and executing a processing operation on the object data by a corresponding thread started on the background of the terminal equipment when the remaining life cycle of the object data is zero. Through the adoption of the processing method of the storage space object disclosed by the invention, not only is the storage cost of a user saved, but also the existence time of an object can be personally customized to control the life cycle thereof, and the method has the features of being convenient and flexible.

Description

The treating method and apparatus of memory space object
Technical field
It relates to object storage technology field, more particularly to a kind of processing method of memory space object and dress Put.
Background technology
At present, object is stored in the spring tide of internet and receives extensive concern, and has obtained rapid development.Object is deposited Storage is different from file storage, and object is not organized with the structure of directory hierarchy.Each object is all located at being referred to as storage pool The same level in flat space, each element of every one-level has unique mark within the storage system, and user passes through this Identify and to access container or object.Abandon the file of nesting using flat data organizational structure, it is to avoid safeguard huge Directory tree.
In big data and Internet era, the file/object of storage exceedes up to a million, the access times in the unit interval Also reached unprecedented magnitude with concurrent visit capacity, in this case, directory tree can bring very big to storage system Expense and problems, become the bottleneck of system.It is that object stores not that another one allows the factor that vitality is shone in object storage Reoffer POSIX (Portable Operating System Interface of Unix, portable operating system interface) simultaneous The interface (such as open, close, read, write etc.) holding, but can easily pass through HTTP (HyperText Transfer Protocol, HTTP) Restful API (Application Programming Interface, application programming interfaces) interface and object interact:Carry out uploading by PUT and GET and download, by DELETE Deleted.Object storage can provide the user the storage of the larger file such as video, music it is also possible to provide the clothes of daily record Business, in addition, the bigger factor that storage service obtains great development is to achieve the favor of mobile Internet, in the APP of mobile terminal In, object stores the development process that simple HTTP interface simplifies developer, and also can provide the user depositing of magnanimity Storage space.
User, after upload object, generally has a simple demand it is simply that wishing that cloud storage rear end can regularly be deleted Except saved some data, such user just can be without for this partly unwanted data payment expense, but also can Related delete API to reduce) call, thus reduces cost.But existing scheme is only to control from this granularity of bucket Delete during formulation, only allow all objects in whole bucket are timed with deletion setting, this larger setting grain Degree is actually unfavorable for that user is configured to the life cycle of object according to self-demand.Because certain in same bucket A little objects may only need to preserve 1 month, and other objects then remained in need in 1 year.For example, if will The timing erasing time of bucket is deleted after being set to 1 month, then some below there is still a need for the data read will be by Delete;If timing erasing time is set to 1 year, some unwanted data save the long time, thus improve The cost of enterprise.
Content of the invention
Based on this it is necessary to, the problem of high cost long for the memory space object handles time in conventional art, provide one Plant the treating method and apparatus that can effectively improve process time and the memory space object of precision.
For realizing a kind of processing method of memory space object of the object of the invention offer, methods described includes:To reception The upload object data arriving, starts the remaining life cycle of object data described in timer record, wherein, described object data bag Include the type of object data and the identity information of object data;Check the described surplus of described object data every prefixed time interval Remaining life cycle, when the described residue life cycle of described object data is zero, described object data is by terminal device backstage The corresponding thread execution starting processes operation.
Wherein in an embodiment, described to the upload object data receiving, start object described in timer record The step of remaining life cycle before include:Carry out initialization to the described object data being uploaded in object storage cluster to set Put.
Wherein in an embodiment, described the described object data being uploaded in object storage cluster is initialized Setting includes:One initial life cycle is arranged to the described object data being uploaded in described object storage cluster.
Wherein in an embodiment, include after the described step to the upload object data receiving:By application Routine interface changes the described residue life cycle of described object data.
Wherein in an embodiment, when the described residue life cycle of described object data is zero, described number of objects It is overflow status according to corresponding described timer, and the described object data execution deletion action to described overflow status.
Wherein in an embodiment, the identity information based on described object data obtains first number of described object data According to, and the type based on described object data checks to the execution of the metadata of described object data and processes operation;And be based on The identity information of described object data obtains the real data of described object data, and the type based on described object data is to institute The real data execution stating object data is checked and is processed operation.
A kind of processing meanss of the memory space object based on same inventive concept, described device includes:Timer starts Module, for the upload object data receiving, starting the remaining life cycle of object described in timer record, wherein, institute State object data and include the type of object data and the identity information of object data;Check and processing module, for every default Time interval checks the described residue life cycle of described object data, when the described residue life cycle of described object data is When zero, the corresponding thread execution that described object data is started by terminal device backstage processes operation.
Wherein in an embodiment, also include:Setup module, for described right in object storage cluster to being uploaded to Image data carries out Initialize installation.
Wherein in an embodiment, described setup module also has you with regard to being uploaded in described object storage cluster Described object data arranges an initial life cycle.
Wherein in an embodiment, also include:Change module, for changing described number of objects by application programming interfaces According to described residue life cycle.
Wherein in an embodiment, described checking is included with processing module:Removing module, for when described object data Described residue life cycle when being zero, the corresponding described timer of described object data is overflow status, and to described spilling The described object data of state carries out deletion action.
Wherein in an embodiment, described checking also is included with processing module:First checks and processing module, for base In the metadata of the identity information described object data of acquisition of described object data, and the type based on described object data is to institute The metadata execution stating object data is checked and is processed operation;And second check and processing module, for based on described object The identity information of data obtains the real data of described object data, and the type based on described object data is to described number of objects According to real data execution check and process operation.
A kind for the treatment of method and apparatus of memory space object that the present invention provides, to the upload object data receiving, Start the remaining life cycle of timer record object data, wherein, object data includes type and the number of objects of object data According to identity information;Check the remaining life cycle of object data every prefixed time interval, when the remaining life of object data When cycle is zero, the corresponding thread execution that object data is started by terminal device backstage processes operation.Above-mentioned memory space The processing method of object not only can save the carrying cost of user, can be controlled with the survival time of personalized customization object simultaneously Make its life cycle, have the characteristics that convenient, flexible.
Brief description
Fig. 1 is the flow chart of steps of the processing method of memory space object in one embodiment of the invention;
Fig. 2 is the flow chart of steps of the processing method of memory space object in another embodiment of the present invention;
Fig. 3 is the structural representation of the processing meanss of memory space object in one embodiment of the invention;And
Fig. 4 is the structural representation of the processing meanss of memory space object in another embodiment of the present invention.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with accompanying drawing to the present invention's The specific embodiment of the treating method and apparatus of memory space object illustrates.It should be appreciated that it is described herein concrete Embodiment only in order to explain the present invention, is not intended to limit the present invention.
A kind of processing method of the object of memory space that the disclosure provides is the fine-grained object based on object data Life cycle management method, for each object data, when uploading, is required for arranging the survival time of an object data, After exceeding the above-mentioned time, this object data will be executed corresponding operation, i.e. deletion action by terminal device backstage automatically.With When, user dynamically can also change its survival time within the survival time of above-mentioned object data at any time, thus change above-mentioned right The life cycle of image data.
As shown in figure 1, the flow chart of steps for one of the embodiment processing method of memory space object.Specifically Comprise the following steps:
Step 102, to the upload object data receiving, starts the remaining life cycle of timer record object data, Wherein, object data includes the type of object data and the identity information of object data.
In the present embodiment, to the upload object data receiving, start the remaining Life Cycle of timer record object data Include before the step of phase:Initialize installation is carried out to the object data being uploaded in object storage cluster.
Further, carry out Initialize installation to the object data being uploaded in object storage cluster to include:To being uploaded to Object data in object storage cluster arranges an initial life cycle.Further, to the upload object receiving Include after the step of data:Change the remaining life cycle of object data by application programming interfaces.
Step 104, checks the remaining life cycle of object data every prefixed time interval, when the residue of object data is raw When the life cycle is zero, the corresponding thread execution that object data is started by terminal device backstage processes operation.
In the present embodiment, when the remaining life cycle of object data is zero, the corresponding timer of object data is to overflow State, and deletion action is executed to the object data of overflow status.
Further, the identity information based on object data obtains the metadata of object data, and based on object data Type is checked to the metadata execution of object data and is processed operation;And the identity information based on object data obtains number of objects According to real data, and the type based on object data checks to the execution of the real data of object data and processes operation.
A kind of processing method of memory space object that the present invention provides, to the upload object data receiving, it is fixed to start When device record object data remaining life cycle, wherein, object data includes the type of object data and the body of object data Part information;Check the remaining life cycle of object data every prefixed time interval, when the remaining life cycle of object data is When zero, the corresponding thread execution that object data is started by terminal device backstage processes operation.Above-mentioned memory space object Processing method not only can save the carrying cost of user, simultaneously can be with its life of the survival time control of personalized customization object In the life cycle, have the characteristics that convenient, flexible.
As shown in Fig. 2 the flow chart of steps for one of another embodiment processing method of memory space object.Tool Body comprises the following steps:
Step 210, arranges an initial life cycle to the object data being uploaded in object storage cluster.
Step 220, to the upload object data receiving, starts the remaining life cycle of timer record object data. Wherein, object data includes the type of object data and the identity information of object data.
In the present embodiment, to the upload object receiving, include afterwards:Change the residue of object by application programming interfaces It is only necessary to refresh timer, time-out time is new remaining life cycle to life cycle, afterwards waiting timer time-out, when fixed When device time-out, the corresponding thread that object data is started by backstage deleted.
Step 230, the identity information based on object data obtains the metadata of object data, and the class based on object data The metadata to object data for the type, checks the remaining life cycle of metadata, when the residue of metadata every prefixed time interval When life cycle is zero, the corresponding thread execution that metadata is started by terminal device backstage processes operation.
Step 240, the identity information based on object data obtains the real data of object data, and based on object data The real data to object data for the type, checks the remaining life cycle of real data, works as actual number every prefixed time interval According to remaining life cycle be zero when, the corresponding thread execution that real data is started by terminal device backstage processes operation.
Based on same inventive concept, also provide a kind of processing meanss of memory space object, due to this device solve problem Principle similar to a kind of aforementioned processing method of memory space object, therefore, the enforcement of this device can be according to preceding method Concrete steps realize, repeat no more in place of repetition.
As shown in figure 3, the structural representation for one of the embodiment processing meanss of memory space object.This is deposited The processing meanss 10 of storage spatial object include:Timer starting module 200 and checking and processing module 400.
Wherein, timer starting module 200 is used for, to the upload object data receiving, starting timer record number of objects According to remaining life cycle, wherein, object data includes the type of object data and the identity information of object data;Check and locate Reason module 400 is used for checking the remaining life cycle of object data every prefixed time interval, when the remaining life of object data When cycle is zero, the corresponding thread execution that object data is started by terminal device backstage processes operation.
In the present embodiment, check and include removing module 410 for when the remaining Life Cycle of object data with processing module 400 When phase is zero, the corresponding timer of object data is overflow status, and carries out deletion action to the object data of overflow status.
Further, check and also include with processing module 400:First checks with processing module 420 for based on number of objects According to identity information obtain the metadata of object data, and the type based on object data is looked into the execution of the metadata of object data See and process operation;And second check with processing module 430 be used for based on object data identity information obtain object data Real data, and the type based on object data checks to the execution of the real data of object data and processes operation.
In one embodiment, as shown in figure 4, the processing meanss 10 of this memory space object also include:Setup module 100 For Initialize installation is carried out to the object data being uploaded in object storage cluster;And be additionally operable to be uploaded to object storage Object data in cluster arranges an initial life cycle.
In one embodiment, as shown in figure 4, the processing meanss 10 of this memory space object also include:Change module 300 For changing the remaining life cycle of object data by application programming interfaces.
A kind of processing meanss of memory space object that the present invention provides, by timer starting module 200 to receiving Upload object data, start timer record object data remaining life cycle, wherein, object data includes object data Type and object data identity information;Pass through again to check and check number of objects with processing module 400 every prefixed time interval According to remaining life cycle, when the remaining life cycle of object data is zero, object data is started by terminal device backstage Corresponding thread execution processes operation.The storage that the processing meanss of above-mentioned memory space object not only can save user becomes This, can have the characteristics that convenient, flexible with its life cycle of survival time control of personalized customization object simultaneously.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can arbitrarily be combined, for making description succinct, not to above-mentioned reality The all possible combination of each technical characteristic applied in example is all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all it is considered to be the scope of this specification record.
Embodiment described above only have expressed the several embodiments of the present invention, and its description is more concrete and detailed, but simultaneously Therefore the restriction to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, some deformation can also be made and improve, these broadly fall into the guarantor of the present invention Shield scope.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (12)

1. a kind of processing method of memory space object is it is characterised in that methods described includes:
To the upload object data receiving, start the remaining life cycle of object data described in timer record, wherein, described Object data includes the type of object data and the identity information of object data;
Check the described residue life cycle of described object data every prefixed time interval, described when described object data remains When remaining life cycle is zero, the corresponding thread execution that described object data is started by terminal device backstage processes operation.
2. memory space object according to claim 1 processing method it is characterised in that described to the upload receiving Object data, includes before starting the step of remaining life cycle of object data described in timer record:To being uploaded to object Described object data in storage cluster carries out Initialize installation.
3. the processing method of memory space object according to claim 2 is it is characterised in that described deposit to being uploaded to object Described object data in accumulation carries out Initialize installation and includes:To the described object being uploaded in described object storage cluster Data arranges an initial life cycle.
4. memory space object according to claim 1 processing method it is characterised in that described to the upload receiving Include after the step of object data:Change the described residue life cycle of described object data by application programming interfaces.
5. the processing method of memory space object according to claim 1 is it is characterised in that work as described object data Described residue life cycle is when being zero, and the corresponding described timer of described object data is overflow status, and to described spilling shape The described object data execution deletion action of state.
6. the processing method of memory space object according to claim 1 is it is characterised in that based on described object data Identity information obtains the metadata of described object data, and first number to described object data for the type based on described object data Check according to execution and process operation;And
Identity information based on described object data obtains the real data of described object data, and based on described object data Type is checked to the real data execution of described object data and is processed operation.
7. a kind of processing meanss of memory space object are it is characterised in that described device includes:
Timer starting module, for the upload object data receiving, starting the surplus of object data described in timer record Remaining life cycle, wherein, described object data includes the type of object data and the identity information of object data;
Check and processing module, for checking the described residue life cycle of described object data every prefixed time interval, when The described residue life cycle of described object data is when being zero, described object data by terminal device backstage start corresponding Thread execution processes operation.
8. the processing meanss of memory space object according to claim 7 are it is characterised in that also include:Setup module, uses In Initialize installation is carried out to the described object data being uploaded in object storage cluster.
9. the processing meanss of memory space object according to claim 8 are it is characterised in that described setup module is additionally operable to One initial life cycle is arranged to the described object data being uploaded in described object storage cluster.
10. the processing meanss of memory space object according to claim 7 are it is characterised in that also include:Change module, For changing the described residue life cycle of described object data by application programming interfaces.
The processing meanss of 11. memory space objects according to claim 7 are it is characterised in that described check and process mould Block includes:Removing module, for when the described residue life cycle of described object data is zero, described object data is corresponding Described timer is overflow status, and carries out deletion action to the described object data of described overflow status.
The processing meanss of 12. memory space objects according to claim 7 are it is characterised in that described check and process mould Block also includes:First checks and processing module, obtains described object data for the identity information based on described object data Metadata, and the type based on described object data checks to the execution of the metadata of described object data and processes operation;And
Second checks and processing module, obtains the actual number of described object data for the identity information based on described object data According to, and the type based on described object data checks to the execution of the real data of described object data and processes operation.
CN201610728681.2A 2016-08-25 2016-08-25 Processing method and device of storage space object Pending CN106407269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610728681.2A CN106407269A (en) 2016-08-25 2016-08-25 Processing method and device of storage space object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610728681.2A CN106407269A (en) 2016-08-25 2016-08-25 Processing method and device of storage space object

Publications (1)

Publication Number Publication Date
CN106407269A true CN106407269A (en) 2017-02-15

Family

ID=58005066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610728681.2A Pending CN106407269A (en) 2016-08-25 2016-08-25 Processing method and device of storage space object

Country Status (1)

Country Link
CN (1) CN106407269A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083451A (en) * 2019-04-16 2019-08-02 惠州Tcl移动通信有限公司 Network parameter management method, device and the storage medium of mobile terminal
CN112667838A (en) * 2020-12-22 2021-04-16 广州城市职业学院 Photo management method and device, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6240498B1 (en) * 1999-01-06 2001-05-29 International Business Machines Corporation Object oriented storage pool apparatus and method
CN101170551A (en) * 2007-11-30 2008-04-30 中兴通讯股份有限公司 A data aging processing method
CN101556589A (en) * 2008-04-09 2009-10-14 北京闻言科技有限公司 Method for Oracle regularly deleting stale data in database
CN105827635A (en) * 2016-05-09 2016-08-03 乐视控股(北京)有限公司 Object access right changing method and system based on object storage
CN105868216A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Method for realizing object expiration operation and device and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6240498B1 (en) * 1999-01-06 2001-05-29 International Business Machines Corporation Object oriented storage pool apparatus and method
CN101170551A (en) * 2007-11-30 2008-04-30 中兴通讯股份有限公司 A data aging processing method
CN101556589A (en) * 2008-04-09 2009-10-14 北京闻言科技有限公司 Method for Oracle regularly deleting stale data in database
CN105868216A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Method for realizing object expiration operation and device and equipment
CN105827635A (en) * 2016-05-09 2016-08-03 乐视控股(北京)有限公司 Object access right changing method and system based on object storage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083451A (en) * 2019-04-16 2019-08-02 惠州Tcl移动通信有限公司 Network parameter management method, device and the storage medium of mobile terminal
CN112667838A (en) * 2020-12-22 2021-04-16 广州城市职业学院 Photo management method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102567224B (en) Efficient high-speed cache management
CN110663019B (en) File system for Shingled Magnetic Recording (SMR)
CN104657284B (en) Extended utilization area for storage devices
US8332606B2 (en) System and method for distributed persistent computing platform
US8683484B2 (en) Intelligently pre-placing data for local consumption by workloads in a virtual computing environment
CN109558234A (en) A kind of timed task dispatching method and device
CN105302832A (en) File management method and apparatus
CN101840418A (en) User word library synchronous update method, update server and input method system
CN104216902B (en) A kind of paged data stowage, device and system based on server paging
CN110262847B (en) Application program starting acceleration method and device and machine-readable storage medium
CN111324427A (en) Task scheduling method and device based on DSP
CN106790525A (en) File downloading method and device
CN100476726C (en) Resource limited equipment and data accessing method
CN109471843A (en) A kind of metadata cache method, system and relevant apparatus
US10747665B2 (en) Cost-based garbage collection scheduling in a distributed storage environment
CN112835524A (en) Storage resource allocation method, storage resource controller and scheduling system
CN111209090A (en) Method and assembly for creating virtual machine in cloud platform and server
CN106407269A (en) Processing method and device of storage space object
CN107545050A (en) Data query method and device, electronic equipment
CN106302634A (en) A kind of data migration method and system
US10474512B1 (en) Inter-process intra-application communications
US20200073963A1 (en) Hierarchical file transfer using kde-optimized filesize probability densities
CN109710278A (en) Method and device for unloading application program and terminal equipment
CN101964807A (en) Use technology of network disk and method thereof
WO2008083187A2 (en) Dynamically updateable and moveable memory zones

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170215

WD01 Invention patent application deemed withdrawn after publication