CN109582644A - File memory method, device, equipment and computer readable storage medium - Google Patents

File memory method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109582644A
CN109582644A CN201811586657.5A CN201811586657A CN109582644A CN 109582644 A CN109582644 A CN 109582644A CN 201811586657 A CN201811586657 A CN 201811586657A CN 109582644 A CN109582644 A CN 109582644A
Authority
CN
China
Prior art keywords
file
stored
client
synchronized
data
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.)
Granted
Application number
CN201811586657.5A
Other languages
Chinese (zh)
Other versions
CN109582644B (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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201811586657.5A priority Critical patent/CN109582644B/en
Publication of CN109582644A publication Critical patent/CN109582644A/en
Application granted granted Critical
Publication of CN109582644B publication Critical patent/CN109582644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a kind of file memory method, device, equipment and computer readable storage mediums, the method comprising the steps of: after server-side detects the store instruction of storage file to be stored, obtaining the metamessage and the corresponding TOC level number of the server-side of the file to be stored;Generate the file identification of the file to be stored according to the metamessage and the TOC level number, and according in the metamessage file cryptographic Hash and the TOC level number generate the file path of the file to be stored;The store path of the file to be stored is obtained according to the file identification and the file path, and the file to be stored is stored according to the store path.The present invention, which realizes, is added to file meta-information in file identification, without database purchase file meta-information, dependence of the file meta-information to database is avoided, the access efficiency for improving access file meta-information in the reading difficulty for reading file meta-information is reduced.

Description

File memory method, device, equipment and computer readable storage medium
Technical field
The present invention relates to technical field of data processing more particularly to a kind of file memory method, device, equipment and computers Readable storage medium storing program for executing.
Background technique
The file service of operation platform mainly utilizes open source file server and distributed file system structure mostly at present At framework is complex, O&M trouble, and database is needed to carry out the metamessage of storage file.Since the metamessage of file stores Need to reduce the access effect of access file meta-information when in the database, so as to cause each access this document by database Rate.
Summary of the invention
The main purpose of the present invention is to provide a kind of file memory method, device, equipment and computer-readable storage mediums Matter, it is intended to the technical issues of solving the access efficiency of existing file meta-information.
To achieve the above object, the present invention provides a kind of file memory method, the file memory method comprising steps of
When server-side detect storage file to be stored store instruction after, obtain the file to be stored metamessage and The corresponding TOC level number of the server-side;
The file identification of the file to be stored is generated according to the metamessage and the TOC level number, and according to institute It states the file cryptographic Hash in metamessage and the TOC level number generates the file path of the file to be stored;
The store path of the file to be stored is obtained according to the file identification and the file path, and according to described Store path stores the file to be stored.
Preferably, the file identification that the file to be stored is generated according to the metamessage and the TOC level number The step of include:
The TOC level number, the file cryptographic Hash in the metamessage and text are spliced using preset first splicing character Part name obtains the corresponding splicing character string of the file to be stored;
Preset encryption algorithm is obtained, the splicing character string is encoded by the encryption algorithm, described in generation The file identification of file to be stored.
Preferably, the file cryptographic Hash according in the metamessage and the TOC level number generate described wait store The step of file path of file includes:
According to the TOC level number, according to preset characters extracting rule from head in the file cryptographic Hash of the metamessage Position starts to extract level character corresponding with level where each catalogue, wherein different levels respective layer time character number is different Sample;
The level character is spliced using preset second splicing character, to obtain the file road of the file to be stored Diameter.
Preferably, described that the storage road of the file to be stored is obtained according to the file identification and the file path Diameter, and after the step of storing the file to be stored according to the store path, further includes:
After detecting the subscription for subscribing to data request, corresponding communication protocol is requested to determine the subscription according to the subscription Corresponding channel is requested, and returns to subscription success message and corresponds to client to the channel, so that the client is receiving It after the subscription success message, is established and is communicated to connect according to heartbeat mechanism and the server-side, wherein the client and described Running environment in server-side is different;
When detect be successfully established communication connection with the client after, send the synchronous sign on for preparing to the client End, so that the client starts corresponding receiving process according to the synchronous sign on for preparing, and start it is described receive into Synchronous preparation END instruction is returned after journey;
When receive it is described it is synchronous prepare END instruction after, according to the media type field in the communication protocol determine to The media type of synchrodata, and corresponding data to be synchronized are pulled according to the media type and are sent to the client, with The data to be synchronized are received according to the receiving process for the client.
Preferably, described corresponding data to be synchronized are pulled according to the media type to be sent to the client, for The client according to the receiving process receive the data to be synchronized the step of include:
Corresponding data to be synchronized are pulled according to the media type, and by the data to be synchronized pulled according to default Fractionation mode splits to obtain the data block for carrying station location marker;
The data block is sent to the client in a manner of concurrent transmission, so that the client connects according to It takes in journey and receives the data to be synchronized.
Preferably, described that corresponding number to be synchronized is pulled according to the media type when the media type is object According to, and the data to be synchronized pulled are split into the step of obtaining the data block for carrying station location marker according to default fractionation mode Include:
Pull corresponding object to be synchronized according to the media type, and by the object serialization to be synchronized, obtain with The corresponding obj ect file of the object to be synchronized;
The obj ect file is split according to default fractionation mode, obtains the data block for carrying station location marker.
Preferably, described the step of storing the file to be stored according to the store path, includes:
The file to be stored is stored into default hard disk and distributed file system HDFS according to the store path.
Preferably, described that the file to be stored is stored according to the store path by the step into default hard disk and HDFS After rapid, further includes:
When detect downloading file download instruction after, obtained in the default hard disk according to the download instruction described in The corresponding file to be downloaded of download instruction;
If being not successfully downloaded the file to be downloaded in the default hard disk, downloaded from the HDFS described under Published article part, and return to the file to be downloaded of downloading.
In addition, to achieve the above object, the present invention also provides a kind of file storage device, the file storage device packet It includes:
Module is obtained, after for detecting the store instruction of storage file to be stored when server-side, is obtained described wait store The metamessage of file and the corresponding TOC level number of the server-side;
Generation module, for generating the files-designated of the file to be stored according to the metamessage and the TOC level number Know, and according in the metamessage file cryptographic Hash and the TOC level number generate the file road of the file to be stored Diameter;
Memory module, for obtaining the storage road of the file to be stored according to the file identification and the file path Diameter, and the file to be stored is stored according to the store path.
In addition, to achieve the above object, the present invention also provides a kind of file-storage device, the file-storage device includes Memory, processor and it is stored in the file storage program that can be run on the memory and on the processor, the text The step of part storage program realizes file memory method as described above when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium File storage program is stored on storage medium, the file storage program realizes file as described above when being executed by processor The step of storage method.
The present invention passes through the metamessage and corresponding TOC level of the file stored needed for when needing storage file, obtaining Number generates file identification according to metamessage and TOC level number, and according to the file cryptographic Hash and TOC level number in metamessage The file path of file to be stored is obtained, the store path of file to be stored is then obtained according to file identification and file path, File to be stored is stored according to the store path, realizes and file meta-information is added in file identification, is not necessarily to data inventory File meta-information is stored up, dependence of the file meta-information to database is avoided, is reduced in the reading difficulty for reading file meta-information, Improve the access efficiency of access file meta-information.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of file memory method first embodiment of the present invention;
Fig. 3 is the flow diagram of file memory method second embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
It should be noted that Fig. 1 can be the structural schematic diagram of the hardware running environment of file-storage device.The present invention is real Applying a file-storage device can be PC, and the terminal devices such as portable computer are also possible to server.
As shown in Figure 1, this document storage equipment may include: processor 1001, such as CPU, user interface 1003, network Interface 1004, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection between these components Communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user Interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include having for standard Line interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable storage Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processing The storage device of device 1001.
File is stored it will be understood by those skilled in the art that file-storage device structure shown in Fig. 1 is not constituted The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and file storage program.Wherein, operating system is to manage and control file-storage device hardware With the program of software resource, the operation of file storage program and other softwares or program is supported.
In file-storage device shown in Fig. 1, user interface 1003 can be used for detecting store instruction and download instruction etc., Network interface 1004 is mainly used for connecting background server, carries out data communication with background server;And processor 1001 can be with For calling the file storage program stored in memory 1005, and execute following operation:
When server-side detect storage file to be stored store instruction after, obtain the file to be stored metamessage and The corresponding TOC level number of the server-side;
The file identification of the file to be stored is generated according to the metamessage and the TOC level number, and according to institute It states the file cryptographic Hash in metamessage and the TOC level number generates the file path of the file to be stored;
The store path of the file to be stored is obtained according to the file identification and the file path, and according to described Store path stores the file to be stored.
Further, the files-designated that the file to be stored is generated according to the metamessage and the TOC level number The step of knowledge includes:
The TOC level number, the file cryptographic Hash in the metamessage and text are spliced using preset first splicing character Part name obtains the corresponding splicing character string of the file to be stored;
Preset encryption algorithm is obtained, the splicing character string is encoded by the encryption algorithm, described in generation The file identification of file to be stored.
Further, the file cryptographic Hash according in the metamessage and the TOC level number generate described wait deposit Store up file file path the step of include:
According to the TOC level number, according to preset characters extracting rule from head in the file cryptographic Hash of the metamessage Position starts to extract level character corresponding with level where each catalogue, wherein different levels respective layer time character number is different Sample;
The level character is spliced using preset second splicing character, to obtain the file road of the file to be stored Diameter.
Further, described that the storage road of the file to be stored is obtained according to the file identification and the file path Diameter, and after the step of storing the file to be stored according to the store path, processor 1001 can be also used for calling and deposit The file storage program stored in reservoir 1005, and execute following steps:
After detecting the subscription for subscribing to data request, corresponding communication protocol is requested to determine the subscription according to the subscription Corresponding channel is requested, and returns to subscription success message and corresponds to client to the channel, so that the client is receiving It after the subscription success message, is established and is communicated to connect according to heartbeat mechanism and the server-side, wherein the client and described Running environment in server-side is different;
When detect be successfully established communication connection with the client after, send the synchronous sign on for preparing to the client End, so that the client starts corresponding receiving process according to the synchronous sign on for preparing, and start it is described receive into Synchronous preparation END instruction is returned after journey;
When receive it is described it is synchronous prepare END instruction after, according to the media type field in the communication protocol determine to The media type of synchrodata, and corresponding data to be synchronized are pulled according to the media type and are sent to the client, with The data to be synchronized are received according to the receiving process for the client.
Further, described corresponding data to be synchronized are pulled according to the media type to be sent to the client, with Include: according to the step of receiving process reception data to be synchronized for the client
Corresponding data to be synchronized are pulled according to the media type, and by the data to be synchronized pulled according to default Fractionation mode splits to obtain the data block for carrying station location marker;
The data block is sent to the client in a manner of concurrent transmission, so that the client connects according to It takes in journey and receives the data to be synchronized.
Further, when the media type be object when, it is described pulled according to the media type it is corresponding to be synchronized Data, and the data to be synchronized pulled are split to obtain the step for the data block for carrying station location marker according to default fractionation mode Suddenly include:
Pull corresponding object to be synchronized according to the media type, and by the object serialization to be synchronized, obtain with The corresponding obj ect file of the object to be synchronized;
The obj ect file is split according to default fractionation mode, obtains the data block for carrying station location marker.
Further, described the step of storing the file to be stored according to the store path, includes:
The file to be stored is stored into default hard disk and distributed file system HDFS according to the store path.
Further, described to be stored the file to be stored into default hard disk and HDFS according to the store path After step, processor 1001 can be also used for calling the file storage program stored in memory 1005, and execute following step It is rapid:
When detect downloading file download instruction after, obtained in the default hard disk according to the download instruction described in The corresponding file to be downloaded of download instruction;
If being not successfully downloaded the file to be downloaded in the default hard disk, downloaded from the HDFS described under Published article part, and return to the file to be downloaded of downloading.
Based on above-mentioned structure, each embodiment of file memory method is proposed.
It is the flow diagram of file memory method first embodiment of the present invention referring to Fig. 2, Fig. 2.
The embodiment of the invention provides the embodiments of file memory method, it should be noted that although showing in flow charts Go out logical order, but in some cases, it can be with the steps shown or described are performed in an order that is different from the one herein.
File memory method is applied in server or terminal, and terminal may include such as mobile phone, wearable device, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA) etc. are mobile eventually End, and the fixed terminals such as number TV, desktop computer.In each embodiment of this document storage method, for the ease of Description, is illustrated each embodiment with server executing subject.In each embodiment below, server is known as servicing End, it should be noted that server-side may be provided in file-storage device, can also be file-storage device, file memory method Include:
Step S10 obtains the file to be stored after server-side detects the store instruction of storage file to be stored Metamessage and the corresponding TOC level number of the server-side.
After server-side detects the store instruction of storage file to be stored, server-side obtains the metamessage of file to be stored TOC level number corresponding with its.Wherein, which can trigger in server-side as needed for user, can also be service It holds when receiving the file to be stored that other terminals are sent, the store instruction of server-side automatic trigger.Wherein, metamessage includes But it is not limited to the filename and file cryptographic Hash of file to be stored, further, metamessage may also include the text of file to be stored Part size.Specifically, after server-side detects store instruction, server-side obtains the corresponding file to be stored of store instruction, adopts The file cryptographic Hash of file to be stored is calculated with hash algorithm.Hash algorithm includes but is not limited to MD5 (Message-Digest Algorithm, Message Digest 5) and SHA (Secure Hash Algorithm, secure hash algorithm).When server-side is detected To after store instruction, server-side obtains the corresponding configuration file of its database, the configuration file is parsed, to obtain in configuration file Get its current TOC level number.In configuration file, specific fields are pre-set with file in storing data library Therefore TOC level number can obtain current TOC level number by parsing configuration file.
Step S20 generates the file identification of the file to be stored according to the metamessage and the TOC level number, with And according in the metamessage file cryptographic Hash and the TOC level number generate the file path of the file to be stored.
After server-side gets the metamessage and TOC level number of file to be stored, server-side is according to metamessage and mesh Record the file identification that hierachy number generates file to be stored, and according to file cryptographic Hash in metamessage and TOC level number generate to The file path of storage file.
Further, the file identification of the file to be stored is generated according to the metamessage and the TOC level number Mode includes:
1) mode one, the TOC level number, the file in the metamessage spliced using preset first splicing character Cryptographic Hash and filename obtain the corresponding splicing character string of the file to be stored, using splicing character string as text to be stored The file identification of part.
2) mode two, the safety in order to improve file storage, generate according to the metamessage and the TOC level number The step of file identification of the file to be stored includes:
Step a splices the TOC level number, the file Hash in the metamessage using preset first splicing character Value and filename, obtain the corresponding splicing character string of the file to be stored.
Specifically, server-side generates the process of the file identification of file to be stored according to metamessage and TOC level number are as follows: Using the file cryptographic Hash and filename in preset first splicing character splicing TOC level number, metamessage, obtain wait store The corresponding splicing character string of file.Wherein, splicing character string is arranged according to specific needs, can such as set the first splicing character It is set to " & ", " * " or " # " etc..In splicing, the successive suitable of TOC level number, file cryptographic Hash and filename is not limited Sequence can such as splice from front to back according to the sequence of TOC level number, file cryptographic Hash and filename, can also be according to file Hash The sequence of value, TOC level number and filename is spliced from front to back.
Step b obtains preset encryption algorithm, is encoded by the encryption algorithm to the splicing character string, raw At the file identification of the file to be stored.
After obtaining splicing character string, server-side obtains preset encryption algorithm, by the encryption algorithm to splicing character String is encoded, to generate the file identification of file to be stored.It is understood that the splicing character string after coding is wait deposit Store up the file identification of file.Wherein, encryption algorithm includes but is not limited to that base64 and urlEncode (are compiled character string with URL Code).
Such as when the first splicing character string is " & ", and encryption algorithm is base64, if file cryptographic Hash fil e_md5 are as follows: 6 F03da145a908072b6846b53c16113a6, filename file_name are as follows: knowing-viewer_ 1.0.23.18.tar.gz, TOC level number dir_level are as follows: 5, then resulting splicing character string can be dir_level& file_md5&file_name:5&6f03da145a908072b6846b53c16113a6&kn owing-viewer_ 1.0.23.18.tar.gz, after being encoded using base64 to splicing character string, resulting file identification file_id are as follows: NS Y2ZjAzZGExNDVhOTA4MDcyYjY4NDZiNTNjMTYxM TNhNiZrbm93aW5nLXZpZXdlcl8xLjAuMjMuM TgudGFyLmd6。
Further, the file cryptographic Hash according in the metamessage and the TOC level number generate described wait deposit The mode of file path for storing up file includes:
1) mode one, using it is preset second splicing character by the metamessage file cryptographic Hash and the catalogue layer Number sum is spliced, and the file path of the file to be stored is obtained.
2) mode two, in order to improve file storage safety, the file cryptographic Hash according in the metamessage and The step of TOC level number generates the file path of the file to be stored include:
Step c, according to the TOC level number, according to preset characters extracting rule the metamessage file cryptographic Hash In level character corresponding with level where each catalogue is extracted since first place, wherein different levels respective layer time character is a Number is different.
Specifically, server-side according in metamessage file cryptographic Hash and TOC level number file to be stored is calculated The process of file path are as follows: according to TOC level number according to preset characters extracting rule, in the file cryptographic Hash of metamessage from First place starts to extract level character corresponding with level where each catalogue respectively, wherein the corresponding level character of different levels Number is different.Preset characters extracting rule is arranged according to specific needs, such as may be configured as the corresponding level of first floor catalogue Character is the first character of file cryptographic Hash, at this point, the corresponding level character of first floor catalogue, then every layer of catalogue increases by one A level character, at this point, the corresponding level character of second layer catalogue is preceding 2 characters of file cryptographic Hash, third layer catalogue pair The level character answered is preceding 3 characters of file cryptographic Hash, and so on.Such as when TOC level number be 5, i.e. dir_level:5, And file cryptographic Hash file_md5 are as follows: 6f03da145a908072b6846b53c16113a6, the then corresponding level of first floor catalogue Character is 6, and the corresponding level character of second layer catalogue is 6f, and the corresponding level character of third layer catalogue is 6f0, the 4th layer of catalogue Corresponding level character is 6f03, and the corresponding level character of layer 5 catalogue is 6f03d.It should be noted that preset characters mention Take rule to may be alternatively provided as the front two character that the corresponding level character of first floor catalogue is file cryptographic Hash, behind every layer of catalogue increase Add two level characters, then the corresponding level character of first floor catalogue is 6f at this time, and the corresponding level character of second layer catalogue is 6f03, the corresponding level character of third layer catalogue are 6f03da.
Step d splices the level character using preset second splicing character, to obtain the text of the file to be stored Part path.
After the corresponding level character of the level where server-side obtains each catalogue, server-side is according to each TOC level Sequencing, the corresponding level character of level where splicing each catalogue using preset second splicing character from front to back, obtains To the file path of file to be stored.Second splicing character can be arranged according to specific needs by user, such as may be configured as "/", Or it is set as " & ", it is to be understood that the second splicing character can be identical as the first splicing character, can also be with the first splicing word It accords with not identical.Example as described above, the file path of resulting file to be stored are file_dir :/6/6f/6f0/ 6f03/6f03d/。
Step S30 obtains the store path of the file to be stored according to the file identification and the file path, and The file to be stored is stored according to the store path.
After obtaining file identification and file path, server-side obtains file to be stored according to file identification and file path Store path, and according to the store path store file to be stored, wherein it is optional using preset third splicing character splicing The file identification and the file path.Store path is obtained as server-side can combine file identification and file path, i.e., Store path is represented by file_dir/file_id or file_dir.file_id.
The present embodiment passes through the metamessage and corresponding catalogue layer of the file stored needed for when needing storage file, obtaining Number generates file identification according to metamessage and TOC level number, and according to the file cryptographic Hash and TOC level in metamessage Number obtains the file path of file to be stored, then obtains the storage road of file to be stored according to file identification and file path Diameter stores file to be stored according to the store path, realizes and file meta-information is added in file identification, is not necessarily to database Storage file metamessage avoids dependence of the file meta-information to database, and it is difficult in the reading for reading file meta-information to reduce Degree improves the access efficiency of access file meta-information.
Further, file memory method second embodiment of the present invention is proposed.
The difference of the file memory method second embodiment and the file memory method first embodiment is, reference Fig. 3, file memory method further include:
Step S40 requests corresponding communication protocol to determine after detecting the subscription for subscribing to data request according to the subscription Corresponding channel is requested in the subscription, and is returned to subscription success message and corresponded to client to the channel, for the client After receiving the subscription success message, is established and communicated to connect according to heartbeat mechanism and the server-side, wherein the client Running environment in end and the server-side is different.
After server-side detects the subscription request for subscribing to data, server-side determines that corresponding communication protocols are requested in the subscription View.It is understood that it is that client sends subscription request to logical used in server-side that corresponding communication protocol is requested in the subscription Believe agreement.It include that transmission is subscribed to the channel of request, the media type for subscribing to request corresponding data, ordered in the communication protocol The URL (Uniform Resource Locator, uniform resource locator) of request corresponding data is read, transmits subscribe to request every time Corresponding data information, the file cryptographic Hash for subscribing to request corresponding data will subscribe to the data obtained block after request corresponding data is split Station location marker and transmission subscribe to the transmission rate limitation for requesting corresponding data.As communication protocol may be expressed as: $ CMD (order Prompt) $ CHANNEL (channel) $ CONTENT_TYPE (media type) $ SAV E_TARGET (storage class) $ SAVE_URL $ SAVE_DATA $ CALLBACK_URL $ CA LLBACK_DATA $ CONTENT (data information) $ CONTENT_MD5 (file Hash Value) $ S EGMENT (station location marker) $ SPEED_LIMIT (transmission rate limitation).In embodiments of the present invention, client kimonos Running environment in business end is different, such as the running environment in server-side to test environment, in client running environment It can be production environment or cloud production environment, server-side is that can determine that sending the client for subscribing to request is production ring by channel The corresponding client in border or the corresponding client of cloud production environment.Media type includes file and object, storage class and Jie Matter type is related.When media type is file, storage class is hard disk;When media type is object, storage class is number According to library.
After server-side determines communication protocol, is determined to subscribe to according to communication protocol and request corresponding channel, and generate subscription Success message will subscribe to success message and be sent to the corresponding client of the channel.When client receives ordering for server-side transmission After readding success message, client establishes connection according to heartbeat mechanism and server-side.The working principle of heartbeat mechanism is: in server When there is no data interaction in certain time between client, that is, when being in idle (free time) state, client or server meeting A special data packet is sent to other side, after recipient receives this data message, also sends a special number immediately According to message, sender is responded, this i.e. PING-PONG interaction.Naturally, it after certain one end receives heartbeat message, is known that Other side is still online, this ensures TCP (Transmission Control Protocol, transmission control protocol) connection Validity.
After the step S40, when detect be successfully established communication connection with the client after, it is optional directly according to institute The media type that the media type field in communication protocol determines data to be synchronized is stated, and correspondence is pulled according to the media type Data to be synchronized be sent to the client, so that the client receives the number to be synchronized according to the receiving process According to.
Further, in order to improve the efficiency of file storage, after the step S40, method includes:
Step S50, when detect be successfully established communication connection with the client after, send it is synchronous prepare sign on to The client, so that the client starts corresponding receiving process according to the synchronous sign on for preparing, and in starting institute Synchronous preparation END instruction is returned after stating receiving process.
After server-side, which detects it, is successfully established communication connection by heartbeat mechanism with client, server-side, which generates, to be synchronized Prepare sign on, and synchronization preparation sign on is sent to client, so that client starts according to synchronization preparation The synchronous preparation of data is carried out in instruction.When client receive server-side transmission synchronize begin preparing instruction after, client root It is synchronized according to this and begins preparing the corresponding receiving process of instruction starting, and generate synchronous preparation after starting receiving process to terminate to refer to It enables, synchronization preparation END instruction is sent to client.Wherein, during client terminal start-up receiving process, client can Start a receiving process, multiple receiving process can also be started.In the present embodiment, in order to which server-side and client can be quickly same Step data, client first start multiple receiving process.
Step S60, after receiving the synchronous preparation END instruction, according to the media type word in the communication protocol Section determines the media type of data to be synchronized, and pulls corresponding data to be synchronized according to the media type and be sent to the visitor Family end, so that the client receives the data to be synchronized according to the receiving process.
After server-side receives the synchronous preparation END instruction of client transmission, server-side is according to Jie in communication protocol Matter type field determines the media type of data to be synchronized, and pulls corresponding data to be synchronized according to the media type and be sent to Client, so that client receives data to be synchronized according to the receiving process.Specifically, if according to media type field determine to The media type of synchrodata is file, and server-side then pulls data to be synchronized in a hard disk;If true according to media type field The media type of fixed data to be synchronized is object, and server-side then pulls data to be synchronized in the database.It is understood that clothes Business end can determine which data to be synchronized have according to the SAVE_DATA in communication protocol, wherein pass through SAVE_DATA field It can determine the data name, size of data and the generation time of data etc. of data to be synchronized, i.e. data information includes but unlimited In the generation time of data name, size of data and data.
It should be noted that the present embodiment, by the communication protocol, the data realized in the case where unidirectional network is multi-environment are same Step, that is, subscribing to request can only be initiated by client.
Further, after all data to be synchronized are sent to client by server-side, server-side can generate a synchronization Stop message, and synchronization stopping message being sent to client.After client receives synchronous stopping message, client meeting A synchronous end message is generated, and the synchronization end message is sent to server-side, so that server-side is according to the same the end of the step The determining process synchronous with the data between client of message terminates.Further, for data that just server-side understands client Synchronous situation carries out after data synchronize in client, client can be used the CALLBACK_DATA field in communication protocol by its The data information of data to be synchronized obtained returns to server-side, to inform its data for being synchronized of server-side.
Further, step S60 includes:
Step e pulls corresponding data to be synchronized according to the media type, and by the data to be synchronized pulled by It splits to obtain the data block for carrying station location marker according to default fractionation mode.
The data block is sent to the client by step f in a manner of concurrent transmission, for the client according to The receiving process receives the data to be synchronized.
Further, after server-side determines media type, server-side pulls corresponding number to be synchronized according to media type According to, and the data to be synchronized pulled are split to obtain the data block for carrying station location marker according to default fractionation mode.Wherein, it presets Fractionation mode is arranged according to specific needs, as that can set default fractionation mode to split the data to be synchronized pulled At the data block of fixed quantity, the data to be synchronized that default fractionation mode is set as to be pulled can also be split into fixed size Data block.After server-side splits to obtain data to be synchronized corresponding data block, each data block is added according to fractionation sequence Add station location marker, data block is sent to client again by server-side in a manner of concurrent transmission, so that client is according to the reception Process receives data to be synchronized.It is understood that the quantity and client of the data block of server-side concurrent transmission were started The quantity of receiving process is equal.
It should be noted that station location marker is used to identify the position for splitting resulting data block in data to be synchronized, i.e., Indicate fractionation sequence, client can splice data block after receiving data block according to the station location marker, original to obtain , the data to be synchronized before not splitting.
Further, when the media type is object, the step e includes:
Step e1 pulls corresponding object to be synchronized according to the media type, and by the object serialization to be synchronized, Obtain obj ect file corresponding with the object to be synchronized.
Step e2 splits the obj ect file according to default fractionation mode, obtains the data block for carrying station location marker.
Further, when determining media type is object, at this point, data to be synchronized are object to be synchronized.Server-side root Object to be synchronized, and the object serialization to be synchronized that will be pulled are pulled in the database of storage object according to media type, are obtained To obj ect file corresponding with object to be synchronized.It is understood that obj ect file be after object serialization to be synchronized File.Specifically, it pickle can be used treats synchronization object and serialized.Wherein, serializing is by the status information of object Be converted to the process for the form that can store or transmit.After obtaining obj ect file, server-side is split according to default fractionation mode Obj ect file obtains the data block for carrying station location marker.
The present embodiment carries out data by communication protocol between the server-side and client under different running environment and synchronizes, It is synchronous to realize data of the polymorphic type medium in the case where unidirectional network is multi-environment.
Further, file memory method 3rd embodiment of the present invention is proposed.
The difference of the file memory method 3rd embodiment and the file memory method first or second embodiments exists In step S30 includes:
Step g stores the file to be stored to default hard disk and distributed file system according to the store path In HDFS.
After server-side obtains store path, server-side stores file to be stored to default hard disk according to the store path In HDFS (Hadoop Distributed File System, distributed file system), i.e., server-side in default hard disk and Store path is established in HDFS, file to be stored is stored into default hard disk and HDFS, wherein default hard disk can be HDD (Hard Disk Drive, hard disk drive) or HHD (Hybrid Hard Disk, hybrid hard disk) etc., default hard disk can be considered Cache (memory) layer, and HDFS is to permanently store layer.Specifically, server-side is stored by file to be stored to HDFS process In, server-side is stored file to be stored is asynchronous into HDFS.
Further, in order to guarantee the free memory in default hard disk, server-side can periodically be deleted in default hard disk The data of storage.
Further, in order to improve downloading file success rate, file memory method further include:
Step h is obtained in the default hard disk after detecting the download instruction of downloading file according to the download instruction Take the corresponding file to be downloaded of the download instruction.
Step i downloads institute if being not successfully downloaded the file to be downloaded in the default hard disk from the HDFS File to be downloaded is stated, and returns to the file to be downloaded of downloading.
After server-side detects the download instruction of downloading file, server-side obtains in default hard disk according to the download instruction Take the corresponding file to be downloaded of download instruction.It should be noted that carrying the corresponding text of file to be downloaded in download instruction Part name, therefore, server-side can determine file to be downloaded by the filename in download instruction, specifically, according to download instruction In filename search in a hard disk, that is, server-side when accessing file to be downloaded, in a hard disk pass through corresponding file identification Anti- solution obtains file path and metamessage, then returns to file to be downloaded and file meta-information to user, is accessing text to be downloaded Database is needed not move through when part, improves data access efficiency.Refer to if server-side is not found in default hard disk with downloading Corresponding command file to be downloaded is enabled, i.e., fails in default hard disk and downloads file to be downloaded, server-side is then from HDFS The file to be downloaded is downloaded, and the file to be downloaded for returning to downloading gives download instruction counterpart terminal, from downloading in HDFS under The mode of published article part is consistent with the mode downloaded from hard disk, is not repeated herein.Wherein, download instruction counterpart terminal is under sending Instruction is carried to the terminal of server-side.Further, if server-side successfully downloads file to be downloaded, server-side in default hard disk The file to be downloaded downloaded in default hard disk is sent into the corresponding terminal of download instruction.
The present embodiment improves the success of file storage by storing file to be stored into default hard disk and HDFS Rate also improves the success rate that subsequent file searches downloading, and whole process is without database, so that file download is non- Chang Gaoxiao.
In addition, the embodiment of the present invention also proposes that a kind of file storage device, the file storage device include:
Module is obtained, after for detecting the store instruction of storage file to be stored when server-side, is obtained described wait store The metamessage of file and the corresponding TOC level number of the server-side;
Generation module, for generating the files-designated of the file to be stored according to the metamessage and the TOC level number Know, and according in the metamessage file cryptographic Hash and the TOC level number generate the file road of the file to be stored Diameter;
Memory module, for obtaining the storage road of the file to be stored according to the file identification and the file path Diameter, and the file to be stored is stored according to the store path.
Further, the generation module includes:
First concatenation unit, for splicing the TOC level number, the metamessage using preset first splicing character In file cryptographic Hash and filename, obtain the corresponding splicing character string of the file to be stored;
Acquiring unit, for obtaining preset encryption algorithm;
Coding unit encodes the splicing character string by the encryption algorithm, generates the file to be stored File identification.
Further, the generation module further include:
Extraction unit, for according to the TOC level number, according to preset characters extracting rule the metamessage text Level character corresponding with level where each catalogue is extracted in part cryptographic Hash since first place, wherein different levels respective layer Secondary character number is different;
Second concatenation unit, for splicing the level character using preset second splicing character, with obtain it is described to The file path of storage file.
Further, the file storage device further include:
Determining module, for requesting corresponding communication protocols according to the subscription after detecting the subscription for subscribing to data request View determines that corresponding channel is requested in the subscription;
Return module corresponds to client to the channel for returning to subscription success message, so that the client is connecing After receiving the subscription success message, established and communicated to connect according to heartbeat mechanism and the server-side, wherein the client and Running environment in the server-side is different;
Sending module, for when detect be successfully established communication connection with the client after, send and synchronous prepare to start It instructs to the client, corresponds to receiving process so that the client starts according to the synchronous preparation sign on, and Synchronous preparation END instruction is returned after starting the receiving process;
The determining module is also used to after receiving the synchronous preparation END instruction, according in the communication protocol Media type field determines the media type of data to be synchronized;
The sending module, which is also used to pull corresponding data to be synchronized according to the media type, is sent to the client End, so that the client receives the data to be synchronized according to the receiving process.
Further, the sending module includes:
Unit is pulled, for pulling corresponding data to be synchronized according to the media type;
Split cells carries position mark for splitting to obtain according to default fractionation mode by the data to be synchronized pulled The data block of knowledge;
Transmission unit, for the data block to be sent to the client in a manner of concurrent transmission, for the visitor Family end receives the data to be synchronized according to the receiving process.
Further, when the media type is object, the unit that pulls is also used to be drawn according to the media type Corresponding object to be synchronized is taken, and by the object serialization to be synchronized, obtains object text corresponding with the object to be synchronized Part;
The split cells is also used to split the obj ect file according to default fractionation mode, obtains carrying station location marker Data block.
Further, the memory module is also used to be stored the file to be stored to default according to the store path In hard disk and distributed file system HDFS.
Further, the module that obtains is also used to after detecting the download instruction of downloading file, according to the downloading Instruction obtains the corresponding file to be downloaded of the download instruction in the default hard disk;
The file storage device further include:
Download module, if for being not successfully downloaded the file to be downloaded in the default hard disk, from the HDFS The middle downloading file to be downloaded, and return to the file to be downloaded of downloading.
File storage device specific embodiment of the present invention and each embodiment of above-mentioned file memory method are essentially identical, herein It repeats no more.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with file storage program, the file storage program realizes file memory method as described above when being executed by processor The step of.
Computer readable storage medium specific embodiment of the present invention and the basic phase of each embodiment of above-mentioned file memory method Together, details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (16)

