CN102035890B - Web service concurrency control method and system based on IOT (Internet of Things)-oriented application - Google Patents

Web service concurrency control method and system based on IOT (Internet of Things)-oriented application Download PDF

Info

Publication number
CN102035890B
CN102035890B CN 201010590345 CN201010590345A CN102035890B CN 102035890 B CN102035890 B CN 102035890B CN 201010590345 CN201010590345 CN 201010590345 CN 201010590345 A CN201010590345 A CN 201010590345A CN 102035890 B CN102035890 B CN 102035890B
Authority
CN
China
Prior art keywords
service
submodule
module
service request
priority
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.)
Expired - Fee Related
Application number
CN 201010590345
Other languages
Chinese (zh)
Other versions
CN102035890A (en
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.)
Institute of Acoustics CAS
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN 201010590345 priority Critical patent/CN102035890B/en
Publication of CN102035890A publication Critical patent/CN102035890A/en
Application granted granted Critical
Publication of CN102035890B publication Critical patent/CN102035890B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a Web service concurrency control method and system based on IOT (Internet of Things)-oriented application. In the system, a concurrency control module is added behind an SOAP (Simple Object Access Protocol) Body content analysis module to realize Web service concurrency control. The concurrency control system comprises two thread pools and one concurrency control model, wherein the concurrency control model comprises a repetition and conflict detection module, a priority level setting module and an execution module; the repetition and conflict detection module comprises a pretreatment submodule, a repeated detection submodule, a filter submodule and a conflict monitoring submodule; the priority level setting module comprises a priority level setting submodule used for carrying out priority level ranking to the conflicted service request message; the execution module comprises a request message pretreatment submodule and addressing submodule, wherein the requestmessage pretreatment submodule is used for ranking the service request marked with the priority level and allocating threads; and all operations of the above modules are based on that the universal description frame of service equipment resources is defined in the SOAPBody.

Description

