CN110196874A - Data subscription method, device and server - Google Patents
Data subscription method, device and server Download PDFInfo
- Publication number
- CN110196874A CN110196874A CN201910474373.5A CN201910474373A CN110196874A CN 110196874 A CN110196874 A CN 110196874A CN 201910474373 A CN201910474373 A CN 201910474373A CN 110196874 A CN110196874 A CN 110196874A
- Authority
- CN
- China
- Prior art keywords
- information
- directory information
- server
- directory
- related information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/256—Integrating or interfacing systems involving database management systems in federated or virtual databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Operations Research (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Quality & Reliability (AREA)
- Marketing (AREA)
- Economics (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Present disclose provides a kind of data subscription method, device and servers, are related to field of communication technology, this method comprises: obtaining the related information of directory information after the subscription request for receiving the first directory information;Wherein, the related information of directory information is to establish after directory information publication, and related information includes the incidence relation of the item of information library literary name section corresponding with directory information in directory information;It is determined to subscribe to according to the library literary name section in incidence relation and requests requested library literary name section;It sends and notifies to the publisher of the first directory information, notify to indicate that the corresponding data of requested library literary name section are provided to the requesting party for subscribing to and requesting by publisher.The disclosure can be effectively reduced subscription operation cost, promote subscribing efficiency.
Description
Technical field
This disclosure relates to field of communication technology, more particularly, to a kind of data subscription method, device and server.
Background technique
In the tissue that government organs or corporation etc. are made of multiple departments, need between multiple departments by net
Network platform realizes resource-sharing, which can be described as shared switching plane.Each department can be in the operation system of oneself
This department's business datum is stored, and the corresponding Resource TOC publication of this department's business datum may be used also on shared switching plane
To browse the Resource TOC of other department's publications on shared switching plane, and interested Resource TOC is subscribed to, with
Obtain its corresponding business datum.
In the prior art, whenever there is department to initiate catalogue subscription request, shared switching plane requires to establish wait subscribe to
Resource TOC and storage actual traffic data library literary name section incidence relation, resource can be found based on incidence relation
The corresponding actual traffic data of catalogue.If there is same Resource TOC is subscribed to by multiple departments, then it will appear shared switching plane
The problem of incidence relation of the Resource TOC with library literary name section, is established in repetition, and this repetitive operation phenomenon not only improves subscription operation
Cost also seriously reduces subscribing efficiency.
Summary of the invention
In view of this, the disclosure is designed to provide a kind of data subscription method, device and server, can effectively drop
Low subscription operation cost promotes subscribing efficiency.
To achieve the goals above, the embodiment of the present disclosure the technical solution adopted is as follows:
In a first aspect, the embodiment of the present disclosure provides a kind of data subscription method, this method is applied to first server, should
Method includes: to obtain the related information of directory information after the subscription request for receiving the first directory information;Wherein, catalogue is believed
The related information of breath is to establish after directory information publication, and related information includes the item of information and catalogue letter in directory information
Cease the incidence relation of corresponding library literary name section;It is determined to subscribe to according to the library literary name section in incidence relation and requests requested library literary name
Section;It sends and notifies to the publisher of the first directory information, notify to indicate that publisher is corresponding by requested library literary name section
Data are provided to the requesting party for subscribing to request.
Second aspect, the embodiment of the present disclosure also provide a kind of data subscription device, which is set to first server, should
Device includes: that related information obtains module, for obtaining directory information after the subscription request for receiving the first directory information
Related information;Wherein, the related information of directory information is to establish after directory information publication, and related information includes catalogue letter
The incidence relation of item of information library literary name section corresponding with directory information in breath;Field determining module, for according to incidence relation
In library literary name section determine to subscribe to and request requested library literary name section;Notification module, for the publisher to the first directory information
Notice is sent, is notified to indicate that the corresponding data of requested library literary name section are provided to the request subscribed to and requested by publisher
Side.
The third aspect, the embodiment of the present disclosure provide a kind of server, including processor and machine readable storage medium, machine
Device readable storage medium storing program for executing is stored with the machine-executable instruction that can be executed by processor, and processor executes machine-executable instruction
Method to realize above-mentioned first aspect offer.
Fourth aspect, the embodiment of the present disclosure provide a kind of machine readable storage medium, machine readable storage medium storage
There is machine-executable instruction, when being called and being executed by processor, machine-executable instruction promotes to handle machine-executable instruction
Device realizes the method that above-mentioned first aspect provides.
The embodiment of the present disclosure provides a kind of data subscription method, device and server, can receive directory information
Subscription request after, directly acquire related information (including the first catalogue for the directory information just established after directory information publication
The incidence relation of item of information library literary name section corresponding with the first directory information in information), according to the library literary name in incidence relation
Section, which determines to subscribe to, requests requested library literary name section, and sends and notify to the publisher of directory information, and instruction publisher will be asked
The corresponding data of library literary name section asked are provided to the requesting party for subscribing to request.With in the prior art every time receiving catalogue subscribe to
Request is required to the problem of establishing incidence relation, leading to repetitive operation and compares, and the embodiment of the present disclosure can be issued in directory information
The incidence relation of directory information is just established later, to directly acquire established incidence relation simultaneously when receiving and subscribing to request
It determines required library literary name section, establishes incidence relation without repeating, therefore subscription operation cost is effectively reduced, promoted and subscribe to effect
Rate.
Other feature and advantage of the embodiment of the present disclosure will illustrate in the following description, alternatively, Partial Feature and excellent
Point can deduce from specification or unambiguously determine, or the above-mentioned technology by implementing the embodiment of the present disclosure can obtain
Know.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of disclosure specific embodiment or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the disclosure, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 shows a kind of data subscription schematic diagram provided by the embodiment of the present disclosure;
Fig. 2 shows a kind of structural schematic diagrams of data subscription system provided by the embodiment of the present disclosure;
Fig. 3 shows a kind of data subscription method flow chart provided by the embodiment of the present disclosure;
Fig. 4 shows the structural schematic diagram of another kind data subscription system provided by the embodiment of the present disclosure;
Fig. 5 shows a kind of structural block diagram of data subscription device provided by the embodiment of the present disclosure;
Fig. 6 shows a kind of structural schematic diagram of server provided by the embodiment of the present disclosure.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present disclosure clearer, below in conjunction with attached drawing to the disclosure
Technical solution be clearly and completely described, it is clear that described embodiment is disclosure a part of the embodiment, rather than
Whole embodiments.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, belong to the disclosure protection range.
The technical solution of the disclosure in order to better understand, first a kind of applied field of the exemplary illustration embodiment of the present disclosure
Scape.A kind of data subscription schematic diagram shown in Figure 1 illustrates shared switching plane and department A, department B and department C.
Wherein, department C issues catalogue c to shared switching plane, include in catalogue c such as directory name, catalogue ID, department's C information,
The essential informations such as catalogue update cycle also include that " contact method " " address " " name " etc. is corresponding for describing catalogue c
The actual traffic data being stored in department C item of information, in the above essential information that catalogue is included and item of information etc.
Rong Jun can be collectively referred to as directory information.Department A and department B subscribes to catalogue c to shared switching plane, corresponding to obtain catalogue c
Business datum such as obtains the corresponding business datum " Zhang San " of item of information " name " in catalogue c.That is, department C is catalogue c
Provider, department A and department B are the subscribers of catalogue c.In practical applications, shared switching plane can dock multiple
Department's (Fig. 1 is only that simple examples go out 3), multiple departments can issue the directory information of respective business datum in shared exchange
On platform, browses and subscribe to for other departments.
Shared switching plane once receives the request of the subscription catalogue c from department A, can be based on the information in catalogue c
Item determines the field (abbreviation library literary name section) in the tables of data in the database of the department C corresponding to it, the corresponding industry of item of information
Business data are stored in its corresponding library literary name section.Such as, item of information is " name ", and shared switching plane finally determines its correspondence
Library literary name section be " name ", then be notified that the data that " name " field stores are sent to department A by department C.Assuming that " name "
The data of field storage are " Zhang San ", then " Zhang San " can be sent to department A by department C.Certainly, the above is only simple examples,
In practical application, catalogue c includes multiple items of information, and shared switching plane can determine whether the corresponding library literary name section of each item of information,
And notify department C that the data stored in required library literary name section are sent to department A.
To realize the above subscription operation, shared switching plane in the prior art needs first after receiving subscription request
The incidence relation of item of information Yu library literary name section is established, only specifies library corresponding with item of information literary name section, it just can notification unit
Required library literary name section is sent to subscription department by door C.Such as, when department A is asked to the subscription that shared switching plane initiates catalogue c
When asking, shared switching plane needs to establish the incidence relation of primary information item and library literary name section, when department B is to shared switching plane
When initiating the subscription request of catalogue c, shared switching plane also needs to establish the incidence relation of primary information item and library literary name section, when
So, when then having other departments to request to the subscription of shared switching plane initiation catalogue c, shared switching plane still needs to build again
The incidence relation of vertical item of information and library literary name section.When establishing incidence relation, need to carry out multiple items of information and library literary name section
Matching is compared, relatively complicated, the mode that incidence relation is established in multiplicating in the prior art leads to subscription operation higher cost, orders
Read inefficiency.
To solve the above-mentioned problems, the embodiment of the present disclosure provides a kind of data subscription method, device and server, the skill
Art can be applied to any data subscription scene, applied to scenes such as governmental resources subscription, look to sources internal to the company subscription.With
It compares in the prior art receiving catalogue every time and subscribe to request and be required to the problem of establishing incidence relation, leading to repetitive operation,
The embodiment of the present disclosure can just establish the incidence relation of item of information Yu library literary name section in catalogue publication after shared subscription platform,
Required library literary name section can be directly acquired in the subscription request for receiving the catalogue later, establishes association pass without repeating
System can be directly based upon the incidence relation pre-established and determine that is, no matter receiving the subscription request of the above-mentioned catalogue of how many times
Required library literary name section does not need primary subscribe to of every reception and requests just to establish once connection relationship, therefore can effectively reduce subscription
Operating cost promotes subscribing efficiency.The embodiment of the present disclosure is specifically described below.
The embodiment of the present disclosure schematically provides a kind of structural schematic diagram of data subscription system as shown in Figure 2 first,
Illustrate a central server simultaneously with A department server, B department server, C department server ... N department server is total
N number of department server communication connection, wherein above-mentioned shared switching plane can be built on central server, also can be directly considered as
Central server has the function of shared switching plane;The operation system of department can be built on department server (before alternatively referred to as
Set system), it is stored with the business datum of department itself, database 1, number are stored in such as operation system of A department server
It include 1~table of table 100, database 2 in database 1 include that 101~table of table 200, database 3 wrap according to library 2 and database 3
Contain 201~table of table 300 etc..Each department pass through oneself department server and central server interactive information, such as to
Central server sends respective catalogue, or the catalogue of other departments is subscribed to by central server.In practical applications, no
It can also be communicated to connect between same department server, for sake of simplicity, no longer illustrating the connection between department server in Fig. 2
Relationship.
A kind of data subscription method flow chart shown in Figure 3, this method are applied to first server, first server
The central server that may act as above-mentioned shared switching plane (is interacted with each department server to realize service that catalogue is subscribed to
Device), central server can be described as Subscriber or central server etc. again, and the server name in the present embodiment is mainly used for
Server differentiation is carried out, is not to be construed as limiting;The data subscription method that first server executes includes the following steps:
Step S302 obtains the related information of directory information after the subscription request for receiving directory information.Wherein, mesh
The related information of record information is to establish after directory information publication, and related information includes the item of information and mesh in directory information
Record the incidence relation of the corresponding library literary name section of information.
Above-mentioned subscription request can be initiated from department server (and can be described as second server) to first server, can also
Directly to be initiated by department user by first server (such as logging in the shared switching plane of first server), asked in subscription
The department's mark for initiating request, department's mark or second server mark can be carried in asking.
In a kind of feasible embodiment, above-mentioned directory information includes at least essential information and item of information;Wherein, substantially
Information includes directory name (citizen's message catalog table, company's tax catalogue listing etc.), catalogue ID with uniqueness and mesh
Provider's information of record, further, it is also possible to further include update cycle (such as, updating weekly primary) and the catalogue of catalogue
The information such as the resource format of information, wherein the resource format of directory information specifically refers to depositing for business datum corresponding to catalogue
Type is stored up, main includes database table type, file type (xls, pdf, doc etc.) and interface type is (such as
Restful interface, interface of webservice publication etc.).Such as, resource belonging to the data in database in table is deposited in
Format is database table type, and resource format belonging to the data stored in the form of pdf is pdf document type.In addition, mesh
Recording information can also be comprising shared opening imformation, and shared opening imformation includes catalogue sharing type (shared, nothing of such as, having ready conditions
Condition is shared etc.) and open mode (whether to the opening of specified group).Above-mentioned shared opening imformation can be regarded as catalogue sharing again
Permission, only meet the department of catalogue sharing permission just can successful subscription catalogue, it is corresponding to get catalogue from the provider of catalogue
Business datum.In practical applications, a department can issue one or more directory informations, if the department needs to
The directory information of publication changes, and is such as increased and decreased to the item of information in announced directory information, then increases and decreases item of information
Directory information afterwards can be considered new directory information, which can issue new directory information again, and other departments are new to subscribe to
Directory information, still can refer to data subscription method provided in this embodiment and realize.
Above- mentioned information item can be understood as the refinement description of the corresponding library literary name section of business datum, and library literary name section is data
The field of storage service data is used in table in library.Such as business datum " Zhang San " stores " name " in table in the database
Field, then the item of information in catalogue " name " is then the description of library literary name section " name ".For ease of understanding, reference can be made to shown in table 1
Item of information and library literary name section exemplary corresponding relationship:
Table 1
Item of information | Name | Age | Contact method | Address | …… |
Library literary name section | name | age | phone | address | …… |
As shown in table 1, the first row indicates that the item of information in directory information, the second row indicate the corresponding library literary name of directory information
Section;Such as, when item of information is " age ", corresponding library literary name section is " age ";When item of information is " address ", corresponding library literary name
Section is " address ".It should be noted that be not construed as limiting the above is only exemplary illustration, in practical applications,
Library literary name section and the title of item of information are related to the meaning that actual business datum is characterized.
Step S304 is determined to subscribe to according to the library literary name section in incidence relation and is requested requested library literary name section.
First server receive subscribe to request after, can the related information based on the directory information pre-established it is direct
Library literary name section corresponding to the determining item of information with directory information.
In one embodiment, it is whole included in directory information that default, which subscribes to and requests requested library literary name section,
The corresponding library literary name section of item of information, therefore the library literary name section in the incidence relation that can be will acquire is determined directly as subscribing to request institute
The library literary name section of request;That is, in this embodiment, library literary name corresponding to all information item included in directory information
Section is to subscribe to request requested library literary name section.
In another embodiment, it subscribes to and carries demand information item in request, demand information item is in directory information
Item of information required for the item of information for being included namely requesting party, required item of information can be the whole in directory information
Item of information, the partial information item being also possible in directory information can specifically be set according to actual needs by requesting party.The
One server can extract the demand information item subscribed in request, the pass that then will acquire after receiving subscription request first
The corresponding library literary name section of demand information item included in connection relationship, which is determined as subscribing to, requests requested library literary name section.
Step S306 sends to the publisher of directory information and notifies, notifies to indicate publisher by requested library table
The corresponding data of field are provided to the requesting party for subscribing to request.
The notice that first server is sent to publisher can carry the requestor information for subscribing to request, and subscribe to and ask
Seek required library literary name section.First server directly can send system notice to the department server of publication directory information,
Mail notification can be sent to the mailbox of designated person, or is notified to the sending short message by mobile phone of designated person.Wherein, nominator
Member can be the relevant person in charge of the department of publication directory information.First server can store the designated person of each department
Contact method.After receiving notice, then literary name section corresponding data in library needed for subscribing to request are supplied to publisher
Subscribe to the requesting party of request.
The embodiment of the present disclosure provide above-mentioned data subscription method, can receive directory information subscription request after,
The related information for the directory information just established after directory information publication is then directly acquired (including the information in the first directory information
The incidence relation of item library corresponding with the first directory information literary name section), and determined and subscribed to according to the library literary name section in incidence relation
Requested library literary name section is requested, and sends and notifies to the publisher of directory information, indicates publisher by requested library literary name
The corresponding data of section are provided to the requesting party for subscribing to request.With in the prior art every time receive catalogue subscribe to request be required to
The problem of establishing incidence relation, leading to repetitive operation is compared, and the embodiment of the present disclosure can just be established after directory information publication
The incidence relation of directory information, to directly acquire established incidence relation when receiving and subscribing to request and determine required
Library literary name section establishes incidence relation without repeating, therefore subscription operation cost is effectively reduced, and promotes subscribing efficiency.
Three kinds of the exemplary related information for listing directory information of the present embodiment establish mode, this three kinds to establish mode equal
It is to be illustrated from the angle for establishing opportunity of related information, for details, reference can be made to as follows:
Mode one: when monitoring directory information publication, the related information of directory information is established.In this approach, center
Server can monitor automatically whether directory information is issued, once having monitored directory information publication, then establish related information.
Mode two: it detects that directory information has been issued when preset interval reaches, then establishes the related information of directory information.
For ease of understanding, exemplary illustration is as follows: assuming that preset interval is 2h, then whether directory information of detection is sent out when every 2h is reached
Cloth waits and so in daily 8:00,10:00,12:00,14:00, is at interval of the directory information of inspection in two hours
No publication has issued once checking directory information, has then established related information.
Mode three: when receiving associated instructions, the related information of directory information is established.In one embodiment, may be used
Such as after administrator's discovery has department to issue new directory, then to initiate associated instructions, immediately to build by administrator's active correlation
Vertical related information.
In addition, the present embodiment also from how establishing to obtain the angle of related information, gives a kind of foundation association letter
The specific embodiment of breath, comprising: initiate to establish the prompt information of incidence relation, then receive association instruction, association instruction
In carry the incidence relation of item of information library literary name section corresponding with directory information in directory information, finally based on receiving
The related information of directory information is established in association instruction.In one embodiment, incidence relation can be by administrator's setting,
Administrator and the association instruction for initiating to carry above-mentioned incidence relation to first server, first server are receiving administrator
Initiation association instruction after can correspondence establishment directory information related information.In this fashion, first server mainly according to
The incidence relation of item of information Yu library literary name section is manually established, after administrator sets incidence relation, is taken to first server initiation
Indicate that, in order to which first server establishes the related information of directory information, this mode is more clever with relevant association
It is living reliable.
After issuing in first server in view of some possible directory informations, first server also has not enough time to establish and close
Just there is department to subscribe to the directory information when connection relationship, therefore first server is when obtaining the related information of directory information, it can be with
It is executed referring in particular to following steps: if being previously stored with the related information of directory information, transferring pre-stored directory information
Related information;If the preparatory not stored related information for having directory information, establishes and obtains the related information of directory information.?
That is, first server first judges whether the related information for being stored with the catalogue, if do not had after the subscription request for receiving catalogue
Have, need to establish related information, if so, then directlying adopt the related information pre-established.
On the basis of Fig. 2, can with further reference to a kind of data subscription system as shown in Figure 4, central server (
I.e. in the present embodiment execute data subscription method first server) on can build Resource TOC system and switching centre system
System, Resource TOC system and switching centre's system are two main systems of the shared switching plane for realizing data subscription function
System.In one embodiment, Resource TOC system is also used to through showing interface catalogue for editing and storage catalogue, with
Catalogue is browsed for other departments and subscribes to catalogue.Switching centre is used to receive the subscription request of catalogue, and the subscription based on catalogue is asked
It asks and determines required library literary name section, and notify literary name section corresponding data in library are supplied to by the publisher of catalogue to subscribe to asking for request
The side of asking.Respective operation system has been built on each department's server (i.e. aforementioned second server), has been stored in operation system
Service database.Central server can be considered that the intermediary between different department servers, each department's server can not only be used for
Data providing issues catalogue so that other department servers are subscribed to, but also as data subscription side, in central server
The catalogue of other department server publications is subscribed on central server.
For ease of understanding, a kind of catalogue subscription process is given below, specifically can refer to following steps:
Step 1, catalogue provider (assuming that department C) writes catalogue c, and publication is in Resource TOC system after auditing.
Step 2, switching centre's system obtains announced catalogue c from Resource TOC system, and initiates to establish association pass
The prompt information of system;Then it receives association instruction and (carries the item of information library literary name corresponding with directory information in directory information
The incidence relation of section), wherein association instruction can be administrator's initiation;Mesh is finally established based on the association instruction received
Record the related information of information.In one embodiment, administrator can pass through C department server when establishing incidence relation
The interface of offer checks the service database in C department server, gets the database information in C department server and storage
Table information in the database, thus the item of information library corresponding with catalogue c based on library information and table information manual association catalogue c
The incidence relation of literary name section, such as establishing has incidence relation as shown in Table 1, that is, " name " is associated with " name ", " age "
It is associated with " age ", " contact method " is associated with " phone ", " address " is associated with " address ".
Step 3, catalogue subscriber A (assuming that department A) subscribes to catalogue c in Resource TOC system, and Resource TOC system will
The subscription request of department A is sent to switching centre's system.
Step 4, after the subscription that switching centre's system receives department A is requested, configured incidence relation, notification unit are obtained
The corresponding data of tetra- fields of name, age, phone and address is sent to department A by door C.When specific implementation, by C department
Server sends the data to A department server.
Step 5, catalogue subscriber B (assuming that department B) subscribes to catalogue c in Resource TOC system, and Resource TOC system will
The subscription request of department B is sent to switching centre's system.
Step 6, after the subscription that switching centre's system receives department B is requested, configured incidence relation, notification unit are obtained
The corresponding data of tetra- fields of name, age, phone and address is sent to department B by door C.When specific implementation, by C department
Server sends the data to B department server.
Department A and department B can subscribe to catalogue c in different time, can also have other departments to subscribe to catalogue c later, but
It is that switching centre's system only need to obtain preconfigured incidence relation in the subscription request for receiving department, without often connecing
It receives primary subscribe to request, with regard to repeating to establish once connection relationship, therefore can preferably reduce subscription operation cost, be promoted and subscribe to effect
Rate.
In view of the case where there may be some departments in order to cope with the inspection of higher level department and false publication catalogue, such as portion
Although a door X has issued catalogue x on central server, essence is not stored in X department server business corresponding with catalogue x
Data then think that catalogue x is invalid at this time.Therefore the catalogue carry rate that department can be further calculated, if the catalogue carry of department
Rate is higher, then illustrates that the real reliability of the catalogue of department publication is higher, if the catalogue carry rate of department is lower, illustrate this
The real reliability of the catalogue of department's publication is lower, there is the dubiety of false publication catalogue.The present embodiment gives one first
Kind calculates the specific embodiment of catalogue carry rate, and (department takes for first server (central server) and multiple second servers
Business device) it communicates to connect, first service implement body can refer to the calculating operation that 1~step 3 of following steps executes catalogue carry rate:
Step 1: being directed to each second server, count catalogue carry number of the second server in first server;
Wherein, catalogue carry number is the number for the directory information that related information has been established that the second server is issued in first server
Amount;
Step 2: counting the total quantity of directory information of all second server publications in first server;
Step 3: the total quantity of catalogue carry number and directory information based on the second server determines the second server
Catalogue carry rate.
Such as, A department server has issued 100 catalogues altogether on central server, and wherein has built up relevant
The catalogue quantity of relationship is 60, then the catalogue carry rate of A department server is 60%.
The above method further include: judge whether the catalogue carry rate of second server is lower than preset threshold, if so, sending
Low threshold warning.Such as, it is assumed that the catalogue carry rate of N department server is lower than preset threshold, then can be to N department server
Associate people (the higher level department head of such as manager of N department and/or N department) sends Low threshold warning, to prompt the portion N
Door server promotes catalogue carry rate, reduces false catalogue as far as possible, promotes the validity and reliability of catalogue.
In conclusion above-mentioned data subscription method, device and server provided in this embodiment, need to only establish a subdirectory
Incidence relation, no matter receive later how many times subscribe to request, can be directly based upon the incidence relation pre-established and determine institute
The library literary name section needed does not need primary subscribe to of every reception and requests just to establish once connection relationship, therefore can effectively reduce subscription behaviour
Make cost, promotes subscribing efficiency.Further, it is also possible to count catalogue carry rate, help to determine each department based on catalogue carry rate
The validity and reliability of catalogue is issued, a possibility that department issues false catalogue is reduced.
Corresponding to above method embodiment, a kind of data subscription device is present embodiments provided, which is set to
One server, a kind of structural block diagram of data subscription device as shown in Figure 5, the device include:
Related information obtains module 52, for obtaining the pass of directory information after the subscription request for receiving directory information
Join information;Wherein, the related information of directory information is to establish after directory information publication, and related information includes directory information
In item of information library literary name section corresponding with directory information incidence relation;
Field determining module 54 requests requested library literary name for determining to subscribe to according to the library literary name section in incidence relation
Section;
Notification module 56 is notified for sending to the publisher of directory information, is notified to indicate that publisher will be requested
The corresponding data of library literary name section be provided to subscribe to request requesting party.
With in the prior art every time receive catalogue subscribe to request be required to establish incidence relation, lead to repetitive operation
Problem is compared, the above-mentioned data subscription device that the embodiment of the present disclosure provides, and can just establish catalogue after directory information publication
The incidence relation of information establishes association without repeating to directly determine required library literary name section when receiving and subscribing to request
Relationship, therefore subscription operation cost is effectively reduced, promote subscribing efficiency.
In a kind of feasible embodiment, above-mentioned apparatus further includes that related information establishes module, is used for: monitoring mesh
When recording information publication, the related information of directory information is established;Alternatively, detecting that directory information has been sent out when preset interval reaches
Cloth then establishes the related information of directory information;Alternatively, establishing the related information of directory information when receiving associated instructions.
In a kind of feasible embodiment, above-mentioned association is established module 52 and is used for: initiating to establish the prompt of incidence relation
Information;Receive association instruction;The item of information library literary name section corresponding with directory information in directory information is carried in association instruction
Incidence relation;The related information of directory information is established based on the association instruction received.
In a kind of feasible embodiment, above-mentioned related information obtains module 52 and is further used for: if being previously stored with
The related information of directory information then transfers the related information of pre-stored directory information;If not stored in advance have directory information
Related information, then establish the related information of directory information.
In a kind of feasible embodiment, subscribes in request and carry demand information item;Above-mentioned field determining module 54
It is further used for: extracts the demand information item subscribed in request;By the corresponding library of demand information item included in incidence relation
Literary name section, which is determined as subscribing to, requests requested library literary name section.
In a kind of feasible embodiment, above-mentioned first server and multiple second servers are communicated to connect, above-mentioned dress
It sets further include: the first statistical module counts the second server in first server for being directed to each second server
Catalogue carry number;Wherein, catalogue carry number is that related information has been established in first server in second server publication
The quantity of directory information;Second statistical module, for counting catalogue letter of all second server publications in first server
The total quantity of breath;Carry rate determining module, the total quantity for catalogue carry number and directory information based on the second server
Determine the catalogue carry rate of the second server.Wherein, the first statistical module, the second statistical module and carry rate determining module
It is connected.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
Specific work process, can be with reference to the corresponding process in previous embodiment, details are not described herein.
A kind of server, including processor and machine readable storage medium are present embodiments provided, machine readable storage is situated between
Matter is stored with the machine-executable instruction that can be executed by processor, and processor executes machine-executable instruction to realize aforementioned
One item data method for subscribing.
A kind of structural schematic diagram of server shown in Figure 6, which includes: processor 60, memory 61, total
Line 62 and communication interface 63, the processor 60, communication interface 63 and memory 61 are connected by bus 62;Processor 60 is used for
Execute the executable module stored in memory 61, such as computer program.
Wherein, memory 61 may include high-speed random access memory (RAM, RandomAccessMemory), can also
It can further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least
One communication interface 63 (can be wired or wireless) realizes the communication between the system network element and at least one other network element
Connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 62 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data
Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 6, it is not intended that an only bus or
A type of bus.
Wherein, memory 61 is for storing program, and the processor 60 executes the journey after receiving and executing instruction
Sequence, method performed by the device that the stream process that aforementioned the application any embodiment discloses defines can be applied to processor 60
In, or realized by processor 60.
Processor 60 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 60 or the instruction of software form.Above-mentioned
Processor 60 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processor, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), field programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute the disclosure in the application
Each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to any routine
Processor etc..It can be embodied directly in hardware decoding processor in conjunction with the step of method disclosed in the present application and execute completion,
Or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory, dodge
It deposits, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register are mature to deposit
In storage media.The storage medium is located at memory 61, and processor 60 reads the information in memory 61, completes in conjunction with its hardware
The step of stating method.
For the disclosure embodiment further provides a kind of machine readable storage medium, machine readable storage medium storage is organic
Device executable instruction, for machine-executable instruction when being called and being executed by processor, machine-executable instruction promotes processor real
The above-mentioned data subscription method that the existing embodiment of the present disclosure provides.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
Specific work process, can be with reference to the corresponding process in previous embodiment, and details are not described herein.
The computer program product of data subscription method, device provided by the embodiment of the present disclosure and server, including deposit
The computer readable storage medium of program code is stored up, the instruction that said program code includes can be used for executing previous methods implementation
Method described in example, specific implementation can be found in embodiment of the method, and details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the disclosure all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, the only specific embodiment of the disclosure, to illustrate the disclosure
Technical solution, rather than its limitations, the protection scope of the disclosure is not limited thereto, although with reference to the foregoing embodiments to this public affairs
It opens and is described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope that the disclosure discloses, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of embodiment of the present disclosure technical solution, should all cover the protection in the disclosure
Within the scope of.Therefore, the protection scope of the disclosure should be based on the protection scope of the described claims.
Claims (14)
1. a kind of data subscription method, which is characterized in that the method is applied to first server, which comprises
After the subscription request for receiving directory information, the related information of the directory information is obtained;Wherein, the directory information
Related information be to be established after directory information publication, and the related information includes the information in the directory information
The incidence relation of item library corresponding with directory information literary name section;
Determine that requested library literary name section is requested in the subscription according to the library literary name section in the incidence relation;
It sends and notifies to the publisher of the directory information, the notice is to indicate the publisher by the requested library
The corresponding data of literary name section are provided to the requesting party for subscribing to request.
2. the method according to claim 1, wherein the establishment step of the related information of the directory information, packet
It includes:
When monitoring directory information publication, the related information of the directory information is established;Alternatively,
It detects that the directory information has been issued when preset interval reaches, then establishes the related information of the directory information;Or
Person,
When receiving associated instructions, the related information of the directory information is established.
3. the method according to claim 1, wherein the establishment step of the related information of the directory information, packet
It includes:
The prompt information of incidence relation is established in initiation;
Receive association instruction;The item of information carried in the directory information in the association instruction is corresponding with the directory information
Library literary name section incidence relation;
The related information of the directory information is established based on the association instruction received.
4. the method according to claim 1, wherein the step of obtaining the related information of the directory information, packet
It includes:
If being previously stored with the related information of the directory information, the association letter of the pre-stored directory information is transferred
Breath;
If the preparatory not stored related information for having the directory information, establishes the related information of the directory information.
5. the method according to claim 1, wherein carrying demand information item in subscription request;According to
Library literary name section in the incidence relation determines the step of requested library literary name section is requested in the subscription, comprising:
Extract the demand information item subscribed in request;
The corresponding library literary name section of demand information item included in the incidence relation is determined as the subscription to be requested
Library literary name section.
6. the method according to claim 1, wherein the first server and multiple second server communication links
It connects, the method also includes:
For each second server, catalogue carry number of the second server in the first server is counted;Wherein, institute
Stating catalogue carry number is the directory information that has been established related information of the second server publication in the first server
Quantity;
Count the total quantity of directory information of all second server publications in the first server;
The total quantity of the catalogue carry number and the directory information based on the second server determines the second server
Catalogue carry rate.
7. a kind of data subscription device, which is characterized in that described device is set to first server, and described device includes:
Related information obtains module, for obtaining the association of the directory information after the subscription request for receiving directory information
Information;Wherein, the related information of the directory information is established after directory information publication, and the related information packet
Include the incidence relation of the item of information library literary name section corresponding with the directory information in the directory information;
Field determining module, for determining that requested library table is requested in the subscription according to the library literary name section in the incidence relation
Field;
Notification module notifies that the notice is to indicate that the publisher will for sending to the publisher of the directory information
The corresponding data of the requested library literary name section are provided to the requesting party for subscribing to request.
8. device according to claim 7, which is characterized in that described device further includes that related information establishes module, is used for:
When monitoring directory information publication, the related information of the directory information is established;Alternatively,
It detects that the directory information has been issued when preset interval reaches, then establishes the related information of the directory information;Or
Person,
When receiving associated instructions, the related information of the directory information is established.
9. device according to claim 7, which is characterized in that described device further includes that related information establishes module, is used for:
The prompt information of incidence relation is established in initiation;
Receive association instruction;The item of information carried in the directory information in the association instruction is corresponding with the directory information
Library literary name section incidence relation;
The related information of the directory information is established based on the association instruction received.
10. device according to claim 7, which is characterized in that the related information obtains module and is used for:
If being previously stored with the related information of the directory information, the association letter of the pre-stored directory information is transferred
Breath;
If the preparatory not stored related information for having the directory information, establishes the related information of the directory information.
11. device according to claim 7, which is characterized in that carry demand information item in the subscription request;It is described
Field determining module is used for:
Extract the demand information item subscribed in request;
The corresponding library literary name section of demand information item included in the incidence relation is determined as the subscription to be requested
Library literary name section.
12. device according to claim 7, which is characterized in that the first server is communicated with multiple second servers
Connection, described device further include:
First statistical module counts the second server in the first server for being directed to each second server
Catalogue carry number;Wherein, the catalogue carry number is that pass has been established in the first server in second server publication
Join the quantity of the directory information of information;
Second statistical module, for counting the sum of directory information of all second server publications in the first server
Amount;
Carry rate determining module, the total quantity for the catalogue carry number and the directory information based on the second server
Determine the catalogue carry rate of the second server.
13. a kind of server, which is characterized in that including processor and machine readable storage medium, the machine readable storage is situated between
Matter is stored with the machine-executable instruction that can be executed by the processor, and the processor executes the machine-executable instruction
To realize method as claimed in any one of claims 1 to 6.
14. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with the executable finger of machine
It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes the processor
Realize method as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910474373.5A CN110196874A (en) | 2019-05-31 | 2019-05-31 | Data subscription method, device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910474373.5A CN110196874A (en) | 2019-05-31 | 2019-05-31 | Data subscription method, device and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110196874A true CN110196874A (en) | 2019-09-03 |
Family
ID=67753810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910474373.5A Pending CN110196874A (en) | 2019-05-31 | 2019-05-31 | Data subscription method, device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110196874A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114374728A (en) * | 2021-12-27 | 2022-04-19 | 广西壮族自治区公众信息产业有限公司 | Front-end equipment online state acquisition method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009211375A (en) * | 2008-03-04 | 2009-09-17 | Nippon Telegr & Teleph Corp <Ntt> | Network management server |
CN101562578A (en) * | 2008-04-16 | 2009-10-21 | 华为技术有限公司 | Method and device for notifying user data subscription |
CN106354507A (en) * | 2016-08-30 | 2017-01-25 | 江苏车置宝信息科技股份有限公司 | Enterprise-level application management system and method for operating same |
CN107920110A (en) * | 2017-10-27 | 2018-04-17 | 江苏飞搏软件股份有限公司 | A kind of method and device of data sharing |
CN108282529A (en) * | 2018-01-23 | 2018-07-13 | 百度在线网络技术(北京)有限公司 | Publication and system, the method and apparatus for subscribing to data |
-
2019
- 2019-05-31 CN CN201910474373.5A patent/CN110196874A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009211375A (en) * | 2008-03-04 | 2009-09-17 | Nippon Telegr & Teleph Corp <Ntt> | Network management server |
CN101562578A (en) * | 2008-04-16 | 2009-10-21 | 华为技术有限公司 | Method and device for notifying user data subscription |
CN106354507A (en) * | 2016-08-30 | 2017-01-25 | 江苏车置宝信息科技股份有限公司 | Enterprise-level application management system and method for operating same |
CN107920110A (en) * | 2017-10-27 | 2018-04-17 | 江苏飞搏软件股份有限公司 | A kind of method and device of data sharing |
CN108282529A (en) * | 2018-01-23 | 2018-07-13 | 百度在线网络技术(北京)有限公司 | Publication and system, the method and apparatus for subscribing to data |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114374728A (en) * | 2021-12-27 | 2022-04-19 | 广西壮族自治区公众信息产业有限公司 | Front-end equipment online state acquisition method |
CN114374728B (en) * | 2021-12-27 | 2023-11-10 | 广西壮族自治区公众信息产业有限公司 | Front-end equipment online state acquisition method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109949111B (en) | Electronic bill identification distribution method, electronic bill generation method, device and system | |
CN106548402B (en) | Resource transfer monitoring method and device | |
CN106953940B (en) | Dns server and configuring load application method, network system, domain name analytic method and system | |
CN108897854B (en) | Monitoring method and device for overtime task | |
CN109788020A (en) | One kind is attended a banquet distribution method and relevant device | |
CN101771723A (en) | Data synchronization method | |
CN107181821A (en) | A kind of information push method and device based on SSE specifications | |
CN111786998A (en) | Authority management method and device based on micro-service calling and storage medium | |
CN112016030B (en) | Message pushing method, device, server and computer storage medium | |
CN108616525A (en) | Website access method and device, electronic equipment and storage medium | |
CN105468619A (en) | Resource distribution method and device used for database connection pool | |
CN110933152B (en) | Preheating method, device and system and electronic equipment | |
US8320545B2 (en) | System, method, and logic for determining presence status according to the location of endpoints | |
CN108989101A (en) | A kind of log output system, method and electronic equipment | |
CN101778131A (en) | Data synchronization system | |
RU2008112155A (en) | SINGLE-PEOPLE PROTOCOL OF RESOLUTION OF NAMES OF SIMPLE INTERFACE OF APPLICATION PROGRAM | |
CN114090623A (en) | Method and device for creating cache resources, electronic equipment and storage medium | |
CN110196874A (en) | Data subscription method, device and server | |
CN111311310B (en) | Advertisement order pushing method and device, storage medium and electronic device | |
CN112995266B (en) | Information pushing method and related equipment | |
CN107547643A (en) | A kind of load sharing method and device | |
CN104731660A (en) | Data distribution method, device and system | |
CN106790339A (en) | Metadata server, network device, and automatic resource management method | |
CN107730380B (en) | Method, system and server for processing joint account | |
CN108156086B (en) | Policy rule issuing method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190903 |