The content of the invention
The embodiment of the present invention provides a kind of distributed data storage method and device, to improve production efficiency and make digitlization
Printing-flow more automates, is specialized, saves hand inspection cost, strengthens flow system security control and collaborative work energy
Power.
The one side of the embodiment of the present invention is to provide a kind of distributed data storage method, including:
Receive the file upload request that user terminal is sent;
According to the file upload request, the IP address and storage address of acquisition primary storage server;
The IP address of the primary storage server and storage address are sent to the user terminal, so that the user is whole
Hold transmitting file in IP address and storage address according to the primary storage server;
Receive the file, generation standard pdf document, print inspection analysis report, printable TIFF figures;
According to preset rules, determine whether the file needs to back up, the preset rules are used to determine the file, institute
That states in standard pdf document, the print inspection analysis report and the printable TIFF figures at least one needs to back up;
If the file needs to back up, the file backed up storage will be needed to arrive from storage server.
The other side of the embodiment of the present invention is to provide a kind of Distributed Storage device, including:
Receiving module, for receiving the file upload request of user terminal transmission;
Acquisition module, for according to the file upload request, the IP address and storage address of acquisition primary storage server;
Sending module, for the IP address of the primary storage server and storage address to be sent to the user terminal,
So that the user terminal is according to transmitting file in the IP address and storage address of the primary storage server;
Generation module, after receiving the file for the receiving module, generation standard pdf document, print inspection
Analysis report, printable TIFF figures;
Determining module, for according to preset rules, determining whether the file needs to back up, the preset rules are for true
It is at least one in the fixed file, the standard pdf document, the print inspection analysis report and the printable TIFF figures
It needs to back up;
Memory module if needing to back up for the file, will need the file backed up storage to arrive from storage server.
Distributed data storage method and device provided in an embodiment of the present invention can carry out file to be based on network file
The distributed storage of system, user can directly access storage system so that storage system is more directly perceived efficient;Based on distributed
Design Storage pattern can be added dynamically or change storage resource at any time, and storage is expanded beneficial to level;Selective backup plan
Slightly cause user that can abandon inessential provisional data or non-critical data according to progress resource backup is needed, drop
Low system so as to improve production efficiency and digital printing flow be made more to automate, specialized, saves the demand of memory space
Less manpower check cost strengthens flow system security control and collaborative work ability.
Specific embodiment
Fig. 1 is distributed data storage method flow chart provided in an embodiment of the present invention;Fig. 2 is another embodiment of the present invention
The Organization Chart of the storage system of offer.An embodiment of the present invention provides distributed data storage methods, and this method specific steps are such as
Under:
Step S101, the file upload request that user terminal is sent is received.
The executive agent of the present embodiment can be storage system, as shown in Fig. 2, storage system includes storage access module
20th, message queue 21, storage backup module 22, storage scheduler module 23, primary storage server 24, from storage server 25.
Specifically, user terminal can be Digitalizing Books publish in typesetting personnel, editorial staff or examine and revise used in personnel
Terminal device such as PC, tablet computer, laptop.File can be typesetting personnel, editorial staff or examine
The edited electronic document of school personnel, such as electronic book etc..Storage access module 20 is received on the file that user terminal is sent
Pass request.
Step S102, according to the file upload request, the IP address and storage address of acquisition primary storage server.
It stores scheduler module 23 and can be used for the IP address and storage address that obtain primary storage server 24, specifically, storage
The IP address and storage address of primary storage server 24 are stored in scheduler module 23, storage access module 20 dispatches mould to storage
Block 23 sends solicited message, and the IP address and storage address of primary storage server 24, i.e. storage access module 20 are obtained with request
The storage request of scheduler module 23 is called to obtain the IP address and storage address of primary storage server 24, storage scheduler module 23 will store
The IP address and storage address of server return to storage access module 20.
Step S103, the IP address of the primary storage server and storage address are sent to the user terminal, so as to
The user terminal is according to transmitting file in the IP address and storage address of the primary storage server.
The IP address of primary storage server 24 and storage address are sent to the user terminal, institute by storage access module 20
User terminal is stated according to transmitting file in the IP address and storage address of the primary storage server, specifically, the user terminal
The file for needing to upload can be sent to storage access module 20, be needed the user terminal by storage access module 20
The file of biography is stored to primary storage server 24.
Step S104, the file, generation standard pdf document, print inspection analysis report, printable TIFF figures are received.
In addition, after storage access module 20 receives the file that the user terminal needs upload, generation standard PDF texts
Part, print inspection analysis report, printable TIFF figures.
Step S105, according to preset rules, determine whether the file needs to back up, the preset rules are used to determine institute
State at least one needs in file, the standard pdf document, the print inspection analysis report and the printable TIFF figures
Backup.
In addition, storage access module 20 calls storage scheduler module 23 to inquire about the file that user terminal needs upload is
The no position that needs to back up and back up, in the present embodiment, file can be backuped to from storage server 25.
Preset rules are used for the IP address that this document is set whether to need the server for backing up and backing up, backup storage
Catalogue, need the number that backs up and BACKUP TIME is for example backed up in realtime or periodic backups, in addition, preset rules are used
In which of the setting file, the standard pdf document, the print inspection analysis report and described printable TIFF figures
It needs to back up.
If step S106, described file needs to back up, the file backed up storage will be needed to arrive from storage server.
The present embodiment can carry out file the distributed storage based on Network File System, and user can directly access storage
System so that storage system is more directly perceived efficient;Based on distributed design Storage pattern, dynamically it can add or change at any time
Storage resource expands storage beneficial to level;Selective backup policy cause user can according to needing to carry out resource backup,
Inessential provisional data or non-critical data are abandoned, reduces demand of the system to memory space, so as to improve production
Efficiency simultaneously makes digital printing flow more automate, is specialized, saves hand inspection cost, strengthens flow system security control
With collaborative work ability.
Fig. 3 is the distributed data storage method flow chart that provides of another embodiment of the present invention, shown in Fig. 1 embodiment
On the basis of, distributed data storage method provided in this embodiment includes the following steps:
Step S301, the file upload request that user terminal is sent is received.
Step S301 is consistent with step S101, and details are not described herein again for specific method.
Step S302, according to the file upload request, the IP address and storage address of acquisition primary storage server.
Step S302 is consistent with step S102, and details are not described herein again for specific method.
Step S303, the IP address of the primary storage server and storage address are sent to the user terminal, so as to
The user terminal is according to transmitting file in the IP address and storage address of the primary storage server;
Step S303 is consistent with step S103, and details are not described herein again for specific method.
Step S304, the file is received, generates the ID of the file.
Step S305, according to the IP address and/or storage address of the ID of the file and the primary storage server,
Generate the filename of the file.
In this example, it is assumed that the IP address of primary storage server is 192.168.0.101, primary storage server is deposited
Storage address be uploadfile StroreRoot catalogues, the filename of the file is 16_17859.ps, filename 16_
17859.ps is generated according to the ID and the primary storage server code of file.
Step S306, standard pdf document, print inspection analysis report, printable TIFF figures are generated.
Step S307, the file is stored to the storage address pair of the primary storage server identified to the IP address
Under the catalogue answered.
Such as by file 16_17859.ps be stored in 192.168.0.101 uploadfile StroreRoot catalogues
Under, obtain path 192.168.0.101 uploadfile StroreRoot 16_17859.ps.
Step S308, according to preset rules, determine whether the file needs to back up, the preset rules are used to determine institute
State at least one needs in file, the standard pdf document, the print inspection analysis report and the printable TIFF figures
Backup;
Preset rules are used for the IP address that this document is set whether to need the server for backing up and backing up, backup storage
Catalogue, need the number that backs up and BACKUP TIME is for example backed up in realtime or periodic backups, in addition, preset rules are used
In which of the setting file, the standard pdf document, the print inspection analysis report and described printable TIFF figures
It needs to back up, for example, the file, the standard pdf document need to back up, the print inspection analysis report and described beat
Print TIFF figures need not back up.
If step S309, described file needs to back up, the file backed up storage will be needed to arrive from storage server.
20 access preset of storage access module rule, determines that this document needs to back up, and preset rules represent the text
Part needs to backup to two positions of 192.168.0.102 and 192.168.0.103, and storage access module 20 sends two backups and disappears
Message queue 21 is ceased, two backup messages correspond to backup to respectively two of 192.168.0.102 and 192.168.0.103
Backup messages.
Storage backup module 22 obtains two backup messages from message queue 21, and according to two backup messages, by institute
It is a to 192.168.0.102 to state file, standard pdf document storage, storage is a to 192.168.0.103, during storage,
Can with real-time storage, can also periodically store.
In addition, when user terminal requests download this document, storage access module calls storage scheduler module acquisition request text
The ID of part, and obtain the storage access rule of this document;Store the relevant storage clothes of scheduler module dynamic access this document storage
The information of business device is analyzed, and selection is appropriate for the IP address of storage server of file download processing and store path and anti-
Feedback can storage access module;Storage access module downloads the file into designated position, if downloaded successfully, carries out file integrality
Verification, check code is unanimously then downloaded successfully and returned, if it fails, then prompting user file failed download and returning.
The present embodiment can carry out file the distributed storage based on Network File System, and user can directly access storage
System so that storage system is more directly perceived efficient;Based on distributed design Storage pattern, dynamically it can add or change at any time
Storage resource expands storage beneficial to level;Selective backup policy cause user can according to needing to carry out resource backup,
Inessential provisional data or non-critical data are abandoned, reduces demand of the system to memory space, so as to improve production
Efficiency simultaneously makes digital printing flow more automate, is specialized, saves hand inspection cost, strengthens flow system security control
With collaborative work ability.
In addition, Fig. 4 is the distributed data storage method flow chart that another embodiment of the present invention provides, Fig. 5 is the present invention
The distributed data storage method flow chart that another embodiment provides, specific method is consistent with above-described embodiment, specifically no longer
It repeats.
Fig. 6 is the structure chart of Distributed Storage device provided in an embodiment of the present invention.It is provided in an embodiment of the present invention
Distributed Storage device can perform the process flow of distributed data storage method embodiment offer, as shown in fig. 6, point
Cloth data storage device 60 include receiving module 61, acquisition module 62, sending module 63, generation module 64, determining module 65,
Memory module 66, wherein, receiving module 61 is used to receive the file upload request of user terminal transmission;Acquisition module 62 is used for root
According to the file upload request, the IP address and storage address of acquisition primary storage server;Sending module 63 is used for the master
The IP address and storage address of storage server are sent to the user terminal, so that the user terminal is according to the primary storage
Transmitting file in the IP address and storage address of server;Generation module 64 for the receiving module receive the file it
Afterwards, standard pdf document, print inspection analysis report, printable TIFF figures are generated;Determining module 65 is used for according to preset rules,
Determine whether the file needs to back up, the preset rules are used to determine the file, the standard pdf document, the print
Brush Inspection and analysis report and the printable TIFF figures at least one need to back up;If memory module 66 is used for the file
It needs to back up, then the file backed up storage will be needed to arrive from storage server.
The embodiment of the present invention can carry out file the distributed storage based on Network File System, and user can directly access
Storage system so that storage system is more directly perceived efficient;Based on distributed design Storage pattern, can dynamically add at any time or
Change storage resource, storage is expanded beneficial to level;Selective backup policy causes user can be according to needing to carry out resource
Inessential provisional data or non-critical data are abandoned in backup, demand of the system to memory space are reduced, so as to improve
Production efficiency simultaneously makes digital printing flow more automate, is specialized, saves hand inspection cost, strengthens flow system safety
Control and collaborative work ability.
On the basis of above-described embodiment, generation module 64 is additionally operable to generate the ID of the file;According to the file
The IP address and/or storage address of ID and the primary storage server generate the filename of the file.Memory module 66
It is additionally operable under the corresponding catalogue of storage address for the primary storage server for identifying file storage to the IP address.
The preset rules further include the IP address from storage server.The preset rules further include described from storage server
Storage address.
Distributed Storage device provided in an embodiment of the present invention can be specifically used for performing the side that above-mentioned Fig. 1 is provided
Method embodiment, details are not described herein again for concrete function.
The embodiment of the present invention can carry out file the distributed storage based on Network File System, and user can directly access
Storage system so that storage system is more directly perceived efficient;Based on distributed design Storage pattern, can dynamically add at any time or
Change storage resource, storage is expanded beneficial to level;Selective backup policy causes user can be according to needing to carry out resource
Inessential provisional data or non-critical data are abandoned in backup, demand of the system to memory space are reduced, so as to improve
Production efficiency simultaneously makes digital printing flow more automate, is specialized, saves hand inspection cost, strengthens flow system safety
Control and collaborative work ability.
In conclusion the embodiment of the present invention can carry out the distributed storage based on Network File System, user to file
Storage system can directly be accessed so that storage system is more directly perceived efficient;It, can be at any time based on distributed design Storage pattern
Storage resource is added or changed to dynamic, and storage is expanded beneficial to level;Selective backup policy causes user can be according to need
Resource backup is carried out, abandons inessential provisional data or non-critical data, reduces need of the system to memory space
It asks, so as to improve production efficiency and digital printing flow be made more to automate, specialized, saves hand inspection cost, strengthen
Flow system security control and collaborative work ability.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple units or component can be tied
It closes or is desirably integrated into another system or some features can be ignored or does not perform.It is another, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit
Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be employed in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, is used including some instructions so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) perform the present invention
The part steps of embodiment the method.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
The medium of program code can be stored.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function module
Division progress for example, in practical application, can be complete by different function modules by above-mentioned function distribution as needed
Into the internal structure of device being divided into different function modules, to complete all or part of function described above.On
The specific work process of the device of description is stated, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical characteristic into
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is not made to depart from various embodiments of the present invention technology
The scope of scheme.