1. a kind of file memory method, which is characterized in that the file memory method the following steps are included:
After server-side detects the store instruction of storage file to be stored, the metamessage of the file to be stored and described is obtained The corresponding TOC level number of server-side;
The file identification of the file to be stored is generated according to the metamessage and the TOC level number, and according to the member File cryptographic Hash and the TOC level number in information generate the file path of the file to be stored;
The store path of the file to be stored is obtained according to the file identification and the file path, and according to the storage Path stores the file to be stored.
2. file memory method as described in claim 1, which is characterized in that described according to the metamessage and the catalogue layer Number generates the step of file identification of the file to be stored and includes:
The TOC level number, the file cryptographic Hash in the metamessage and file are spliced using preset first splicing character Name, obtains the corresponding splicing character string of the file to be stored;
Preset encryption algorithm is obtained, the splicing character string is encoded by the encryption algorithm, is generated described wait deposit Store up the file identification of file.
3. file memory method as described in claim 1, which is characterized in that the file Hash according in the metamessage The step of value and the TOC level number generate the file path of the file to be stored include:
According to the TOC level number, opened in the file cryptographic Hash of the metamessage from first place according to preset characters extracting rule Begin to extract level character corresponding with level where each catalogue, wherein different levels respective layer time character number is different;
The level character is spliced using preset second splicing character, to obtain the file path of the file to be stored.
4. file memory method as described in claim 1, which is characterized in that described according to the file identification and the file Path obtains the store path of the file to be stored, and the step of file to be stored is stored according to the store path it Afterwards, further includes:
After detecting the subscription for subscribing to data request, corresponding communication protocol is requested to determine that the subscription is requested according to the subscription Corresponding channel, and return and subscribe to success message and correspond to client to the channel, so that the client is described in receive After subscribing to success message, is established and communicated to connect according to heartbeat mechanism and the server-side, wherein the client and the service Running environment in end is different;
When detect be successfully established communication connection with the client after, send the synchronous sign on for preparing to the client, So that the client starts corresponding receiving process according to the synchronous sign on for preparing, and after starting the receiving process Return to synchronous preparation END instruction;
After receiving the synchronous preparation END instruction, determined according to the media type field in the communication protocol to be synchronized The media type of data, and corresponding data to be synchronized are pulled according to the media type and are sent to the client, for institute It states client and the data to be synchronized is received according to the receiving process.
5. file memory method as claimed in claim 4, which is characterized in that it is described pulled according to the media type it is corresponding Data to be synchronized are sent to the client, so that the client receives the data to be synchronized according to the receiving process Step includes:
Corresponding data to be synchronized are pulled according to the media type, and by the data to be synchronized pulled according to default fractionation Mode splits to obtain the data block for carrying station location marker;
The data block is sent to the client in a manner of concurrent transmission, for the client according to it is described receive into Journey receives the data to be synchronized.
6. file memory method as claimed in claim 5, which is characterized in that when the media type is object, described Corresponding data to be synchronized are pulled according to the media type, and the data to be synchronized pulled are torn open according to default fractionation mode Get carry station location marker data block the step of include:
Pull corresponding object to be synchronized according to the media type, and by the object serialization to be synchronized, obtain with it is described The corresponding obj ect file of object to be synchronized;
The obj ect file is split according to default fractionation mode, obtains the data block for carrying station location marker.
7. such as file memory method as claimed in any one of claims 1 to 6, which is characterized in that described according to the store path The step of storing the file to be stored include:
The file to be stored is stored into default hard disk and distributed file system HDFS according to the store path.
8. file memory method as claimed in claim 7, which is characterized in that it is described according to the store path by described wait deposit Storage file stores after the step into default hard disk and HDFS, further includes:
After detecting the download instruction of downloading file, the downloading is obtained in the default hard disk according to the download instruction Instruct corresponding file to be downloaded;
If being not successfully downloaded the file to be downloaded in the default hard disk, the text to be downloaded is downloaded from the HDFS Part, and return to the file to be downloaded of downloading.
9. a kind of file storage device, which is characterized in that the file storage device includes:
Module is obtained, after for detecting the store instruction of storage file to be stored when server-side, obtains the file to be stored Metamessage and the corresponding TOC level number of the server-side;
Generation module, for generating the file identification of the file to be stored according to the metamessage and the TOC level number, And according in the metamessage file cryptographic Hash and the TOC level number generate the file path of the file to be stored;
Memory module, for obtaining the store path of the file to be stored according to the file identification and the file path, And the file to be stored is stored according to the store path.
10. file storage device as claimed in claim 9, which is characterized in that the generation module includes:
First concatenation unit, for splicing the TOC level number, in the metamessage using preset first splicing character File cryptographic Hash and filename obtain the corresponding splicing character string of the file to be stored;
Acquiring unit, for obtaining preset encryption algorithm;
Coding unit encodes the splicing character string by the encryption algorithm, generates the text of the file to be stored Part mark.
11. file storage device as claimed in claim 9, which is characterized in that the generation module further include:
Extraction unit, for according to the TOC level number, the file according to preset characters extracting rule in the metamessage to be breathed out Level character corresponding with level where each catalogue is extracted in uncommon value since first place, wherein different levels respective layer secondary word It is different to accord with number;
Second concatenation unit, it is described wait store to obtain for splicing the level character using preset second splicing character The file path of file.
12. file storage device as claimed in claim 9, which is characterized in that the file storage device further include:
Determining module, for requesting corresponding communication protocol true according to the subscription after detecting the subscription for subscribing to data request Corresponding channel is requested in the fixed subscription;
Return module corresponds to client to the channel for returning to subscription success message, so that the client is receiving It after the subscription success message, is established and is communicated to connect according to heartbeat mechanism and the server-side, wherein the client and described Running environment in server-side is different;
Sending module, for when detect be successfully established communication connection with the client after, send and synchronous prepare sign on To the client, so that the client starts corresponding receiving process according to the synchronous sign on for preparing, and starting Synchronous preparation END instruction is returned after the receiving process;
The determining module is also used to after receiving the synchronous preparation END instruction, according to the medium in the communication protocol Type field determines the media type of data to be synchronized;
The sending module, which is also used to pull corresponding data to be synchronized according to the media type, is sent to the client, with The data to be synchronized are received according to the receiving process for the client.
13. file storage device as claimed in claim 12, which is characterized in that the sending module includes:
Unit is pulled, for pulling corresponding data to be synchronized according to the media type;
Split cells carries station location marker for splitting to obtain according to default fractionation mode by the data to be synchronized pulled Data block;
Transmission unit, for the data block to be sent to the client in a manner of concurrent transmission, for the client The data to be synchronized are received according to the receiving process.
14. file storage device as claimed in claim 13, which is characterized in that described when the media type is object It pulls unit and is also used to pull corresponding object to be synchronized according to the media type, and by the object serialization to be synchronized, Obtain obj ect file corresponding with the object to be synchronized;
The split cells is also used to split the obj ect file according to default fractionation mode, obtains the data for carrying station location marker Block.
15. a kind of file-storage device, which is characterized in that the file-storage device includes memory, processor and is stored in On the memory and the file storage program that can run on the processor, the file storage program is by the processor It realizes when execution such as the step of file memory method described in any item of the claim 1 to 8.
16. a kind of computer readable storage medium, which is characterized in that be stored with file on the computer readable storage medium and deposit Program is stored up, realizes that file described in any item of the claim 1 to 8 such as stores when the file storage program is executed by processor The step of method.
CN201811586657.5A 2018-12-21 2018-12-21 File storage method, device, equipment and computer readable storage medium Active CN109582644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811586657.5A CN109582644B (en) 2018-12-21 2018-12-21 File storage method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811586657.5A CN109582644B (en) 2018-12-21 2018-12-21 File storage method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109582644A true CN109582644A (en) 2019-04-05
CN109582644B CN109582644B (en) 2023-04-07

