CN103731693B - The migration method, apparatus and system of resource - Google Patents

The migration method, apparatus and system of resource Download PDF

Info

Publication number
CN103731693B
CN103731693B CN201310726459.5A CN201310726459A CN103731693B CN 103731693 B CN103731693 B CN 103731693B CN 201310726459 A CN201310726459 A CN 201310726459A CN 103731693 B CN103731693 B CN 103731693B
Authority
CN
China
Prior art keywords
resource
matchmaker
index information
net
storehouse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310726459.5A
Other languages
Chinese (zh)
Other versions
CN103731693A (en
Inventor
王锦
王丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310726459.5A priority Critical patent/CN103731693B/en
Publication of CN103731693A publication Critical patent/CN103731693A/en
Application granted granted Critical
Publication of CN103731693B publication Critical patent/CN103731693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of migration method, apparatus and system of resource, it is related to areas of information technology, resource can be migrated between different operating system, can also be migrated between different file.Methods described includes:Matchmaker provides mark of the storehouse according to the resource carried in the resource migration request received first, obtain the actual storage path of resource, and send index information establishment instruction to the net that makes, then net is made under the preset store path of resource, the corresponding index information of establishing resource, and index information establishment success message is sent to matchmaker's money storehouse, last matchmaker's money storehouse shows resource migration success message.The embodiment of the present invention is suitable for matchmaker to be provided to the resource migration stored the online storage subsystem of storehouse into making net online storage subsystem.

Description

The migration method, apparatus and system of resource
Technical field
The present invention relates to areas of information technology, more particularly to a kind of migration method, apparatus and system of resource.
Background technology
The ample resources of TV station is stored in the storage system of TV station, and the storage mode of the resource of general TV station can To be divided into on-line storage, nearline storage and offline storage.Wherein, on-line storage is used to store real-time resource;Near line Store for filing to expired program;Offline storage is used to back up and file history material.The on-line storage system of TV station System can be divided into making net online storage subsystem and matchmaker's money storehouse online storage subsystem.Wherein, making net is used for the money to TV station Source is made online, and making net includes making net online storage subsystem and client;Matchmaker's money storehouse is used to storing and managing electricity The resource of television stations, matchmaker's money storehouse includes media asset management system, matchmaker's money storehouse online storage subsystem, matchmaker's money storehouse nearline storage system and matchmaker Provide storehouse offline storage system.When making net and needing to use matchmaker to provide the resource stored in the online storage subsystem of storehouse, it is necessary to by moving Server is moved, resource is migrated into making net online storage subsystem from matchmaker's money storehouse online storage subsystem.
At present, set up for resource it is soft link or hard link by way of so that make net can by it is soft link or Person's hard link, accesses the resource stored in matchmaker's money storehouse online storage subsystem.
However, when it is that resource sets up soft link to make net, if it is different from the operating system that matchmaker provides storehouse to make net, making Net can not provide the resource stored in the online storage subsystem of storehouse to matchmaker and conduct interviews, so as to cause resource can not be in different operating system Between migrated;When it is that resource sets up hard link to make net, if it is different from the file system that matchmaker provides storehouse to make net, make Net can not provide the resource stored in the online storage subsystem of storehouse to matchmaker and conduct interviews, so as to cause resource can not be in different file Between migrated.
The content of the invention
The embodiment of the present invention provides a kind of migration method, apparatus and system of resource, and resource can be in different operating system Between migrated, can also be migrated between different file.
The technical scheme that the embodiment of the present invention is used for:
In a first aspect, the embodiment of the present invention provides a kind of moving method of resource, including:
Matchmaker's money storehouse, which is received, makes the resource migration request that net is sent, and the resource migration request carries in need migrated Resource mark;
The matchmaker money storehouse obtains the actual storage path of the resource according to the mark of the resource;
The matchmaker provides storehouse and instructed to the making net transmission index information establishment, and the index information establishment instruction is carried The actual storage path of the resource;
Matchmaker's money storehouse receives the index information for making net transmission and creates success message;
Matchmaker's money storehouse shows resource migration success message.
With reference in a first aspect, in the first possible implementation of first aspect, matchmaker's money storehouse, which is received, makes net Before the step of resource migration of transmission is asked, in addition to:
Matchmaker's money storehouse receives the resource acquisition request for making net transmission, and the resource acquisition request carries described The mark of resource;
The matchmaker provides storehouse according to the mark of the resource, judges locally whether preserving the resource;
If locally preserving the resource, the matchmaker provides storehouse and makes the resource presence that net sends the resource to described Message.
With reference to the first possible implementation of first aspect or first aspect, second in first aspect may Implementation in, the index information creates instruction and carries memory space shared by the resource.
Second with reference to first aspect either the first possible implementation or first aspect of first aspect can The implementation of energy, in the third possible implementation of first aspect, the matchmaker provides storehouse and sends rope to the net that makes Drawing the step of information creating is instructed includes:
The matchmaker money storehouse sends the index information establishment to the making net by privately owned interface function and instructed.
Second aspect, the embodiment of the present invention provides a kind of moving apparatus of resource, including:Media asset management system and matchmaker's money storehouse Online storage subsystem;
The media asset management system includes:
First receiving unit, the resource migration request that net is sent is made for receiving, and the resource migration request is carried Need the mark of resource migrated;
Acquiring unit, the mark of the resource for being received according to first receiving unit obtains the reality of the resource Border store path;
Matchmaker's money storehouse online storage subsystem includes:
First transmitting element, for sending index information establishment instruction to the net that makes, the index information, which is created, to be referred to Order carries the actual storage path for the resource that the acquiring unit is obtained;
Second receiving unit, for when first transmitting element completes the index information and creates the transmission of instruction, Receive the index information for making net transmission and create success message;
The media asset management system also includes:Display unit;
The display unit, for when second receiving unit receives the index information and creates success message, Show resource migration success message.
With reference to second aspect, in the first possible implementation of second aspect,
First receiving unit, is additionally operable to receive the resource acquisition request for making net transmission, the resource acquisition Request carries the mark of the resource;
Matchmaker's money storehouse online storage subsystem also includes:Judging unit;
The judging unit, for the mark of the resource received according to first receiving unit, judges local Whether the resource is preserved;
The media asset management system also includes:Second transmitting element;
Second transmitting element, for when the judging unit judges locally preserving the resource, to described There is message in the resource for making the net transmission resource.
With reference to the first possible implementation of second aspect or second aspect, second in second aspect may Implementation in,
The index information that first transmitting element is sent creates the storage for instructing and carrying shared by the resource Space.
Second with reference to second aspect either the first possible implementation or second aspect of second aspect can The implementation of energy, in the third possible implementation of second aspect,
First transmitting element, is additionally operable to send the index information wound to the net that makes by privately owned interface function Build instruction.
The third aspect, the embodiment of the present invention provides a kind of moving method of resource, including:
Make net and send resource migration request to matchmaker's money storehouse;
The index information for making net reception matchmaker's money storehouse transmission creates instruction, and the index information establishment instruction is taken With the corresponding index information of resource;
The making net creates the corresponding index information of the resource under the preset store path of the resource;
The making net sends index information to matchmaker money storehouse and creates success message.
With reference to the third aspect, in the first possible implementation of the third aspect, the making net is sent out to matchmaker's money storehouse Before sending the step of resource migration is asked, in addition to:
The making net sends resource acquisition request to matchmaker money storehouse;
There is message in the resource for making the resource that net receives matchmaker's money storehouse transmission.
With reference to the first possible implementation of the third aspect or the third aspect, second in the third aspect may Implementation in, the corresponding index information of the resource includes the memory space shared by the resource;
The making net is under the preset store path of the resource, the step of creating the resource corresponding index information Including:
The making net is under the preset store path of the resource, the memory space according to shared by the resource, wound Build the corresponding index information of the resource.
Second with reference to the third aspect either the first possible implementation or the third aspect of the third aspect can Can implementation, in the third possible implementation of the third aspect, the corresponding index information of the resource includes institute State the actual storage path of resource;
The making net is sent to matchmaker money storehouse after the step of index information creates success message, in addition to:
Resource described in the actual storage path access for making the excessively described resource of Netcom.
Second with reference to the third aspect either the first possible implementation or the third aspect of the third aspect can Can implementation, or the third aspect the third possible implementation, possible realized at the 4th kind of the third aspect In mode, the step of index information for making net reception matchmaker's money storehouse transmission creates instruction includes:
The excessively privately owned interface function of Netcom that makes receives the index information establishment instruction that matchmaker's money storehouse is sent.
Fourth aspect, the embodiment of the present invention provides a kind of moving apparatus of resource, including:Client and making net are deposited online Storage system;
The client includes:
First transmitting element, for sending resource migration request to matchmaker's money storehouse;
The making net online storage subsystem includes:
First receiving unit, for when first transmitting element completes the transmission that the resource migration is asked, receiving The index information that matchmaker's money storehouse is sent creates instruction, and the index information creates instruction and carries the corresponding index letter of resource Breath;
Creating unit, under the preset store path of the resource, creating the institute that first receiving unit is received State the corresponding index information of resource;
When the second transmitting element, establishment for completing the corresponding index information of the resource when the creating unit, to Matchmaker's money storehouse sends index information and creates success message.
With reference to fourth aspect, in the first possible implementation of fourth aspect,
First transmitting element, is additionally operable to send resource acquisition request to matchmaker money storehouse;
The client also includes:Second receiving unit;
When second receiving unit, transmission for completing resource acquisition request when first transmitting element, There is message in the resource for receiving the resource that matchmaker's money storehouse is sent.
With reference to the first possible implementation of fourth aspect or fourth aspect, second in fourth aspect may Implementation in,
The corresponding index information of the resource that first receiving unit is received includes the storage shared by the resource Space;
The creating unit, is additionally operable under the preset store path of the resource, is connect according to first receiving unit The memory space shared by the resource received, creates the corresponding index information of the resource.
Second with reference to fourth aspect either the first possible implementation or fourth aspect of fourth aspect can The implementation of energy, in the third possible implementation of fourth aspect,
The corresponding index information of the resource that first receiving unit is received includes the actual storage road of the resource Footpath;
The client also includes:Access unit;
The access unit, for the actual storage path access of the resource received by first receiving unit The resource.
Second with reference to fourth aspect either the first possible implementation or fourth aspect of fourth aspect can Can implementation, or fourth aspect the third possible implementation, possible realized at the 4th kind of fourth aspect In mode,
First receiving unit, is additionally operable to receive the index letter that the matchmaker provides storehouse transmission by privately owned interface function Breath creates instruction.
5th aspect, the embodiment of the present invention provides a kind of migratory system of resource, including:
The making net, for sending resource migration request to matchmaker money storehouse;
The matchmaker provides storehouse, and for receiving the resource migration request for making net transmission, the resource migration request is carried The mark of the resource in need migrated;
The matchmaker provides storehouse, is additionally operable to obtain the actual storage path of the resource according to the mark of the resource, and to institute State making net and send index information establishment instruction, the index information creates instruction and carries the corresponding index letter of the resource Breath;
The making net, is additionally operable to receive the index information establishment instruction that matchmaker's money storehouse is sent, and in the resource Under preset store path, the corresponding index information of the resource is created;
The making net, is additionally operable to send index information establishment success message to matchmaker money storehouse;
The matchmaker provides storehouse, is additionally operable to receive the index information establishment success message for making and netting and sending, and show resource Migrate success message.
The migration method, apparatus and system of resource provided in an embodiment of the present invention, first matchmaker provide storehouse according to the money received The mark of the resource carried in the migration request of source, obtains the actual storage path of resource, and send index letter to the net that makes Breath creates instruction, then makes net under the preset store path of resource, the corresponding index information of establishing resource, and provides storehouse to matchmaker Send index information and create success message, last matchmaker's money storehouse shows resource migration success message.Resource is crossed with making Netcom at present Corresponding soft link or hard link, access the resource stored in matchmaker's money storehouse online storage subsystem and compare, the embodiment of the present invention is led to The resource for making and being preserved in the corresponding index information access matchmaker money storehouse online storage subsystem of resource that net is created is crossed, so that money Source can be migrated between different operating system, can also be migrated between different file.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, can also obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of moving method flow chart for resource that the embodiment of the present invention one is provided;
Fig. 2 is the structural representation that a kind of matchmaker that the embodiment of the present invention one is provided provides storehouse;
Fig. 3 is a kind of moving method flow chart for resource that the embodiment of the present invention two is provided;
Fig. 4 is a kind of structural representation for making net that the embodiment of the present invention two is provided;
Fig. 5 is a kind of structural representation of the migratory system for resource that the embodiment of the present invention three is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.
To make the advantage of technical solution of the present invention clearer, the present invention is made specifically with reference to the accompanying drawings and examples It is bright.
Embodiment one
The embodiment of the present invention provides a kind of moving method of resource, as shown in figure 1, methods described includes:
101st, matchmaker's money storehouse, which is received, makes the resource acquisition request that net is sent.
Wherein, resource acquisition request carries the mark of resource.In embodiments of the present invention, the mark of the resource can be with For the filename of the resource.
For the embodiment of the present invention, matchmaker's money storehouse can be used for the resource of storage and Management Television platform, and matchmaker's money storehouse includes matchmaker Provide management system, matchmaker's money storehouse online storage subsystem and matchmaker's money storehouse nearline storage system;Making net can be used for the money to TV station Source is made online, and making net includes making net online storage subsystem and client.
Specifically, step 101 can be that media asset management system receives the resource acquisition request that client is sent.
102nd, matchmaker provides storehouse according to the mark of the resource, judges locally whether preserving the resource.
Alternatively, it can also include before step 102:The mark of the resource is sent to matchmaker's money storehouse by media asset management system Online storage subsystem, and notify matchmaker to provide storehouse online storage subsystem and judge locally whether preserving the resource.Now, step 102 are specifically as follows, and matchmaker provides storehouse online storage subsystem according to the mark of the resource, judges locally whether preserving the money Source.Alternatively, it can also include after step 102:Matchmaker's money storehouse online storage subsystem will determine that result is sent to media asset management system System.
For the embodiment of the present invention, media asset management system can pass through privately owned interface function:Res_Search resource lookups Function, notifies matchmaker to provide storehouse online storage subsystem and judge locally whether preserving the resource.Wherein, in Res_Search functions Including critical field can be:File_name, the filename for representing the resource.The key of Res_Search functions Field definition is specifically as follows:
Further, matchmaker's money storehouse online storage subsystem can pass through privately owned interface function:Send_Res_Path paths are sent Function, will determine that result is sent to media asset management system.Wherein, the critical field that Send_Res_Path functions include can be with For:File_path, for representing store path of the resource in matchmaker provides storehouse online storage subsystem.Send_Res_Path letters Several critical field definition are specifically as follows:
If the 103, locally preserving the resource, matchmaker money storehouse exists to the resource for making the net transmission resource to disappear Breath.
Specifically, step 103 can be that, if locally preserving the resource, media asset management system is sent out to client The resource of the resource is sent to there is message.Further, there is message with the resource for causing client to receive the resource, concurrently Resource migration is sent to ask.
For the embodiment of the present invention, step 102 can also be that matchmaker's money storehouse online storage subsystem and matchmaker provide storehouse nearline storage system The mark united according to the resource, judges locally whether preserving the resource respectively.Now, step 103 can be, if matchmaker Provide storehouse online storage subsystem to judge locally preserving the resource, then media asset management system sends the resource to client There is message in resource;If matchmaker's money storehouse nearline storage system judges locally preserving the resource, media asset management system passes through Flow is adjusted back by the resource from matchmaker's money storehouse nearline storage system pulls back to matchmaker's money storehouse online storage subsystem, and is sent out to client The resource of the resource is sent to there is message.
Alternatively, media asset management system can pass through web(World Wide Web, World Wide Web)The page shows described There is message in the resource of resource, so that triggering client initiates resource migration request;Meanwhile, media asset management system can also pass through The button of resource migration is pushed, so that triggering client initiates resource migration request.
104th, matchmaker's money storehouse, which is received, makes the resource migration request that net is sent.
Wherein, resource migration request carries the mark of the resource in need migrated.
Specifically, step 104 can be that media asset management system receives the resource migration request that client is sent.
105th, matchmaker money storehouse obtains the actual storage path of the resource according to the mark of the resource.
Specifically, step 105 can be that media asset management system obtains the reality of the resource according to the mark of the resource Store path.
106th, matchmaker provides storehouse and instructed to net transmission index information establishment is made.
Wherein, index information creates the actual storage path that instruction carries the resource.
Alternatively, it can also include before step 106:Media asset management notifications matchmaker provides storehouse online storage subsystem to making Net online storage subsystem sends index information and creates instruction.Now, step 106 can be that matchmaker provides storehouse online storage subsystem to system Make net online storage subsystem and send index information establishment instruction.
Alternatively, step 106 can also be, media asset management system is by privately owned interface function to making net on-line storage system System sends index information and creates instruction.
For the embodiment of the present invention, media asset management system can pass through privately owned interface function:Create_Res_Index is created Information function is indexed, notifies matchmaker to provide storehouse online storage subsystem and refer to the transmission index information establishment of net online storage subsystem is made Order.Wherein, the critical field that Create_Res_Index functions include can be:File_name, for representing the resource Filename;Src_path, the actual storage path for representing the resource;Dst_ip, for representing that make net deposits online The IP address of storage;Dst_path, the preset store path for representing the resource.The key of Create_Res_Index functions Field definition is specifically as follows:
Further, matchmaker's money storehouse online storage subsystem can pass through privately owned interface function:Set_Res_Index sets up index Information function, index information establishment instruction is sent to net online storage subsystem is made.Wherein, wrapped in Set_Res_Index functions The critical field included can be:File_name, the filename for representing the resource;Src_path, for representing the money The actual storage path in source;Dst_path, the preset store path for representing the resource;File_size, for representing State the memory space shared by resource.The critical field definition of Set_Res_Index functions is specifically as follows:
Wherein, actual storage path, the preset store path of the resource of the resource can be included in index information And the information such as the corresponding call number of the resource.In embodiments of the present invention, net online storage subsystem is made by being deposited preset Store up under path, create the corresponding index information of the resource, can realize that client accesses matchmaker's money storehouse by index information online The resource stored in storage, so as to avoid passing through the corresponding soft link of resource or hard link, accesses matchmaker's money storehouse and deposits online The resource stored in storage system, and then resource is migrated between different operating system, can also be in not identical text Migrated between part system.
Preferably, index information, which creates instruction, can also carry the memory space shared by the resource.For example, described Memory space shared by resource can be 500M, 1G, 5G etc..For the embodiment of the present invention, by media asset management system by institute State the memory space shared by resource and be sent to making net online storage subsystem, enable to make the establishment of net online storage subsystem With the storage size identical index information shared by the resource, the true of resource is accessed so as to enhancement-client Sense.
For the embodiment of the present invention, making net online storage subsystem can be by managing memory space or data field being entered Row write 0 is operated, so as to create and the storage size identical index information shared by the resource.Specifically, if making Net online storage subsystem is identical storage system with matchmaker's money storehouse online storage subsystem, then making net online storage subsystem can lead to The mode of management memory space is crossed, is directly created and the storage size identical index information shared by the resource;If It is different storage systems that net online storage subsystem, which is made, from matchmaker's money storehouse online storage subsystem, then making net online storage subsystem can By way of writing 0 operation, to create and the storage size identical index information shared by the resource.
For example, when it is different storage systems to make net online storage subsystem from matchmaker's money storehouse online storage subsystem, if institute It is 500M to state the memory space shared by resource, and the memory space shared by corresponding index information is 20M, then makes net online Storage system is entered row write 0 to remaining 480M memory spaces and operated, so as to create big with memory space shared by the resource Small identical index information.
107th, the index information that reception making net in matchmaker's money storehouse is sent creates success message.
Specifically, step 107 can be that matchmaker's money storehouse online storage subsystem receives the rope for making the transmission of net online storage subsystem Draw information creating success message.
108th, matchmaker's money storehouse shows resource migration success message.
Alternatively, it can also include before step 108:Matchmaker provides storehouse online storage subsystem and sends index to media asset management system Information creating success message.Now, step 108 is specifically as follows, media asset management system display resource migration success message.At this In inventive embodiments, media asset management system can show resource migration success message by web page, so as to remind client Hold resource Successful migration.
For the embodiment of the present invention, media asset management system and matchmaker money storehouse online storage subsystem between, matchmaker money storehouse on-line storage Interacted between system and making net online storage subsystem by privately owned interface function, can avoid providing storehouse on-line storage in matchmaker System and the actual migration for making progress resource between net online storage subsystem, so as to optimize resource migration flow.
Wherein, privately owned interface function can use C/S(Client/Server, client/server)Pattern, can also Using B/S(Browser/Server, browser/server)Pattern.Specifically, it is online by media asset management system and matchmaker's money storehouse Privately owned interface function between storage system, realizes that media asset management system carries out looking into for resource in matchmaker provides storehouse online storage subsystem Look for;Storehouse online storage subsystem is provided by matchmaker and the privately owned interface function between net online storage subsystem is made, realizes that matchmaker's money storehouse exists Line storage system notifies to make the corresponding index information of net online storage subsystem establishing resource.
Further, implementing as method shown in Fig. 1, the embodiments of the invention provide a kind of migration of resource dress Put, the entity of the moving apparatus of the resource can provide storehouse for matchmaker, as shown in Fig. 2 matchmaker money storehouse can include:Media asset management System 21, matchmaker's money storehouse online storage subsystem 22.
Media asset management system 21 includes:First receiving unit 2101, acquiring unit 2102.
First receiving unit 2101, the resource migration request that net is sent is made for receiving.
Wherein, resource migration request carries the mark of the resource in need migrated.
Acquiring unit 2102, the mark of the resource for being received according to the first receiving unit 2101 obtains actually depositing for resource Store up path.
Matchmaker's money storehouse online storage subsystem 22 includes:First transmitting element 2201, the second receiving unit 2202.
First transmitting element 2201, instruction is created for sending index information to making net.
Wherein, index information creates the actual storage path that instruction carries the resource of the acquisition of acquiring unit 2102.
Second receiving unit 2202, for when the first transmitting element 2201 complete index information create instruction transmission when, Receive and make the index information establishment success message that net is sent.
Media asset management system 21 also includes:Display unit 2103.
Display unit 2103, for when the second receiving unit 2202 receives index information and creates success message, showing Resource migration success message.
First receiving unit 2101, is additionally operable to receive the resource acquisition request for making net transmission.
Wherein, resource acquisition request carries the mark of resource.
Matchmaker's money storehouse online storage subsystem 22 also includes:Judging unit 2203.
Judging unit 2203, for the mark of the resource received according to the first receiving unit 2101, judge locally whether Preserve resource.
Media asset management system 21 also includes:Second transmitting element 2104.
Second transmitting element 2104, for when judging unit 2203 judges locally preserving resource, being sent out to net is made The resource of resource is sent to there is message.
The index information that first transmitting element 2201 is sent creates the memory space for instructing and carrying shared by resource.
First transmitting element 2201, is additionally operable to send index information establishment instruction to net is made by privately owned interface function.
It should be noted that its in the moving apparatus of the resource provided in the embodiment of the present invention corresponding to each functional unit He accordingly describes, and may be referred to the correspondence description in Fig. 1, will not be repeated here.
The migration method, apparatus and system of resource provided in an embodiment of the present invention, first matchmaker provide storehouse according to the money received The mark of the resource carried in the migration request of source, obtains the actual storage path of resource, and send index letter to the net that makes Breath creates instruction, then makes net under the preset store path of resource, the corresponding index information of establishing resource, and provides storehouse to matchmaker Send index information and create success message, last matchmaker's money storehouse shows resource migration success message.Resource is crossed with making Netcom at present Corresponding soft link or hard link, access the resource stored in matchmaker's money storehouse online storage subsystem and compare, the embodiment of the present invention is led to The resource for making and being preserved in the corresponding index information access matchmaker money storehouse online storage subsystem of resource that net is created is crossed, so that money Source can be migrated between different operating system, can also be migrated between different file.
Embodiment two
The embodiment of the present invention provides a kind of moving method of resource, as shown in figure 3, methods described includes:
301st, make net and send resource acquisition request to matchmaker's money storehouse.
Wherein, resource acquisition request carries the mark of resource.In embodiments of the present invention, the mark of the resource can be with For the filename of the resource.
For the embodiment of the present invention, make net and can be used for the online resource for making TV station, making net includes making Net online storage subsystem and client;Matchmaker's money storehouse can be used for the resource of storage and Management Television platform, and matchmaker's money storehouse includes matchmaker's money Management system, matchmaker's money storehouse online storage subsystem and matchmaker's money storehouse nearline storage system.
Specifically, step 301 can be that client is obtained to media asset management system transmission resources and asked.
There is message in the resource for the 302nd, making the resource that net receives the storehouse transmission of matchmaker's money.
Specifically, step 302 can be that the resource that client receives the resource that media asset management system is sent has message.
Alternatively, client can be by web(World Wide Web, World Wide Web)Resource is obtained in the page There is message in resource, so that the resource for receiving the resource of media asset management system transmission has message;Meanwhile, client can also lead to The button for obtaining the progress resource migration that media asset management system is pushed is crossed, so as to receive the money of the resource of media asset management system transmission There is message in source.
303rd, the index information for making net reception matchmaker's money storehouse transmission creates instruction.
Wherein, index information creates instruction and carries the corresponding index information of the resource.
Specifically, step 303 can be to make net online storage subsystem to receive the rope that matchmaker's money storehouse online storage subsystem is sent Draw information creating instruction.
For the embodiment of the present invention, privately owned interface function can be passed through by making net online storage subsystem:Set_Res_Index Index information function is set up, the index information establishment instruction that matchmaker's money storehouse online storage subsystem is sent is received.Wherein, Set_Res_ The critical field that Index functions include can be:File_name, the filename for representing the resource;Src_path, Actual storage path for representing the resource;Dst_path, the preset store path for representing the resource;file_ Size, for representing the memory space shared by the resource.The critical field definition of Set_Res_Index functions specifically can be with For:
304th, net is made under the preset store path of the resource, the corresponding index information of establishing resource.
Specifically, step 304 can be to make net online storage subsystem under the preset store path of the resource, wound Build the corresponding index information of resource.
Wherein, the preset store path of the resource can be configured by client, can also online be deposited by making net Storage system is pre-configured with, and the embodiment of the present invention is not limited.In embodiments of the present invention, making net online storage subsystem can , will be described when client is configured without the preset store path of resource with the preset store path of the acquiescence for being pre-configured with resource The preset store path of acquiescence of resource is configured to the preset store path of the resource.
For the embodiment of the present invention, the actual storage path of the resource, the resource can be included in index information The information such as preset store path and the corresponding call number of the resource.In embodiments of the present invention, net online storage subsystem is made By under preset store path, creating the corresponding index information of the resource, it can realize that client is visited by index information The resource stored in matchmaker's money storehouse on-line storage is asked, so as to avoid passing through the corresponding soft link of resource or hard link, is accessed The resource stored in matchmaker's money storehouse online storage subsystem, and then resource is migrated between different operating system, It can be migrated between different file.
Preferably, step 304 can also be to make net online storage subsystem under the preset store path of the resource, Memory space according to shared by the resource, creates the corresponding index information of the resource.
Wherein, the memory space shared by the resource can be 500M, 1G, 5G etc..For the embodiment of the present invention, make Net online storage subsystem can strengthen visitor by establishment and the storage size identical index information shared by the resource Family end accesses the sense of reality of resource.
For the embodiment of the present invention, making net online storage subsystem can be by managing memory space or data field being entered Row write 0 is operated, so as to create and the storage size identical index information shared by the resource.Specifically, if making Net online storage subsystem is identical storage system with matchmaker's money storehouse online storage subsystem, then making net online storage subsystem can lead to The mode of management memory space is crossed, is directly created and the storage size identical index information shared by the resource;If It is different storage systems that net online storage subsystem, which is made, from matchmaker's money storehouse online storage subsystem, then making net online storage subsystem can By way of writing 0 operation, to create and the storage size identical index information shared by the resource.
For example, when it is different storage systems to make net online storage subsystem from matchmaker's money storehouse online storage subsystem, if institute It is 500M to state the memory space shared by resource, and the memory space shared by corresponding index information is 20M, then makes net online Storage system is entered row write 0 to remaining 480M memory spaces and operated, so as to create big with memory space shared by the resource Small identical index information.
For the embodiment of the present invention, make net online storage subsystem and pass through privately owned interface function:Set_Res_State states Information inquiry function, client is sent to by the status information of the resource.Wherein, Set_Res_State functions include Critical field can be:Res_state, for representing whether the resource is index resource, storate_type, for representing Whether make net online storage subsystem with matchmaker's money storehouse online storage subsystem is identical storage system.Set_Res_State functions Critical field definition be specifically as follows:
Wherein, when res_state value is 1, it is index resource that can represent the resource, i.e., described resource is stored in In matchmaker's money storehouse online storage subsystem;When res_state value is 0, it is local resource, i.e., described money that can represent the resource Source is stored in making net online storage subsystem.When storate_type value is 1, it can represent to make net on-line storage system System is identical storage system with matchmaker's money storehouse online storage subsystem;When storate_type value is 0, it can represent to make net Online storage subsystem is different storage systems from matchmaker's money storehouse online storage subsystem.
305th, make net and send index information establishment success message to matchmaker's money storehouse.
Specifically, step 305 can be to make net online storage subsystem to send index letter to matchmaker's money storehouse online storage subsystem Breath creates success message.
306th, resource described in the actual storage path access of the excessively described resource of Netcom is made.
Specifically, step 306 can be that client passes through resource described in the actual storage path access of the resource.
Wherein, the corresponding index information of resource includes the actual storage path of resource.
For the embodiment of the present invention, make between net online storage subsystem and matchmaker's money storehouse online storage subsystem, making net exists Interacted between line storage system and client by privately owned interface function, can avoid matchmaker money storehouse online storage subsystem with The actual migration of resource is carried out between making net online storage subsystem, so as to optimize resource migration flow.
Wherein, privately owned interface function can use C/S(Client/Server, client/server)Pattern, can also Using B/S(Browser/Server, browser/server)Pattern.Specifically, provided by making net online storage subsystem with matchmaker Privately owned interface function between the online storage subsystem of storehouse, realizes that making net online storage subsystem receives index information establishment instruction; By making the privately owned interface function between net online storage subsystem and client, realize that client is making net on-line storage system The status information of resource is searched in system.
Further, implementing as method shown in Fig. 3, the embodiments of the invention provide a kind of migration of resource dress Put, the entity of the moving apparatus of the resource can be to make net, as shown in figure 4, the making net can include:Client 41st, net online storage subsystem 42 is made.
Client 41 includes:First transmitting element 4101.
First transmitting element 4101, for sending resource migration request to matchmaker's money storehouse.
Making net online storage subsystem 42 includes:First receiving unit 4201, creating unit 4202, the second transmitting element 4203。
First receiving unit 4201, for when the first transmitting element 4101 completes the transmission that resource migration is asked, receiving The index information that matchmaker's money storehouse is sent creates instruction.
Wherein, index information creates instruction and carries the corresponding index information of resource.
Creating unit 4202, under the preset store path of resource, creating the money that the first receiving unit 4201 is received The corresponding index information in source.
When the second transmitting element 4203, establishment for completing the corresponding index information of resource when creating unit 4202, to Matchmaker's money storehouse sends index information and creates success message.
First transmitting element 4101, is additionally operable to send resource acquisition request to matchmaker's money storehouse.
Client 41 also includes:Second receiving unit 4102.
Second receiving unit 4102, for when the first transmitting element 4101 completes the transmission that resource acquisition is asked, receiving There is message in the resource for the resource that matchmaker's money storehouse is sent.
The corresponding index information of resource that first receiving unit 4201 is received includes the memory space shared by resource.
Creating unit 4202, is additionally operable under the preset store path of resource, is received according to the first receiving unit 4201 Memory space shared by resource, the corresponding index information of establishing resource.
The corresponding index information of resource that first receiving unit 4201 is received includes the actual storage path of resource.
Client 41 also includes:Access unit 4103.
Access unit 4103, for the actual storage path access money of the resource received by the first receiving unit 4201 Source.
First receiving unit 4201, is additionally operable to refer to by the index information establishment that privately owned interface function receives the storehouse transmission of matchmaker's money Order.
It should be noted that its in the moving apparatus of the resource provided in the embodiment of the present invention corresponding to each functional unit He accordingly describes, and may be referred to the correspondence description in Fig. 3, will not be repeated here.
The migration method, apparatus and system of resource provided in an embodiment of the present invention, first matchmaker provide storehouse according to the money received The mark of the resource carried in the migration request of source, obtains the actual storage path of resource, and send index letter to the net that makes Breath creates instruction, then makes net under the preset store path of resource, the corresponding index information of establishing resource, and provides storehouse to matchmaker Send index information and create success message, last matchmaker's money storehouse shows resource migration success message.Resource is crossed with making Netcom at present Corresponding soft link or hard link, access the resource stored in matchmaker's money storehouse online storage subsystem and compare, the embodiment of the present invention is led to The resource for making and being preserved in the corresponding index information access matchmaker money storehouse online storage subsystem of resource that net is created is crossed, so that money Source can be migrated between different operating system, can also be migrated between different file.
Embodiment three
The embodiment of the present invention provides a kind of migratory system of resource, and as described in Figure 5, the system includes:Make the He of net 51 Matchmaker provides storehouse 52.
Net 51 is made, for sending resource migration request to matchmaker's money storehouse 52.
Matchmaker provides storehouse 52, and the resource migration request that net 51 is sent is made for receiving.
Wherein, resource migration request carries the mark of the resource in need migrated.
Matchmaker provides storehouse 52, is additionally operable to obtain the actual storage path of the resource according to the mark of the resource, and to making Net 51 sends index information and creates instruction.
Wherein, index information creates instruction and carries the corresponding index information of the resource.
Net 51 is made, is additionally operable to receive the index information establishment instruction that matchmaker's money storehouse 52 is sent, and in the preset of the resource Under store path, the corresponding index information of the resource is created.
Net 51 is made, is additionally operable to send index information establishment success message to matchmaker's money storehouse 52.
Matchmaker provides storehouse 52, is additionally operable to receive the index information establishment success message for making the transmission of net 51, and show resource migration Success message.
The migration method, apparatus and system of resource provided in an embodiment of the present invention, first matchmaker provide storehouse according to the money received The mark of the resource carried in the migration request of source, obtains the actual storage path of resource, and send index letter to the net that makes Breath creates instruction, then makes net under the preset store path of resource, the corresponding index information of establishing resource, and provides storehouse to matchmaker Send index information and create success message, last matchmaker's money storehouse shows resource migration success message.Resource is crossed with making Netcom at present Corresponding soft link or hard link, access the resource stored in matchmaker's money storehouse online storage subsystem and compare, the embodiment of the present invention is led to The resource for making and being preserved in the corresponding index information access matchmaker money storehouse online storage subsystem of resource that net is created is crossed, so that money Source can be migrated between different operating system, can also be migrated between different file.The present invention is implemented The device of the migration for the resource that example is provided can realize the embodiment of the method for above-mentioned offer, and concrete function realizes that the method that refers to is real The explanation in example is applied, be will not be repeated here.The migration method, apparatus and system of resource provided in an embodiment of the present invention can be applicable In the resource migration that will be stored in matchmaker's money storehouse online storage subsystem into making net online storage subsystem, but it is not limited only to this.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow 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)Deng.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can be readily occurred in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (17)

1. a kind of moving method of resource, it is characterised in that including:
Matchmaker's money storehouse, which is received, makes the resource migration request that net is sent, and the resource migration request carries the money in need migrated The mark in source;
The matchmaker money storehouse obtains the actual storage path of the resource according to the mark of the resource;
The matchmaker money storehouse sends index information establishment to the making net by privately owned interface function and instructed, and the index information is created Build the actual storage path that instruction carries the resource;
Matchmaker's money storehouse receives the index information for making net transmission and creates success message;
Matchmaker's money storehouse shows resource migration success message.
2. the moving method of resource according to claim 1, it is characterised in that matchmaker's money storehouse, which is received, makes what net was sent Before the step of resource migration is asked, in addition to:
Matchmaker's money storehouse receives the resource acquisition request for making net transmission, and the resource acquisition request carries the resource Mark;
The matchmaker provides storehouse according to the mark of the resource, judges locally whether preserving the resource;
If locally preserving the resource, the matchmaker money storehouse exists to the resource for making the net transmission resource to disappear Breath.
3. the moving method of resource according to claim 1 or 2, it is characterised in that the index information creates instruction and taken With the memory space shared by the resource.
4. a kind of moving method of resource, it is characterised in that including:
Make net and send resource migration request to matchmaker's money storehouse;
The making net receives the index information establishment instruction that the matchmaker money storehouse is sent by privately owned interface function, the index letter Breath creates instruction and carries the corresponding index information of resource;
The making net creates the corresponding index information of the resource under the preset store path of the resource;
The making net sends index information to matchmaker money storehouse and creates success message.
5. the moving method of resource according to claim 4, it is characterised in that the making net sends resource to matchmaker's money storehouse Before the step of migration request, in addition to:
The making net sends resource acquisition request to matchmaker money storehouse;
There is message in the resource for making the resource that net receives matchmaker's money storehouse transmission.
6. the moving method of the resource according to claim 4 or 5, it is characterised in that the corresponding index information of the resource Including the memory space shared by the resource;
The making net is under the preset store path of the resource, and the step of creating the resource corresponding index information is wrapped Include:
The making net is under the preset store path of the resource, and the memory space according to shared by the resource creates institute State the corresponding index information of resource.
7. the moving method of the resource according to claim 4 or 5, it is characterised in that the corresponding index information of the resource Actual storage path including the resource;
The making net is sent to matchmaker money storehouse after the step of index information creates success message, in addition to:
Resource described in the actual storage path access for making the excessively described resource of Netcom.
8. the moving method of the resource according to claim 4 or 5, it is characterised in that the making net receives matchmaker's money The step of index information that storehouse is sent creates instruction includes:
The excessively privately owned interface function of Netcom that makes receives the index information establishment instruction that matchmaker's money storehouse is sent.
9. a kind of moving apparatus of resource, it is characterised in that including:Media asset management system and matchmaker's money storehouse online storage subsystem;
The media asset management system includes:
First receiving unit, the resource migration request that net is sent is made for receiving, and the resource migration request carries in need The mark of the resource migrated;
Acquiring unit, the mark of the resource for being received according to first receiving unit obtains actually depositing for the resource Store up path;
Matchmaker's money storehouse online storage subsystem includes:
First transmitting element, for sending index information establishment instruction, the rope to the net that makes by privately owned interface function Draw the actual storage path that information creating instruction carries the resource that the acquiring unit is obtained;
Second receiving unit, for when first transmitting element completes the transmission that the index information establishment is instructed, receiving It is described to make the index information establishment success message that net is sent;
The media asset management system also includes:Display unit;
The display unit, for when second receiving unit receives the index information and creates success message, showing Resource migration success message.
10. the moving apparatus of resource according to claim 9, it is characterised in that
First receiving unit, is additionally operable to receive the resource acquisition request for making net transmission, the resource acquisition request Carry the mark of the resource;
Matchmaker's money storehouse online storage subsystem also includes:Judging unit;
The judging unit, for the mark of the resource received according to first receiving unit, judge locally whether Preserve the resource;
The media asset management system also includes:Second transmitting element;
Second transmitting element, for when the judging unit judges locally preserving the resource, being made to described There is message in the resource that net sends the resource.
11. the moving apparatus of the resource according to claim 9 or 10, it is characterised in that
The index information that first transmitting element is sent creates the memory space for instructing and carrying shared by the resource.
12. a kind of moving apparatus of resource, it is characterised in that including:Client and making net online storage subsystem;
The client includes:
First transmitting element, for sending resource migration request to matchmaker's money storehouse;
The making net online storage subsystem includes:
First receiving unit, for when first transmitting element completes the transmission that the resource migration is asked, receiving described Matchmaker provides the index information establishment instruction that storehouse is sent by privately owned interface function, and the index information creates instruction and carries resource pair The index information answered;
Creating unit, under the preset store path of the resource, creating the money that first receiving unit is received The corresponding index information in source;
When the second transmitting element, establishment for completing the corresponding index information of the resource when the creating unit, to described Matchmaker's money storehouse sends index information and creates success message.
13. the moving apparatus of resource according to claim 12, it is characterised in that
First transmitting element, is additionally operable to send resource acquisition request to matchmaker money storehouse;
The client also includes:Second receiving unit;
Second receiving unit, for when first transmitting element completes the transmission that the resource acquisition is asked, receiving There is message in the resource for the resource that matchmaker's money storehouse is sent.
14. the moving apparatus of the resource according to claim 12 or 13, it is characterised in that
The corresponding index information of the resource that first receiving unit is received includes the memory space shared by the resource;
The creating unit, is additionally operable under the preset store path of the resource, is received according to first receiving unit Memory space shared by the resource, creates the corresponding index information of the resource.
15. the moving apparatus of the resource according to claim 12 or 13, it is characterised in that
The corresponding index information of the resource that first receiving unit is received includes the actual storage path of the resource;
The client also includes:Access unit;
The access unit, for described in the actual storage path access of the resource received by first receiving unit Resource.
16. the moving apparatus of the resource according to claim 12 or 13, it is characterised in that
First receiving unit, is additionally operable to send by privately owned interface function by privately owned interface function reception matchmaker's money storehouse The index information create instruction.
17. a kind of migratory system of resource, it is characterised in that including:Matchmaker provides storehouse and makes net;
The making net, for sending resource migration request to matchmaker money storehouse;
The matchmaker provides storehouse, and for receiving the resource migration request for making net transmission, the resource migration request is carried and needed The mark of the resource migrated;
The matchmaker provides storehouse, is additionally operable to obtain the actual storage path of the resource according to the mark of the resource, and by privately owned Interface function sends index information establishment instruction to the net that makes, and the index information creates instruction and carries the resource pair The index information answered;
The making net, is additionally operable to receive the index information establishment instruction that matchmaker's money storehouse is sent, and in the preset of the resource Under store path, the corresponding index information of the resource is created;
The making net, is additionally operable to send index information establishment success message to matchmaker money storehouse;
The matchmaker provides storehouse, is additionally operable to receive the index information establishment success message for making and netting and sending, and show resource migration Success message.
CN201310726459.5A 2013-12-25 2013-12-25 The migration method, apparatus and system of resource Active CN103731693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310726459.5A CN103731693B (en) 2013-12-25 2013-12-25 The migration method, apparatus and system of resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310726459.5A CN103731693B (en) 2013-12-25 2013-12-25 The migration method, apparatus and system of resource

Publications (2)

Publication Number Publication Date
CN103731693A CN103731693A (en) 2014-04-16
CN103731693B true CN103731693B (en) 2017-09-05

Family

ID=50455593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310726459.5A Active CN103731693B (en) 2013-12-25 2013-12-25 The migration method, apparatus and system of resource

Country Status (1)

Country Link
CN (1) CN103731693B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400245B (en) * 2020-03-25 2023-09-26 网易(杭州)网络有限公司 Art resource migration method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699436A (en) * 2009-10-20 2010-04-28 中兴通讯股份有限公司 Method, device and system for resource management
CN102404378A (en) * 2010-09-07 2012-04-04 成都索贝数码科技股份有限公司 Streaming media distribution and transmission network system
CN102682029A (en) * 2011-03-17 2012-09-19 新奥特(北京)视频技术有限公司 Implementation mode of tight coupling between production system and medium resource system
CN102724332A (en) * 2011-12-30 2012-10-10 新奥特(北京)视频技术有限公司 Dynamic matching method of network service address
CN103200260A (en) * 2013-04-01 2013-07-10 天脉聚源(北京)传媒科技有限公司 Resource transmission method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699436A (en) * 2009-10-20 2010-04-28 中兴通讯股份有限公司 Method, device and system for resource management
CN102404378A (en) * 2010-09-07 2012-04-04 成都索贝数码科技股份有限公司 Streaming media distribution and transmission network system
CN102682029A (en) * 2011-03-17 2012-09-19 新奥特(北京)视频技术有限公司 Implementation mode of tight coupling between production system and medium resource system
CN102724332A (en) * 2011-12-30 2012-10-10 新奥特(北京)视频技术有限公司 Dynamic matching method of network service address
CN103200260A (en) * 2013-04-01 2013-07-10 天脉聚源(北京)传媒科技有限公司 Resource transmission method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电视台全台网建设中媒体资产管理系统应用的研究;张洋;《万方数据库学位论文》;20100201;第1至65页 *

Also Published As

Publication number Publication date
CN103731693A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
CN102902805B (en) A kind of page access method and apparatus
CN103765423B (en) Gathering transaction data associated with locally stored data files
CN104823170B (en) Distributed cache cluster management
CN103988200B (en) For the lightweight frame of web applications
CN110032571A (en) Business flow processing method, apparatus, storage medium and calculating equipment
CN105868231A (en) Cache data updating method and device
CN107885777A (en) A kind of control method and system of the crawl web data based on collaborative reptile
CN107566150A (en) Handle the method and physical node of cloud resource
CN103916455A (en) Method And System For Data Replication
WO2015116863A1 (en) Private cloud connected device cluster architecture
CN104040995B (en) Multimedia redirection method, multimedia server, and computer system
CN103412910A (en) Methods and devices for building tag library and searching users
CN106156133A (en) Method that control table substance is submitted to again, Apparatus and system
CN109597640B (en) Account management method, device, equipment and medium for application program
CN110598441A (en) User privacy protection method and device
CN108563697A (en) A kind of data processing method, device and storage medium
CN106330788B (en) Message fragment transmission method and device
CN105453520A (en) Techniques to manage state information for a web service
CN103546369B (en) A kind of collaboration method, server, client and system
CN106817388A (en) The system that virtual machine, host obtain the method, device and access data of data
CN106713391A (en) Session information sharing method and sharing system
CN109815430A (en) Request processing method, device, data processing server and readable storage medium storing program for executing
CN106878370A (en) The update method and equipment of a kind of local cache
CN110519240A (en) A kind of single-point logging method, apparatus and system

Legal Events

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