CN101539935A - Data distribution method and device - Google Patents

Data distribution method and device Download PDF

Info

Publication number
CN101539935A
CN101539935A CN200910081380A CN200910081380A CN101539935A CN 101539935 A CN101539935 A CN 101539935A CN 200910081380 A CN200910081380 A CN 200910081380A CN 200910081380 A CN200910081380 A CN 200910081380A CN 101539935 A CN101539935 A CN 101539935A
Authority
CN
China
Prior art keywords
contribution
distribution
distributed
configuration information
distribution mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910081380A
Other languages
Chinese (zh)
Inventor
王元
杨红刚
富吉日嘎拉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN200910081380A priority Critical patent/CN101539935A/en
Publication of CN101539935A publication Critical patent/CN101539935A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data distribution method, which comprises steps of obtaining manuscripts to be distributed, selecting distribution modes corresponding to the manuscripts according to configuration information, and adopting the distribution modes to distribute the manuscripts; wherein the configuration information comprises the distribution modes corresponding to the manuscripts. The invention provides a data distribution device which comprises a manuscript obtaining module used for obtaining the manuscripts to be distributed, a distribution mode selecting module used for selecting the distribution modes corresponding to the manuscripts according to the configuration information, a distribution module used for adopting the distribution modes to distribute the manuscripts; wherein the configuration information comprises the distribution modes respectively corresponding to the manuscripts. The invention realizes good portability, meets the technical effects of flexibility, expandability and personalized customization of practical application, and can provide multi-threading high throughput and distributes work.

Description

