CN104917789A - Combination service execution method and execution engine - Google Patents

Combination service execution method and execution engine Download PDF

Info

Publication number
CN104917789A
CN104917789A CN201410088365.4A CN201410088365A CN104917789A CN 104917789 A CN104917789 A CN 104917789A CN 201410088365 A CN201410088365 A CN 201410088365A CN 104917789 A CN104917789 A CN 104917789A
Authority
CN
China
Prior art keywords
execution pattern
service
flow
switching
composite services
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410088365.4A
Other languages
Chinese (zh)
Inventor
王海明
王欣
金骏
倪庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Liaoning Co Ltd
Original Assignee
China Mobile Group Liaoning Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Group Liaoning Co Ltd filed Critical China Mobile Group Liaoning Co Ltd
Priority to CN201410088365.4A priority Critical patent/CN104917789A/en
Publication of CN104917789A publication Critical patent/CN104917789A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a combination service execution method. The method comprises the following steps: receiving a combination service request message of a user, creating a process example of combination service, executing the process example according to a preset execution mode, and monitoring correlation parameters of the combination service; according to a monitoring result, determining whether to switch an execution mode; and when it is determined that the execution mode is switched, continuously executing the current residual process example by use of the switched execution mode. At the same time, the invention also discloses an execution engine. According to the technical scheme provided by the embodiments of the invention, the execution mode can be adjusted according to the monitoring result, compared to conventional adoption of a fixed execution mode, the execution efficiency is improved, and the load of the execution engine is reduced.

Description

