CN105022622B - Overtime control unit and remote procedure call method suitable for remote procedure call - Google Patents
Overtime control unit and remote procedure call method suitable for remote procedure call Download PDFInfo
- Publication number
- CN105022622B CN105022622B CN201410177327.6A CN201410177327A CN105022622B CN 105022622 B CN105022622 B CN 105022622B CN 201410177327 A CN201410177327 A CN 201410177327A CN 105022622 B CN105022622 B CN 105022622B
- Authority
- CN
- China
- Prior art keywords
- unit
- control unit
- processing
- response side
- request
- 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
- 238000000034 method Methods 0.000 title claims abstract description 88
- 238000012545 processing Methods 0.000 claims abstract description 135
- 230000004044 response Effects 0.000 claims abstract description 113
- 230000000903 blocking effect Effects 0.000 claims abstract description 36
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000465 moulding Methods 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
Landscapes
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of overtime control units suitable for remote procedure call and remote procedure call method.Overtime control unit includes a block device, a message proxy module and a talks control module.Overtime control unit is when receiving the processing request transmitted by requesting party's unit, processing request is sent to a response side unit, so that the processing request of response side cell processing, and control module is talked to judge whether response side unit returns a handling result when a preset time reaches, and when handling result is not back to requesting party's unit, control module of talking control block device sends one and blocks request to response side unit, so that response side unit is according to the processing for blocking request to interrupt above-mentioned processing request, and message proxy module transmits a talks overtime message to requesting party's unit.
Description
Technical field
The invention relates to a kind of overtime control units, and in particular to a kind of suitable for remote procedure call
Overtime control unit and remote procedure call method.
Background technology
Remote procedure call (Remote Procedure Call;RPC) it is the upper important spy of distributing application system running
Property, peer machine can call the program of other systems through RPC in running, is further continued for after the return of other systems operation result
Original process (thread).Although RPC has synchronous and asynchronous function mode, be based on business logic demand, RPC often with
The method of synchronization operates.However these dispersion processes can cause system for operation because talking overtime (session timeout)
As a result cognition is different, seriously affects the correctness of business logic.
Synchronous RPC is frequently used for business transaction activity, and the time for overtime of talking is set by requesting party mostly, and the setting
It can not be changed according to object difference.Therefore, when the time for overtime of talking is too short, teleprogram is not yet completed, and requesting party is just
Active break, the state for be easy to causeing requesting party and response side are inconsistent.And when the overlong time for overtime of talking, it is due to working as
When system enters wait state, user and related resource are all locked out release, be easy to cause fast knot (deadlock).
In face of the above problem, the existing universal practice includes using common technology platform, such as requesting party and response side pair
Side is all made of the Session Bean of Java, ensures that system program is identical as the life cycle of session, however faces heterogeneous skill
When art platform, this practice can not be applicable in.Another practice is that requesting party and response side both sides are all made of and meet transaction specification
(transaction) technology, and action is compensated in unusual condition, but compensating movement, which is also another RPC, to be called
Program, the similarly risk there is failure, are so likely to result in infinite compensation loop.Therefore, a kind of system how is designed
Or method, with one of the current important research and development project of real category that solves the above problems, also becoming currently associated field, there is an urgent need for improved mesh
Mark.
Invention content
Therefore, an aspect of of the present present invention is to provide one kind suitable for remote procedure call (RemoteProcedure
Call overtime control unit).Overtime control unit include a block device, a message agency (message agent) module with
And one talks control (session control) module.Overtime control unit is receiving one transmitted by requesting party's unit
When processing request, processing request is sent to a response side unit so that the processing request of response side cell processing, and control of talking
Module is not returned to judge whether response side unit returns a handling result when a preset time reaches in handling result
When reaching requesting party's unit, talks control module control block device sends one and blocks request to response side unit so that response side
Unit is according to the processing for blocking request to interrupt above-mentioned processing request, and message proxy module transmits a talks overtime (session
Timeout) message is to requesting party's unit.
An embodiment according to the present invention, above-mentioned block device is more judging whether response side unit successfully interrupts above-mentioned processing
The processing of request.If it is not, then message proxy module transmits a reserved state message to requesting party's unit, and returned in response side unit
When passing handling result, message proxy module transmits a callback (callback) message to requesting party's unit.
Another embodiment according to the present invention, above-mentioned block device are the blocking state news that the root response side unit is returned
Breath, judges whether response side unit successfully interrupts the processing of above-mentioned processing request.
Another embodiment according to the present invention, above-mentioned overtime control unit also includes a timer (timer), and talks and control
Module more to overtime control unit receive processing request when, start timer, and timer reach preset time when,
Judge whether response side unit returns above-mentioned handling result.
Another embodiment according to the present invention, above-mentioned talks control module is more storing the be back to overtime of response side unit
The one of control unit corresponds to the processing routine identification code of above-mentioned processing request.
Another another embodiment according to the present invention, above-mentioned blocking request include above-mentioned processing routine identification code, and response side list
Member interrupts the processing of above-mentioned processing request according to the processing routine identification code blocked in asking.
Another another embodiment according to the present invention, above-mentioned overtime control unit also include a request message queue (request
message queue).Request message queue talks control module more controlling to receive and keep in above-mentioned processing request
Above-mentioned processing request is sent to response side unit by system request message queue.
Yet another embodiment according to the present invention, above-mentioned overtime control unit also include a response message queue (response
message queue).Response message queue is receiving and keep in above-mentioned handling result.
Separately there is an embodiment, above-mentioned overtime control unit to be one independently of requesting party's unit and be somebody's turn to do according to the present invention
The intermediate device of response side unit.
There is an embodiment again according to the present invention, above-mentioned overtime control unit is to be integrated into the requesting party in the form of software
In unit or the response side unit.
According to the present invention again have an embodiment, above-mentioned overtime control unit be one be contained in requesting party's unit or this
System on Chip/SoC in response side unit.
Another aspect of the present invention is to provide a kind of remote procedure call method, comprising the steps of:Utilize an overtime
Control unit receives the processing request transmitted by requesting party's unit;Above-mentioned processing is asked to transmit using overtime control unit
To a response side unit so that the above-mentioned processing request of response side cell processing;When a preset time reaches, response side list is judged
Whether member returns a handling result to overtime control unit;If so, above-mentioned handling result is returned using overtime control unit
To requesting party's unit;And block request to response side unit if it is not, overtime control unit is then utilized to send one so that response side
Unit utilizes one talks overtime message of overtime control unit transmission extremely according to the processing for blocking request to interrupt above-mentioned processing request
Requesting party's unit.
An embodiment according to the present invention, above-mentioned remote procedure call method also include:Judged back using overtime control unit
Whether the side's of answering unit successfully interrupts the processing of above-mentioned processing request;If it is not, then overtime control unit is utilized to transmit a reserved state
Message is controlled to requesting party's unit, and when response side unit returns above-mentioned handling result to overtime control unit using overtime
Unit transmits a callback message to requesting party's unit.
Another embodiment according to the present invention is judged in above-mentioned remote procedure call method in using overtime control unit
In the step of processing of the whether successful interrupt processing request of response side unit, overtime control unit is returned according to response side unit
The blocking state message for reaching overtime control unit, judges whether response side unit successfully interrupts the place of above-mentioned processing request
Reason.
Another embodiment according to the present invention, above-mentioned remote procedure call method also include:It receives and stores response side unit
The one of be back to overtime control unit corresponds to the processing routine identification code of above-mentioned processing request.
Another embodiment according to the present invention, in above-mentioned remote procedure call method, it includes above-mentioned processing journey to block request
Sequence identification code, and response side unit interrupts the processing of above-mentioned processing request according to the processing routine identification code blocked in asking.
Using the advantage of the invention is that by the system for executing remote procedure call, an overtime control unit is utilized
The interactive process of remote procedure call is monitored and managed, especially determining program whether overtime, and occur in overtime
When corresponding processing is provided, thus, it can be ensured that the consistency of system transaction results.In the present invention, to judge whether
The time of overtime can respectively specify according to different calling objects, have high flexibility.In addition, existing remote procedure call system
System only need to slightly change the technological means that relative program code can perform the present invention, and the present invention is common to various different technologies and puts down
Platform.This technology can be realized by the intermediate device between requesting party and response side, that is, requesting party and response side do not need
Change the main logic of program.Device proposed by the invention can self independent control and management, and with can freely adjust
The advantages that Timeout time length, and it is common to various different technologies platforms.
Description of the drawings
Fig. 1 is in one embodiment of the invention, and a kind of square of overtime control unit suitable for remote procedure call is illustrated
Figure;
Fig. 2 is in one embodiment of the invention, and a kind of square of overtime control unit suitable for remote procedure call is illustrated
Figure;
Fig. 3 is a kind of flow diagram of remote procedure call method in one embodiment of the invention;
Fig. 4 is a kind of flow diagram of remote procedure call method in one embodiment of the invention;
Fig. 5 is a kind of flow diagram of remote procedure call method in one embodiment of the invention.
Specific implementation mode
It is hereafter to coordinate embodiment that appended attached drawing elaborates, but provided not limiting this hair for embodiment
Bright covered range, and structure operation description it is non-to limit its execution sequence, any knot reconfigured by element
Structure, it is produced that there is equal and other effects device, it is all the range that the present invention is covered.In addition, attached drawing is only for the purpose of description, and
It maps not according to full size.To make to be easy to understand, similar elements will be illustrated with identical symbology in following the description.
The word (terms) used in full piece specification and claims usually has every in addition to having and especially indicating
A word using in the content disclosed in this area, at this with the usual meaning in special content.It is certain describing this hair
Bright word by it is lower or this specification other places discuss, to provide those skilled in the art in description for the present invention
Additional guiding.
In this article, unless being particularly limited to for article in interior text, otherwise " one " and "the" can refer to single or
It is multiple.It will be further appreciated that "comprising" used herein, " comprising ", " having " and similar vocabulary, indicate that it is remembered
Feature, region, integer, step, operation, element and/or the component of load, but it is not excluded for its described or additional one or more
Other feature, region, integer, step, operation, element, component and/or group therein.
Please refer to Fig. 1.Fig. 1 is in one embodiment of the invention, and one kind being suitable for remote procedure call (Remote
Procedure Call) overtime control unit 110 block schematic diagram.The overtime control unit 110 can be used to provide intermediate
It services to requesting party's unit 130 and response side unit 140.
In an embodiment, which can be the movable requesting party of a transaction, such as:One POS,
One enterprise resource planning (Enterprise Resource Planning system;ERP system) endpoint or
One, which can be used to place an order, buys the electronic device of commodity.The response side unit 140 can be the response side of a processing transaction, example
Such as:One swipe the card authorization server, an enterprise resource planning an informal petition management system or e-commerce server.This exceedes
When control unit 110 to provide intermediary service, with the transaction between requesting party's unit 130 and the response side unit 140
When talks overtime (session timeout) occurs for the programs such as movable mandate or confirmation, corresponding processing is provided.
In this present embodiment, the overtime control unit 110 include one talks control (session control) module 112,
One block device 114 and a message act on behalf of (message agent) module 116.In an embodiment, the overtime control unit
110 include an at least processor and a memory body, and the talks control module 112, the block device 114 and the message are acted on behalf of
Module 116 is stored in the memory body, and executes its function by the processor.In another embodiment, which controls mould
Block 112, the block device 114 and the message proxy module 116 are System on Chip/SoC or the hardware element of other executable instructions.
In an embodiment, overtime control unit 110 is one independently of requesting party's unit 130 and the response side unit
140 intermediate device.In another embodiment, overtime control unit 110 is to be integrated into requesting party's unit in the form of software
130 or the response side unit 140 in.In another embodiment, overtime control unit 110 is contained in requesting party's unit for one
130 or the System on Chip/SoC in the response side unit 140 or other executable instructions hardware element.
The overtime control unit 110 is when receiving the processing request 120 transmitted by requesting party's unit 130, by this
Processing request 120 is sent to the response side unit 140 so that the response side unit 140 handles processing request 120.Talks control
Molding block 112 is when a preset time reaches, judging whether the response side unit 140 returns a handling result 122.If
Be then talk the control module 112 control the message proxy module 116 handling result 122 is back to requesting party's unit
130.(i.e. the handling result 122 is not back to requesting party's unit 130) if not, then the talks control module 112 control should
Block device 114, which is sent, blocks request 124 to the response side unit 140 so that the response side unit 140 is asked according to the blocking
124 interrupt the processing of processing request 120, and the message proxy module 116 transmits a talks overtime message 126 to the requesting party
Unit 130.It should be noted that above-mentioned preset time is the adjustable time, which can be according to the processing
The type of request 120, adjusts above-mentioned preset time.
In another embodiment, the block device 114 more to judge the response side unit 140 whether according to the blocking ask
124 successfully interrupt the processing of processing request 120, if it is not, then the message proxy module 116 transmits a reserved state message 128
To requesting party's unit 130, and when the response side unit 140 returns handling result 122, the message proxy module 116 transmission
One callback (callback) message 129 is to requesting party's unit 130.In an embodiment, which is according to the response
The blocking state message 132 that Fang Danyuan 140 is returned, judges whether the response side unit 140 successfully interrupts processing request 120
Processing.
In an example, which successfully interrupts processing request 120 after receiving blocking request 124
Processing, and the response side unit 140 returns the blocking state message 132 according to this, and described in the blocking state message 132
The processing of the interrupt processing that succeeded request 120.
In another example, which is receiving probably due to system resource locking or certain system factors
After blocking request 124, the processing of processing request 120 can not be interrupted, the response side unit 140 returns the blocking state at this time
Message 132, and the processing of processing request 120 can not be interrupted described in the blocking state message 132.It, should in this example
Message proxy module 116 transmits a reserved state message 128 to requesting party's unit 130, and requesting party's unit 130 is according to this
Reserved state message 128 is noted down and retains the state of processing request 120.Later, when the response side unit 140 completes the processing
The processing of request 120, and when returning the handling result 122, which, which transmits the callback message 129, asks to this
The side's of asking unit 130, then, requesting party's unit 130 is according to the callback message 129 and the state of above-mentioned processing request 120
Processing request 120 is completed in record.
In another embodiment, which is more back to this storing the response side unit 140 and exceedes
When control unit 110 one correspond to the processing request 120 processing routine identification code 121.In another embodiment, the blocking
Request 124 includes the processing routine identification code 121, and the response side unit 140 is according to the processing routine in blocking request 124
Identification code 121, the processing of the interrupt requests 120.In the embodiment, which is to utilize an at least processor,
Multiple requests from multiple requesting party's units or overtime control unit are handled simultaneously, and it is corresponding to allot one to each request
Processing routine identification code.When the response side unit 140 is received comprising the processing routine identification code for corresponding to processing request 120
When 121 blocking request 124, an above-mentioned at least processor for the response side unit 140 is managed according to this in program identification code 121
The processing of disconnected processing request 120.
Please refer to Fig. 2.Fig. 2 is a kind of overtime control unit suitable for remote procedure call in one embodiment of the invention
The block schematic diagram of 110a.Compared to overtime control unit 110 shown in Fig. 1, in this present embodiment, the overtime control unit
110a also includes timer (timer) 210, request message queue (request message queue) 220 and response message
Queue (response message queue) 222.In an embodiment, which is to be realized by a chip, and be somebody's turn to do
Asking message queue 220 and the response message queue 222 is realized by storage elements such as memory body or hard disks.In another reality
It applies in example, overtime control unit 110a includes an at least processor and a memory body, and the timer 210 is by timing journey
Sequence or module are stored in the memory body to realize, and execute its function by the processor.The talks control module 112a with
And talks control module 112 and message proxy module 116 shown in the message proxy module 116a functions and operation and Fig. 1
It is similar, therefore details are not described herein.
In this present embodiment, talks control module 112a in overtime control unit 110a more receiving the processing
When asking 120, start the timer 210, and when the timer 210 reaches preset time, judge that the response side unit 140 is
No passback handling result 122.The request message queue 220 is to receive and the temporary request 120, and the talks control module
112a more to control the request message queue 220 by the processing request 120 be sent to the response side unit 140 should.The response
Message queue 222 is to receive and keep in the handling result 122, when message proxy module 116a is intended to return the handling result
122 to requesting party's unit 130 when, which reads the handling result from the response message queue 222
122。
Fig. 3 is that an embodiment is painted a kind of flow diagram of remote procedure call method according to the present invention.Teleprogram
Method of calling can be implemented as a computer program product (such as application program), and be stored in a computer-readable medium storing
In, and remote procedure call method is executed after so that computer is read this record media.Computer-readable medium storing can be only
Reading memory body, fast flash memory bank, floppy disk, hard disk, CD, portable disk, tape, can by network access database or be familiar with this skill
Skill person can think easily and computer-readable medium storing with the same function.
This remote procedure call method can be applied in the overtime control unit 110 shown as depicted in FIG. 1, but not be with it
Limit.For convenience and for the sake of clear explanation, the narration of following remote procedure call method is cooperation overtime control unit shown in FIG. 1
110 explain.
In step 302, the processing request 120 transmitted by requesting party's unit 130 is received using overtime control unit 110.
In step 304, processing request 120 is sent to response side unit 140 using the overtime control unit 110,
So that the response side unit 140 processing processing request 120.
In step 306, whether talks control module 112 judges the response side unit 140 when a preset time reaches
Handling result 122 is returned to the overtime control unit 110.If so, thening follow the steps 308;If it is not, thening follow the steps 310.
In the step 308, mould is acted on behalf of using the talks control module 112 control message of the overtime control unit 110
The handling result 122 is back to requesting party's unit 130 by block 116.
In the step 310, sent out using the talks control module 112 control block device 114 of the overtime control unit 110
Send blocking request 124 to the response side unit 140 so that the response side unit 140 interrupts the processing according to blocking request 124
The processing of request 120, and transmit the talks overtime message 126 using the message proxy module 116 of the overtime control unit 110
To requesting party's unit 130.
Please refer to Fig. 4.Fig. 4 is that an embodiment is painted a kind of flow signal of remote procedure call method according to the present invention
Figure.Compared to remote procedure call method shown in Fig. 3, in this present embodiment, remote procedure call method also includes step 402
And step 404.This remote procedure call method can be applied in the overtime control unit 110 shown as depicted in FIG. 1, but not with it
It is limited.For convenience and for the sake of clear explanation, the narration of following remote procedure call method is cooperation overtime control list shown in FIG. 1
Member 110 explains.
In step 402, using the block device 114 of the overtime control unit 110 judge the response side unit 140 whether at
Work(interrupts the processing of processing request 120.
If it is not, then in step 404, reserved state is transmitted using the message proxy module 116 of the overtime control unit 110
Message 128 returns the handling result 122 to the overtime control unit to requesting party's unit 130, and in the response side unit 140
When 110, callback message 129 is transmitted to requesting party's unit 130 using the message proxy module 116 of the overtime control unit 110.
Please refer to Fig. 5.Fig. 5 is that an embodiment is painted a kind of flow signal of remote procedure call method according to the present invention
Figure.Compared to remote procedure call method shown in Fig. 3, in this present embodiment, remote procedure call method also includes step 502
And step 510.This remote procedure call method can be applied in the overtime control unit 110 shown as depicted in FIG. 1, but not with it
It is limited.For convenience and for the sake of clear explanation, the narration of following remote procedure call method is cooperation overtime control list shown in FIG. 1
Member 110 explains.
In step 502, which receives and stores the response side using the talks control module 112
Unit 140 is back to the processing routine identification code 121 for corresponding to processing request 120 of the overtime control unit 110.
Compared to step 310, in step 510, blocking request 124 includes processing routine identification code 121, and the response
Fang Danyuan 140 interrupts the processing of processing request 120 according to the processing routine identification code 121 blocked in request 124.
It will be understood that mentioned step can be according to practical need in addition to especially chatting its bright sequence person in the present embodiment
Its tandem is adjusted, or even can be simultaneously or partially performed simultaneously.
In conclusion the present invention by execute remote procedure call system in, using an overtime control unit come pair
The interactive process of remote procedure call is monitored and manages, especially determining program whether overtime, and carried when overtime occurs
For corresponding processing, thus, it can be ensured that the consistency of system transaction results.
In the present invention, to judge whether that the time of overtime can respectively specify according to different calling objects, there is height
Degree elasticity.In addition, existing remote procedure call system only needs slightly to change the technology that relative program code can perform the present invention
Means.This technology can be realized by the intermediate device between requesting party and response side, that is, requesting party and response side are not required to
Change the main logic of program.Device proposed by the invention can self independent control and management, and with can freely adjust
The advantages that Timeout time length, and it is common to various different technologies platforms.
Although the present invention is disclosed above with embodiment, however, it is not to limit the invention, any to be familiar with this skill
Person, without departing from the spirit and scope of the present invention, when can be used for a variety of modifications and variations, therefore protection scope of the present invention is worked as
Subject to the scope of which is defined in the appended claims.
Claims (16)
1. a kind of overtime control unit suitable for remote procedure call, the overtime control unit be set to requesting party's unit and
Between one response side unit, which is characterized in that the overtime control unit includes:
One block device;
One message proxy module;And
One talks control module, wherein the overtime control unit are receiving the processing request transmitted by requesting party's unit
When, processing request is sent to the response side unit so that the response side cell processing processing request, and the talks control
Module when a preset time reaches to judge whether the response side unit returns a handling result, and not in the handling result
When being back to requesting party's unit, which controls the block device and sends a blocking request to the response side list
Member so that the response side unit asks to interrupt the processing of processing request, and message proxy module transmission one according to the blocking
Overtime message of talking is to requesting party's unit;
Wherein, when the response side unit, which receives blocking request, can not but interrupt processing request, passback one blocking state news
Breath is to the block device, and blocking state message description can not interrupt processing request and message proxy module passback one is protected
Stay message status to requesting party's unit, which notes down according to the reserved state message and retain processing request
State.
2. overtime control unit according to claim 1, which is characterized in that the block device is more judging the response side list
Whether member successfully interrupts the processing of processing request, if it is not, then the message proxy module transmits the reserved state message and asks to this
The side's of asking unit, and when the response side unit returns the handling result, which, which transmits a callback message, asks to this
The side's of asking unit.
3. overtime control unit according to claim 2, which is characterized in that the block device is according to the response side unit institute
The blocking state message of passback, judges whether the response side unit successfully interrupts the processing of processing request.
4. overtime control unit according to claim 1, which is characterized in that also include a timer, and the talks control
Module is somebody's turn to do more when the overtime control unit receives processing request, to start the timer in timer arrival
When preset time, judge whether the response side unit returns the handling result.
5. overtime control unit according to claim 1, which is characterized in that the talks control module is more storing this time
The side's of answering unit is back to the one of the overtime control unit processing routine identification code for corresponding to processing request.
6. overtime control unit according to claim 5, which is characterized in that blocking request is identified comprising the processing routine
Code, and the response side unit interrupts the processing of processing request according to the processing routine identification code in blocking request.
7. overtime control unit according to claim 1, which is characterized in that also include:
One request message queue, to receive and keep in processing request, and the talks control module is more controlling the request
Processing request is sent to the response side unit by message queue.
8. overtime control unit according to claim 1, which is characterized in that also include:
One response message queue, to receive and keep in the handling result.
9. overtime control unit according to claim 1, which is characterized in that the overtime control unit is asked for one independently of this
The intermediate device of the side's of asking unit and the response side unit.
10. overtime control unit according to claim 1, which is characterized in that the overtime control unit is the side with software
Formula is integrated into requesting party's unit or the response side unit.
11. overtime control unit according to claim 1, which is characterized in that the overtime control unit is contained in this for one
System on Chip/SoC in requesting party's unit or the response side unit.
12. a kind of remote procedure call method is in an overtime control unit, which to be set to a request
Between Fang Danyuan and a response side unit, which is characterized in that include:
The processing request transmitted by requesting party's unit is received using the overtime control unit;
Processing request is sent to the response side unit using the overtime control unit so that the response side cell processing is at this
Reason request;
When a preset time reaches, judge whether the response side unit returns a handling result to the overtime control unit;
If so, the handling result is back to requesting party's unit using the overtime control unit;And
Block request to the response side unit if it is not, the overtime control unit is then utilized to send one so that the response side unit root
It asks to interrupt the processing of processing request according to the blocking, and is asked to this using one talks overtime message of overtime control unit transmission
The side's of asking unit;
Wherein, when the response side unit, which receives blocking request, can not but interrupt processing request, passback one blocking state news
Breath is to a block device, and blocking state message description can not interrupt processing request and message proxy module passback one is protected
Stay message status to requesting party's unit, which notes down according to the reserved state message and retain processing request
State.
13. remote procedure call method according to claim 12, which is characterized in that also include:
Judge whether the response side unit successfully interrupts the processing of processing request using the overtime control unit;
If it is not, then transmitting the reserved state message to requesting party's unit, and in the response side list using the overtime control unit
When the member passback handling result to overtime control unit, a callback message is transmitted to the requesting party using the overtime control unit
Unit.
14. remote procedure call method according to claim 13, which is characterized in that sentence in using the overtime control unit
Whether the disconnected response side unit successfully interrupted in the step of processing of processing request, which is according to the response
Fang Danyuan is back to the blocking state message of the overtime control unit, judges whether the response side unit successfully interrupts at this
Manage the processing of request.
15. remote procedure call method according to claim 12, which is characterized in that also include:
It receives and stores the response side unit and be back to the one of the overtime control unit processing journey for corresponding to processing request
Sequence identification code.
16. remote procedure call method according to claim 15, which is characterized in that blocking request includes the processing journey
Sequence identification code, and the response side unit interrupts the place of processing request according to the processing routine identification code in blocking request
Reason.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410177327.6A CN105022622B (en) | 2014-04-29 | 2014-04-29 | Overtime control unit and remote procedure call method suitable for remote procedure call |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410177327.6A CN105022622B (en) | 2014-04-29 | 2014-04-29 | Overtime control unit and remote procedure call method suitable for remote procedure call |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105022622A CN105022622A (en) | 2015-11-04 |
CN105022622B true CN105022622B (en) | 2018-09-28 |
Family
ID=54412613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410177327.6A Active CN105022622B (en) | 2014-04-29 | 2014-04-29 | Overtime control unit and remote procedure call method suitable for remote procedure call |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105022622B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100401707C (en) * | 2006-05-31 | 2008-07-09 | 北京和利时系统工程有限公司 | Remote process transfering method and system in distribution type control system |
US8332520B2 (en) * | 2007-01-19 | 2012-12-11 | International Business Machines Corporation | Web server for managing session and method thereof |
CN101196832B (en) * | 2007-12-29 | 2012-12-19 | 北京航空航天大学 | Resource proxy machine facing illumination variant equipment |
CN103116520B (en) * | 2012-11-02 | 2016-07-06 | 深圳键桥通讯技术股份有限公司 | Method based on the remote procedure call of TCP/ UDP |
-
2014
- 2014-04-29 CN CN201410177327.6A patent/CN105022622B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105022622A (en) | 2015-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108829350B (en) | Data migration method and device based on block chain | |
US10142174B2 (en) | Service deployment infrastructure request provisioning | |
US10789109B2 (en) | Information processing method and device and computer storage medium | |
CN107729139B (en) | Method and device for concurrently acquiring resources | |
EP3178022B1 (en) | Data storage upon database failure | |
CN112650576B (en) | Resource scheduling method, device, equipment, storage medium and computer program product | |
US11327795B1 (en) | Efficient worker utilization | |
JP2017528844A (en) | Managing device change events in an enterprise system | |
US20090222926A1 (en) | Software license management system that functions in a disconnected or intermittently connected mode | |
US20160044081A1 (en) | Distributed stream processing | |
US20100042723A1 (en) | Method and system for managing load in a network | |
US20170329655A1 (en) | Method and apparatus of unloading out of memory processing flow to user space | |
US20030110232A1 (en) | Distributing messages between local queues representative of a common shared queue | |
WO2023131058A1 (en) | System and method for scheduling resource service application in digital middle office of enterprise | |
CN113742109A (en) | Third-party service docking method, device, equipment and storage medium | |
CN111324622A (en) | Resource first-aid-purchase processing method, device, equipment and storage medium | |
CN112099921A (en) | Java application system preheating method and system based on JVM | |
CN105022622B (en) | Overtime control unit and remote procedure call method suitable for remote procedure call | |
CA2951620A1 (en) | Distribution system and method | |
TWI556612B (en) | Timeout controlling unit for remote procedure call and method for remote procedure call | |
CN111488373A (en) | Method and system for processing request | |
CN111443962A (en) | Transaction limiting method and device | |
CN110381150A (en) | Data processing method, device, electronic equipment and storage medium on block chain | |
US20230401330A1 (en) | Authorization audit | |
CN110677465B (en) | Control method and device of distributed lock |
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 |