Data distributing method and device
Technical field
The present invention relates to data processing field, in particular to a kind of data distributing method and device.
Background technology
At present, the data distribution technology is widely used in the various information medium industries.For example, the normally used contribution transmission mode of mechanism such as domestic news agency and newspaper medium is to transmit contribution by data distribution.
In this data distributing method, at first need the user corresponding analysis program and distribution mode to be set at contribution type to be distributed, after obtaining contribution to be distributed, by this analysis program that sets the contribution content is resolved, according to analysis result contribution is distributed to corresponding target ground according to the distribution mode that configures then.
In realizing process of the present invention, the inventor finds, data distributing method in the above-mentioned correlation technique needs the user according to the type of data to be distributed corresponding analysis program and distribution mode to be set, be only applicable to the data distribution of a certain type, or only can be, thereby make that the transplantability of the data distributing method in the correlation technique is poor with the downward distributing data of a certain distribution mode.
Summary of the invention
The invention provides a kind of data distributing method and device, can solve the technical matters of data distributing method portability difference in the correlation technique.
According to an aspect of the present invention, provide a kind of data distributing method, having comprised: obtained contribution to be distributed; Choose distribution mode according to configuration information corresponding to this contribution, wherein, the distribution mode that institute's configuration information comprises and various contributions are corresponding respectively; And adopt distribution mode that contribution is distributed.
According to a further aspect in the invention, also provide a kind of data delivery device, having comprised: the contribution acquisition module is used to obtain contribution to be distributed; Distribution mode is chosen module, is used for choosing distribution mode corresponding to this contribution according to configuration information, wherein, the distribution mode that configuration information comprises and various contributions are corresponding respectively; And distribution module, be used to adopt distribution mode that contribution is distributed.
In embodiments of the present invention, the distribution mode of choosing corresponding to various types of contributions according to the pre-configured configuration information of user's demand comes contribution is distributed, owing to comprise multiple contribution type and corresponding distribution mode thereof in the configuration information, so in the process of using according to the data distributing method of the embodiment of the invention and device, can realize purpose that polytype contribution is distributed and dissimilar contributions taked different distribution modes, therefore overcome that the data distributing method in the correlation technique only can be used for the data distribution of a certain data type or with the problem of the downward distributing data of a certain distribution mode, and then reached the good technique effect of transplantability.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the process flow diagram according to the data distributing method of first embodiment of the invention;
Fig. 2 shows the block scheme according to the data delivery device of second embodiment of the invention; And
Fig. 3 shows the process flow diagram according to the data distributing method of third embodiment of the invention.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows the process flow diagram according to the data distributing method of first embodiment of the invention.
With reference to Fig. 1, comprise according to the data distributing method of first embodiment of the invention:
Step S102 obtains contribution to be distributed;
Step S104 chooses distribution mode corresponding to this contribution according to configuration information, wherein, and the distribution mode that configuration information comprises and various contributions are corresponding respectively; And
Step S106 adopts distribution mode that contribution is distributed.
According to the data distributing method of present embodiment by choose distribution mode according to configuration information corresponding to this contribution, promptly, at different contributions, only need revise configuration information as the case may be gets final product, and needn't revise distribution mode, or the time at polytype contribution, only need configure configuration information gets final product, also needn't develop extra code, thereby overcome that the data distributing method in the correlation technique only can be used for the data distribution of a certain data type or with the problem of the downward distributing data of a certain distribution mode, and then reached the good technique effect of transplantability.
Preferably, obtain contribution to be distributed and specifically comprise: when being distributed as local distribution, set the variation of monitored directory and monitored directory, obtain contribution to be distributed according to the variation of monitored directory; And when being distributed as remote distribution, contribution tabulation is downloaded to this locality, and and it is the contribution tabulation is synchronous with long-range contribution, judge that according to the variation of long-range contribution tabulation the variation of long-range contribution obtains described contribution to be distributed.
A local distribution situation of change that needs to set the file system directories of an existence and constantly monitor this catalogue just can obtain contribution to be distributed.Because there are two kinds of dispositions in the contribution after the distribution, promptly move and keep, so also need to check accordingly and handle during monitoring.Remote distribution need download to the telefile tabulation title file directory and the entity file catalogue of local appointment, judges whether to distribute according to local directory when scanning next time.
Preferably, distribution mode comprises: 1 pair 1 pattern, the 1 pair of multi-mode, split mode, distribution mode and distribution mode by date by name.
Wherein, 1 pair 1 pattern is meant the entity file corresponding unique according to the title file, the distribution of spanned file name simultaneously of the contribution of the corresponding single entities of this pattern or annex; 1 pair of multi-mode is meant according to the corresponding a plurality of entity files of title file, generalized case is a contribution, the annex that has fixed data and type uses this pattern, identical and the extension name difference of the title that must guarantee annex and entity file when using distribution mode more than 1 pair, a plurality of file names of a perhaps same contribution have fixing rule; Split mode is to be a kind of ways of distribution of releasing the pressure and designing, and the user can dispose a plurality of distribution purposes to a certain road task, and the mode of distribution services meeting fictitious load equilibrium is evenly distributed to different monitored directories according to modular arithmetic with contribution to be distributed; Distribution is meant the peculiar rule according to file name by name, is distributed to different destinations automatically, for example can be distributed to different destinations according to the filename standard of CNML; And distribution by date, be meant can be as required the date format template, automatic remote obtains contribution, and contribution is distributed to the destination.
In addition, whether distribution mode by is resolved the contribution content and can also be divided into direct distribution mode and interpretive model.In general, for guaranteed efficiency, the contribution content is not resolved, but sometimes in order to guarantee ageing between contribution entity file and the attachment files, need obtain corresponding attachment files information by resolving contribution, these need adopt interpretive model, and this pattern generally is used for the situation that a contribution has indefinite annex.After the annex of contribution resolved, according to analysis result this contribution is distributed again.All above-mentioned distribution modes all are present in the configuration information dirigibility and the extendability when guaranteeing practical application.
Preferably, before the employing distribution mode is distributed contribution, or before the distribution mode of choosing according to configuration information corresponding to this contribution, also comprise: choose tupe corresponding to this contribution according to configuration information, wherein, configuration information also comprises the tupe corresponding respectively with various contributions; And adopt tupe that contribution is handled.Wherein, tupe comprises: contribution filters or checks heavy original text.Contribution filtered or check that heavy original text can reduce repeat to distribute to avoid the waste of resource.
If to the disposal route of distributing contribution is not carry out moving and deletion, then can't judge whether heavy original text, it is invalid that heavy original text inspection this moment can be set to automatically.
Preferably, contribution filters and to comprise filtering rule and to being filtered the disposal route of contribution, and filtering rule comprises and filtering by name and by information filtering, the disposal route that is filtered contribution comprises deletion and moves to the respective stored path.Check that heavy original text comprises heavy original text disposal route, heavy original text disposal route comprises the heavy original text of deletion and will weigh original text and moves to the respective stored path.
Comprise in the configuration information such as filtering by name and, and the disposal route of counterweight original text is selected to embody personalized customization by the filtering rule of information filtering and to being filtered the disposal route of contribution.
Data distributing method according to present embodiment, by choose distribution mode and tupe according to the pre-configured configuration information of user's demand corresponding to various types of contributions, can support the multiple upstream distribution of local distribution and remote distribution, support 1 pair of multiple downstream distribution such as more than 1 and 1 pair simultaneously, so overcome that the data distributing method in the correlation technique only can be used for the data distribution of a certain data type or with the problem of the downward distributing data of a certain distribution mode, and then it is good to have reached transplantability, satisfy the technique effect of dirigibility and the extensibility and the personalized customization of practical application.
Fig. 2 shows the block scheme according to the data delivery device 200 of second embodiment of the invention.
With reference to Fig. 2, comprise according to the data delivery device 200 of second embodiment of the invention: contribution acquisition module 202 is used to obtain contribution to be distributed; Distribution mode is chosen module 204, is used for choosing distribution mode corresponding to this contribution according to configuration information, wherein, the distribution mode that configuration information comprises and various contributions are corresponding respectively; And distribution module 206, be used to adopt distribution mode that contribution is distributed.
Choose distribution mode according to the data delivery device 200 of present embodiment according to configuration information corresponding to each contribution, promptly, at different contributions, only need revise configuration information as the case may be gets final product, and needn't revise distribution mode, or the time at polytype contribution, only need configure configuration information gets final product, also needn't develop extra code, thereby overcome that the data distributing method in the correlation technique only can be used for the data distribution of a certain data type or with the problem of the downward distributing data of a certain distribution mode, and then reached the good technique effect of transplantability.
Preferably, contribution acquisition module 202 specifically comprises: local Dispatching Unit, and when being distributed as local distribution, setting monitored directory and monitor the variation of this monitored directory, obtain contribution to be distributed according to the variation of monitored directory; And the remote distribution unit, when being distributed as remote distribution, contribution tabulation is downloaded to this locality, and the contribution tabulation is synchronous with long-range contribution, judge that according to the variation of long-range contribution tabulation the variation of long-range contribution obtains contribution to be distributed.
A local distribution situation of change that needs to set the file system directories of an existence and constantly monitor this catalogue just can obtain contribution to be distributed.Because there are two kinds of dispositions in the contribution after the distribution, promptly move and keep, so also need to check accordingly and handle during monitoring.Remote distribution need download to the telefile tabulation title file directory and the entity file catalogue of local appointment, judges whether to distribute according to local directory when scanning next time.
Preferably, distribution mode comprises: 1 pair 1 pattern, the 1 pair of multi-mode, split mode, distribution mode and distribution mode by date by name.
Wherein, 1 pair 1 pattern is meant the entity file corresponding unique according to the title file, the distribution of spanned file name simultaneously of the contribution of the corresponding single entities of this pattern or annex; 1 pair of multi-mode is meant according to the corresponding a plurality of entity files of title file, generalized case is a contribution, the annex that has fixed data and type uses this pattern, identical and the extension name difference of the title that must guarantee annex and entity file when using distribution mode more than 1 pair, a plurality of file names of a perhaps same contribution have fixing rule; Split mode is to be a kind of ways of distribution of releasing the pressure and designing, and the user can dispose a plurality of distribution purposes to a certain road task, and the mode of distribution services meeting fictitious load equilibrium is evenly distributed to different monitored directories according to modular arithmetic with contribution to be distributed; Distribution is meant the peculiar rule according to file name by name, is distributed to different destinations automatically, for example can be distributed to different destinations according to the filename standard of CNML; Distribution by date, be meant can be as required the date format template, automatic remote obtains contribution, and contribution is distributed to the destination.
In addition, whether distribution mode by is resolved the contribution content and can also be divided into direct distribution mode and interpretive model.In general, for guaranteed efficiency, the contribution content is not resolved, but sometimes in order to guarantee ageing between contribution entity file and the attachment files, need obtain corresponding attachment files information by resolving contribution, these need adopt interpretive model, and this pattern generally is used for the situation that a contribution has indefinite annex.After the annex of contribution resolved, according to analysis result this contribution is distributed again.All above-mentioned distribution modes all are present in the configuration information dirigibility and the extendability when guaranteeing practical application.
Preferably, data delivery device 200 also comprises: tupe is chosen module, be used for choosing tupe corresponding to this contribution according to configuration information, wherein, the tupe that configuration information also comprises and various contributions are corresponding respectively; And processing module, be used to adopt tupe that contribution is handled.Tupe comprises: contribution filters or checks heavy original text.Contribution filtered or check that heavy original text can reduce repeat to distribute to avoid the waste of resource.
If to the disposal route of distributing contribution is not carry out moving and deletion, then can't judge whether heavy original text, it is invalid that heavy original text inspection this moment can be set to automatically.
Preferably, contribution filters and to comprise filtering rule and to being filtered the disposal route of contribution, and filtering rule comprises and filtering by name and by information filtering, the disposal route that is filtered contribution comprises deletion and moves to the respective stored path.Check that heavy original text comprises heavy original text disposal route, heavy original text disposal route comprises the heavy original text of deletion and will weigh original text and moves to the respective stored path.
Comprise in the configuration information such as filtering by name and, and the disposal route of counterweight original text is selected to embody personalized customization by the filtering rule of information filtering and to being filtered the disposal route of contribution.
Data delivery device 200 can also comprise: remote monitoring module, the running status that is used for contribution acquisition module 202, distribution mode are chosen module 204 and distribution module 206 is carried out telemonitoring and control.Pass through remote monitoring module, the user can carry out remote monitoring by the running status of contribution acquisition module 202, distribution mode being chosen module 204 and distribution module 206 such as the telnet mode of http or rmi mode, thereby makes the user to monitor to guarantee the accurate of data distribution whole data distribution process constantly.
Data delivery device according to present embodiment, by choose distribution mode and tupe according to the pre-configured configuration information of user's demand corresponding to various types of contributions, can support the multiple upstream distribution of local distribution and remote distribution, support 1 pair of multiple downstream distribution such as more than 1 and 1 pair simultaneously, so overcome that the data distributing method in the correlation technique only can be used for the data distribution of a certain data type or with the problem of the downward distributing data of a certain distribution mode, and then it is good to have reached transplantability, satisfy the dirigibility and the extensibility of practical application, the technique effect of personalized customization, and can provide the multithreading high-throughput concurrent distribute work.
Fig. 3 shows the process flow diagram according to the data distributing method of third embodiment of the invention.
With reference to Fig. 3, comprise according to the data distributing method of third embodiment of the invention:
Step S302 obtains contribution to be distributed by the monitoring local directory;
Step S304, contribution to be distributed is filtered by file name, filtering speech can be provided with in configuration information by the user, when comprising the filtration speech in the contribution title to be distributed, delete this contribution, the mail of for example advertisement is distributed avoiding, thereby save resource, if do not comprise the filtration speech in the title of contribution to be distributed, then execution in step S306;
Step S306 judges whether whether this contribution is heavy original text, that is, be distributed, out-of-date when confirming that this contribution has been distributed, delete this contribution, can repeatedly not distribute guaranteeing identical contribution, to save resource, if not heavy original text, then execution in step S308;
Step S308, the form of analysis contribution;
Step S310 chooses distribution mode corresponding to form according to configuration information, wherein, and the distribution mode that institute's configuration information comprises and various forms are corresponding respectively;
Step S312 adopts distribution mode that contribution is distributed; And
Step S314, the record Distribution Log is so that inquiry distribution situation.
Data distributing method according to present embodiment, by choosing multiple tupe according to the pre-configured configuration information of user's demand and come the contribution of needs distribution is handled and distributed, thereby reached that transplantability is good, the dirigibility of satisfying practical application and the technique effect of extensibility and personalized customization corresponding to the distribution mode of various types of contribution forms.
From above description, as can be seen, the above embodiments of the present invention have realized following technique effect: according to the data distributing method of present embodiment, by choose distribution mode and tupe according to the pre-configured configuration information of user's demand corresponding to various types of contribution forms, can support the multiple upstream distribution of local distribution and remote distribution, support 1 pair of multiple downstream distribution such as more than 1 and 1 pair simultaneously, so overcome that the data distributing method in the correlation technique only can be used for the data distribution of a certain data type or with the problem of the downward distributing data of a certain distribution mode, and then it is good to have reached transplantability, satisfy the configurable and extensibility of practical application and the technique effect of personalized customization.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a data distributing method is characterized in that, comprising:
Obtain contribution to be distributed;
Choose distribution mode according to configuration information corresponding to described contribution, wherein, the distribution mode that described configuration information comprises and various contributions are corresponding respectively; And adopt described distribution mode that described contribution is distributed.
2. data distributing method according to claim 1 is characterized in that, obtains contribution to be distributed and specifically comprises:
When described when being distributed as local distribution, set monitored directory and monitor the variation of described monitored directory, obtain described contribution to be distributed according to the variation of described monitored directory; And
When being distributed as remote distribution, the contribution tabulation is downloaded to this locality when described, and described contribution tabulation is synchronous with long-range contribution, judge that according to the variation of described long-range contribution tabulation the variation of described long-range contribution obtains described contribution to be distributed.
3. data distributing method according to claim 1 is characterized in that, described distribution mode comprises: 1 pair 1 pattern, the 1 pair of multi-mode, split mode, distribution mode and distribution mode by date by name.
4. data distributing method according to claim 1 is characterized in that, before the described distribution mode of employing is distributed described contribution, or also comprises before the distribution mode of choosing according to configuration information corresponding to described contribution:
Choose tupe according to described configuration information corresponding to described contribution, wherein, the tupe that described configuration information also comprises and various contributions are corresponding respectively; And
Adopt described tupe that described contribution is handled.
5. data distributing method according to claim 4 is characterized in that, described tupe comprises: contribution filters or checks heavy original text.
6. data distributing method according to claim 5, it is characterized in that, described contribution filters and comprises filtering rule and to being filtered the disposal route of contribution, described filtering rule comprises filtration by name and by information filtering, the described disposal route that is filtered contribution comprises deletion and moves to the respective stored path.
7. data distributing method according to claim 5 is characterized in that, the heavy original text of described inspection comprises heavy original text disposal route, and described heavy original text disposal route comprises the described heavy original text of deletion and described heavy original text is moved to the respective stored path.
8. a data delivery device is characterized in that, comprising:
The contribution acquisition module is used to obtain contribution to be distributed;
Distribution mode is chosen module, is used for choosing distribution mode corresponding to described contribution according to configuration information, wherein, the distribution mode that described configuration information comprises and various contributions are corresponding respectively; And
Distribution module is used to adopt described distribution mode that described contribution is distributed.
9. data delivery device according to claim 8 is characterized in that, described contribution acquisition module specifically comprises:
Local Dispatching Unit when described when being distributed as local distribution, set monitored directory and is monitored the variation of described monitored directory, obtains described contribution to be distributed according to the variation of described monitored directory; And
The remote distribution unit, when described when being distributed as remote distribution, contribution tabulation is downloaded to this locality, and described contribution tabulation is synchronous with long-range contribution, judge that according to the variation of described long-range contribution tabulation the variation of described long-range contribution obtains described contribution to be distributed.
10. data delivery device according to claim 8 is characterized in that, also comprises:
Tupe is chosen module, is used for choosing tupe corresponding to described contribution according to described configuration information, wherein, the tupe that described configuration information also comprises and various contributions are corresponding respectively; And
Processing module is used to adopt described tupe that described contribution is handled.
11. data delivery device according to claim 8 is characterized in that, also comprises:
Remote monitoring module, the running status that is used for described contribution acquisition module, described distribution mode are chosen module and described distribution module is carried out telemonitoring and control.
CN200910081380A 2009-04-03 2009-04-03 Data distribution method and device Pending CN101539935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910081380A CN101539935A (en) 2009-04-03 2009-04-03 Data distribution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910081380A CN101539935A (en) 2009-04-03 2009-04-03 Data distribution method and device