A kind of composite services manner of execution and enforcement engine
Technical field
The present invention relates to Web service technology, be specifically related to a kind of manner of execution and enforcement engine of Web composite services.
Background technology
Along with the continuous increase of application function, single Web service cannot meet the application demand of users.At present, the mode by adopting multiple Web service mutually to combine reaches the object meeting the many-sided demand of user; Meanwhile, Web composite services can make the function of Web service be able to the performance of maximum program.Wherein, undertaken combining by multiple single Web service and the set of the Web service function formed is Web composite services; The each single Web service of composition Web composite services is referred to as atomic service.Effective associating between the atomic service of various difference in functionality with cooperate, achieve the service function of coarsegrain, more complicated problem can be solved, thus reach the object of service value-adding.
In Web composite services, how to make composite services enforcement engine perform high efficiency process to composite services is the target that researcher pursues always.At present, the execution pattern of composite services comprises following several: the full hubbed mode CCCD of data flow con-trol stream, control flow check intensive data stream decentralized model CCDD.
Fig. 1 (a) is the schematic diagram of the full hubbed mode of data flow con-trol stream.As shown in Fig. 1 (a), CCCD execution pattern control centre in logic and enforcement engine, entirety can be carried out to composite services to control, be responsible for the control flow check between coordination service and data flow, all data all will forward through engine, instead of directly send the data to data consumer by data producer.This execution pattern is more suitable for the smaller service of data volume, transmission data volume larger and concurrent composite services flow instance quantity is more time, enforcement engine is easy to be formed comparatively heavy load, thus becomes the bottleneck of systematic function, affects the execution efficiency of composite services.
Fig. 1 (b) is the schematic diagram of control flow check intensive data stream decentralized model.As shown in Fig. 1 (b), the control centre of CCDD execution pattern both on subsistence logic and enforcement engine, data can be made again directly to pass to data consumer by data producer, but need coordination service to communicate with engine, and realize the transmission of data flow between each service according to control message.When interaction data amount between services and control message data volume are more or less the same, the execution efficiency of this execution pattern is lower.
As can be seen here, often kind of execution pattern has its drawback, and in addition, because the data volume of transmission between service is dynamic change, select any one execution pattern, all can not ensure that execution efficiency is the highest, execution result is optimum.Therefore, in the urgent need to the high efficiency composite services manner of execution of one.
Summary of the invention
For solving the technical problem of existing existence, the embodiment of the present invention provides a kind of manner of execution and enforcement engine of Web composite services, can improve the execution efficiency of enforcement engine, reduces the load of enforcement engine.
The technical scheme of the embodiment of the present invention is achieved in that
Embodiments provide a kind of composite services manner of execution, described method comprises:
Receive the composite services request message of user, create the flow instance of composite services, perform described flow instance according to the execution pattern preset, and the relevant parameter of described composite services is monitored;
According to monitored results, determine whether the switching carrying out execution pattern;
When being defined as carrying out execution pattern switching, the execution pattern after switching is utilized to continue to perform the flow instance of current residual.
In such scheme, described method also comprises:
Receive composite services flow process deployment file, process of analysis deployment file;
According to the flow process deployment file content parsed, visioning procedure template;
Accordingly, the composite services request message of described reception user, creates the flow instance of composite services, comprising:
When receiving described composite services request message, search flow template, and according to the flow template found out, create described flow instance.
In such scheme, described default execution pattern is CCCD execution pattern in data flow con-trol stream complete or collected works;
Accordingly, according to monitored results, determine whether the switching carrying out execution pattern, comprising:
According to described monitored results, predict that time of implementation of described CCCD execution pattern and control flow check intensive data flow point fall apart time of implementation of CCDD execution pattern;
When determining that little execution pattern of described time of implementation is different from described default execution pattern, be defined as carrying out execution pattern switching;
When determining that little execution pattern of described time of implementation is identical with described default execution pattern, be defined as the switching not carrying out execution pattern.
In such scheme, described relevant parameter comprises:
The data dependence amount of service output data quantity, the network bandwidth, service protocol message data volume, service call activity.
In such scheme, described according to monitored results, determine whether the switching carrying out execution pattern, comprising:
When determining that described service output data quantity is less than described service protocol message data volume, determine the switching not carrying out execution pattern;
When determining that described service output data quantity is more than or equal to described service protocol message data volume, or can not determine out the size of described service output data quantity and described service protocol message data volume, being defined as carrying out execution pattern switching.
The embodiment of the present invention additionally provides a kind of composite services enforcement engine, and described enforcement engine comprises:
First receiving element, for receiving the composite services request message of user;
First creating unit, for creating the flow instance of composite services;
Performance element, for performing described flow instance according to the execution pattern preset;
Monitoring unit, for monitoring the relevant parameter of described composite services;
Determining unit, for according to monitored results, determines whether the switching carrying out execution pattern, and when being defined as carrying out execution pattern switching, triggers performance element;
Performance element, continues the flow instance performing current residual for utilizing the execution pattern after switching.
In such scheme, described enforcement engine also comprises: the second receiving element, for receiving composite services flow process deployment file;
Resolution unit, for process of analysis deployment file;
Second creating unit, for the flow process deployment file content parsed according to described resolution unit, visioning procedure template;
Accordingly,
Described first receiving element, during for receiving described composite services request message, triggers described first creating unit;
Described first creating unit, for searching flow template, and according to the flow template found out, creates described flow instance.
In such scheme, described determining unit, for according to described monitored results, predicts that time of implementation of described CCCD execution pattern and control flow check intensive data flow point fall apart time of implementation of CCDD execution pattern;
When determining that little execution pattern of described time of implementation is different from described default execution pattern, be defined as carrying out execution pattern switching;
When determining that little execution pattern of described time of implementation is identical with described default execution pattern, be defined as the switching not carrying out execution pattern.
In such scheme, described relevant parameter also comprises:
The data dependence amount of service output data quantity, the network bandwidth, service protocol message data volume, service call activity.
In such scheme, described determining unit, also for
When determining that described service output data quantity is less than described service protocol message data volume, determine the switching not carrying out execution pattern;
When determining that described service output data quantity is more than or equal to described service protocol message data volume, or can not determine out the size of described service output data quantity and described service protocol message data volume, being defined as carrying out execution pattern switching.
The manner of execution of the composite services that the embodiment of the present invention provides and enforcement engine, described method comprises: the composite services request message receiving user, create the flow instance of composite services, perform described flow instance according to the execution pattern preset, and the relevant parameter of described composite services is monitored; According to monitored results, determine whether the switching carrying out execution pattern; When being defined as carrying out execution pattern switching, the execution pattern after switching is utilized to continue to perform the flow instance of current residual.Utilize the technical scheme of the embodiment of the present invention, can adjust execution pattern according to monitored results, compared with the execution pattern that existing employing is fixing, improve execution efficiency, decrease the load of enforcement engine.
Accompanying drawing explanation
Fig. 1 (a) is the schematic diagram of the full hubbed mode of data flow con-trol stream;
Fig. 1 (b) is the schematic diagram of control flow check intensive data stream decentralized model;
The enforcement engine that Fig. 2 provides for the embodiment of the present invention and agency service carry out the application scenarios schematic diagram communicated;
The realization flow schematic diagram of the composite services manner of execution that Fig. 3 provides for the embodiment of the present invention;
The composition structural representation of the enforcement engine that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Embodiments provide a kind of composite services manner of execution, be applied in an enforcement engine; The enforcement engine that Fig. 2 provides for the embodiment of the present invention and agency service (service) carry out the application scenarios schematic diagram communicated; Below in conjunction with the application scenarios shown in Fig. 2, the composite services manner of execution of the embodiment of the present invention is described further.
The realization flow schematic diagram of the composite services manner of execution that Fig. 3 provides for the embodiment of the present invention; As shown in Figure 3, described method comprises:
Step 301: enforcement engine receives the composite services request message of user, creates the flow instance of composite services, performs described flow instance according to the execution pattern preset.
Here, write composite services flow process deployment file by user, and the flow process deployment file write is inputed to enforcement engine, enforcement engine receives flow process deployment file, and utilize the flow process resolver of self to resolve flow process deployment file, according to analysis result visioning procedure template; The flow template of establishment is disposed, and externally issues flow services.When enforcement engine to receive the composite services request message of user by the interactive interface of self, this message format is converted to self discernible form, and search flow template, according to the flow template found, be the composite services visioning procedure example be currently received.Wherein, described flow process deployment file comprises: BPEL BPEL file, WSDL (WSDL, Web Services Description Language) file.
Step 302: monitor the relevant parameter of described composite services, according to monitored results, determines whether the switching carrying out execution pattern, when being defined as carrying out execution pattern switching, utilizes the execution pattern after switching to continue to perform the flow instance of current residual.
Here, in the implementation of the flow instance of present combination service, the relevant parameter of composite services is monitored, and according to monitored results, determine whether the switching initiating execution pattern; If determine the switching initiating execution pattern, the execution pattern after switching is utilized to perform flow instance; If determine the switching not initiating execution pattern, still perform flow instance according to the execution pattern pre-set, and export agency service or service to.Wherein, described relevant parameter comprises: the data dependence amount etc. of service output data quantity, the network bandwidth, service protocol message data volume, service call activity, and the described network bandwidth comprises: the network bandwidth between enforcement engine and service, the network bandwidth etc. between service and service.
In embodiments of the present invention, CCCD execution pattern being considered as the execution pattern that namely original execution pattern preset is CCCD execution pattern, in flow instance implementation, can according to monitored results and the execution result under originate mode, determine whether that initiation pattern switches, as: the service output data quantity of enforcement engine monitoring current service and service protocol message data volume, and the size of described service output data quantity and service protocol message data volume can be judged and described service output data quantity is less than described service protocol message data volume time, still continue to perform flow instance according to the CCCD execution pattern preset, if the size of described service output data quantity and service protocol message data volume can be judged and described service output data quantity is more than or equal to described service protocol message data volume, or the size of serving output data quantity and service protocol message data volume can not be judged, then switching CCCD execution pattern is CCDD execution pattern, and using CCDD execution pattern as the execution pattern after switching, continue to utilize CCDD execution pattern to perform flow instance, and execution result is exported.The setting of described original execution pattern can by manually completing; Certainly, original execution pattern can also be set to CCDD execution pattern, and which pattern is original execution pattern be specifically chosen as can determine according to practical application.Originate mode in the embodiment of the present invention is selected also to can be considered the preselected process of service execution pattern, in this process, type according to service message judges the size of service data data volume, and this deterministic process specifically refers to description of Related Art, repeats no more here.
As can be seen here, in the embodiment of the present invention, CCCD execution pattern is used in the composite services flow instance original execution stage, according to monitored results, be in fact exactly the ruuning situation according to service place network, determine whether that execution pattern switches, compared with the execution pattern that existing employing is fixing, improve the execution efficiency of enforcement engine, reduce the load of enforcement engine, engine resource is utilized effectively.
Consider that the implementation of composite services is in fact that the movable process such as Receive, Assign, Invoke is called in composite services; Below in conjunction with enforcement engine from receiving composite services request to the response message process exported for this request, the handoff procedure of execution pattern is described further.
Composite services enforcement engine receives service request information, and this message is carried out format conversion, is converted to the form that self can identify, and searches flow template, visioning procedure example, performs from first activity; And using first activity as current active;
If it is movable that current active is Receive, by service message content assignment to input variable, record input variable argument address, for output;
Current active is that Assign is movable, judges that whether the source variable address of this activity is in engine, is, then directly carry out variable parameter conversion, the data dependence data volume of record current service, no, then the Parameter Switch of record object variable parameter address and generation target variable maps, for output;
If it is movable that current active is Invoke, judge whether service execution pattern is determined, if do not determined, select a kind of execution pattern, and record the output variable argument address of this execution pattern; If selected execution pattern is CCCD execution pattern, further judgement input variable argument address is all in enforcement engine, if complete in enforcement engine, send service request directly to agency service, wait-receiving mode service response message, record and renewal service output data quantity, by response message assignment to output variable; If do not have complete in enforcement engine, judge input variable parameter whether in enforcement engine further, if input variable argument address is in enforcement engine, encapsulation also sends service parameter input message to agency service, if input variable argument address is in agency service, encapsulation also sends service parameter transmission notification message to agency service, when encapsulating this two kinds of protocol messages, be true by back setup of attribute, represent and adopt CCCD execution pattern, then wait-receiving mode service parameter completes message, records and upgrades the network bandwidth and service output data quantity.If selected execution pattern is CCDD execution pattern, judge input variable argument address whether in enforcement engine, then encapsulate and send service parameter input message to agency service, no, then encapsulate and send service parameter to agency service and transmit notification message, when encapsulating this two kinds of protocol messages, be false by back setup of attribute, represent and adopt CCDD, then wait-receiving mode service parameter completes message, record and the renewal network bandwidth;
If current active to be Reply movable, judge that the output variable argument address of this activity is whether in engine, be then variant content is packaged into output message, then export response message, flow instance performs end; No, then obtain all Parameter Switch mapping relations of output variable, packing service Parameter transfer notification message, send to the agency service at output variable place, wait-receiving mode service parameter input message, extract the message content needed, be packaged into and export response message and export, flow instance performs end;
If it is movable that current active is Flow, last branch's activity is labeled as service quality (QoS, Quality of Service) critical path after performing and terminating; Using movable for the next one as current active, continue to perform according to the method described above, until all activity ends.
In the present invention's preferred embodiment, described method also comprises:
When described default execution pattern is CCCD execution pattern in data flow con-trol stream complete or collected works, described method also comprises: according to described monitored results, predicts the time of implementation of described CCCD execution pattern and the time of implementation of CCDD execution pattern; When determining that little execution pattern of described time of implementation is different from described default execution pattern, be defined as carrying out execution pattern switching; When determining that little execution pattern of described time of implementation is identical with described default execution pattern, be defined as the switching not carrying out execution pattern.
Wherein, the forecasting process of the described time of implementation to two kinds of execution patterns is as described below.
Pre-defined: the movable execution interval time, to suppose activity a ewith movable a fcomposite services flow instance p ijtwo activities, and movable a fat movable a eperform below, then from movable a eperform and terminate to movable a fwhat start execution is called a during this period of time eand a fthe execution interval time, be denoted as TL (p ij, a e, a f), referred to as TL, use the average execution interval time of expression activity, can be obtained by formula (1.1):
TL ‾ ( p i , a e , a f ) = 1 n Σ j = 1 n TL ( p ij , a e , a f ) ( 1.1 )
Wherein, i, j, k, n are positive integer; Formula (1.1) represents composite services flow process p iin, in n the flow instance completed, movable a eand a fperform Mean Time Between Replacement.
Pre-defined: activity output data quantity, represent the output data quantity of service call activity binding service, be designated as DA(p ij, a k), represent composite services flow instance p ijin, the movable a of service call koutput data quantity, and to use the average output data quantity of expression activity, and obtained by formula (1.2):
DA ‾ ( p ij , a k ) = 1 n Σ j = 1 n DA ( p ij , a k ) ( 1.2 )
Formula (1.2) represents composite services flow process p imiddle movable a k, the average output data quantity of activity in n the composite services flow instance completed.
Pre-defined movable data dependence data two refer to the size of the data volume that service call activity data relies on, and are designated as DR (p ij, a e, a f), represent composite services flow instance p ijin, the movable a of service call ea movable with service call fdata dependence data volume, the data volume of a kth data dependence of service call activity is designated as DR k(p i, a e), use the average amount of an expression activity kth data dependence, can be obtained by formula (1.3):
DR k ‾ ( p j , a e ) = 1 n Σ j = 1 n DR k ( p ij , a e ) ( 1.3 )
Formula (1.3) represents composite services p iin, the movable a of service call e, in the average amount of a kth data dependence of n the flow instance completed.
Pre-defined: TW represents the time of implementation of CCCD execution pattern, and TH represents the time of implementation of CCDD execution pattern, the difference TD=TW-TH of the time of implementation of two execution patterns.
In the embodiment of the present invention, consider that in composite services flow process, activity may have one or more data dependence, and may be Serial Relation between the data dependence activity of activity, also may be concurrency relation, so, the CCCD pattern time of implementation of service is also different with the computing formula of CCDD pattern time of implementation, specifically refers to following explanation.
1) in single data dependence situation,
TD = DA ‾ ( p j , a e ) - c 1 - c 2 b + DR ‾ ( p j , a e , a f ) ( 1 b - 1 b 1 ) ( 1.4 )
Wherein, c 1expression activity a ethe data volume of the service protocol message of binding service; c 2expression activity a fthe data volume of the service protocol message of binding service; b 1represent the network bandwidth between enforcement engine and service; b 1represent a ethe agency service of binding service and a fthe network bandwidth between the agency service of binding service.
2) many data dependences serial structure, supposes to call movable a under such configuration erespectively with a fand a gbetween there is data dependence, and a fand a gbetween be order execution relation.
TD = DA ‾ ( p j , a e ) - c 1 - c 2 b + DR ‾ ( p j , a e , a f ) ( 1 b - 1 b 1 ) + DR ‾ ( p j , a e , a g ) ( 1 b - 1 b 2 ) ( 1.5 )
Wherein, c 1expression activity a ebinding service s ethe data volume of service protocol message; c 2expression activity a fbinding service s fthe data volume of service protocol message; B represents the network bandwidth between enforcement engine and service; b 1expression activity a ebinding service s ewith movable a fbinding service s fbetween the network bandwidth; b 2expression activity a ebinding service s ewith movable a gbinding service s gbetween the network bandwidth.
3) many data dependences parallel organization, the under such configuration movable a of service call erespectively with a fand a gbetween there is data dependence, and a fand a gbetween be executed in parallel relation.
TD = DA ‾ ( p j , a e ) - c 1 - c 2 b + DR ‾ ( p j , a e , a f ) ( 1 b - 1 b 1 ) ( 1.6 )
Wherein, c 1expression activity a ethe data volume of the service protocol message of binding service; c 2expression activity a fthe data volume of the service protocol message of binding service; B represents the network bandwidth between enforcement engine and service; b 1expression activity a ebinding service s eand a fbinding service s fbetween the network bandwidth.
At formula (1.4) ~ formula (1.6), if be defined as TD<0, then service adopts the execution efficiency of CCCD execution pattern higher, then do not need the switching carrying out execution pattern; If be defined as TD>0, then service adopts the execution efficiency of CCDD execution pattern higher, then need to switch to CCDD execution pattern from CCCD execution pattern, and utilizes CCDD execution pattern to continue to perform remaining flow instance.
As can be seen here, in the embodiment of the present invention, execution pattern can be selected dynamically according to the size of the time of implementation of execution pattern, compared with execution pattern fixing in prior art, improve the execution efficiency of enforcement engine, reduce the load of enforcement engine, engine resource is utilized effectively.
The embodiment of the present invention also describes a kind of enforcement engine, the composition structural representation of the enforcement engine that Fig. 4 provides for the embodiment of the present invention, as shown in Figure 4, described enforcement engine comprises: the first receiving element 401, first creating unit 402, performance element 403, monitoring unit 404, performance element 405, determining unit 400; Wherein,
Described first receiving element 401, for receiving the composite services request message of user;
Described first creating unit 402, for creating the flow instance of composite services;
Described performance element 403, for performing described flow instance according to the execution pattern preset;
Described monitoring unit 404, for monitoring the relevant parameter of described composite services;
Described determining unit 400, for according to monitored results, determines whether the switching carrying out execution pattern, and when being defined as carrying out execution pattern switching, triggers performance element 405;
Described performance element 405, continues the flow instance performing current residual, and exports for utilizing the execution pattern after switching.
As shown in Figure 4, described enforcement engine also comprises: the second receiving element 406, resolution unit 407, second creating unit 408;
User writes composite services flow process deployment file, and the flow process deployment file write is inputed to enforcement engine, described enforcement engine, specifically described second receiving element 406 receive flow process deployment file, and flow process deployment file is transferred to described resolution unit 407, described resolution unit 407 utilizes resolves flow process deployment file, and described second creating unit 408 is according to the analysis result visioning procedure template of described resolution unit 407; The flow template that described second creating unit 408 creates is disposed by the deployment unit (not illustrating in Fig. 4) of described enforcement engine, and externally issues flow services.When enforcement engine, specifically described first receiving element 401 are by the composite services request message that receives user, trigger described first creating unit 402; This message format is converted to self discernible form by described first creating unit 402, and searches flow template, according to the flow template found, is the composite services visioning procedure example be currently received.Wherein, described flow process deployment file comprises: BPEL file, wsdl document.
Here, in the implementation of the flow instance of present combination service, the relevant parameter of described monitoring unit 404 pairs of composite services is monitored, and described determining unit 400, according to monitored results, determines whether the switching initiating execution pattern; If determine the switching initiating execution pattern, then trigger described performance element 405 and utilize the execution pattern after switching to perform flow instance; If determine the switching not initiating execution pattern, trigger described performance element 403 and continue to perform flow instance according to the execution pattern pre-set.Wherein, described relevant parameter comprises: the data dependence amount etc. of service output data quantity, the network bandwidth, service protocol message data volume, service call activity, and the described network bandwidth comprises: the network bandwidth between enforcement engine and service, the network bandwidth etc. between service and service.
In embodiments of the present invention, it is CCCD execution pattern that CCCD execution pattern is set to the execution pattern that namely original execution pattern preset by the setting unit (not illustrating in Fig. 4) of described enforcement engine, in flow instance implementation, described determining unit 400 can according to monitored results and the execution result under originate mode, determine whether that initiation pattern switches, as: as described in monitoring unit 404 the service output data quantity of the current service monitored and service protocol message data volume be sent to as described in determining unit 400, described determining unit 400 can judge the size of described service output data quantity and service protocol message data volume and described service output data quantity is less than described service protocol message data volume time, trigger described performance element 403 and still perform flow instance according to the CCCD execution pattern preset, if described determining unit 400 can judge the size of described service output data quantity and service protocol message data volume and described service output data quantity is more than or equal to described service protocol message data volume, or described determining unit 400 can not judge the size of serving output data quantity and service protocol message data volume, then namely the switching of execution pattern switches CCCD execution pattern is CCDD execution pattern, and trigger described performance element 405, described performance element 405 using CCDD execution pattern as switch after execution pattern, continue to perform remaining flow instance, the output unit (not illustrating in Fig. 4) of described enforcement engine exports execution result.The setting of described original execution pattern can by manually completing; Certainly, original execution pattern can also be set to CCDD execution pattern, and which pattern is original execution pattern be specifically chosen as can determine according to practical application.Originate mode in the embodiment of the present invention is selected also to can be considered the preselected process of service execution pattern, in this process, type according to service message judges the size of service data data volume, and this deterministic process specifically refers to description of Related Art, repeats no more here.
Wherein, be in fact that the movable process such as Receive, Assign, Invoke is called in composite services to the implementation of composite services, specifically refer to aforementioned explanation, repeat no more here.
In the present invention's preferred embodiment, when to arrange described default execution pattern be CCCD to described setting unit (not illustrating in Fig. 4),
Described determining unit 400, according to described monitored results, predicts that time of implementation of described CCCD execution pattern and control flow check intensive data flow point fall apart time of implementation of CCDD execution pattern;
When determining unit 400 determines that little execution pattern of described time of implementation is different from described default execution pattern, be defined as carrying out execution pattern switching, namely switch to CCDD execution pattern by CCCD execution pattern, and trigger described performance element 405 utilize CCDD execution pattern continue perform remaining flow instance;
When determining unit 400 determines that little execution pattern of described time of implementation is identical with described default execution pattern, be defined as the switching not carrying out execution pattern, and trigger described performance element 403 and continue to perform flow instance according to CCCD pattern.
Wherein, described determining unit 400 predicts that the time of implementation under two execution patterns determines that the process of the execution pattern that the time of implementation is little refers to the aforementioned explanation to formula (1.1) ~ formula (1.6), repeats no more here.
As can be seen here, in the embodiment of the present invention, execution pattern can be selected dynamically according to the size of the time of implementation of execution pattern, compared with execution pattern fixing in prior art, improve the execution efficiency of enforcement engine, reduce the load of enforcement engine, engine resource is utilized effectively.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (10)

