CN104301234B - A kind of method for routing and device - Google Patents
A kind of method for routing and device Download PDFInfo
- Publication number
- CN104301234B CN104301234B CN201310297949.8A CN201310297949A CN104301234B CN 104301234 B CN104301234 B CN 104301234B CN 201310297949 A CN201310297949 A CN 201310297949A CN 104301234 B CN104301234 B CN 104301234B
- 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.)
- Active
Links
Abstract
The invention discloses a kind of method for routing and devices, which comprises receives resource request, the resource request includes Function Identification and resource identification;Judge in caching in preset route information table whether to include the corresponding routing iinformation of the resource request, the route information table includes the corresponding relationship of resource request and routing iinformation, if it is, obtaining route results of the routing iinformation as the resource request;The corresponding resource of the resource request is obtained according to the route results.The route information table for storage resource request and routing iinformation corresponding relationship is arranged in the present invention in the buffer, obtains the store path of resource, i.e. routing iinformation first, secondly, have target directly acquires resource according to routing iinformation, and compared with prior art, the efficiency that the present invention obtains resource is higher.
Description
Technical field
The present invention relates to data processing fields, and in particular to a kind of method for routing and device.
Background technique
Nowadays network technology is quickly grown, and user is increasing for the demand of Internet resources, and user obtains network money
Source is usually obtained and sending resource request to server, so, server biggish for user volume must not be not firm
When handle a large number of users resource request.
Routing is the process of resource needed for obtaining user according to the resource request of user.Existing method for routing is basis
The resource request that user sends carries out search in layer in the Internet resources being uniformly stored in resources bank, needed for acquisition
Internet resources.For example, the Internet resources needed for user are stored in the C document under the B file of the memory block A, then when
When user routes C document according to resource request, the B file in the memory block A is obtained first, secondly in B file
C document is inquired, finally just can determine that C document is resource needed for user.
The method for routing of the prior art needs to carry out resource request layer-by-layer analysis, before getting required resource not
It obtains and does not obtain other resources successively, the memory block A and B file in such as above-mentioned example.It is clear that this layer-by-layer acquisition resource
Method for routing efficiency it is lower.
Summary of the invention
The embodiment of the invention provides a kind of method for routing and devices, can be improved the efficiency of routing.
On the one hand, the embodiment of the invention provides a kind of method for routing, which comprises
Resource request is received, the resource request includes Function Identification and resource identification;
Judge in caching in preset route information table whether to include the corresponding routing iinformation of the resource request, the road
By information table include the corresponding relationship of resource request and routing iinformation, if it is, obtaining the routing iinformation as the money
The route results of source request;
The corresponding resource of the resource request is obtained according to the route results.
On the other hand, the embodiment of the invention also provides a kind of route device, described device includes:
First receiving module, for receiving resource request, the resource request includes Function Identification and resource identification;
First judgment module is used to judge in caching in preset route information table whether including that the resource request is corresponding
Routing iinformation, the route information table includes the corresponding relationship of resource request and routing iinformation;
First obtains module, is when being, to obtain the routing iinformation conduct for the result in the first judgment module
The route results of the resource request;
Second obtains module, for obtaining the corresponding resource of the resource request according to the route results.
The embodiment of the present invention receives resource request first, secondly, judging whether wrap in preset route information table in caching
The corresponding routing iinformation of the resource request is included, the route information table includes the corresponding relationship of resource request and routing iinformation,
In the case where the route information table includes the routing iinformation, road of the routing iinformation as the resource request is obtained
By as a result, finally, obtaining the corresponding resource of the resource request according to the route results.The embodiment of the present invention is set in the buffer
The route information table for storage resource request and routing iinformation corresponding relationship is set, obtains the store path of resource, i.e. road first
By information, secondly, have a target directly acquires resource according to routing iinformation, compared with prior art, the embodiment of the present invention is obtained
The efficiency of resource is higher.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the method for routing flow chart that the embodiment of the present invention one provides;
Fig. 2 is method for routing flow chart provided by Embodiment 2 of the present invention;
Fig. 3 is the route device structure chart that the embodiment of the present invention three provides;
Fig. 4 is the server architecture schematic diagram that the embodiment of the present invention three provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Embodiment one
In order to overcome layer-by-layer the shortcomings that obtaining required resource of the prior art, the present inventor uses routing iinformation mark
Note resource can directly pass through routing information acquisition resource after getting routing iinformation corresponding with resource request.
With reference to Fig. 1, Fig. 1 is method for routing flow chart provided in this embodiment, is specifically included:
Step 101: receiving resource request, the resource request includes Function Identification and resource identification.
In the present embodiment, resource request is received first, wherein the resource request may include Function Identification and resource mark
Know.
In practical operation, the received resource request of system can be user's triggering, specifically, user can be according to demand
It is requested to system transmission resources, meanwhile, the mode that user triggers resource request is more, can be by clicking the touching of resource request button
Resource request is sent out, the specific mode this embodiment for triggering resource request is with no restrictions.
Step 102: judging whether believe including the corresponding routing of the resource request in preset route information table in caching
Breath, the route information table includes the corresponding relationship of resource request and routing iinformation, if so, entering step 103.
In the present embodiment, after receiving resource request, first determine whether wrap in pre-set route information table in caching
It includes the corresponding routing iinformation of the resource request and enters step 103 if including.Wherein, resource is stored in route information table to ask
Seek the corresponding relationship with routing iinformation, that is to say, that corresponding routing iinformation can be requested in route information table with query resource.
Specifically, routing iinformation can be the store path of resource, pass through its available corresponding resource of routing iinformation.For resource
Biggish system is measured, needs to store a large amount of routing iinformation corresponding with vast resources in caching, cause according to resource request
The efficiency for obtaining routing iinformation is lower.Routing iinformation in route information table is carried out classification storage by the present embodiment, is obtained with improving
The efficiency to send routing information.
In practical operation, due to may include Function Identification and resource identification in received resource request, it can obtain first
Take the Function Identification and resource identification of resource request.Wherein, Function Identification is used to identify the function of the resource request, for example, under
" downloading " and " online viewing " for carrying certain film or being watched in certain film online is Function Identification.Meanwhile resource identification is used
" certain film " in unique identification resource, such as above-mentioned example is resource identification.
In the present embodiment, the Function Identification and resource identification acquisition routing iinformation in resource request can be passed through.Firstly, sentencing
Whether including the corresponding routing iinformation of the Function Identification in preset route information table in disconnected caching, if so, obtaining institute
After stating routing iinformation, judge in the routing iinformation whether to include the corresponding routing iinformation of the resource identification, the routing letter
Breath table includes the corresponding relationship of Function Identification and routing iinformation and the corresponding relationship of resource identification and routing iinformation.
In practical operation, routing iinformation corresponding with Function Identification in route information table can be obtained first, secondly, obtaining
Resource information corresponding with resource identification is obtained in the routing iinformation taken, is excluded due to obtaining routing iinformation according to Function Identification
Much with the unmatched routing iinformation of the Function Identification, so, on the basis of excluding several routing iinformations, according to resource mark
Know the acquisition for carrying out resource information, improves the acquisition efficiency of routing iinformation to a certain extent.Meanwhile according to Function Identification and money
Source mark avoids the appearance of routing explosion issues to routing iinformation classification storage in route information table.
Step 103: obtaining route results of the routing iinformation as the resource request.
In the present embodiment, route results of the routing iinformation that will acquire as the resource request, wherein route results can be with
For the foundation for obtaining resource.For example, route results can be " the C document under the B file of the memory block A ".
Step 104: obtaining the corresponding resource of the resource request according to the route results.
In the present embodiment, after determining route results, the corresponding money of received resource request is obtained according to the route results
Source.For example, " C document " resource can be directly acquired according to route results " the C document under the B file of the memory block A ".
Whether the present embodiment receives resource request first, secondly, judging in caching in preset route information table to include institute
The corresponding routing iinformation of resource request is stated, the route information table includes the corresponding relationship of resource request and routing iinformation, in institute
It states in the case that route information table includes the routing iinformation, obtains routing knot of the routing iinformation as the resource request
Fruit, finally, obtaining the corresponding resource of the resource request according to the route results.The present embodiment is arranged in the buffer for depositing
The route information table of resource request and routing iinformation corresponding relationship is stored up, obtains the store path of resource, i.e. routing iinformation first,
Secondary, have target directly acquires resource according to routing iinformation, compared with prior art, the present embodiment obtain resource efficiency compared with
It is high.
Embodiment two
With reference to Fig. 2, Fig. 2 is method for routing flow chart provided in this embodiment, be can specifically include:
Step 201: receiving resource request, the resource request includes Function Identification and resource identification.
Step 202: judging whether believe including the corresponding routing of the resource request in preset route information table in caching
Breath, the route information table includes the corresponding relationship of resource request and routing iinformation, if it is not, then 203 are entered step, if
It is then to enter step 205.
It, can be with the step 101 and step in reference implementation example one to the understanding of step 201 and step 202 in the present embodiment
102, details are not described herein.
It is referring to it is noted that when not including that the corresponding routing of the resource request is believed in preset route information table in caching
When cannot inquire routing iinformation corresponding with resource request in breath, that is, route information table in the buffer, it can enter
Step 203.
Step 203: the corresponding relationship of resource request and routing iinformation in routing configuration file is loaded into the caching
Route information table.
In the present embodiment, if in caching in preset route information table not including the corresponding routing letter of the resource request
Breath, the route information table that the corresponding relationship of resource request and routing iinformation in routing configuration file can be loaded into caching
In.Wherein, the corresponding relationship of resource request and routing iinformation has been stored in advance in routing configuration file, but due to routing configuration
File cannot be accessed directly, so needing to load the corresponding relationship of resource request and routing iinformation in routing configuration file
In route information table into caching, so as to for user query.
Step 204: judge in the route information table whether to include the corresponding routing iinformation of the resource request, if
It is then to enter step 205, if it is not, then entering step 207.
In the present embodiment, the corresponding relationship of resource request and routing iinformation in routing configuration file is loaded into caching
Route information table after, judge whether route information table at this time includes the corresponding routing iinformation of resource request, if so, into
Step 205, if it is not, then entering step 207.
Step 205: obtaining route results of the routing iinformation as the resource request.
In the present embodiment, when in route information table preset in caching include the corresponding routing iinformation of the resource request
When, or in the routing iinformation being loaded into the corresponding relationship of resource request and routing iinformation in routing configuration file in caching
It, can be by the resource request pair in the route information table in caching when routing iinformation corresponding including the resource request after table
Route results of the routing iinformation answered as the resource request.
Step 206: obtaining the corresponding resource of the resource request according to the route results.
In the present embodiment, after the route results for obtaining resource request, resource request can be obtained according to the route results
Corresponding resource.
Step 207: after the file that the resource request is converted to preset format, obtaining file request.
In the present embodiment, the corresponding relationship of resource request and routing iinformation in routing configuration file is being loaded into caching
In route information table after, when still not including the corresponding routing iinformation of the resource request in the route information table in caching,
The file that resource request can be converted to preset format, obtains file request.For example, the Method of resource request is POST,
URI is /vl/cvms/ { instance_id }/reboot, wherein { instance_id } represents the resource to be accessed, by resource
Request is converted to the file of preset format, and obtained file request is /vl/cvms/PostInstanceReboot.
It is worth noting that, slow the corresponding relationship of resource request and routing iinformation in routing configuration file to be loaded into
Before the route information table deposited, if caching in route information table in do not include the corresponding routing iinformation of the resource request
When, it can also be directly entered step 207, obtain file request.
Step 208: obtaining the program file for being able to achieve the file request.
In the present embodiment, after obtaining file request, the program file for being able to achieve this document request is obtained.For example, by upper
File request/the vl/cvms/PostInstanceReboot being converted to is stated as target, is loaded into system, acquisition can
Realize the program file of the target.
Step 209: described program file is determined as the corresponding resource of the resource request.
Step 210: obtaining the store path of described program file.
Step 211: the store path is determined as to the routing iinformation of described program file.
Step 212: saving the corresponding relationship of the resource request Yu the routing iinformation.
In the present embodiment, after obtaining program file, the program file is determined as the corresponding resource of the resource request first,
Secondly, obtaining the corresponding store path of the program file, and using the store path as the routing iinformation of the program file, most
Afterwards, the corresponding relationship of the resource request and the routing iinformation is saved.
In practical operation, the method for obtaining the store path of program file is more, and the present embodiment is with no restrictions.
The route information table for storage resource request and routing iinformation corresponding relationship is arranged in the present embodiment in the buffer,
In the case where not including required routing iinformation in route information table, by the resource request and routing iinformation pair in routing configuration file
It should be related to and be loaded into the route information table, required routing iinformation is inquired again.If routing iinformation at this time
Table does not still include required routing iinformation, and the corresponding program file of the available resource request finally makees the program file
For required resource, the routing to the resource request is completed, compared with prior art, the efficiency that the present embodiment obtains resource is higher,
Newly-increased resource request can be automatically processed simultaneously, the corresponding relationship of new resource request and routing iinformation is generated, efficient spirit is provided
Routing function living.
Embodiment three
With reference to Fig. 3, Fig. 3 is route device structure chart provided in this embodiment, the apparatus may include:
First receiving module 301, for receiving resource request, the resource request includes Function Identification and resource identification;
Whether first judgment module 302 is used to judge in caching in preset route information table to include the resource request
Corresponding routing iinformation, the route information table include the corresponding relationship of resource request and routing iinformation;
First obtains module 303, is to obtain the routing iinformation when being and make for the result in the first judgment module
For the route results of the resource request;
Second obtains module 304, for obtaining the corresponding resource of the resource request according to the route results.
Described device can also include:
It insmods, for not including the corresponding routing letter of the resource request in preset route information table in the buffer
In the case where breath, the corresponding relationship of resource request and routing iinformation in routing configuration file is loaded into preset in the caching
Route information table;
Second judgment module, for judging in the route information table whether to include the corresponding routing letter of the resource request
Breath;
Third obtains module, is when being, to obtain the routing iinformation conduct for the result in second judgment module
The corresponding route results of the resource request.
When in route information table not including the corresponding routing iinformation of resource request, described device further include:
Conversion module, for not including the case where the corresponding routing iinformation of the resource request in the route information table
Under, after the file that the resource request is converted to preset format, obtain file request;
4th obtains module, for obtaining the program file for being able to achieve the file request;
Correspondingly, described second obtains module, it is corresponding specifically for described program file is determined as the resource request
Resource.
Described device further include:
5th obtains module, for obtaining the store path of described program file;
Determining module, for the store path to be determined as to the routing iinformation of described program file;Preserving module is used for
Save the corresponding relationship of the resource request Yu the routing iinformation.
Described device further include:
6th obtains module, for obtaining the Function Identification and resource identification of the resource request;
Correspondingly, the first judgment module, comprising:
Whether the first judging submodule is used to judge in caching in preset route information table to include the Function Identification pair
The routing iinformation answered;
Second judgment submodule is to obtain the routing letter when being for the result in first judging submodule
After breath, judge in the routing iinformation whether to include the corresponding routing iinformation of the resource identification, the route information table includes
The corresponding relationship and resource identification of Function Identification and routing iinformation and the corresponding relationship of routing iinformation.
Referring to FIG. 4, its Fig. 4 is a kind of server provided in this embodiment, which can be used for implementing above-mentioned reality
The method provided in example is provided.Specifically:
Server 400 may include the memory 410 for having one or more readable storage medium storing program for executing, input unit 420,
Output unit 430 includes one or more than one the components such as processor 440 and the power supply 450 of processing core.Wherein:
Memory 410 can be used for storing software program and module, and processor 440 is stored in memory 410 by operation
Software program and module, thereby executing various function application and data processing.Memory 410 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can application program needed for storage program area, at least one function;It deposits
Storage data field, which can be stored, uses created data etc. according to computer.In addition, memory 410 may include that high speed is deposited at random
Access to memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other easily
The property lost solid-state memory.Correspondingly, memory 410 can also include Memory Controller, to provide processor 440 and input
Access of the unit 420 to memory 410.
Input unit 420 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.
Processor 440 is the control centre of server 400, using various interfaces and connection various pieces, passes through fortune
Row executes the software program and/or module being stored in memory 410, and calls the data being stored in memory 410,
The various functions and processing data for executing computer, to carry out integral monitoring to mobile phone.Optionally, processor 440 may include
One or more processing cores.
Server 400 further includes the power supply 450(such as battery powered to all parts), it is preferred that power supply can pass through
Power-supply management system and processor 440 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system
The functions such as consumption management.Power supply 450 can also include one or more direct current or AC power source, recharging system, power supply
The random components such as fault detection circuit, power adapter or inverter, power supply status indicator.
Specifically in the present embodiment, processor 440 can be according to following instruction, by one or more application program
The corresponding executable file of process be loaded into memory 410, and run by processor 440 storage in store 410
Application program, to realize various functions:
Resource request is received, the resource request includes Function Identification and resource identification;
Judge in caching in preset route information table whether to include the corresponding routing iinformation of the resource request, the road
By information table include the corresponding relationship of resource request and routing iinformation, if it is, obtaining the routing iinformation as the money
The route results of source request;
The corresponding resource of the resource request is obtained according to the route results.
Preferably, before the corresponding resource according to the route results acquisition resource request, further includes:
It, will in the case where in preset route information table not including the corresponding routing iinformation of the resource request in the buffer
The corresponding relationship of resource request and routing iinformation in routing configuration file is loaded into the route information table in the caching;
Judge in the route information table whether to include the corresponding routing iinformation of the resource request, if it is, obtaining
The routing iinformation is as the corresponding route results of the resource request.
Preferably, before the corresponding resource according to the route results acquisition resource request, further includes:
In the case where not including the corresponding routing iinformation of the resource request in the route information table, by the resource
After request is converted to the file of preset format, file request is obtained;
Obtain the program file for being able to achieve the file request;
Correspondingly, described obtain the corresponding resource of the resource request according to the route results, specifically:
Described program file is determined as the corresponding resource of the resource request.
Preferably, the method also includes:
Obtain the store path of described program file;
The store path is determined as to the routing iinformation of described program file;
Save the corresponding relationship of the resource request Yu the routing iinformation.
Preferably, after the reception resource request, and it is described judge in caching in preset route information table whether
Before the corresponding routing iinformation of the resource request, further includes:
Obtain the Function Identification and resource identification of the resource request;
Correspondingly, whether described judge in caching in preset route information table to include the corresponding routing of the resource request
Information, comprising:
Judge in caching in preset route information table whether to include the corresponding routing iinformation of the Function Identification, if
It is after obtaining the routing iinformation, to judge in the routing iinformation whether to include the corresponding routing iinformation of the resource identification,
The route information table includes the corresponding relationship of Function Identification and routing iinformation and the corresponding relationship of resource identification and routing iinformation.
Whether the present embodiment receives resource request first, secondly, judging in caching in preset route information table to include institute
The corresponding routing iinformation of resource request is stated, the route information table includes the corresponding relationship of resource request and routing iinformation, in institute
It states in the case that route information table includes the routing iinformation, obtains routing knot of the routing iinformation as the resource request
Fruit, finally, obtaining the corresponding resource of the resource request according to the route results.The present embodiment is arranged in the buffer for depositing
The route information table of resource request and routing iinformation corresponding relationship is stored up, obtains the store path of resource, i.e. routing iinformation first,
Secondary, have target directly acquires resource according to routing iinformation, compared with prior art, the present embodiment obtain resource efficiency compared with
It is high.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
It is provided for the embodiments of the invention method for routing above and device is described in detail, tool used herein
Principle and implementation of the present invention are described for body example, the above embodiments are only used to help understand this hair
Bright method and its core concept;At the same time, for those skilled in the art, according to the thought of the present invention, specific real
Apply in mode and application range that there will be changes, in conclusion the content of the present specification should not be construed as to limit of the invention
System.
Claims (8)
1. a kind of method for routing, which is characterized in that the described method includes:
Resource request is received, the resource request includes Function Identification and resource identification;
Judge in caching in preset route information table whether to include the corresponding routing iinformation of the resource request, the routing is believed
Breath table includes the corresponding relationship of resource request and routing iinformation;
If the route information table includes the corresponding routing iinformation of the resource request, the routing iinformation is obtained as institute
State the route results of resource request;The corresponding resource of the resource request is obtained according to the route results;
If not including the corresponding routing iinformation of the resource request in the route information table, the resource request is converted to
After the file of preset format, file request is obtained;Obtain the program file for being able to achieve the file request;By described program file
It is determined as the corresponding resource of the resource request.
2. the method according to claim 1, wherein described obtain the resource request according to the route results
Before corresponding resource, further includes:
In the case where in preset route information table not including the corresponding routing iinformation of the resource request in the buffer, it will route
The corresponding relationship of resource request and routing iinformation in configuration file is loaded into the route information table in the caching;
Judge in the route information table whether to include the corresponding routing iinformation of the resource request, if it is, described in obtaining
Routing iinformation is as the corresponding route results of the resource request.
3. the method according to claim 1, wherein the method also includes:
Obtain the store path of described program file;
The store path is determined as to the routing iinformation of described program file;
Save the corresponding relationship of the resource request Yu the routing iinformation.
4. according to claim 1 or claim 2, which is characterized in that after the reception resource request, and sentence described
Before whether including the corresponding routing iinformation of the resource request in preset route information table in disconnected caching, further includes:
Obtain the Function Identification and resource identification of the resource request;
Correspondingly, described judge whether believe including the corresponding routing of the resource request in preset route information table in caching
Breath, comprising:
Judge in caching in preset route information table whether to include the corresponding routing iinformation of the Function Identification, if so,
After obtaining the routing iinformation, judge in the routing iinformation whether to include the corresponding routing iinformation of the resource identification, it is described
Route information table includes the corresponding relationship of Function Identification and routing iinformation and the corresponding relationship of resource identification and routing iinformation.
5. a kind of route device, which is characterized in that described device includes:
First receiving module, for receiving resource request, the resource request includes Function Identification and resource identification;
Whether first judgment module is used to judge in caching in preset route information table to include the corresponding road of the resource request
By information, the route information table includes the corresponding relationship of resource request and routing iinformation;
First obtains module, if obtained for including the corresponding routing iinformation of the resource request in the route information table
Route results of the routing iinformation as the resource request;
Second obtains module, for obtaining the corresponding resource of the resource request according to the route results;
Conversion module, if for not including the corresponding routing iinformation of the resource request in the route information table, it will be described
After resource request is converted to the file of preset format, file request is obtained;
4th obtains module, for obtaining the program file for being able to achieve the file request;
Described second obtains module, specifically for described program file is determined as the corresponding resource of the resource request.
6. device according to claim 5, which is characterized in that described device further include:
It insmods, for not including the corresponding routing iinformation of the resource request in preset route information table in the buffer
In the case of, the corresponding relationship of resource request and routing iinformation in routing configuration file is loaded into preset routing in the caching
Information table;
Second judgment module, for judging in the route information table whether to include the corresponding routing iinformation of the resource request;
Third obtains module, is to obtain described in the routing iinformation conduct when being for the result in second judgment module
The corresponding route results of resource request.
7. device according to claim 5, which is characterized in that described device further include:
5th obtains module, for obtaining the store path of described program file;
Determining module, for the store path to be determined as to the routing iinformation of described program file;Preserving module, for saving
The corresponding relationship of the resource request and the routing iinformation.
8. according to device described in claim 5 or 6, which is characterized in that described device further include:
6th obtains module, for obtaining the Function Identification and resource identification of the resource request;
Correspondingly, the first judgment module, comprising:
First judging submodule is used to judge in caching in preset route information table whether including that the Function Identification is corresponding
Routing iinformation;
Second judgment submodule, when being for the result in first judging submodule, after obtaining the routing iinformation,
Judge in the routing iinformation whether to include the corresponding routing iinformation of the resource identification, the route information table includes function mark
Know and the corresponding relationship of routing iinformation and the corresponding relationship 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 CN104301234A (en) | 2015-01-21 |
CN104301234B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (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 |
CN101316226B (en) * | 2007-06-01 | 2011-11-02 | 阿里巴巴集团控股有限公司 | 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 | 中兴通讯股份有限公司 | Mobile terminal and file browsing method implemented by same |
CN102307234A (en) * | 2011-08-24 | 2012-01-04 | 北京邮电大学 | Resource retrieval method based on mobile terminal |
CN103139255B (en) * | 2011-11-30 | 2016-04-06 | 腾讯科技(深圳)有限公司 | The method of Resources allocation mark 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 |
CN102968464B (en) * | 2012-11-08 | 2016-07-13 | 广东电子工业研究院有限公司 | A kind of search method of the local resource quick retrieval system based on index |
-
2013
- 2013-07-16 CN CN201310297949.8A patent/CN104301234B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104301234A (en) | 2015-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107015892B (en) | Pressure testing method, device and system | |
CN107741937A (en) | A kind of data query method and device | |
CN104809135B (en) | A kind of data access method and device | |
CN108121511A (en) | Data processing method, device and equipment in a kind of distributed edge storage system | |
RU2013152875A (en) | SYSTEMS AND METHODS OF POSITIONING AND MODIFICATION OF APPLICATIONS FOR COMPUTER DEVICES DEPENDING ON THE LOCATION | |
CN104182488A (en) | Search method, server and client | |
CN106126528B (en) | A kind of moonlet test basic information generation method based on platform model | |
CN109783472A (en) | Moving method, device, computer equipment and the storage medium of table data | |
CN108132831A (en) | The processing method and processing unit of task | |
CN109800204A (en) | Data distributing method and Related product | |
CN106201917B (en) | A kind of data processing system and method | |
CN104301234B (en) | A kind of method for routing and device | |
CN109558297A (en) | EMS memory management process and device | |
CN107480239A (en) | A kind of power equipment testing regulations querying method and its application system | |
KR101913861B1 (en) | Method and apparatus for managing data center based on ontology | |
CN105095228A (en) | Method and apparatus for monitoring social information | |
CN106453544B (en) | Cloud environment and monitoring method and system thereof | |
CN106844420B (en) | User grouping method and device based on social network and big data analysis | |
CN114756301B (en) | Log processing method, device and system | |
CN100517409C (en) | System and method for collecting test data | |
CN103023740B (en) | A kind of information interactive bus system and electric data transmission method | |
CN105991312B (en) | A kind of rearrangement and device of Internet resources | |
CN110140120A (en) | Context sees clearly system | |
Mesiti et al. | An editable live ETL system for Ambient Intelligence environments | |
CN204423422U (en) | Based on the information collection apparatus of Internet of Things |
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 |
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. |
|
TR01 | Transfer of patent right |