CN104301234A - Routing method and routing device - Google Patents
Routing method and routing device Download PDFInfo
- Publication number
- CN104301234A CN104301234A CN201310297949.8A CN201310297949A CN104301234A CN 104301234 A CN104301234 A CN 104301234A CN 201310297949 A CN201310297949 A CN 201310297949A CN 104301234 A CN104301234 A CN 104301234A
- Authority
- CN
- China
- Prior art keywords
- resource request
- routing iinformation
- resource
- information table
- route 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000015654 memory Effects 0.000 claims description 57
- 230000006870 function Effects 0.000 claims description 40
- 238000005516 engineering process Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a routing method and a routing device. The routing method comprises the following steps of receiving a resource request including a function identifier and a resource identifier; judging whether a preset routing information sheet including corresponding relation between the resource request and the routing information in a cache includes the routing information corresponding to the resource request, if yes, obtaining the routing information as a routing result of the resource request; and obtaining resources corresponding to the resource request according to the routing result. According to the routing method and the routing device, the routing information sheet used for storing the corresponding relation between the resource request and the routing information is arranged in the cache, firstly, a storage path of the resources, that is to say, the routing information is obtained, and secondly, the resources are objectively and directly obtained according to the routing information; in comparison with the prior art, the efficiency of obtaining the resources is higher.
Description
Technical field
The present invention relates to data processing field, be specifically related to a kind of method for routing and device.
Background technology
Nowadays the development of network technology is rapid, user is increasing for the demand of Internet resources, user obtains internet resource and normally obtains by sending resource request to server, so, the server that customer volume is larger is had to process in real time the resource request of a large number of users.
Route is the process obtaining user's resource requirement according to the resource request of user.Existing method for routing, just according to the resource request that user sends, in the search that the unified Internet resources be stored in resources bank carry out in layer, obtains required Internet resources.Such as, C document under the Internet resources needed for user are the B file being stored in A memory block, so when user carries out route according to resource request to C document, first the B file in A memory block is obtained, secondly in B file, inquire about C document, finally could determine that C document is user's resource requirement.
The method for routing of prior art needs the analysis carrying out successively to resource request, has to successively obtain other resources, as the A memory block in above-mentioned example and B file before getting resource requirement.Obviously, the method for routing efficiency of this successively Gains resources is lower.
Summary of the invention
Embodiments provide a kind of method for routing and device, the efficiency of route can be improved.
On the one hand, embodiments provide a kind of method for routing, described method comprises:
Receive resource request, described resource request comprises Function Identification and resource identification;
Judge whether comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation, if so, then the route results of described routing iinformation as described resource request is obtained;
Resource corresponding to described resource request is obtained according to described route results.
On the other hand, the embodiment of the present invention additionally provides a kind of route device, and described device comprises:
First receiver module, for receiving resource request, described resource request comprises Function Identification and resource identification;
First judge module, for judging whether comprise routing iinformation corresponding to described resource request in route information table default in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation;
First acquisition module, for when the result of described first judge module is for being, obtains the route results of described routing iinformation as described resource request;
Second acquisition module, for obtaining resource corresponding to described resource request according to described route results.
First the embodiment of the present invention receives resource request, secondly, judge whether comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation, when described route information table comprises described routing iinformation, obtain the route results of described routing iinformation as described resource request, finally, obtain resource corresponding to described resource request according to described route results.The embodiment of the present invention arranges the route information table for storage resources request and routing iinformation corresponding relation in the buffer, first the store path of Gains resources, i.e. routing iinformation, secondly, have target according to the direct Gains resources of routing iinformation, compared with prior art, the efficiency of embodiment of the present invention Gains resources is higher.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The method for routing flow chart that Fig. 1 provides for the embodiment of the present invention one;
The method for routing flow chart that Fig. 2 provides for the embodiment of the present invention two;
The route device structure chart that Fig. 3 provides for the embodiment of the present invention three;
The server architecture schematic diagram that Fig. 4 provides for the embodiment of the present invention three.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
Embodiment one
In order to overcome the shortcoming successively obtaining resource requirement of prior art, the present inventor uses routing iinformation markup resources, after getting the routing iinformation corresponding with resource request, directly can pass through routing information acquisition resource.
With reference to the method for routing flow chart that figure 1, Fig. 1 provides for the present embodiment, specifically comprise:
Step 101: receive resource request, described resource request comprises Function Identification and resource identification.
In the present embodiment, first receive resource request, wherein, described resource request can comprise Function Identification and resource identification.
In practical operation, the resource request of system acceptance can be that user triggers, concrete, user can according to demand to system transmission resources request, simultaneously, the mode of user's triggers resource request is more, can by clicking the request of resource request button triggers resource, and mode the present embodiment of concrete triggers resource request does not limit.
Step 102: judge whether comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation, if so, enters step 103.
In the present embodiment, after receiving resource request, first judge whether comprise routing iinformation corresponding to this resource request in the route information table pre-set in buffer memory, if comprised, enter step 103.Wherein, in route information table, store the corresponding relation of resource request and routing iinformation, that is, can routing iinformation corresponding to query resource request in route information table.Concrete, routing iinformation can be the store path of resource, can be obtained the resource of its correspondence by routing iinformation.For the system that stock number is larger, need in buffer memory to store a large amount of routing iinformation corresponding with ample resources, cause the efficiency obtaining routing iinformation according to resource request lower.Routing iinformation in route information table is carried out classification and stores by the present embodiment, to improve the efficiency obtaining routing iinformation.
In practical operation, Function Identification and resource identification can be comprised due in the resource request that receives, can the first Function Identification of Gains resources request and resource identification.Wherein, Function Identification is for identifying the function of this resource request, and such as, " download " and " watching online " of downloading in certain film or online certain film of viewing is Function Identification.Meanwhile, resource identification is used for unique identification resource, and such as, " certain film " in above-mentioned example is resource identification.
In the present embodiment, routing iinformation can be obtained by the Function Identification in resource request and resource identification.First, judge whether comprise routing iinformation corresponding to described Function Identification in the route information table preset in buffer memory, if, after the described routing iinformation of acquisition, judge whether comprise routing iinformation corresponding to described resource identification in described routing iinformation, described route information table comprises the corresponding relation of Function Identification and routing iinformation and the corresponding relation of resource identification and routing iinformation.
In practical operation, can first obtain routing iinformation corresponding with Function Identification in route information table, secondly, the resource information corresponding with resource identification is obtained in the routing iinformation obtained, a lot of and the unmatched routing iinformation of this Function Identification is eliminated owing to obtaining routing iinformation according to Function Identification, so, on the basis getting rid of some routing iinformations, carry out the acquisition of resource information according to resource identification, improve the acquisition efficiency of routing iinformation to a certain extent.Meanwhile, according to Function Identification and resource identification, in route information table, route information classification is stored, avoid the appearance of route explosion issues.
Step 103: obtain the route results of described routing iinformation as described resource request.
In the present embodiment, using the route results of the routing iinformation of acquisition as this resource request, wherein route results can be the foundation of Gains resources.Such as, route results can be " the C document under the B file of A memory block ".
Step 104: obtain resource corresponding to described resource request according to described route results.
In the present embodiment, after determining route results, the resource corresponding according to the resource request of this route results acquisition reception.Such as, according to route results " the C document under the B file of A memory block ", directly " C document " resource can be obtained.
First the present embodiment receives resource request, secondly, judge whether comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation, when described route information table comprises described routing iinformation, obtain the route results of described routing iinformation as described resource request, finally, obtain resource corresponding to described resource request according to described route results.The present embodiment arranges the route information table for storage resources request and routing iinformation corresponding relation in the buffer, first the store path of Gains resources, i.e. routing iinformation, secondly, have target according to the direct Gains resources of routing iinformation, compared with prior art, the efficiency of the present embodiment Gains resources is higher.
Embodiment two
With reference to the method for routing flow chart that figure 2, Fig. 2 provides for the present embodiment, specifically can comprise:
Step 201: receive resource request, described resource request comprises Function Identification and resource identification.
Step 202: judge whether comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation, if not, then enters step 203, if so, then step 205 is entered.
In the present embodiment, can step 101 in reference example one and step 102 to the understanding of step 201 and step 202, do not repeat them here.
Refer to it is noted that when not comprising routing iinformation corresponding to described resource request in the route information table preset in buffer memory, when namely can not inquire the routing iinformation corresponding with resource request in route information table in the buffer, can step 203 be entered.
Step 203: the corresponding relation of the resource request in routing configuration file and routing iinformation is loaded into the route information table in described buffer memory.
In the present embodiment, if do not comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, the corresponding relation of the resource request in routing configuration file and routing iinformation can be loaded in the route information table in buffer memory.Wherein, the corresponding relation of resource request and routing iinformation has been prestored in routing configuration file, but because routing configuration file can not be accessed directly, so need the corresponding relation of the resource request in routing configuration file and routing iinformation to be loaded in the route information table in buffer memory, can be used for user to inquire about.
Step 204: judge whether comprise routing iinformation corresponding to described resource request in described route information table, if so, then enter step 205, if not, then enter step 207.
In the present embodiment, after the corresponding relation of the resource request in routing configuration file and routing iinformation is loaded into the route information table in buffer memory, judge whether route information table now comprises routing iinformation corresponding to resource request, if, enter step 205, if not, then enter step 207.
Step 205: obtain the route results of described routing iinformation as described resource request.
In the present embodiment, when the route information table preset in buffer memory comprises routing iinformation corresponding to described resource request, or after the corresponding relation of the resource request in routing configuration file and routing iinformation being loaded into the route information table in buffer memory, when route information table in buffer memory comprises routing iinformation corresponding to described resource request, can using the route results of routing iinformation corresponding for this resource request as this resource request.
Step 206: obtain resource corresponding to described resource request according to described route results.
In the present embodiment, after the route results of Gains resources request, resource that can be corresponding according to this route results Gains resources request.
Step 207: after described resource request being converted to the file of preset format, obtain file request.
In the present embodiment, after the corresponding relation of the resource request in routing configuration file and routing iinformation being loaded into the route information table in buffer memory, when still not comprising routing iinformation corresponding to described resource request in the route information table in buffer memory, resource request can be converted to the file of preset format, obtain file request.Such as, the Method of resource request is POST, URI is /vl/cvms/{instance_id}/reboot, wherein, { instance_id} represents the resource that will access, and resource request is converted to the file of preset format, and the file request obtained is /vl/cvms/PostInstanceReboot.
It should be noted that, before the corresponding relation of the resource request in routing configuration file and routing iinformation being loaded into the route information table in buffer memory, if when not comprising routing iinformation corresponding to described resource request in the route information table in buffer memory, also directly can enter step 207, obtain file request.
Step 208: obtain the program file that can realize described file request.
In the present embodiment, after obtaining file request, obtain the program file that can realize this file request.Such as, using the above-mentioned file request/vl/cvms/PostInstanceReboot be converted to as target, be loaded in system, obtain the program file that can realize this target.
Step 209: described program file is defined as resource corresponding to described resource request.
Step 210: the store path obtaining described program file.
Step 211: the routing iinformation described store path being defined as described program file.
Step 212: the corresponding relation preserving described resource request and described routing iinformation.
In the present embodiment, after obtaining program file, first this program file is defined as resource corresponding to this resource request, secondly, obtain the store path that this program file is corresponding, and using the routing iinformation of this store path as this program file, finally, the corresponding relation of this resource request and this routing iinformation is preserved.
In practical operation, the method obtaining the store path of program file is more, and the present embodiment does not limit.
The present embodiment arranges the route information table for storage resources request and routing iinformation corresponding relation in the buffer, when not comprising required routing iinformation in route information table, resource request in routing configuration file and routing iinformation corresponding relation are loaded in described route information table, required routing iinformation is inquired about again.If route information table now does not still comprise required routing iinformation, the program file that this resource request is corresponding can be obtained, this program file is as resource requirement the most at last, complete the route to this resource request, compared with prior art, the efficiency of the present embodiment Gains resources is higher, can automatically process newly-increased resource request simultaneously, generate the corresponding relation of new resource request and routing iinformation, the routing function of high efficient and flexible is provided.
Embodiment three
With reference to the route device structure chart that figure 3, Fig. 3 provides for the present embodiment, described device can comprise:
First receiver module 301, for receiving resource request, described resource request comprises Function Identification and resource identification;
First judge module 302, for judging whether comprise routing iinformation corresponding to described resource request in route information table default in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation;
First acquisition module 303, for when the result of described first judge module is for being, obtains the route results of described routing iinformation as described resource request;
Second acquisition module 304, for obtaining resource corresponding to described resource request according to described route results.
Described device can also comprise:
Insmoding, when for not comprising routing iinformation corresponding to described resource request in the route information table preset in the buffer, the resource request in routing configuration file and the corresponding relation of routing iinformation being loaded into route information table default in described buffer memory;
Whether the second judge module, comprise routing iinformation corresponding to described resource request for judging in described route information table;
3rd acquisition module, for when the result of described second judge module is for being, obtains described routing iinformation as route results corresponding to described resource request.
When not comprising routing iinformation corresponding to resource request in route information table, described device also comprises:
Modular converter, for not comprising routing iinformation corresponding to described resource request in described route information table, after described resource request being converted to the file of preset format, obtains file request;
4th acquisition module, for obtaining the program file that can realize described file request;
Accordingly, described second acquisition module, specifically for being defined as resource corresponding to described resource request by described program file.
Described device also comprises:
5th acquisition module, for obtaining the store path of described program file;
Determination module, for being defined as the routing iinformation of described program file by described store path; Preserve module, for preserving the corresponding relation of described resource request and described routing iinformation.
Described device also comprises:
6th acquisition module, for obtaining Function Identification and the resource identification of described resource request;
Accordingly, described first judge module, comprising:
First judges submodule, for judging whether comprise routing iinformation corresponding to described Function Identification in route information table default in buffer memory;
Second judges submodule, for when described first judges the result of submodule as being, after the described routing iinformation of acquisition, judge whether comprise routing iinformation corresponding to described resource identification in described routing iinformation, described route information table comprises the corresponding relation of Function Identification and routing iinformation and the corresponding relation of resource identification and routing iinformation.
Please refer to Fig. 4, a kind of server that its Fig. 4 provides for the present embodiment, this server may be used for the method implementing to provide in above-described embodiment.Specifically:
Server 400 can include the memory 410 of one or more readable storage medium storing program for executing, input unit 420, output unit 430 include the parts such as processor 440 and power supply 450 that more than or processes core.Wherein:
Memory 410 can be used for storing software program and module, and processor 440 is stored in software program and the module of memory 410 by running, thus performs the application of various function and data processing.Memory 410 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program needed at least one function; Store data field and can store the data etc. created according to the use of computer.In addition, memory 410 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 410 can also comprise Memory Controller, to provide the access of processor 440 and input unit 420 pairs of memories 410.
Input unit 420 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.
Processor 440 is control centres of server 400, utilize various interface and connection various piece, software program in memory 410 and/or module is stored in by running or performing, and call the data be stored in memory 410, perform various function and the deal with data of computer, thus integral monitoring is carried out to mobile phone.Optionally, processor 440 can comprise one or more process core.
Server 400 also comprises the power supply 450(such as battery of powering to all parts), preferably, power supply can be connected with processor 440 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 450 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Specifically in the present embodiment, processor 440 can according to following instruction, executable file corresponding for the process of one or more application program is loaded in memory 410, and runs storage application program in store 410 by processor 440, thus realize various function:
Receive resource request, described resource request comprises Function Identification and resource identification;
Judge whether comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation, if so, then the route results of described routing iinformation as described resource request is obtained;
Resource corresponding to described resource request is obtained according to described route results.
Preferably, described obtain resource corresponding to described resource request according to described route results before, also comprise:
When not comprising routing iinformation corresponding to described resource request in the route information table preset in the buffer, the corresponding relation of the resource request in routing configuration file and routing iinformation is loaded into the route information table in described buffer memory;
Judge in described route information table, whether to comprise routing iinformation corresponding to described resource request, if so, then obtain described routing iinformation as route results corresponding to described resource request.
Preferably, described obtain resource corresponding to described resource request according to described route results before, also comprise:
When not comprising routing iinformation corresponding to described resource request in described route information table, after described resource request being converted to the file of preset format, obtain file request;
Acquisition can realize the program file of described file request;
Accordingly, describedly obtain resource corresponding to described resource request according to described route results, be specially:
Described program file is defined as resource corresponding to described resource request.
Preferably, described method also comprises:
Obtain the store path of described program file;
Described store path is defined as the routing iinformation of described program file;
Preserve the corresponding relation of described resource request and described routing iinformation.
Preferably, after described reception resource request, and described judge in buffer memory preset route information table in whether comprise routing iinformation corresponding to described resource request before, also comprise:
Obtain Function Identification and the resource identification of described resource request;
Accordingly, described judge in buffer memory preset route information table in whether comprise routing iinformation corresponding to described resource request, comprising:
Judge whether comprise routing iinformation corresponding to described Function Identification in the route information table preset in buffer memory, if, after the described routing iinformation of acquisition, judge whether comprise routing iinformation corresponding to described resource identification in described routing iinformation, described route information table comprises the corresponding relation of Function Identification and routing iinformation and the corresponding relation of resource identification and routing iinformation.
First the present embodiment receives resource request, secondly, judge whether comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation, when described route information table comprises described routing iinformation, obtain the route results of described routing iinformation as described resource request, finally, obtain resource corresponding to described resource request according to described route results.The present embodiment arranges the route information table for storage resources request and routing iinformation corresponding relation in the buffer, first the store path of Gains resources, i.e. routing iinformation, secondly, have target according to the direct Gains resources of routing iinformation, compared with prior art, the efficiency of the present embodiment Gains resources is higher.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The method for routing provided the embodiment of the present invention above and device are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. a method for routing, is characterized in that, described method comprises:
Receive resource request, described resource request comprises Function Identification and resource identification;
Judge whether comprise routing iinformation corresponding to described resource request in the route information table preset in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation, if so, then the route results of described routing iinformation as described resource request is obtained;
Resource corresponding to described resource request is obtained according to described route results.
2. method according to claim 1, is characterized in that, described obtain resource corresponding to described resource request according to described route results before, also comprise:
When not comprising routing iinformation corresponding to described resource request in the route information table preset in the buffer, the corresponding relation of the resource request in routing configuration file and routing iinformation is loaded into the route information table in described buffer memory;
Judge in described route information table, whether to comprise routing iinformation corresponding to described resource request, if so, then obtain described routing iinformation as route results corresponding to described resource request.
3. according to claim 1 or claim 2, it is characterized in that, described obtain resource corresponding to described resource request according to described route results before, also comprise:
When not comprising routing iinformation corresponding to described resource request in described route information table, after described resource request being converted to the file of preset format, obtain file request;
Acquisition can realize the program file of described file request;
Accordingly, describedly obtain resource corresponding to described resource request according to described route results, be specially:
Described program file is defined as resource corresponding to described resource request.
4. method according to claim 3, is characterized in that, described method also comprises:
Obtain the store path of described program file;
Described store path is defined as the routing iinformation of described program file;
Preserve the corresponding relation of described resource request and described routing iinformation.
5. according to claim 1 or claim 2, it is characterized in that, after described reception resource request, and described judge in buffer memory preset route information table in whether comprise routing iinformation corresponding to described resource request before, also comprise:
Obtain Function Identification and the resource identification of described resource request;
Accordingly, described judge in buffer memory preset route information table in whether comprise routing iinformation corresponding to described resource request, comprising:
Judge whether comprise routing iinformation corresponding to described Function Identification in the route information table preset in buffer memory, if, after the described routing iinformation of acquisition, judge whether comprise routing iinformation corresponding to described resource identification in described routing iinformation, described route information table comprises the corresponding relation of Function Identification and routing iinformation and the corresponding relation of resource identification and routing iinformation.
6. a route device, is characterized in that, described device comprises:
First receiver module, for receiving resource request, described resource request comprises Function Identification and resource identification;
First judge module, for judging whether comprise routing iinformation corresponding to described resource request in route information table default in buffer memory, described route information table comprises the corresponding relation of resource request and routing iinformation;
First acquisition module, for when the result of described first judge module is for being, obtains the route results of described routing iinformation as described resource request;
Second acquisition module, for obtaining resource corresponding to described resource request according to described route results.
7. device according to claim 6, is characterized in that, described device also comprises:
Insmoding, when for not comprising routing iinformation corresponding to described resource request in the route information table preset in the buffer, the resource request in routing configuration file and the corresponding relation of routing iinformation being loaded into route information table default in described buffer memory;
Whether the second judge module, comprise routing iinformation corresponding to described resource request for judging in described route information table;
3rd acquisition module, for when the result of described second judge module is for being, obtains described routing iinformation as route results corresponding to described resource request.
8. the device according to claim 6 or 7, is characterized in that, described device also comprises:
Modular converter, for not comprising routing iinformation corresponding to described resource request in described route information table, after described resource request being converted to the file of preset format, obtains file request;
4th acquisition module, for obtaining the program file that can realize described file request;
Accordingly, described second acquisition module, specifically for being defined as resource corresponding to described resource request by described program file.
9. device according to claim 8, is characterized in that, described device also comprises:
5th acquisition module, for obtaining the store path of described program file;
Determination module, for being defined as the routing iinformation of described program file by described store path; Preserve module, for preserving the corresponding relation of described resource request and described routing iinformation.
10. the device according to claim 6 or 7, is characterized in that, described device also comprises:
6th acquisition module, for obtaining Function Identification and the resource identification of described resource request;
Accordingly, described first judge module, comprising:
First judges submodule, for judging whether comprise routing iinformation corresponding to described Function Identification in route information table default in buffer memory;
Second judges submodule, for when described first judges the result of submodule as being, after the described routing iinformation of acquisition, judge whether comprise routing iinformation corresponding to described resource identification in described routing iinformation, described route information table comprises the corresponding relation of Function Identification and routing iinformation and the corresponding relation of resource identification and routing iinformation.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310297949.8A CN104301234B (en) | 2013-07-16 | 2013-07-16 | A kind of method for routing and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310297949.8A CN104301234B (en) | 2013-07-16 | 2013-07-16 | A kind of method for routing and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104301234A true CN104301234A (en) | 2015-01-21 |
| CN104301234B CN104301234B (en) | 2019-02-05 |
Family
ID=52320807
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310297949.8A Active CN104301234B (en) | 2013-07-16 | 2013-07-16 | A kind of method for routing and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104301234B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106708699A (en) * | 2016-12-09 | 2017-05-24 | 中国银行股份有限公司 | Error information recording method and apparatus |
| CN113268774A (en) * | 2021-06-16 | 2021-08-17 | 中移(杭州)信息技术有限公司 | File resource management method, device, equipment and storage medium |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6230200B1 (en) * | 1997-09-08 | 2001-05-08 | Emc Corporation | Dynamic modeling for resource allocation in a file server |
| US7251659B1 (en) * | 2003-12-04 | 2007-07-31 | Sprint Communications Company L.P. | Method and system for managing resource indexes in a networking environment |
| CN101316226A (en) * | 2007-06-01 | 2008-12-03 | 阿里巴巴集团控股有限公司 | Method, device and system for acquiring resources |
| CN101436269A (en) * | 2007-11-14 | 2009-05-20 | 华为软件技术有限公司 | Unionized resource management system and resource lookup method of business analysis system |
| CN101916164A (en) * | 2010-08-11 | 2010-12-15 | 中兴通讯股份有限公司 | A mobile terminal and the file browsing method realized therefor |
| CN102307234A (en) * | 2011-08-24 | 2012-01-04 | 北京邮电大学 | Resource retrieval method based on mobile terminal |
| US8103677B1 (en) * | 2008-02-06 | 2012-01-24 | Workday, Inc. | Searching using object linked enterprise system |
| CN102752383A (en) * | 2012-07-02 | 2012-10-24 | 惠州Tcl移动通信有限公司 | File downloading and storing method based on wireless communication equipment and wireless communication equipment |
| CN102968464A (en) * | 2012-11-08 | 2013-03-13 | 广东电子工业研究院有限公司 | Index-based local resource quick retrieval system and retrieval method thereof |
| CN103139255A (en) * | 2011-11-30 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method for allocating resource identification and identification section |
-
2013
- 2013-07-16 CN CN201310297949.8A patent/CN104301234B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6230200B1 (en) * | 1997-09-08 | 2001-05-08 | Emc Corporation | Dynamic modeling for resource allocation in a file server |
| US7251659B1 (en) * | 2003-12-04 | 2007-07-31 | Sprint Communications Company L.P. | Method and system for managing resource indexes in a networking environment |
| CN101316226A (en) * | 2007-06-01 | 2008-12-03 | 阿里巴巴集团控股有限公司 | Method, device and system for acquiring resources |
| CN101436269A (en) * | 2007-11-14 | 2009-05-20 | 华为软件技术有限公司 | Unionized resource management system and resource lookup method of business analysis system |
| US8103677B1 (en) * | 2008-02-06 | 2012-01-24 | Workday, Inc. | Searching using object linked enterprise system |
| CN101916164A (en) * | 2010-08-11 | 2010-12-15 | 中兴通讯股份有限公司 | A mobile terminal and the file browsing method realized therefor |
| CN102307234A (en) * | 2011-08-24 | 2012-01-04 | 北京邮电大学 | Resource retrieval method based on mobile terminal |
| CN103139255A (en) * | 2011-11-30 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method for allocating resource identification and identification section |
| CN102752383A (en) * | 2012-07-02 | 2012-10-24 | 惠州Tcl移动通信有限公司 | File downloading and storing method based on wireless communication equipment and wireless communication equipment |
| CN102968464A (en) * | 2012-11-08 | 2013-03-13 | 广东电子工业研究院有限公司 | Index-based local resource quick retrieval system and retrieval method thereof |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106708699A (en) * | 2016-12-09 | 2017-05-24 | 中国银行股份有限公司 | Error information recording method and apparatus |
| CN106708699B (en) * | 2016-12-09 | 2020-01-24 | 中国银行股份有限公司 | Error information recording method and apparatus |
| CN113268774A (en) * | 2021-06-16 | 2021-08-17 | 中移(杭州)信息技术有限公司 | File resource management method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104301234B (en) | 2019-02-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103279370B (en) | Data processing method, terminal, server and system | |
| CN107741937A (en) | A kind of data query method and device | |
| CN104077335A (en) | Methods, devices and system for serializing and deserializing structured data | |
| CN103136342B (en) | The searching method of application A PP, system and search server | |
| CN105404585A (en) | Method and apparatus for acquiring code coverage rate | |
| CN105630685A (en) | Method and device for testing program interface | |
| CN104615534A (en) | Interface test method and device | |
| CN104572889A (en) | Method, device and system for recommending search terms | |
| CN105426165A (en) | Script tool processing method and apparatus | |
| CN115578063A (en) | Audit report generation method based on knowledge graph and related equipment | |
| CN114238391B (en) | Data paging query method, device, electronic device and storage medium | |
| CN107807841B (en) | Server simulation method, device, equipment and readable storage medium | |
| CN104636255A (en) | Method and device for testing webpage application display effect | |
| CN104184763A (en) | Feedback information processing method and system and service apparatus | |
| CN110975293A (en) | Method, device, server and medium for establishing resource reference relation table | |
| CN111104425A (en) | Data processing method and device | |
| CN103179026A (en) | Communication method and system in user interactive system, server and client | |
| CN114625407A (en) | Method, system, equipment and storage medium for implementing AB experiment | |
| CN109636460B (en) | Service processing method, device, equipment and storage medium | |
| US10803246B2 (en) | Decomposing composite product reviews | |
| CN104252480A (en) | Method and device for audio information retrieval | |
| CN113138934B (en) | Automatic test method, medium, device and computing equipment | |
| CN114579136A (en) | Code processing method and device, computer equipment and storage medium | |
| CN111008873A (en) | User determination method and device, electronic equipment and storage medium | |
| CN103297434A (en) | Method for processing data, user sides, server and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20190801 Address after: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403 Co-patentee after: Tencent cloud computing (Beijing) limited liability company Patentee after: Tencent Technology (Shenzhen) Co., Ltd. Address before: Shenzhen Futian District City, Guangdong province 518031 Zhenxing Road, SEG Science Park 2 East Room 403 Patentee before: Tencent Technology (Shenzhen) Co., Ltd. |