Publications (1)

Publication Number Publication Date
CN101539935A true CN101539935A (en) 2009-09-23

Family

ID=41123124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910081380A Pending CN101539935A (en) 2009-04-03 2009-04-03 Data distribution method and device

Country Status (1)

Country Link
CN (1) CN101539935A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339435A (en) * 2016-08-19 2017-01-18 中国银行股份有限公司 Data distribution method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339435A (en) * 2016-08-19 2017-01-18 中国银行股份有限公司 Data distribution method, device and system

Similar Documents

Publication Publication Date Title
KR102317535B1 (en) Methods and systems for implementing data tracking with software development kits
Pujol et al. Reduced responses to selection after species range expansion
CN107920005A (en) A kind of intelligent terminal quickly networking installation and debugging system and method for work
CN1656480A (en) Method and apparatus for enabling synchronizing data in different devices having different capabilities
CN102904960B (en) A kind of information synchronization system and method based on RSS
CN102663073A (en) Method and system for recommending based on downloaded files
CN101222367A (en) Method and network guard system used for cluster network element updating version file
CN101566954A (en) Method and device for managing plug-in
US20110202548A1 (en) Program distribution server, image forming apparatus, program distribution system, and contract document integration method
CN101631041B (en) Service configuration processing method and configuration relation management module
EP1956503A2 (en) Network device, image forming device, and data searching method
CN103399748A (en) Equipment configuration standardization detecting device and method
CN103259840A (en) Report creating system, report creating apparatus, and report creating method
CN1685289A (en) Order management for replacing consumables
CN101364897A (en) System for historical data archiving and implementing method
CN102521218A (en) File combining method and file combining device
CN103257971A (en) Terminal and file management method
CN101207627B (en) Client end and method for filtering download task list
CN101539935A (en) Data distribution method and device
CN101090391A (en) Software automatic updating method based on supertext transmission protocol mode
CN101335763B (en) Data educing and transmitting method in intelligent network system
CN105262845A (en) File transmission processing method and system
Foster et al. The open grid service architecture, V. 1.0
JP2008250408A (en) System, method and program for application cooperation
JP5975805B2 (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090923