Family

ID=65931669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811586657.5A Active CN109582644B (en) 2018-12-21 2018-12-21 File storage method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109582644B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377579A (en) * 2019-07-24 2019-10-25 南京中孚信息技术有限公司 File memory method, device and server
CN110888845A (en) * 2019-11-22 2020-03-17 上海亦存网络科技有限公司 Method and system for collaboratively editing file and monitoring file operation
CN111343274A (en) * 2020-02-28 2020-06-26 国铁吉讯科技有限公司 Data synchronization interaction method
CN111835808A (en) * 2019-08-01 2020-10-27 北京骑胜科技有限公司 Data storage method and device, data reading method and device, and storage medium
CN112187921A (en) * 2020-09-28 2021-01-05 北京浪潮数据技术有限公司 Object file downloading method, device, system, server and storage medium
CN112256196A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 File reading method and device, electronic equipment and computer readable medium
CN112256646A (en) * 2020-10-22 2021-01-22 北京金山云网络技术有限公司 Method and device for operating subdirectory of file system, electronic equipment and storage medium
CN112579623A (en) * 2019-09-29 2021-03-30 北京国双科技有限公司 Method, device, storage medium and equipment for storing data
CN112835908A (en) * 2021-02-22 2021-05-25 广东数程科技有限公司 Time sequence data storage method, system, storage device and storage medium
CN112988681A (en) * 2021-04-07 2021-06-18 拉卡拉支付股份有限公司 File processing method, file processing device, electronic equipment, storage medium and program product
CN113010481A (en) * 2021-03-18 2021-06-22 成都欧珀通信科技有限公司 File capture method, device, terminal and storage medium
CN113010490A (en) * 2021-02-22 2021-06-22 北京字节跳动网络技术有限公司 Data storage method and device and electronic equipment
CN113220649A (en) * 2021-04-21 2021-08-06 浙江大华技术股份有限公司 File storage method, file retrieval method, file storage device, file retrieval device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103229173A (en) * 2012-12-26 2013-07-31 华为技术有限公司 Metadata management method and system
US20140279893A1 (en) * 2013-03-14 2014-09-18 Appsense Limited Document and user metadata storage
CN106446001A (en) * 2016-07-29 2017-02-22 北京北信源软件股份有限公司 Method and system for storing files in computer storage mediums
CN106657267A (en) * 2016-11-15 2017-05-10 华中科技大学 Cloud storage system based on edge server
CN107239522A (en) * 2017-05-26 2017-10-10 努比亚技术有限公司 Picture storage method, equipment and computer-readable storage medium
CN107391280A (en) * 2017-07-31 2017-11-24 郑州云海信息技术有限公司 A kind of reception of small documents and storage method and device
WO2018086466A1 (en) * 2016-11-11 2018-05-17 华为技术有限公司 Data processing method and storage management system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103229173A (en) * 2012-12-26 2013-07-31 华为技术有限公司 Metadata management method and system
US20140279893A1 (en) * 2013-03-14 2014-09-18 Appsense Limited Document and user metadata storage
CN106446001A (en) * 2016-07-29 2017-02-22 北京北信源软件股份有限公司 Method and system for storing files in computer storage mediums
WO2018086466A1 (en) * 2016-11-11 2018-05-17 华为技术有限公司 Data processing method and storage management system
CN106657267A (en) * 2016-11-15 2017-05-10 华中科技大学 Cloud storage system based on edge server
CN107239522A (en) * 2017-05-26 2017-10-10 努比亚技术有限公司 Picture storage method, equipment and computer-readable storage medium
CN107391280A (en) * 2017-07-31 2017-11-24 郑州云海信息技术有限公司 A kind of reception of small documents and storage method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贺劲,吴思宁,孟丹,徐志伟: "网络文件系统中的元数据存取优化研究", 《微电子学与计算机》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377579A (en) * 2019-07-24 2019-10-25 南京中孚信息技术有限公司 File memory method, device and server
CN111835808A (en) * 2019-08-01 2020-10-27 北京骑胜科技有限公司 Data storage method and device, data reading method and device, and storage medium
CN111835808B (en) * 2019-08-01 2023-11-14 北京骑胜科技有限公司 Data storage method and device, data reading method and device, and storage medium
CN112579623A (en) * 2019-09-29 2021-03-30 北京国双科技有限公司 Method, device, storage medium and equipment for storing data
CN110888845A (en) * 2019-11-22 2020-03-17 上海亦存网络科技有限公司 Method and system for collaboratively editing file and monitoring file operation
CN111343274A (en) * 2020-02-28 2020-06-26 国铁吉讯科技有限公司 Data synchronization interaction method
CN112187921A (en) * 2020-09-28 2021-01-05 北京浪潮数据技术有限公司 Object file downloading method, device, system, server and storage medium
CN112256196B (en) * 2020-10-20 2023-03-24 北京字跳网络技术有限公司 File reading method and device, electronic equipment and computer readable medium
CN112256196A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 File reading method and device, electronic equipment and computer readable medium
CN112256646A (en) * 2020-10-22 2021-01-22 北京金山云网络技术有限公司 Method and device for operating subdirectory of file system, electronic equipment and storage medium
CN112256646B (en) * 2020-10-22 2024-03-08 北京金山云网络技术有限公司 Method and device for operating file system subdirectory, electronic equipment and storage medium
CN112835908A (en) * 2021-02-22 2021-05-25 广东数程科技有限公司 Time sequence data storage method, system, storage device and storage medium
CN112835908B (en) * 2021-02-22 2023-01-10 广东数程科技有限公司 Time sequence data storage method, system, storage device and storage medium
CN113010490A (en) * 2021-02-22 2021-06-22 北京字节跳动网络技术有限公司 Data storage method and device and electronic equipment
CN113010481A (en) * 2021-03-18 2021-06-22 成都欧珀通信科技有限公司 File capture method, device, terminal and storage medium
CN112988681A (en) * 2021-04-07 2021-06-18 拉卡拉支付股份有限公司 File processing method, file processing device, electronic equipment, storage medium and program product
CN113220649A (en) * 2021-04-21 2021-08-06 浙江大华技术股份有限公司 File storage method, file retrieval method, file storage device, file retrieval device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109582644B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109582644A (en) File memory method, device, equipment and computer readable storage medium
JP6621543B2 (en) Automatic update of hybrid applications
US9792297B2 (en) File folder transmission on network
US10348823B2 (en) Systems and methods for adding digital content to content management service accounts
US9002962B2 (en) Saving message attachments to an online content management system
US20170109371A1 (en) Method and Apparatus for Processing File in a Distributed System
KR20110086840A (en) Open entity extraction system
JP5601843B2 (en) Community widget providing method and apparatus
WO2014012449A1 (en) Method, device, processing center and system for desktop synchronization
WO2014063550A1 (en) Method and system for microblog resource sharing
US9876776B2 (en) Methods for generating and publishing a web site based on selected items and devices thereof
JP2014505299A (en) Method and apparatus for processing microweb log messages
CN104063475A (en) User-defined list processing method and device
KR101923255B1 (en) Remote access from mobile devices
KR101303672B1 (en) Device and method of sharing contents by devices
US20160156693A1 (en) System and Method for the Management of Content on a Website (URL) through a Device where all Content Originates from a Secured Content Management System
US11868382B1 (en) Software utility toolbox for client devices
CN115834557A (en) Courseware resource processing method, device, equipment and medium
CN103414744B (en) The method and apparatus of private clound discrete type control
CN117170689A (en) Method and device for deploying application program under cloud network
Vanyagin Modul projektu NARRA pro Adobe Premiere Pro
Bruck Bridging the gap between millions of people in real time: fusing data of wearables in services

Legal Events

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