The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on
State data processing method in a kind of multistage server of problem, the data processing equipment in multistage server and data processing system
System.
According to one aspect of the present invention, the data processing side in a kind of multistage server is embodiments provided
Method, including:
It is provided for dividing the logic rule of data to different types of data for servers at different levels, the data type is at least wrapped
The first kind and Second Type are included, and chooses the data that Second Type data are that servers at different levels need to report;According to logic
Data in every grade of server are at least divided into two types by rule;Second Type data in next stage server are reported to
When prime server, and be stored in when in prime server as when prime server data;Receiving when prime server
To request end data access request when, judge whether can from when getting the data of needs in the data of prime server, if
It is request end will to be back to from when the data got in prime server, if it is not, from when the lower level servers of prime server
It is middle to obtain the data for needing, and the data are back to into request end.
Wherein, it is above-mentioned to obtain the data of needs from the lower level servers for working as prime server, and the data are back to
Request end includes:
Address information in data access request knows the lower level servers that the data of needs are located;By data access
Request is sent to the lower level servers known;The data that lower level servers are returned according to data access request are received, this is returned
Data of the data returned as the needs for getting.
Wherein, the above-mentioned logic rule for arranging division data type for servers at different levels include:Belonged to according to the data of data
Property, generate time and/or usage frequency logic rule be set.
Wherein, it is above-mentioned the data in every grade of server are at least divided into into two types according to logic rule to include:Work as data
Data attribute indicate statistical data when, and/or, when data usage frequency be more than frequency threshold when, and/or, when data
When data attribute is designated as specifying the generation time of data and data to belong to the specified time period, data are divided into into Second Type number
According to;Otherwise, data are divided into into first kind data.
Wherein, said method also includes:When the data in monitoring next stage server change, by delta data
Information reporting to work as prime server;It is updated to working as the data in prime server according to the information of delta data.
Wherein, above-mentioned data type also includes confidential type, it is above-mentioned according to logic rule by the data in every grade of server
At least being divided into two types includes:The confidential categorical data and the confidential number of types in every grade of server is known according to logic rule
According to the servers at different levels that needs are reported;
Said method also includes:If when the clothes that prime server needs to report for the confidential categorical data of next stage server
Business device when, when receive next stage server report confidential data when, store the confidential data;If working as prime server not
When being that the confidential categorical data of next stage server needs the server for reporting, when the machine for reporting for receiving next stage server
When wanting data, the confidential data are directly forwarded to when the upper level server of prime server.
Wherein, the data in servers at different levels are data of financial transaction, and said method includes:Receiving when prime server
To the requesting query process of exchange of request end data access request when, judge whether can from when prime server data in obtain
The transaction data of needs is got, if so, request end will be back to from when the transaction data got in prime server, if it is not,
The transaction data of needs is obtained from the lower level servers for working as prime server, and the transaction data is back to into request end, with
Request end is set to know process of exchange according to the transaction data;Or,
Data in servers at different levels are enterprise network security data, and said method includes:Receiving when prime server
To the requesting query safe condition of request end data access request when, judge whether can from when prime server data in obtain
The network security data of needs is got, if so, request will be back to from when the network security data got in prime server
End, if it is not, from when obtaining the network security data of needs in the lower level servers of prime server, and by the network security data
Request end is back to, so that request end knows the safe condition of enterprise network according to the network security data.
According to another aspect of the present invention, the embodiment of the present invention additionally provides the data processing in a kind of multistage server
Device, including:
Logic rule setting unit, is suitable for servers at different levels and is provided for dividing the logic of data to different types of data
Rule, the data type at least includes the first kind and Second Type, and selection Second Type data are needed for servers at different levels
The data to be reported;Data dividing unit, is suitable to that the data in every grade of server are at least divided into into two species according to logic rule
Type;Classification reporting unit, is suitable to the Second Type data in next stage server be reported to when prime server, and is stored in
When in prime server as when prime server data;Access process unit, is suitable to asked when prime server is received
When seeking the data access request at end, judge whether if so, will from when the data that needs are got in the data of prime server
Request end is back to from when the data got in prime server, if it is not, obtaining from the lower level servers for working as prime server
The data of needs are taken, and the data are back to into request end.
Wherein, access process unit, is further adapted for the data institute that the address information in data access request knows needs
Lower level servers;Data access request is sent to the lower level servers known;Lower level servers are received according to data
Access request return data, using the data of the return as the needs for getting data.
Wherein, logic rule setting unit, is suitable to the data attribute according to data, generation time and/or usage frequency and sets
Put logic rule.
Wherein, data dividing unit, is suitable to when the data attribute of data indicates statistical data, and/or, when making for data
When being more than frequency threshold with frequency, and/or, when the generation time that the data attribute of data is designated as specified data and data belongs to
During the specified time period, data are divided into into Second Type data;Otherwise, data are divided into into first kind data.
Wherein, said apparatus also include monitoring means and updating block.The monitoring means, are suitable to monitor the number in server
According to change;Classification reporting unit, is further adapted for when the data in monitoring next stage server change, by delta data
Information reporting is to when prime server;The updating block, is suitable to according to the information of delta data to when the number in prime server
According to being updated.
Wherein, above-mentioned data type also includes confidential type, and data dividing unit is further adapted for being known often according to logic rule
Confidential categorical data and the confidential categorical data in level server needs the servers at different levels for reporting;Classification reporting unit, also
It is next when receiving if being suitable to when prime server needs the server for reporting for the confidential categorical data of next stage server
Level server report confidential data when, store the confidential data;If when prime server is not the machine of next stage server
Want categorical data need report server when, when receive next stage server report confidential data when, directly forwarding
The confidential data are to when the upper level server of prime server.
Wherein, the data in servers at different levels are data of financial transaction, and access process unit is further adapted for when prime service
When device receives the data access request of requesting query process of exchange of request end, judging whether can be from when the number of prime server
The transaction data of needs is got according in, if so, request end will be back to from when the transaction data got in prime server,
If it is not, obtaining the transaction data of needs from the lower level servers for working as prime server, and the transaction data is back to into request
End, so that process of exchange is known in request end according to the transaction data;Or, the data in servers at different levels are enterprise network security
Data, access process unit is further adapted for being visited in the data of the requesting query safe condition that request end is received when prime server
When asking request, judging whether can be from when get the network security data of needs in the data of prime server, if so, will be from working as
The network security data got in prime server is back to request end, if it is not, from when the lower level servers of prime server
It is middle to obtain the network security data for needing, and the network security data is back to into request end, so that request end is according to the network
Secure data knows the safe condition of enterprise network.
According to an additional aspect of the present invention, the embodiment of the present invention additionally provides a kind of data handling system, the system tool
There is multilevel hierarchy, in every primary structure at least one server is provided with, set between upper level server and next stage server
It is equipped with data access interface.The data processing equipment being provided with the system in multistage server described above, the multiple-stage and split
Data processing equipment in device and each server in the system have and are connected, and the data in each server can be carried out
Control.
From the above mentioned, the embodiment of the present invention for servers at different levels by arranging the logic rule that data classification is used, and selects
It is to need the data that report to take Second Type data, and using the logic rule only by filter out from every grade of server the
Two categorical datas report to the technological means of primary server thereon, and substantially reducing needs the data volume of synchronization and per grade of service
Device needs the data volume of storage, compared to Complete Synchronization mode of the prior art, reduces answering for data synchronization processing logic
Miscellaneous degree, the bandwidth pressure of data transfer is less, saves the memory source of server.
Also, the embodiment of the present invention, can be by Jing frequentations by the setting of logic rule and the selection of Second Type data
The data asked report to the preservation of upper level server, and upper level server by utilizing data of itself can be looked into most data
Inquiry is responded, and reduces the probability of happening of data relay, so as to shorten the response time of data access.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
The technology design of this programme is essentially consisted in the server admin and data syn-chronization of multilevel hierarchy, is reached and is being ensured
Data access it is ageing when, save the memory space of server, reduce the data volume of data syn-chronization, reduce synchronous complexity
Effect.
Data processing equipment 100 in a kind of multistage server that one embodiment of the invention is provided, referring to Fig. 1, including:
Logic rule setting unit 111, data dividing unit 112, classification reporting unit 113, access process unit 114, monitoring means
115 and updating block 116.These devices are illustrated separately below.
Logic rule setting unit 111 is suitable for servers at different levels and is provided for dividing data patrolling to different types of data
Rule is collected, the data type at least includes the first kind and Second Type, and it is servers at different levels to choose Second Type data
The data that needs are reported.
Wherein, logic rule setting unit 111 is suitable to the data attribute according to data, generation time and/or usage frequency
Logic rule, including but not limited to following set-up mode are set:
Arrange when it is statistical data that data attribute indicates data, the data are divided into into the logic rule of Second Type data
Then;
Arrange when data attribute indicates data to specify data, and generate the persond eixis specified data at the appointed time section
During interior generation, the data are divided into into the logic rule of Second Type data;
Arrange when the usage frequency of data exceedes preset frequency threshold value (i.e. frequently-used data), the data are divided into into second
The logic rule of categorical data;And,
Arrange when the condition of above-mentioned Second Type data is unsatisfactory for, data are divided into into the logic rule of first kind data
Then.
It should be noted that generally, per grade of server all logically rule setting unit 111 arrange it is upper
Stating logic rule carries out the division of data, the data in server is divided into into first kind data and Second Type data, then
The logic rule arranged in servers at different levels are identicals.However, also have some more special data, in different stage server
On attention rate, usage frequency or level of security it is different, to these data, the present embodiment is set to its data type confidential
Type, logic rule setting unit 111 can also arrange the logic rule of the server that confidential categorical data needs to report.At this moment,
Data in server are divided into first kind data, Second Type data and confidential categorical data, then set in servers at different levels
The logic rule put are differed.Logic rule setting unit 111 divides the data outside Second Type data and confidential data
For first kind data.
It is appreciated that according to the actual needs, logic rule setting unit 111 can also arrange except the first kind, second
Other types of data outside type and confidential type.
Data dividing unit 112 is suitable to that the data in every grade of server are at least divided into into two types according to logic rule.
For example, to every primary server, data dividing unit 112 can carry out following division operation:
When it is statistical data that the data attribute of data indicates the data, data are divided into the by data dividing unit 112
Two categorical datas, the statistical data is usually statistical information of the server to itself data storage, and this statistical information meeting Jing is normal
By upper level server calls, the statistical data is divided into Second Type data;
And/or,
When the usage frequency of data is more than frequency threshold (conventional), data are divided into second by data dividing unit 112
Categorical data, for example, by commonly used daily record data Second Type data is divided into;
And/or,
When the data attribute of data is designated as specifying the generation time of data and data to belong to the specified time period, data are drawn
Data are divided into Second Type data by subdivision 112;For example, for educational system data, can be by June No. 7, No. 8 generations
Examinee's data, examination data etc. (i.e. college entrance examination data) are divided into Second Type data, or, by June No. 7, No. 8 one section of finger in front and back
The examinee generated in the timing phase, related data of taking an examination all are divided into Second Type data.Due to these data at the appointed time section
It is interior to be frequently used, it is divided into Second Type data and reports to upper level server, reduces number during data access
According to the probability of happening of transfer, shorten the response time of data access.
When the condition of any one above-mentioned Second Type data is unsatisfactory for, data dividing unit 112 is divided into data
First kind data.
It should be noted that when confidential categorical data is provided with the server, data dividing unit 112 is by Equations of The Second Kind
Data outside type data and confidential categorical data are divided into first kind data.For confidential categorical data, data divide single
Unit 112 is suitable to know that confidential categorical data and the confidential categorical data in every grade of server need what is reported according to logic rule
Servers at different levels.
In addition, every grade of server can in advance collect data attribute, generation time and the usage frequency of the data of its storage
Etc. information, data dividing unit is divided using these information collected to the data in server.
Classification reporting unit 113 is suitable to the Second Type data in next stage server be reported to when prime server,
And be stored in when in prime server as when prime server data.
For confidential categorical data, if classification reporting unit 113 is suitable to the machine when prime server for next stage server
Want categorical data need report server when, when receive next stage server report confidential data when, store the machine
Want data;If when the confidential categorical data that prime server is not next stage server needs the server for reporting, working as reception
To next stage server report confidential data when, directly forward the confidential data to when prime server upper level service
Device.
With reference to Fig. 2, the reporting schemes of the confidential categorical data are illustrated.A kind of system of multistage server is shown in Fig. 2
The schematic diagram of structure.This reports process for confidential categorical data in server 206 (corresponding to above-mentioned next stage server)
Report, reporting unit 113 of classifying knows that confidential categorical data needs the server for reporting to include server in server 206
200 and server 204, such as only server 200 and server 204 have the right to use to confidential categorical data in server 206
Limit, or, the confidential categorical data in server 206 is frequently-used data only for server 200 and server 204, then classify
The confidential categorical data of reporting unit 113 first reports to server 202 (corresponding to above-mentioned when prime server), due to server
202 is not the server that confidential categorical data needs to report, then server 202 is not processed or deposited to the confidential categorical data
Storage, directly by the confidential categorical data forwarding server 200 and server 204.
Access process unit 114 is suitable to when the data access request of request end is received when prime server, and judgement is
The no data that needs can be got from the data for working as prime server, if so, by from when the number got in prime server
According to request end is back to, if it is not, obtaining the data of needs from the lower level servers for working as prime server, and the data are returned
To request end.Under this processing mode, when prime server can check the statistical information and frequently-used data of subordinate, needing in detail
Count accurately according to when, can by parent server access subordinate data.
When the data of subordinate are accessed by parent server, access process unit 114 is according in data access request
Address information knows the lower level servers that the data of needs are located;Data access request is sent to the lower service known
Device;The data that lower level servers are returned according to data access request are received, using the data of the return as the needs for getting
Data.For example, the URL of data can be carried in data access request, and (Uniform Resource Locator, unified resource is fixed
Position symbol), the lower level servers that data are located are known according to the URL.
Wherein, said apparatus 100 also include monitoring means 115 and updating block 116.The monitoring means 115 are suitable to monitoring
Data variation in server;Classification reporting unit 113, is further adapted for monitor that the data in next stage server change
When, by the information reporting of delta data to when prime server;The updating block 116, is suitable to the information pair according to delta data
When the data in prime server are updated.Updating block 116, can be with the next stage service after updating when updating the data
Data in device are replaced to working as all data in prime server, or only when the number for being related to change in prime server
It is replaced according to part.By aforesaid operations, renewal is timed to the data in server, ensures that number in server
According to effectiveness and correctness.
The technical scheme of the embodiment of the present invention can be applied in the financial transaction network system with multistage server structure
In, under this scene, the data in servers at different levels are data of financial transaction (such as transaction document information, transaction details information
Deng), access process unit 114 is further adapted for being visited in the data of the requesting query process of exchange that request end is received when prime server
When asking request, judging whether can be from when get the transaction data of needs in the data of prime server, if so, will be from working as prime
The transaction data got in server is back to request end, if it is not, obtain from the lower level servers for working as prime server needing
The transaction data wanted, and the transaction data is back to into request end, so that process of exchange is known in request end according to the transaction data.
Above-mentioned request end can be the user of financial transaction network system, or the center of financial transaction network system
Server, or when the parent server of prime server.
The technical scheme of the embodiment of the present invention can be applied in the corporate secure network with multistage server structure,
Under this scene, the data in servers at different levels are enterprise network security data, such as viral wooden horse, leak associated safety number
According to these secure datas can in the server form Security Report.
Under multi-stage environmental, each node server is required for counting the security situation of all of server of subordinate, if
According to the mode of existing Complete Synchronization, every grade of server all reports data, can cause the very big traffic and take substantial amounts of
Memory space, and the scheme of the embodiment of the present invention is adopted, by above-mentioned data processing equipment 100, can quickly check remittance
Total information, and without substantial amounts of synchrodata.
Under this scene, access process unit 114 is receiving the safe shape of requesting query of request end when prime server
During the data access request of condition, judge whether the network security data that needs can be got from the data for working as prime server,
If so, request end will be back to from when the network security data got in prime server, if it is not, from when prime server
The network security data of needs is obtained in lower level servers, and the network security data is back to into request end, so that request end
The safe condition of enterprise network is known according to the network security data.
Another embodiment of the present invention additionally provides a kind of data handling system, and the system has multilevel hierarchy, per one-level
At least one server is provided with structure, between upper level server and next stage server data access interface is provided with.
Referring to Fig. 2, server 206 and be provided between primary server 202 thereon data access reception, server 206 is by the number
Data are reported to into server 202 according to access interface, server 202 is extracted by the data access interface from server 206
Data.
The data processing equipment being provided with the system in multistage server, the data processing equipment in the multistage server
Have with each server in system and be connected, and the data in each server can be controlled.Above-mentioned data processing equipment
Can be arranged on any one or more servers in multilevel hierarchy, or, above-mentioned data processing equipment can be arranged on many
In one or more proprietary servers outside level structure.
The specific works mode of above-mentioned data processing equipment may refer to the other embodiment of the present invention, and here is no longer gone to live in the household of one's in-laws on getting married
State.
Notebook data processing system can be applied in financial transaction network or corporate secure network, but not limited to this, also may be used
To apply in other kinds of network.
Another embodiment of the invention additionally provides the data processing method in a kind of multistage server, referring to Fig. 3, the party
Method is suitable to step S300, including following process:
S300:It is provided for dividing the logic rule of data to different types of data, the data type for servers at different levels
At least include the first kind and Second Type, and choose the data that Second Type data are that servers at different levels need to report.
Wherein, according to data data attribute, the time is generated and/or usage frequency arranges logic rule.
In some scenes, attention rate of the data on different stage server, usage frequency or level of security are different, will
These data are set to confidential categorical data, then above-mentioned data type also includes confidential type.
S302:The data in every grade of server are at least divided into into two types according to logic rule.
According to the particular content of logic rule, when the data attribute of data indicates statistical data, and/or, when data
When usage frequency is more than frequency threshold, and/or, when the data attribute of data is designated as specifying the generation time category of data and data
At fixed time during section, data are divided into into Second Type data;Otherwise, data are divided into into first kind data.Will be every
Data in level server are divided into first kind data and Second Type data, and Second Type data include that access frequency is higher
Statistical data and frequently-used data.
It should be noted that when confidential categorical data is provided with, data can be divided into into first kind number in this step
According to, Second Type data and confidential categorical data.For confidential categorical data, every grade of server can be known according to logic rule
In confidential categorical data and the confidential categorical data need the servers at different levels for reporting.
S304:Second Type data in next stage server are reported to when prime server, and is stored in and is worked as prime
As when the data of prime server in server.
When confidential categorical data is reported, said method also includes:When prime server is the confidential of next stage server
Categorical data need report server when, when receive next stage server report confidential data when, store this confidential
Data;If when the confidential categorical data that prime server is not next stage server needs the server for reporting, when receiving
Next stage server report confidential data when, directly forward the confidential data to when prime server upper level service
Device.
S306:When the data access request of request end is received when prime server, judging whether can be from when prime takes
The data of needs are got in the data of business device, is then execution step S308, otherwise execution step S310;
S308:Request end will be back to from when the data got in prime server.
S310:The data of needs are obtained from the lower level servers for working as prime server, and the data are back to into request
End.
Address information in this step in data access request knows the lower level servers that the data of needs are located;Will
Data access request is sent to the lower level servers known;Receive the number that lower level servers are returned according to data access request
According to, using the data of the return as the needs for getting data.
Wherein, said method also includes:When the data in monitoring next stage server change, by delta data
Information reporting to work as prime server;It is updated to working as the data in prime server according to the information of delta data.It is logical
Cross timing to update, it is ensured that the effectiveness and correctness of data in servers at different levels.
Under one application scenarios, the data in servers at different levels are data of financial transaction, and above-mentioned steps S306 to S310 is wrapped
Include:When the data access request of requesting query process of exchange of request end is received when prime server, judging whether can be from
When the transaction data that needs are got in the data of prime server, if so, by from when the transaction got in prime server
Data are back to request end, if it is not, obtaining the transaction data of needs from the lower level servers for working as prime server, and this are handed over
Easily data are back to request end, so that process of exchange is known in request end according to the transaction data;
Another is answered under scene, and the data in servers at different levels are enterprise network security data, and above-mentioned steps S306 are extremely
S310 methods include:When the data access request of requesting query safe condition of request end is received when prime server, sentence
The disconnected network security data that needs whether can be got from the data for working as prime server, if so, will be from when prime server
In the network security data that gets be back to request end, if it is not, from needing when obtaining in the lower level servers of prime server
Network security data, and the network security data is back to into request end, so that request end is obtained according to the network security data
Know the safe condition of enterprise network.
The embodiment of the present invention at least has the advantage that:
1st, ensure that data are responded timely, allow request end (such as user) that the data of needs can be rapidly obtained.
2nd, a large amount of synchrodatas are not needed, especially for the application that data volume is larger, bandwidth and memory space is saved.
3rd, because the data volume that reports of needs chosen is less, most of data need not be synchronous, reduces timing error, guarantor
Card data are effective.
4th, the file amount very little of server storage, targetedly can cache to file, under improving server
Carry efficiency.
From the above mentioned, the embodiment of the present invention for servers at different levels by arranging the logic rule that data classification is used, and selects
It is to need the data that report to take Second Type data, and using the logic rule only by filter out from every grade of server the
Two categorical datas report to the technological means of primary server thereon, and substantially reducing needs the data volume of synchronization and per grade of service
Device needs the data volume of storage, compared to Complete Synchronization mode of the prior art, reduces answering for data synchronization processing logic
Miscellaneous degree, the bandwidth pressure of data transfer is less, saves the memory source of server.
Also, the embodiment of the present invention, can be by Jing frequentations by the setting of logic rule and the selection of Second Type data
The data asked report to the preservation of upper level server, and upper level server by utilizing data of itself can be looked into most data
Inquiry is responded, and reduces the probability of happening of data relay, so as to shorten the response time of data access.
Provided herein algorithm and show not with any certain computer, virtual system or the intrinsic phase of other servers
Close.Various general-purpose systems can also be used together based on teaching in this.As described above, construct this kind of system to want
The structure asked is obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is each
The content that programming language realizes invention described herein is planted, and the description done to language-specific above is to disclose this
The preferred forms of invention.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can carry out adaptivity to the module in the server in embodiment
Ground changes and they is arranged in one or more servers different from the embodiment.Can be the module in embodiment
Or unit or component are combined into a module or unit or component, and multiple submodule or son list can be divided in addition
Unit or sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt
Any combinations are to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and such as the displosure
Any method or all processes or unit of server be combined.Unless expressly stated otherwise, this specification is (including companion
With claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equivalent or similar purpose replacement spy
Levy to replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint
One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation
Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) to realize multistage server according to embodiments of the present invention in data processing
The some or all functions of some or all parts in device and data handling system.The present invention is also implemented as using
In perform method as described herein some or all servers or program of device (for example, computer program and
Computer program).Such program for realizing the present invention can be stored on a computer-readable medium, or can be had
The form of one or more signal.Such signal can be downloaded from internet website and obtained, or on carrier signal
There is provided, or provide in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims,
Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame
Claim.
The invention also discloses the data processing method in A1, a kind of multistage server, including:
It is provided for dividing the logic rule of data to different types of data for servers at different levels, the data type is at least
Including the first kind and Second Type, and choose the data that Second Type data are that servers at different levels need to report;
The data in every grade of server are at least divided into into two types according to the logic rule;
Second Type data in next stage server are reported to when prime server, and is stored in when prime server
It is middle as when prime server data;
When the data access request of request end is received when prime server, judging whether can be from when prime server
The data of needs are got in data, if so, request end will be back to from when the data got in prime server, if it is not,
The data of needs are obtained from the lower level servers for working as prime server, and the data are back to into request end.
A2, the method according to A1, wherein, it is described from when the number that needs are obtained in the lower level servers of prime server
According to, and the data are back to into request end include:
Address information in data access request knows the lower level servers that the data of needs are located;
Data access request is sent to the lower level servers known;
The data that the lower level servers are returned according to the data access request are received, using the data of the return as obtaining
The data of the needs got.
A3, the method according to A1, wherein, it is described that the logic rule bag for dividing data type is set for servers at different levels
Include:
Data attribute, generation time and/or usage frequency according to data arranges the logic rule.
A4, the method according to A3, wherein, it is described according to the logic rule by the data in every grade of server at least
Being divided into two types includes:
When the data attribute of the data indicates statistical data, and/or, when the usage frequency of the data is more than frequency
During threshold value, and/or, when the data attribute of the data is designated as specifying the generation time of data and the data to belong to specified
Between section when, the data are divided into into Second Type data;Otherwise, the data are divided into into first kind data.
A5, the method according to A1, wherein, methods described also includes:
When the data in monitoring next stage server change, by the information reporting of delta data to when prime clothes
Business device;
It is updated to working as the data in prime server according to the information of the delta data.
A6, the method according to A1, wherein, the data type also includes confidential type,
It is described the data in every grade of server are at least divided into into two types according to the logic rule to include:
Know that confidential categorical data and the confidential categorical data in every grade of server need according to the logic rule
The servers at different levels of report;
Methods described also includes:
If when prime server needs the server for reporting for the confidential categorical data of next stage server, when receiving
Next stage server report confidential data when, store the confidential data;If when prime server is not next stage server
Confidential categorical data need report server when, when receive next stage server report confidential data when, directly
The confidential data are forwarded to when the upper level server of prime server.
A7, the method according to A1, wherein, the data in the servers at different levels be data of financial transaction, the side
Method includes:When the data access request of requesting query process of exchange of request end is received when prime server, judge whether
Can be from when get the transaction data of needs in the data of prime server, if so, by from when getting in prime server
Transaction data is back to request end, if it is not, the transaction data of needs is obtained from the lower level servers for working as prime server, and will
The transaction data is back to request end, so that process of exchange is known in request end according to the transaction data;Or,
Data in the server at different levels are enterprise network security data, and methods described includes:When prime server
When receiving the data access request of requesting query safe condition of request end, judging whether can be from when the data of prime server
In get the network security data of needs, if so, by from being back to when the network security data got in prime server
Request end, if it is not, from when obtaining the network security data of needs in the lower level servers of prime server, and by the network security
Data are back to request end, so that request end knows the safe condition of enterprise network according to the network security data.
The invention also discloses the data processing equipment in B8, a kind of multistage server, including:
Logic rule setting unit, is suitable for servers at different levels and is provided for dividing the logic of data to different types of data
Rule, the data type at least includes the first kind and Second Type, and it is servers at different levels to choose Second Type data
The data that needs are reported;
Data dividing unit, is suitable to that the data in every grade of server are at least divided into into two species according to the logic rule
Type;
Classification reporting unit, is suitable to the Second Type data in next stage server be reported to when prime server, and
Be stored in when in prime server as when prime server data;
Access process unit, is suitable to, when the data access request of request end is received when prime server, judge whether
Can be from when the data that needs are got in the data of prime server, if so, by from when the data got in prime server
Request end is back to, if it is not, obtaining the data of needs from the lower level servers for working as prime server, and the data is back to
Request end.
B9, the device according to B8, wherein, the access process unit is further adapted for according in data access request
Address information knows the lower level servers that the data of needs are located;Data access request is sent to the lower service known
Device;The data that the lower level servers are returned according to the data access request are received, using the data of the return as getting
Needs data.
B10, the device according to B8, wherein, the logic rule setting unit is suitable to be belonged to according to the data of data
Property, generate time and/or usage frequency the logic rule be set.
B11, the device according to B10, wherein,
The data dividing unit, is suitable to when the data attribute of the data indicates statistical data, and/or, when described
When the usage frequency of data is more than frequency threshold, and/or, when the data attribute of the data is designated as specifying data and the number
According to the generation time belong to the specified time period when, the data are divided into into Second Type data;Otherwise, the data are divided
For first kind data.
B12, the device according to B8, wherein, described device also includes monitoring means and updating block,
The monitoring means, are suitable to monitor the data variation in server;
The classification reporting unit, is further adapted for, when the data in monitoring next stage server change, to change
The information reporting of data is to when prime server;
The updating block, is suitable to be carried out more to working as the data in prime server according to the information of the delta data
Newly.
B13, the device according to B8, wherein, the data type also includes confidential type,
The data dividing unit, is further adapted for knowing the confidential categorical data in every grade of server according to the logic rule
The servers at different levels reported with confidential categorical data needs;
The classification reporting unit, if being further adapted for the confidential categorical data needs when prime server for next stage server
During the server for reporting, when receive next stage server report confidential data when, store the confidential data;If working as prime
When server is not that the confidential categorical data of next stage server needs the server for reporting, when receiving next stage server
During the confidential data for reporting, the confidential data are directly forwarded to when the upper level server of prime server.
B14, the device according to B8, wherein,
Data in the server at different levels are data of financial transaction, and the access process unit is further adapted for working as prime
When server receives the data access request of requesting query process of exchange of request end, judging whether can be from when prime server
Data in get the transaction data of needs, if so, by from when the transaction data got in prime server is back to please
End is asked, if it is not, obtaining the transaction data of needs from the lower level servers for working as prime server, and the transaction data is back to
Request end, so that process of exchange is known in request end according to the transaction data;Or,
Data in the server at different levels are enterprise network security data, and the access process unit is further adapted for working as
When prime server receives the data access request of requesting query safe condition of request end, judging whether can be from when prime takes
The network security data of needs is got in the data of business device, if so, by from when the network security got in prime server
Data are back to request end, if it is not, the network security data of needs is obtained from the lower level servers for working as prime server, and will
The network security data is back to request end, so that request end knows the safe shape of enterprise network according to the network security data
Condition.
The invention also discloses C15, a kind of data handling system, the system has multilevel hierarchy, in every primary structure
At least one server is provided with, between upper level server and next stage server data access interface is provided with,
Arrange in the system just like the data processing equipment in the multistage server described in any one of B8 to B14,
Data processing equipment in the multistage server, has with each server in the system and is connected, and can
Data in each server are controlled.