A kind of Web service concurrency control method and system that uses based on internet of things oriented
Technical field
The present invention relates to the Web service concurrency control method, be specifically related to a kind of Web service concurrency control method and system that uses based on internet of things oriented.。
Background technology
Internet of Things (Internet of Things, IOT) be an emerging concept, a kind of by information sensing equipment such as radio-frequency (RF) identification (RFID), infrared inductor, global positioning system, laser scanners, any article and the Internet are coupled together, carry out information exchange and communication, to realize the network of intelligent identification, location, tracking, monitoring and management.Definition by Internet of Things can find out that its core and basis remain the Internet, and different is that the user side that the Internet connects is expanded to article and article.Therefore, the various Internet of Things application services that provider provides can be disposed so that client remote access and call execution by Internet, and this will be a kind of inevitable development trend of Internet of Things Service Management.
Web service (Web Service, WS) be topmost a kind of service realization technology on the current Internet, it is described and encapsulates various software applications by WSDL (WSDL), and then the software application after utilizing Uniform Resource Identifier (URI) to encapsulation carries out mark location, (SOAP) carries out message communicating by Simple Object Access Protocol, interoperability between the service of final realization leap different geographical, different industries.
The Web service technology provides effective technical support for the Service Management on the Internet.Yet, to use towards concrete Internet of Things, Web service will present following two new features especially:
The first, the service of Internet of Things will mainly be based upon on the various sensing equipments, realize specific function by the data interaction with the bottom sensing equipment.For example, a temperature sensor just can make up a plurality of services such as intrusion detection and air-conditioning control.Therefore, along with the sensing equipment kind and the quantity that access Internet increase greatly, the Web service scale in the Internet of Things will far be more than the service scale on the current Internet, be exponential growth trend.
The second, because the height of bottom sensing equipment is interconnected, the service dependence of Internet of Things will be tightr also.In this case, same Service Source is often possibly by a plurality of service calls and operation.For example, under the park tourism scene that provides visitor's real-time video to browse, camera just belongs to public Service Source.Service S 1The whether idle service of inquiry camera can be provided, and service S 2Move operation to this camera also can be provided.
Along with the fast development of Internet of Things, the resource sharing degree in the Web service increases greatly, will propose new opportunities and challenges to the concurrent control of Web service.Web service has developed nearly ten years, and not effectively concurrent control research by investigation and analysis, may have the reason of two aspects so far.On the one hand, Web service request soap protocol is based upon on the http protocol basis, under situation occurs not frequently resource contention, only relies on the concurrent control that the ripe concurrent control of HTTP solves Web service, can satisfy primary demand.On the other hand, Web service is the new theory that proposes towards general fit calculation, under the background that lacks concrete application demand driving, in the face of complicated and diversified service represents and the resource portrayal that it is unpractical designing a general concurrency control method.Therefore, in the Internet of Things field, for the new Web service concurrency control method of service equipment resource proposition of Internet of Things, can say, existing strong demand drives again concrete implementation goal, is that the inevitable key of develop Web service studies a question on the Internet of Things.
At present, IBM, Microsoft, UserLand and the DevelopMentor common proposition in 1998 was mainly adopted in the Web service request, and submitted to the soap protocol of World Wide Web Consortium (W3C) in 2000, and current latest edition is SOAP1.2.SOAP is the agreement that is based upon a light weight on the XML language basis, carries out structurized information exchange in order to standard under a distributed environment.Article one, soap message is exactly a common XML document, comprises Envelope, Header, Body and four basic elements of Fault, carries (as shown in Figure 1) by HTTP.For the Web service request of carrying on HTTP, corresponding concurrent control mechanism as shown in Figure 2.
After carrying the HTTP message arrival Web server of Web service request, thread pool distributes thread in order to process HTTP message.At first resolve the soap message that obtains carrying through HTTP, further carrying out XML resolves, obtain the service request content that SOAP Body comprises, processed by corresponding Web service, response message is encapsulated and returns to service request terminal through above-mentioned inverse process.At last, thread discharges this Web service request example and puts back to thread pool and carry out the Web service request with circulation.The concurrent control core of above Web service is: thread pool is safeguarded the wait thread of quantification, and whenever there being the Web service request to arrive, it is request service that thread pool just distributes a thread.In order to move these threads, processor arranges some processor times for each separate threads, and processor provides timeslice with the order alternating mode to thread, realizes the concurrent processing of multithreading.The advantage of thread pool is at the beginning of the server operation a plurality of threads of disposable establishment and recycles, with the thread creation cost shared on a plurality of tasks, avoided frequent establishment, destroyed the huge resource overhead that thread brings, and created too much thread and exhaust system resource.
As shown in Figure 2, Web server distributes thread to respond when receiving service request, and concrete service request content is to obtain after through HTTP and XML parsing.Traditional Web service concurrency control method defective just is: the service request content that encapsulates in the HTTP message is not considered in the distribution of thread, and a plurality of HTTP requests are assigned with independently thread and carry out separately.If between the service request that current a plurality of HTTP request encapsulation are identical or the service request arranged dividing of conflict or execution priority, might cause thread waste, resource contention and wrong generation.Still take tourism scene in park above-mentioned as example, user A is with request service S 1Inquire whether camera is idle, and user B is with request service S 2Come the dollying head to check the sight spot.When the request of user A and user B arrived simultaneously, present Web service concurrency control method was to distribute two separate threads and carry out at random the Web service response.But, these two service requests exist priority minute, the request that the request of user B should priority user A is carried out, camera is occupied during solicit operation to avoid user A to inquire the camera free time.
Summary of the invention
The object of the invention is to, cause thread waste, resource contention and the wrong problems such as generation for overcoming traditional Web service concurrency control method, thereby a kind of Web service concurrency control method and system that uses based on internet of things oriented is provided.
A kind of Web service concurrent control system of using based on internet of things oriented of the present invention, this system increases the concurrent control that concurrency model is realized Web service after SOAPBody Context resolution module, described concurrent control system, comprise: two thread pools and a concurrency model, this concurrency model comprises: repeat and collision detection module, priority level initializing module and Executive Module;
Described repetition and collision detection module comprise: the preliminary treatment submodule is used for the service request information of resolving is carried out mathematical notation; The duplicate detection submodule is used for that the mathematical notation of resolving message is carried out repeatability and detects; The filter submodule is used for the service request information of the repetition that Filter Examination obtains; With the conflict monitoring submodule, with the again conflict property detection of all service request information after filtering.Described priority level initializing module comprises: the priority level initializing submodule is used for the service request information that has conflict is carried out prioritization.Described Executive Module comprises: request message preliminary treatment submodule is used for service request to priority-labeled and sorts and distribute thread; The addressing submodule uses this submodule to carry out service request by message transmission module.
Wherein, all operations of above-mentioned module is unified describing framework based on defined the service equipment resource in SOAP Body, and this framework is as follows:
Table 1, the definition of service equipment Resource Properties
Attribute-name Explanation
ResourceID The service equipment resource ID
ResourceType The service equipment resource type
ResourceList Belong to the device resource tabulation of a service together
ResourceURL The reference address of service under the device resource
OperationName The action name of service equipment resource
OperationType The action type of service equipment resource
OperationInput The input variable of service equipment resource operation
OperationOutput The output variable of service equipment resource operation
Technique scheme, described priority level initializing module also comprises: current scene is obtained submodule and regular submodule, is used to the priority algorithm of priority level initializing submodule that information is provided.
The present invention also provides a kind of Web service concurrency control method of using based on internet of things oriented, the method is utilized a kind of Web service concurrent control system of using based on internet of things oriented, described concurrent control system, comprise: two thread pools and a concurrency model, this concurrency model comprises: repeat and collision detection module, priority level initializing module and Executive Module; Described repetition and collision detection module comprise: the preliminary treatment submodule is used for the service request information of resolving is carried out mathematical notation; The duplicate detection submodule is used for that the mathematical notation of resolving message is carried out repeatability and detects; The filter submodule is used for the service request information of the repetition that Filter Examination obtains; With the conflict monitoring submodule, with the again conflict property detection of all service request information after filtering; Described priority level initializing module comprises: the priority level initializing submodule is used for the service request information that has conflict is carried out prioritization; Described Executive Module comprises: request message preliminary treatment submodule is used for service request to priority-labeled and sorts and distribute thread; The addressing submodule uses this submodule to carry out service request by message transmission module; Wherein, all operations of above-mentioned module is unified describing framework based on defined the service equipment resource in SOAP Body;
Described method comprises following steps:
(5) behind the request message in parsing SOAP Body, message is sent to concurrent control module, and previous thread discharged Web service request example and put back to the first thread pool this moment;
(6) concurrent control module receives the Web service request message that multithreading is sent here, delivers to repetition and collision detection module, and the repeatability that this module is carried out service request successively according to repeating algorithm and the collision detection algorithm of setting detects and the detection of conflict property;
(7) for detected service request with resource contention, the priority level initializing module is according to priority algorithm Optimized Service request content and the execution sequence thereof set;
(8) give Executive Module with Optimized Service request content and execution sequence thereof, the request message preliminary treatment submodule of this module distributes thread by the second thread pool, finishes respective service request.
Technique scheme, described repeating algorithm step is: judge by relatively reference address URL, OperationName and the OperationInput of two service requests, if all identically represent that then two service requests are repetitions; If have a difference at least, then two service requests are different; The step of described collision detection algorithm is: at first service request exists the precondition of conflict to be I.e. two service request R 1, R 2Be associated with identical service equipment resource; Secondly, service request R 1, R 2The action type of its related same services device resource has been determined the existence of conflict.
Technique scheme, the computing formula of described priority algorithm is:
p=αP static+βP dynamic,(α+β=1),
α wherein, β are respectively the weight that whole priority is calculated of Static and dynamic priority.
Wherein, described static priority computing formula can be expressed as:
P static=pX+qY,(p+q=1)
Wherein, p represents the weight of regular predefine numerical priority value, and q represents that the time of implementation is to the Determining Weights of static priority;
Described dynamic priority algorithm step is:
System produces one group of Waiting Time Sequence RW={1 from small to large ord by constantly updating the stand-by period of service, and 2 ... M}, RW upgrades every fixed intervals; Suppose conflict service request R SSequence number in the RW sequence is that (1≤Z≤M), then the dynamic priority computing formula is Z: P Dynamic=Z
Wherein, 1≤S≤M.
The invention has the advantages that, the service request content that encapsulates in the HTTP message is not considered in the distribution that has overcome traditional Web service concurrency control method thread, the thread waste, resource contention and the wrong generation that cause when conflicting are arranged between the service request that causes, improved the resource utilization of Internet of things system.
Description of drawings
Fig. 1 is the Web service request of carrying at present on HTTP;
Fig. 2 is traditional Web service Concurrent Control Flow journey;
Fig. 3 is the schematic flow sheet of the concurrent control principle of service of the present invention;
Fig. 4 is concurrent control module structural representation of the present invention.
Embodiment
The invention will be further described below in conjunction with drawings and the specific embodiments.
On the concurrent control of traditional Web service basis, the present invention will be after the content that parses SOAP Body, and the newly-increased corresponding concurrency model of design is realized the Web service concurrency control method.
Describe based on the service equipment resource of SOAP is unified
The present invention at first will start with from soap protocol, define the service equipment resource and unify describing framework in SOAP Body, thereby calculate and concurrent control lays the foundation for next step priority.It is as shown in table 1,
Table 1, the definition of service equipment Resource Properties
Attribute-name Explanation
ResourceID The service equipment resource ID
ResourceType The service equipment resource type
ResourceList Belong to the device resource tabulation of a service together
ResourceURL The reference address of service under the device resource
OperationName The action name of service equipment resource
OperationType The action type of service equipment resource
OperationInput The input variable of service equipment resource operation
OperationOutput The output variable of service equipment resource operation
We adopt above-mentioned eight attributes that the service equipment resource is described.Wherein, ResourceURL, OperationName and OperationInput, OperationOutput take from SOAP itself, have defined in addition ResourceID, ResourceType, ResourceList and four attributes of OperationType.The Internet of Things Web service relies on the bottom sensing equipment, therefore need unique ResourceID to come the identification service device resource, and the height of sensing equipment is interconnected, and same transducer may be called by a plurality of Web services, and different sensors equipment also can collaborative work be realized same Web service.We adopt ResourceList to represent a plurality of service equipment resources that Web service is associated, are set that is comprised of each service equipment resource ResourceID; ResourceType indicates the type of service equipment resource, such as camera, humidifier etc.Obviously, ResourceType can corresponding a plurality of ResourceID; OperationType indicates the action type that can carry out the service equipment resource, such as inquiry, operation; OperationInput and OperationOutput are respectively the input and output of service equipment resource operation, obtain from service IO.For example, as follows, the inquiry camera whether can portray according to the definition of service equipment Resource Properties is unified by idle service request.
Can find out, describe because SOAP is based on XML, therefore as long as increase dissection process, self-defining device attribute label<ResourceList〉and<Operation etc. can embed easily SOAP.
The service concurrency model
As shown in Figure 3, after parse SOAP Body content, we have set up the concurrent control that a concurrent control module realizes Web service.
Different from traditional Web service Concurrent Control Flow journey, two thread pools are safeguarded in this concurrent control.Behind the request message in parsing SOAP Body, message namely is sent to concurrent control module, and previous thread discharged Web service request example and put back to the first thread pool this moment.Concurrent control module receives the Web service request message that multithreading is sent here, carry out repetition and the collision detection of request service device resource according to certain strategy, Optimized Service request content and execution sequence thereof distribute thread to finish respective service request by Executive Module by the second thread pool.By concurrent control module, thread waste, resource contention and wrong generation have been avoided.Concurrent control module is inner to be formed as shown in Figure 4:
Concurrent control module mainly comprises repetition and collision detection, priority level initializing and Executive Module.The message sink module is responsible for receiving the SOAP service request information of parsing, and request message is delivered to pretreatment module.Pretreatment module is used for the information that parsing obtains is carried out mathematical notation.At first, utilize the duplicate detection method to carry out duplicate detection and use filter to filter out the service request of repetition and deliver to the collision detection that the collision detection module is carried out service request.If there is conflict, need to give different priority to the service request of conflict, the setting of priority relies on predefined rule and current scene.The request message pretreatment module sorts to the request of priority-labeled and distributes thread, further uses addressed module to carry out service request by message transmission module.
Repeat and collision detection
The starting point of the concurrent control of Web service is to avoid the repetition of asking and conflict.Repeat if service request exists, then can use identical thread to finish the respective request content; If there is conflict in service request, then need to give different priority to the service request thread of conflict.The below at first will repeat and collision detection in the service equipment resource used carry out corresponding mathematical definition and description, then provide concrete detection computations method.
Server will be by resolving the value that obtains each specific object after receiving the SOAP request.The device resource tabulation ResourceList of S service may be defined as RL (S)={ RI 1, RI 2..., RI N, RI wherein iBe device numbering, and the ∈ natural number set N.The equipment operating type of device resource RI may be defined as OT (RI)={ OT 1..., OT p.OT wherein 1The query manipulation of definition is that client sends the response of asking and needing the waiting for server end, and OT 2Then request is rear not to need server end to return other information except confirmation for client sends in the operation of definition.Because that supports at present only has inquiry (query) and operates (do) two kinds of action types, so OT 1=' query ', OT 2=' do ', p=1,2.The reference address URL of S service may be defined as URL (S)=l, and wherein l is string variable.In like manner, the action name OperationName of service equipment resource RI may be defined as ON (RI)=p, and wherein p is string variable.The input OperationInput of service equipment resource operation may be defined as OI (RI)={ OI 1, OI 2..., OI M, OI wherein iBe input variable.
The duplicate detection of service request need to be by relatively reference address URL, OperationName and the OperationInput of two service requests judge, if all identically represent that then two service requests are repetitions, if have a difference at least, then two service requests are different.Suppose to have two service request R 1And R 2Arrive simultaneously, can obtain R by resolving us 1The service access address be R 1.URL (S 1), the action name OperationName of service equipment resource is R 1ON (RI 1), the operation input OperationInput of service equipment resource is R 1OI (RI 1), same R 2The service access address be R 2URL (S 2), OperationName is R 2ON (RI 2), OperationInput is R 2OI (RI 2), judge that then the conditional expression that service request repeats is:
R 1·URL(S 1)=R 2·URL(S 2)∧R 1·ON(RI 1)=R 2·ON(RI 2)∧R 1·OI(RI 1)=R 2·OI(RI 2)
Whether the device resource that the collision detection of service request not only relates to two service request associations has repetition, and relies on service request to the action type of device resource.Same hypothesis has two service request R 1, R 2, related device resource tabulation is expressed as respectively R 1RL (S 1), R 2RL (S 2), at first service request exists the precondition of conflict to be
Figure BSA00000387227500081
I.e. two service request R 1, R 2Be associated with identical service equipment resource, therefore have the possibility of conflict.Secondly, service request R 1, R 2To the different operating type decided of its related same services device resource conflict whether exist.Basis for estimation is as follows: if R 1, R 2A certain identical device resource operation type to its association is all inquiry, does not then have conflict; If R 1(R 2) be inquiry, R 2(R 1) for operating or R 1, R 2Be all operation and then have conflict, Rule of judgment is: if (! (R 1OT (RI iThe R of)== 2OT (RI i{ the OT of)== 1)) then conflict=true, wherein RI i∈ RL (S).
Priority is calculated and service execution
For the situation that detects the service request conflict, need to carry out priority to it and calculate, and give different priority to the service request of conflict.Different from other priority computational methods is, this method medium priority calculates by static priority calculating and dynamic priority calculating two parts and forms, wherein the calculating of static priority has considered again rule and two factors of scene, thereby has realized context-aware and the two large featured functions of being association of activity and inertia.
Static priority refer to the calculated value of priority will be not temporal evolution and change the main priority of considering to utilize predefined rule and the request of scene calculation services.We adopt eca rule (event-condition-action) to come the in advance priority of specified portions potentially conflicting, and wherein the E portrayal triggers this regular collision event, the service request that comprises in the C portrayal rule condition, and A sets the priority of conflict service request.This rule description grammer and sample are as shown in the table.
When two service request R are arranged 1, R 2Arrive, and R 1, R 2All to RI 1The camera of expression operates, by collision detection service request R as can be known 1, R 2Conflict, thus triggering rule r1.Rule condition partly represents to work as R 1Action name be " turn to east ", and R 2Action name be " turn to south ", and learn that by the current scene acquisition module orientation of current camera is north, consider that for reducing the camera operation at the action part of rule, we set R 1Priority be 10, be higher than R 2Priority, priority value ∈ natural number set N wherein.In fact, in Web service, certain service request may be under a scene priority lower, but priority is the highest under another scene.Therefore, in rule definition, introduce current scene so that the setting of priority is more accurate.
The front is mentioned, and the service equipment resource operation type of supporting at present only has inquiry (query) and operates (do) two kinds, the collision detection foundation also be that different service requests are to the action type of service equipment resource.Suppose to have two service request R 1, R 2, for a kind of situation of service request conflict, namely to the action type R of service equipment resource 1(R 2) be inquiry, R 2(R 1) for operation, be expressed as: R 1OT (RI)=={ OT 1, and R 2OT (RI)=={ OT 2, we utilize the priority of regular setting operation forever to be higher than the priority of inquiry, i.e. do.Priority>query.Priority; For the another kind of situation of service request conflict, namely to the action type R of service equipment resource 1, R 2Be operation, be expressed as: R 1OT (RI)==R 2OT (RI)=={ OT 2, the calculating of priority only service regeulations is inadequate, also needs Integrated Static priority and dynamic priority.
From rule, we can directly obtain predefined priority value, are expressed as X.Because eca rule and scene are predefined, therefore can't consider that the service execution time is on the impact of static priority.If the service request R of one group of conflict is arranged 1, R 2..., R N, sort from long to short by the time of implementation, can obtain one group of sequence RT={1,2 ... N}.Suppose conflict service request R S(1≤S≤N) sequence number in the RT sequence is that (1≤Y≤N), then the static priority computing formula can be expressed as Y: P Static=pX+qY, (p+q=1).Wherein, p represents the weight of regular predefine numerical priority value, and q represents that the time of implementation is to the Determining Weights of static priority.
Dynamic priority refer to priority with service request in formation stand-by period and dynamic change namely increases priority with the stand-by period and promotes gradually.System produces one group of Waiting Time Sequence RW={1 from small to large ord by constantly updating the stand-by period of service, and 2 ... M}., different from the time of implementation sequence is that RW upgrades every fixed intervals.Suppose conflict service request R S(1≤S≤M) sequence number in the RW sequence is that (1≤Z≤M), then the dynamic priority computing formula is Z: P Dynamic=Z.
Consider Static and dynamic priority, we obtain unified priority computing formula:
P=α P Static+ β P Dynamic, (alpha+beta=1), α wherein, β are respectively the weight that whole priority is calculated of Static and dynamic priority.
Service request exists repetition and the two kinds of situations of conflicting.Concurrency model need to be set different strategies to both of these case.Situation for the service request repetition, can reduce unnecessary thread use by sharing process, specifically by filter the service request that repeats is converted into a service request, then the second thread pool distributes thread, after being finished response results is returned to each source address in the duplicate services request group.For the situation of service request conflict, according to the priority computing formula that we propose, give different priorities to the service request of conflict, according to priority sequencing is carried out.In a word, concurrent control module at first will sort to it after receiving a series of service requests.Sort integral body according to the principle of serving first first, but for the service request that has conflict according to the priority sequentially.Service request is put into the execution formation successively afterwards, distributes the thread execution service request by addressed module by the second thread pool.
Need to prove, embodiment of the present invention of more than introducing and and unrestricted.It will be understood by those of skill in the art that any modification to technical solution of the present invention or be equal to substitute the spirit and scope that do not break away from technical solution of the present invention, it all should be encompassed in the claim scope of the present invention.

Claims (8)

1. Web service concurrent control system of using based on internet of things oriented, this system increases the concurrent control that concurrency model is realized Web service after SOAP Body Context resolution module, described concurrent control system, comprise: two thread pools and a concurrency model, behind the request message in parsing SOAP Body, message is sent to concurrency model, previous thread discharged web services request example and put back to the first thread pool this moment, and this concurrency model comprises: repeat and collision detection module, priority level initializing module and Executive Module;
Described repetition and collision detection module comprise:
The preliminary treatment submodule is used for the service request information of resolving is carried out mathematical notation;
The duplicate detection submodule is used for that the mathematical notation of resolving message is carried out repeatability and detects;
The filter submodule is used for the service request information of the repetition that Filter Examination obtains; With
The conflict monitoring submodule is with the again conflict property detection of all service request information after filtering;
Described priority level initializing module comprises: the priority level initializing submodule is used for the service request information that has conflict is carried out prioritization;
Described Executive Module comprises:
Request message preliminary treatment submodule is used for service request to priority-labeled and sorts and distribute thread by the second thread pool;
The addressing submodule uses this submodule to carry out service request by message transmission module;
Wherein, all operations of above-mentioned module and submodule is unified describing framework based on defined the service equipment resource in SOAP Body, and this framework is as follows:
The definition of table 1 service equipment Resource Properties
Attribute-name Explanation ResourceID The service equipment resource ID ResourceType The service equipment resource type ResourceList Belong to the device resource tabulation of a service together ResourceURL The reference address of service under the device resource OperationName The action name of service equipment resource OperationType The action type of service equipment resource OperationInput The input variable of service equipment resource operation OperationOutput The output variable of service equipment resource operation
2. the Web service concurrent control system of using based on internet of things oriented according to claim 1, it is characterized in that, described priority level initializing module also comprises: current scene is obtained submodule and regular submodule, is used to the priority algorithm of priority level initializing submodule that information is provided.
3. Web service concurrency control method of using based on internet of things oriented, the method is utilized a kind of Web service concurrent control system of using based on internet of things oriented, described concurrent control system, comprise: two thread pools and a concurrency model, this concurrency model comprises: repeat and collision detection module, priority level initializing module and Executive Module; Described repetition and collision detection module comprise: the preliminary treatment submodule is used for the service request information of resolving is carried out mathematical notation; The duplicate detection submodule is used for that the mathematical notation of resolving message is carried out repeatability and detects; The filter submodule is used for the service request information of the repetition that Filter Examination obtains; With the conflict monitoring submodule, with the again conflict property detection of all service request information after filtering; Described priority level initializing module comprises: the priority level initializing submodule is used for the service request information that has conflict is carried out prioritization; Described Executive Module comprises: request message preliminary treatment submodule is used for service request to priority-labeled and sorts and distribute thread; The addressing submodule uses this submodule to carry out service request by message transmission module; Wherein, all operations of above-mentioned module is unified describing framework based on defined the service equipment resource in SOAP Body; This framework is as follows:
The definition of table 1 service equipment Resource Properties
Attribute-name Explanation ResourceID The service equipment resource ID ResourceType The service equipment resource type ResourceList Belong to the device resource tabulation of a service together ResourceURL The reference address of service under the device resource OperationName The action name of service equipment resource OperationType The action type of service equipment resource OperationInput The input variable of service equipment resource operation OperationOutput The output variable of service equipment resource operation
Described method comprises following steps:
(1) behind the request message in parsing SOAP Body, message is sent to concurrent control module, and previous thread discharged Web service request example and put back to the first thread pool this moment;
(2) concurrent control module receives the Web service request message that multithreading is sent here, delivers to repetition and collision detection module, and the repeatability that this module is carried out service request successively according to repeating algorithm and the collision detection algorithm of setting detects and the detection of conflict property;
(3) for detected service request with resource contention, the priority level initializing module is according to priority algorithm Optimized Service request content and the execution sequence thereof set;
(4) give Executive Module with Optimized Service request content and execution sequence thereof, the request message preliminary treatment submodule of this module distributes thread by the second thread pool, finishes respective service request.
4. the Web service concurrency control method of using based on internet of things oriented according to claim 3, it is characterized in that, described repeating algorithm step is: judge by relatively reference address URL, OperationName and the OperationInput of two service requests, if all identically represent that then two service requests are repetitions; If have a difference at least, then two service requests are different.
5. the Web service concurrency control method of using based on internet of things oriented according to claim 3 is characterized in that the step of described collision detection algorithm is: at first to have the precondition of conflict be RL to service request
Figure FDA00002182646100031
I.e. two service request R1, R2 is associated with identical service equipment resource; Secondly, service request R1, R2 have determined the existence of conflict to the action type of its related same services device resource.
6. the Web service concurrency control method of using based on internet of things oriented according to claim 3 is characterized in that the computing formula of described priority algorithm is:
p=αP static+βP dynamic
α wherein, β are respectively the weight that whole priority is calculated of Static and dynamic priority, and alpha+beta=1.
7. the Web service concurrency control method of using based on internet of things oriented according to claim 6 is characterized in that described static priority computing formula can be expressed as:
P static=pX+qY,
Wherein, p represents the weight of regular predefine numerical priority value, and q represents the time of implementation to the Determining Weights of static priority, p+q=1.
8. the Web service concurrency control method of using based on internet of things oriented according to claim 6 is characterized in that described dynamic priority algorithm step is:
System produces one group of Waiting Time Sequence RW={1 from small to large ord by constantly updating the stand-by period of service, and 2 ... M}, RW upgrades every fixed intervals; Suppose that the sequence number of conflict service request RS in the RW sequence is Z, then the dynamic priority computing formula is: P Dynamic=Z, wherein, 1≤S≤M, 1≤Z≤M.
CN 201010590345 2010-12-08 2010-12-08 Web service concurrency control method and system based on IOT (Internet of Things)-oriented application Expired - Fee Related CN102035890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010590345 CN102035890B (en) 2010-12-08 2010-12-08 Web service concurrency control method and system based on IOT (Internet of Things)-oriented application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010590345 CN102035890B (en) 2010-12-08 2010-12-08 Web service concurrency control method and system based on IOT (Internet of Things)-oriented application

Publications (2)

Publication Number Publication Date
CN102035890A CN102035890A (en) 2011-04-27
CN102035890B true CN102035890B (en) 2013-05-29

Family

ID=43888206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010590345 Expired - Fee Related CN102035890B (en) 2010-12-08 2010-12-08 Web service concurrency control method and system based on IOT (Internet of Things)-oriented application

Country Status (1)

Country Link
CN (1) CN102035890B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107317839A (en) * 2012-07-04 2017-11-03 中兴通讯股份有限公司 Internet of things information processing method, apparatus and system
CN103685326A (en) * 2012-08-31 2014-03-26 盐城睿泰数字科技有限公司 WEB concurrent data transmission method and WEB application system
CN103514031B (en) * 2012-11-26 2017-06-06 Tcl集团股份有限公司 The processing method and system of file name conflict in multi-terminal concurrent operation
CN103019859B (en) * 2012-12-05 2018-02-16 北京普泽创智数据技术有限公司 A kind of method and system to service request scheduling
CN103780629B (en) * 2014-02-14 2017-01-18 北京工业大学 Concurrent access request incidence relation-oriented access control harmonizing method and device
CN103916891B (en) * 2014-03-27 2017-02-08 桂林电子科技大学 Heterogeneous WEB service gateway realizing method and device
CN106453472A (en) * 2016-07-15 2017-02-22 孙宝石 Multi-communication mode internet of things electronic product-based high-availability realization method and system
CN106453473A (en) * 2016-07-15 2017-02-22 孙宝石 Method and system of solving internet of things multi-message channel control message conflict
CN108039960B (en) * 2017-11-30 2021-04-20 海信集团有限公司 Configuration information issuing method and server
US11218993B2 (en) * 2018-06-29 2022-01-04 Qualcomm Incorporated Service request prioritization for intra-UE service multiplexing
CN109150957A (en) * 2018-06-29 2019-01-04 中译语通科技股份有限公司 A kind of micro services concurrent control system
CN109101334A (en) * 2018-06-29 2018-12-28 中译语通科技股份有限公司 A kind of micro services concurrency control method towards Zuul gateway
CN111199475B (en) * 2019-12-20 2024-03-19 上海淇玥信息技术有限公司 Method and device for regulating quota, server and computer readable storage medium
CN113064666B (en) * 2021-03-18 2022-03-29 北京大学 Internet of things equipment scheduling conflict detection method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340368A (en) * 2008-08-12 2009-01-07 北京航空航天大学 Web service distributed management system and method based on WSDM
CN101465749A (en) * 2008-12-29 2009-06-24 武汉大学 Method for building interlocution service based on Web Service combination

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340368A (en) * 2008-08-12 2009-01-07 北京航空航天大学 Web service distributed management system and method based on WSDM
CN101465749A (en) * 2008-12-29 2009-06-24 武汉大学 Method for building interlocution service based on Web Service combination

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
Application-aware interface for SOAP communication in web service;WANG Hao等;《Cluster Computing,2006 IEEE International Conference on Digital Object Identifier》;20060928;1-8 *
Kang DongHyun, Han Saeyoung, Yoo SeoHee等.Prediction-based dynamic thread pool scheme for efficient.《CIT Workshops 2008.IEEE 8th International Conference on Digital Object Identifier》.2008,159-164.
Prediction-based dynamic thread pool scheme for efficient;Kang DongHyun, Han Saeyoung, Yoo SeoHee等;《CIT Workshops 2008.IEEE 8th International Conference on Digital Object Identifier》;20080711;159-164 *
WANG Hao等.Application-aware interface for SOAP communication in web service.《Cluster Computing,2006 IEEE International Conference on Digital Object Identifier》.2006,1-8.
童恩栋等.面向传感网的服务构建与并发控制.《电子科技大学学报》.2011,第40卷(第3期),322-332.
面向传感网的服务构建与并发控制;童恩栋等;《电子科技大学学报》;20110531;第40卷(第3期);322-332 *

Also Published As

Publication number Publication date
CN102035890A (en) 2011-04-27

Similar Documents

Publication Publication Date Title
CN102035890B (en) Web service concurrency control method and system based on IOT (Internet of Things)-oriented application
CN102236581B (en) Mapping reduction method and system thereof for data center
CN111562972A (en) Ubiquitous operating system for crowd sensing
CN103718171B (en) Optimize WEB with user's history to crawl
CN109101334A (en) A kind of micro services concurrency control method towards Zuul gateway
CN107038071B (en) Storm task flexible scheduling algorithm based on data flow prediction
CN109840298B (en) Multi-information-source acquisition method and system for large-scale network data
CN101841565A (en) Database cluster system load balancing method and database cluster system
CN109150957A (en) A kind of micro services concurrent control system
CA2792154A1 (en) Bottom-up optimized search system and method
CN103067486B (en) Based on the large data processing method of PaaS platform
WO2007108874A1 (en) Declarations for transformations within service sequences
CN103019859A (en) Method and system for calling service request
CN102497419B (en) ESB (Enterprise Service Bus) task scheduling method orienting to large-scale requests and scheduling system
CN102760073B (en) Method, system and device for scheduling task
CN101877001A (en) Semantic description method for remote-sensing information processing service based on domain ontology
CN107948005B (en) Internet of things protocol updating method and device
CN102413114A (en) Combining-oriented semantic web service discovery method
CN1929463B (en) Object request agent, method for processing message
CN105516271A (en) Business processing system, business processing method and business processing apparatus
CN104168174A (en) Method and apparatus for information transmission
CN106919607A (en) A kind of data access method, apparatus and system
US11228537B2 (en) Resource processing method and system, storage medium and electronic device
CN1200382C (en) Data updating method and system
CN103581349A (en) Domain name resolution method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130529

Termination date: 20151208

EXPY Termination of patent right or utility model