1. a composite services manner of execution, is characterized in that, described method comprises:
Receive the composite services request message of user, create the flow instance of composite services, perform described flow instance according to the execution pattern preset, and the relevant parameter of described composite services is monitored;
According to monitored results, determine whether the switching carrying out execution pattern;
When being defined as carrying out execution pattern switching, the execution pattern after switching is utilized to continue to perform the flow instance of current residual.
2. method according to claim 1, is characterized in that, described method also comprises:
Receive composite services flow process deployment file, process of analysis deployment file;
According to the flow process deployment file content parsed, visioning procedure template;
Accordingly, the composite services request message of described reception user, creates the flow instance of composite services, comprising:
When receiving described composite services request message, search flow template, and according to the flow template found out, create described flow instance.
3. method according to claim 1, is characterized in that, described default execution pattern is CCCD execution pattern in data flow con-trol stream complete or collected works;
Accordingly, according to monitored results, determine whether the switching carrying out execution pattern, comprising:
According to described monitored results, predict that time of implementation of described CCCD execution pattern and control flow check intensive data flow point fall apart time of implementation of CCDD execution pattern;
When determining that little execution pattern of described time of implementation is different from described default execution pattern, be defined as carrying out execution pattern switching;
When determining that little execution pattern of described time of implementation is identical with described default execution pattern, be defined as the switching not carrying out execution pattern.
4. the method according to any one of claims 1 to 3, is characterized in that, described relevant parameter comprises:
The data dependence amount of service output data quantity, the network bandwidth, service protocol message data volume, service call activity.
5. method according to claim 4, is characterized in that, described according to monitored results, determines whether the switching carrying out execution pattern, comprising:
When determining that described service output data quantity is less than described service protocol message data volume, determine the switching not carrying out execution pattern;
When determining that described service output data quantity is more than or equal to described service protocol message data volume, or can not determine out the size of described service output data quantity and described service protocol message data volume, being defined as carrying out execution pattern switching.
6. a composite services enforcement engine, is characterized in that, described enforcement engine comprises:
First receiving element, for receiving the composite services request message of user;
First creating unit, for creating the flow instance of composite services;
Performance element, for performing described flow instance according to the execution pattern preset;
Monitoring unit, for monitoring the relevant parameter of described composite services;
Determining unit, for according to monitored results, determines whether the switching carrying out execution pattern, and when being defined as carrying out execution pattern switching, triggers performance element;
Performance element, continues the flow instance performing current residual for utilizing the execution pattern after switching.
7. enforcement engine according to claim 6, is characterized in that, described enforcement engine also comprises:
Second receiving element, for receiving composite services flow process deployment file;
Resolution unit, for process of analysis deployment file;
Second creating unit, for the flow process deployment file content parsed according to described resolution unit, visioning procedure template;
Accordingly,
Described first receiving element, during for receiving described composite services request message, triggers described first creating unit;
Described first creating unit, for searching flow template, and according to the flow template found out, creates described flow instance.
8. enforcement engine according to claim 6, is characterized in that, described determining unit, for according to described monitored results, predicts that time of implementation of described CCCD execution pattern and control flow check intensive data flow point fall apart time of implementation of CCDD execution pattern;
When determining that little execution pattern of described time of implementation is different from described default execution pattern, be defined as carrying out execution pattern switching;
When determining that little execution pattern of described time of implementation is identical with described default execution pattern, be defined as the switching not carrying out execution pattern.
9. the enforcement engine according to any one of claim 6 to 8, is characterized in that, described relevant parameter also comprises:
The data dependence amount of service output data quantity, the network bandwidth, service protocol message data volume, service call activity.
10. enforcement engine according to claim 9, is characterized in that, described determining unit, also for
When determining that described service output data quantity is less than described service protocol message data volume, determine the switching not carrying out execution pattern;
When determining that described service output data quantity is more than or equal to described service protocol message data volume, or can not determine out the size of described service output data quantity and described service protocol message data volume, being defined as carrying out execution pattern switching.
CN201410088365.4A 2014-03-11 2014-03-11 Combination service execution method and execution engine Pending CN104917789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410088365.4A CN104917789A (en) 2014-03-11 2014-03-11 Combination service execution method and execution engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410088365.4A CN104917789A (en) 2014-03-11 2014-03-11 Combination service execution method and execution engine

