CN102681884A - Method for solving medium asset metadata read-write access conflicts - Google Patents
Method for solving medium asset metadata read-write access conflicts Download PDFInfo
- Publication number
- CN102681884A CN102681884A CN2011100645027A CN201110064502A CN102681884A CN 102681884 A CN102681884 A CN 102681884A CN 2011100645027 A CN2011100645027 A CN 2011100645027A CN 201110064502 A CN201110064502 A CN 201110064502A CN 102681884 A CN102681884 A CN 102681884A
- Authority
- CN
- China
- Prior art keywords
- metadata
- interface
- read
- file
- synchronous
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000001360 synchronised effect Effects 0.000 claims abstract description 19
- 230000008569 process Effects 0.000 claims description 10
- 230000004048 modification Effects 0.000 abstract description 2
- 238000012986 modification Methods 0.000 abstract description 2
- 230000000903 blocking effect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004321 preservation Methods 0.000 description 3
- 230000007717 exclusion Effects 0.000 description 2
- 239000004575 stone Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000010924 continuous production Methods 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method for solving medium asset metadata read-write access conflicts. The method includes the steps of designing a Web Service interface having a synchronous blocking/waiting function; performing a synchronous flow of the interface; and displaying and saving results. By the aid of the method, thread synchronization is achieved, and ordering and integrity of reading, modification and saving of metadata when servers access the metadata simultaneously are achieved.
Description
Technical field
The present invention relates to the broadcasting and TV field, particularly a kind of matchmaker supports the solution of metadata read and write access conflict.
Background technology
In the media asset management system of existing broadcasting and TV field TV station, the mode that reads that the matchmaker supports metadata is: total system is divided into a plurality of submodules, and each sub-module is accomplished the read-write to metadata through direct access system.Because each sub-module is distributed in the different server apparatus, and run on separately under the independent virtual machines environment.Therefore; When a plurality of modules are visited same file simultaneously, when particularly simultaneously in identical file, writing data, just be easy to each other clash; Prior art is difficult to this mutual conflict is managed, and writes, reads problems such as information is unusual with regard to having caused data to cover like this.
Summary of the invention
The present invention provides a kind of matchmaker to support the solution of metadata read and write access conflict.Mode through external issue Web Service interface provides service, has solved in the prior art because the data message that each server is produced when visiting same file simultaneously covers writes, and reads problems such as information is unusual.
For achieving the above object, one aspect of the present invention provides a kind of matchmaker to support the solution of metadata read and write access conflict, comprising:
Design a Web Service interface with synchronous obstruction latency function;
Carry out the synchronous flow process of interface;
Show saving result.
The present invention has the following advantages: the accessing operation through to metadata carries out the mode in the abstract set, and " data access service " of special provides service with the external mode of issuing Web Service interface.Other application program is if the accesses meta-data file must pass through this interface realization.So just the access logic with file is retracted in the controlled scope, lays the first stone for further realizing visit mutual exclusion logics such as thread lock, thread synchronization.In addition, the present invention is to the realization of thread synchronization, reached when server simultaneously accesses meta-data the time, and metadata is read, and revises the order of preservation and integrality.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Figure 1A supports metadata read-write mode synoptic diagram for the prior art matchmaker;
Figure 1B supports the solution synoptic diagram of metadata read and write access conflict for a kind of matchmaker of the embodiment of the invention;
Fig. 2 supports the process flow diagram of the solution of metadata read and write access conflict for a kind of matchmaker of the embodiment of the invention;
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
As shown in Figure 2, the solution for a kind of matchmaker of the embodiment of the invention supports metadata read and write access conflict comprises:
Step S201 designs a Web Service interface with synchronous obstruction latency function.
" data access service " of special provides service with the external mode of issuing Web Sercice interface.When if the accesses meta-data file is thought in other application programs or service, must realize through the interface of this service.This metadata access interface is divided into coarseness and fine granularity two big classes.Coarseness is in order to accomplish the integral body read-write of file; Fine granularity is in order to accomplish the part read-write of file.Two different interface classification adapt to the metadata access demand in different procedure links.Simultaneously, this interface is provided with the function design that synchronous obstruction is waited for.The function of interface each several part is as shown in table 1.
Step S202 carries out the synchronous flow process of interface.
At first, be divided into several portions to a metadata, for example: A section, B section, C section, D section, E section.
Secondly, the user can make amendment to the different portions of this metadata respectively and preserve operation.
Be specially, user 1 reads whole metadata, and the B section has been carried out the operation of revising and preserving, and simultaneously, user 2 also reads whole metadata, and the C section has been carried out the operation of revising and preserving.
As shown in Figure 2; User 1 and user 2 have carried out revising the preservation operation to metadata simultaneously; The content of its preservation belongs to different portions in the file, and, because this interface has the function that synchronous obstruction is waited for; Therefore B section and the C section in the file all obtained renewal after the synchronous processing, and the situation that file is lost or is capped do not occur.
Otherwise, if the design that does not have the synchronous obstruction of interface to wait for, the situation that the file after then preserving will cause confusion, the B section that user 1 revised is not preserved probably.
Step S203 shows saving result.
In fact, the key of synchronous processing is to be designed to the process that can not interrupt, can not bother with reading, change, deposit these a series of continuous processes, and therefore, the synchronous flow process mode of same interface also can reach the purpose of the different metadata of synchronous modification.
Need to prove that the synchronous flow process of this interface only is used for the read/write conflict of the different piece of Uncrossed meta data file in logic to be handled, if user 1 is the B section with the content that user 2 revises, then the B section content revised of user 1 can be capped.Therefore, above-mentioned situation the design does not consider to handle.
The embodiment of the invention is through designing a Web Service interface with synchronous obstruction latency function; Carry out the synchronous flow process of interface; So just the access logic with file is retracted in the controlled scope, lays the first stone for further realizing visit mutual exclusion logics such as thread lock, thread synchronization.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.
Table 1:
Claims (4)
1. a matchmaker supports the solution that the metadata read and write access conflicts, and it is characterized in that, may further comprise the steps:
Design a Web Service interface with synchronous obstruction latency function;
Carry out the synchronous flow process of interface;
Show saving result.
2. the method for claim 1 is characterized in that, said Web Service interface is divided into coarseness and fine granularity two big classes, and said coarseness is in order to accomplish the integral body read-write of file; Said fine granularity is in order to accomplish the part read-write of file.
3. the method for claim 1 is characterized in that, if when the accesses meta-data file is thought in other application programs or service, must realize through this said Web Service interface.
4. the method for claim 1 is characterized in that, said synchronous flow process of carrying out interface specifically comprises the steps:
Be divided into several portions to a metadata;
Different user is made amendment to the different portions of said metadata respectively and is preserved operation;
Metadata after obtaining upgrading.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2011100645027A CN102681884A (en) | 2011-03-17 | 2011-03-17 | Method for solving medium asset metadata read-write access conflicts |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2011100645027A CN102681884A (en) | 2011-03-17 | 2011-03-17 | Method for solving medium asset metadata read-write access conflicts |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102681884A true CN102681884A (en) | 2012-09-19 |
Family
ID=46813855
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2011100645027A Pending CN102681884A (en) | 2011-03-17 | 2011-03-17 | Method for solving medium asset metadata read-write access conflicts |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102681884A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103838853B (en) * | 2014-03-17 | 2017-05-10 | 华中科技大学 | Mixed file system based on different storage media |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1972195A (en) * | 2005-10-18 | 2007-05-30 | 三星电子株式会社 | Method and apparatus for synchronizing multimedia content with a device |
| CN101855629A (en) * | 2007-11-09 | 2010-10-06 | 微软公司 | Collaborative authoring |
| CN101859403A (en) * | 2009-04-09 | 2010-10-13 | 黄忍冬 | Point-to-point real-time collaborative editing system |
| CN101908000A (en) * | 2010-07-08 | 2010-12-08 | 北京航空航天大学 | Blocking awakening method for transaction thread in hardware type transaction storage system |
-
2011
- 2011-03-17 CN CN2011100645027A patent/CN102681884A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1972195A (en) * | 2005-10-18 | 2007-05-30 | 三星电子株式会社 | Method and apparatus for synchronizing multimedia content with a device |
| CN101855629A (en) * | 2007-11-09 | 2010-10-06 | 微软公司 | Collaborative authoring |
| CN101859403A (en) * | 2009-04-09 | 2010-10-13 | 黄忍冬 | Point-to-point real-time collaborative editing system |
| CN101908000A (en) * | 2010-07-08 | 2010-12-08 | 北京航空航天大学 | Blocking awakening method for transaction thread in hardware type transaction storage system |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103838853B (en) * | 2014-03-17 | 2017-05-10 | 华中科技大学 | Mixed file system based on different storage media |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9613082B2 (en) | Database auditing for bulk operations | |
| US9817754B2 (en) | Flash memory management | |
| WO2016188280A1 (en) | Write-in method and device for database sub-tables | |
| CN104407990B (en) | A kind of disk access method and device | |
| CN102682108A (en) | Row and line mixed database storage method | |
| Harris-Birtill et al. | Understanding computation time: a critical discussion of time as a computational performance metric | |
| EP3139290A1 (en) | Method and system for merging data | |
| CN103593447A (en) | Data processing method and device applied to database table | |
| CN111159117A (en) | A low-overhead file operation log collection method | |
| CN105426131A (en) | KV (Key Value) storage implementation method and device | |
| US12118245B2 (en) | File system improvements for zoned storage device operations | |
| CN103617135B (en) | The method and device of digital independent in a kind of storage device | |
| CN107003932B (en) | Cache directory processing method and directory controller of multi-core processor system | |
| CN108304142A (en) | A kind of data managing method and device | |
| CN102681884A (en) | Method for solving medium asset metadata read-write access conflicts | |
| US20250104051A1 (en) | Efficient Creation of Non-Fungible Tokens | |
| CN104252415B (en) | Method and system for redistributing data | |
| US9286348B2 (en) | Dynamic search system | |
| CN104408056A (en) | Data processing method and device | |
| US20110016471A1 (en) | Balancing Resource Allocations Based on Priority | |
| US9251101B2 (en) | Bitmap locking using a nodal lock | |
| CN103186349B (en) | Block level distributed memory system and data read-write method thereof | |
| EP3048541A1 (en) | File access method and device | |
| CN106250562B (en) | Processing data information system | |
| CN203982352U (en) | Stores processor 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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120919 |
|
| RJ01 | Rejection of invention patent application after publication |