Publications (1)

Publication Number Publication Date
CN104917789A true CN104917789A (en) 2015-09-16

Family

ID=54086493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410088365.4A Pending CN104917789A (en) 2014-03-11 2014-03-11 Combination service execution method and execution engine

Country Status (1)

Country Link
CN (1) CN104917789A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088475A (en) * 2010-11-29 2011-06-08 东北大学 System and method for executing combined service with centralized control flow and distributed data flow
US20130124708A1 (en) * 2011-11-10 2013-05-16 Electronics And Telecommunications Research Institute Method and system for adaptive composite service path management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088475A (en) * 2010-11-29 2011-06-08 东北大学 System and method for executing combined service with centralized control flow and distributed data flow
US20130124708A1 (en) * 2011-11-10 2013-05-16 Electronics And Telecommunications Research Institute Method and system for adaptive composite service path management

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘福凯: ""组合服务混合执行机制的研究与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
张明卫: ""Web Service Composition Based on QoS Rules"", 《计算机科学技术学报》 *

Similar Documents

Publication Publication Date Title
Zhou et al. mCloud: A context-aware offloading framework for heterogeneous mobile cloud
CN102469126B (en) Application scheduling system, method thereof and related device
CN113676512B (en) Network system, resource processing method and equipment
CN113760452B (en) Container scheduling method, system, equipment and storage medium
RU2636112C1 (en) Object of interface management service, function service object and method of control of elements
CN104199912B (en) A kind of method and device of task processing
KR20120066116A (en) Web service information processing method and web service compositing method and apparatus using the same
CN105812461A (en) Mobile cloud environment context awareness computing migration method
CN114818446B (en) Power service decomposition method and system facing 5G cloud edge terminal cooperation
CN103729257A (en) Distributed parallel computing method and system
CN104298602A (en) Method and device for debugging application program
CN110532044A (en) A kind of big data batch processing method, device, electronic equipment and storage medium
Liu et al. Framework for context-aware computation offloading in mobile cloud computing
CN103678364B (en) Method and device for dynamically detecting URL redirection dead loop
Perez et al. A monitoring framework for multi-site 5G platforms
CN107870852B (en) Test method and device
CN102629198B (en) On-demand remote execution method of computational logic in software application
CN103581273A (en) Service executing method, device and system for distributed system
CN106465257B (en) Wireless network control method and wireless network controller
CN115550354A (en) Data processing method and device and computer readable storage medium
Chen et al. Framework for adaptive computation offloading in IoT applications
CN104917789A (en) Combination service execution method and execution engine
CN105359489A (en) Method, device and system for scheduling resources
CN105068430A (en) Method and device for group operation of household electrical appliances
CN109661008A (en) Cloud data center high efficiency data capture method and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150916