CN104821958B - Electricity consumption data packet interactive interface method based on WebService - Google Patents
Electricity consumption data packet interactive interface method based on WebService Download PDFInfo
- Publication number
- CN104821958B CN104821958B CN201510181075.9A CN201510181075A CN104821958B CN 104821958 B CN104821958 B CN 104821958B CN 201510181075 A CN201510181075 A CN 201510181075A CN 104821958 B CN104821958 B CN 104821958B
- Authority
- CN
- China
- Prior art keywords
- data
- task
- subtask
- electricity consumption
- webservice
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005611 electricity Effects 0.000 title claims abstract description 45
- 230000002452 interceptive effect Effects 0.000 title claims abstract description 40
- 238000000034 method Methods 0.000 title claims abstract description 18
- 230000003993 interaction Effects 0.000 claims abstract description 17
- 230000004044 response Effects 0.000 claims description 8
- 241001269238 Data Species 0.000 claims description 3
- 230000000694 effects Effects 0.000 claims 1
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5038—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
- G06Q50/06—Electricity, gas or water supply
Abstract
The invention discloses a kind of electricity consumption data based on WebService to be grouped interactive interface method, comprise the following steps, the data-interface service for the WebService that electricity consumption acquisition system provides, it is grouped and generates priority, and unique interaction data task ID number is randomly assigned, the task ID number of distribution is returned into destination end;The data volume that data-interface service interacts on demand is grouped and the priority of task is ranked up, and generates subtask ID number to every group task;In order after the completion of the corresponding data preparation in progress subtask, corresponding subtask ID number is returned to destination end by data-interface service, destination end quickly obtains ready data according to subtask ID number, the method of the present invention solves in WebService real-time, interactives that according to priority strategy is grouped sequence according to the data volume of request and specific data message, and respond in order, realize packet asynchronous interactive, have a good application prospect.
Description
Technical field
The present invention relates to electricity consumption acquisition system technical field, and in particular to a kind of electricity consumption data based on WebService point
Group interactive interface method.
Background technology
Since WebService has the technical characterstics such as cross-platform, distributed, loose coupling, in inter-system data interaction
To more and more extensive application.At present, the information interaction approach between most of heterogeneous system is all using WebService+ middle databases
Mode, still, since interim stock is not cleared up in junk data in time, frequency accesses and statistics causes database performance to decline
And the problems such as operation causes lock table is updated, so not used in electricity consumption acquisition system and other operation system data interactions
The mode of WebService+ middle databases, simply directly carries out data interaction using Webservice modes, but Webservice
What is transmitted in a network is message request and the response based on XML file, first if not using middle database largely to be counted
According to interactive memory carrier, disposable large batch of data transfer can make network become bottleneck, be easy to cause asking for data packetloss
Topic;Secondly when carrying out data preparation, it is also desirable to which taking much includes the server-side resource of time, performance etc., and active demand is led to
Cross algorithm introducing and program optimization lifting electricity consumption acquisition system and external system data interaction function.
According to above-mentioned introduction, the shortcomings that above prior art, is:In the case where cancelling middle database, use
WebService modes transmitted data amount cannot be too big, asks to have an impact server-side performance during high-volume data, request end without
Method effectively monitors data transmission procedure, while business demand causes batch query and the data volume interacted with external system non-
Chang great, suppresses Webservice modes and carries out data interaction.
The content of the invention
Technical problem solved by the invention is in the case where cancelling middle database, and number is transmitted using WebService modes
According to the problem of.The packet interactive interface method of the electricity consumption data based on WebService of the present invention, the base in electricity consumption acquisition system
It is real by WebService in Nagle grouping strategies algorithm and short job priority, highest response ratio algorithm of operation and external system
The efficient asynchronous interactive of high-volume data between existing system, solves to transmit asking for big data quantity by WebService modes well
Topic, has applications well prospect.
In order to achieve the above object, the technical solution adopted in the present invention is:
A kind of electricity consumption data packet interactive interface method based on WebService, it is characterised in that:Comprise the following steps,
Step(1), the data-interface service of the WebService provided by electricity consumption acquisition system, receives destination end and initiates
Electricity consumption data interactive task, foreground or background request class of the data-interface service according to the electricity consumption data interactive task of reception
Not, service inquiry demand sets task grade, and is randomly assigned unique electricity consumption data interactive task ID number, and appointing distribution
The electricity consumption data interactive task ID number of business returns to destination end;
Step(2), the highest task of task grade is analyzed, the number by electricity consumption acquisition system to WebService
Subpackage is carried out according to by the byte number of setting, controls the number and flow of network interaction;At the same time according to the request on foreground or backstage,
The data volume size of service inquiry demand, sets the priority of service interaction, and data volume interactive on demand is according to Nagle points
Group policy algorithm is grouped, and generates some sub- packetized datas and corresponding subtask ID number, electricity consumption acquisition system is according to short
Job priority and highest response ratio algorithm of operation divide subtask, and the high priority of subtask of grade carries out data preparation, enters
Message queue prepares data interaction;
Step(3), after the completion of the corresponding data preparation in the highest subtask of grade, the data-interface clothes of WebService
Corresponding subtask ID number is returned to destination end by business, and destination end quickly obtains ready data according to subtask ID number;
Step(4)The data-interface service of WebService continues the data preparation of the highest subtask of subsequent levels, returns
Return step(3), until destination end obtains all packet ready data in subtask, execution step(5);
Step(5), return to step(2), the highest task of subsequent levels is analyzed.
The foregoing packet interactive interface method of the electricity consumption data based on WebService, it is characterised in that:Step(1), number
Set and appoint according to the foreground of the electricity consumption data interactive task of reception or background request classification, service inquiry demand according to interface service
Business grade, foreground request include:Real time terminal facility registration and cancel register;Service inquiry demand includes:To terminal electric energy meter
Information, meter reading data, the background query of event data;Background request includes:Timed task end of scan facility registration situation into
Row registration;Priority of task grade is respectively that foreground asks from high to low according to business significance level and the angle for requiring to respond timeliness
Ask, service inquiry, background request.
The foregoing packet interactive interface method of the electricity consumption data based on WebService, it is characterised in that:Step(1)It is described
Task ID number, for describing the unique mark of mission bit stream body, mission bit stream body is safeguarded by task ID number, task
ID number is unduplicated.
The foregoing packet interactive interface method of the electricity consumption data based on WebService, it is characterised in that:Step(2)It is described
Subtask ID number, for describing the unique mark of subtask imformosome, sub- mission bit stream body is carried out by subtask ID number
Safeguard, subtask ID number is unduplicated, and is subordinated to corresponding task ID number.
The beneficial effects of the invention are as follows:The packet interactive interface method of the electricity consumption data based on WebService of the present invention,
It is with exterior based on Nagle grouping strategies algorithm and short job priority, highest response ratio algorithm of operation in electricity consumption acquisition system
System realizes the efficient asynchronous interactive of high-volume data between system by WebService, realizes packet asynchronous interactive, well solution
The problem of certainly transmitting big data quantity by WebService modes, has applications well prospect.
Brief description of the drawings
Fig. 1 is the flow chart figure of the packet interactive interface method of the electricity consumption data based on WebService of the present invention.
Embodiment
Below in conjunction with Figure of description, the present invention is further illustrated.
The packet interactive interface method of the electricity consumption data based on WebService of the present invention, is based in electricity consumption acquisition system
Nagle grouping strategies algorithm and short job priority, highest response ratio algorithm of operation and external system are realized by WebService
The efficient asynchronous interactive of high-volume data between system, realizes packet asynchronous interactive, solves to pass through WebService modes well
The problem of transmitting big data quantity, as shown in Figure 1, following steps are specifically included,
Step(1), the data-interface service of the WebService provided by electricity consumption acquisition system, receives destination end and initiates
Electricity consumption data interactive task, foreground or background request class of the data-interface service according to the electricity consumption data interactive task of reception
Not, service inquiry demand sets task grade, and is randomly assigned unique electricity consumption data interactive task ID number, and appointing distribution
The electricity consumption data interactive task ID number of business returns to destination end, and task ID number, for describing the unique mark of mission bit stream body, leads to
Cross task ID number to safeguard mission bit stream body, task ID number is unduplicated;
Foreground or background request classification, industry of the data-interface service according to the electricity consumption data interactive task of reception
Business query demand sets task grade, and foreground request includes:Real time terminal facility registration and cancel register;Service inquiry demand bag
Include:To terminal electric energy meter information, meter reading data, event data background query;Background request includes:Timed task end of scan
Facility registration situation is registered;Priority of task grade is according to business significance level and requires the angle of response timeliness from high to low
Respectively foreground request, service inquiry, background request;
Step(2), the highest task of task grade is analyzed, the number by electricity consumption acquisition system to WebService
Subpackage is carried out according to by the byte number of setting, controls the number and flow of network interaction;At the same time according to the request on foreground or backstage,
The data volume size of service inquiry demand, sets the priority of service interaction, and data volume interactive on demand is according to Nagle points
Group policy algorithm is grouped, and generates some sub- packetized datas and corresponding subtask ID number, electricity consumption acquisition system is according to short
Job priority and highest response ratio algorithm of operation divide subtask, and the high priority of subtask of grade carries out data preparation, enters
Message queue prepares data interaction, and subtask ID number, for describing the unique mark of subtask imformosome, passes through subtask ID number
Subtask ID number, which is unduplicated, to be safeguarded to sub- mission bit stream body, and is subordinated to corresponding task ID number;
Step(3), after the completion of the corresponding data preparation in the highest subtask of grade, the data-interface clothes of WebService
Corresponding subtask ID number is returned to destination end by business, and destination end quickly obtains ready data according to subtask ID number, that is, obtains
The data in XML file must be corresponded to;
Step(4)The data-interface service of WebService continues the data preparation of the highest subtask of subsequent levels, returns
Return step(3), until destination end obtains all packet ready data in subtask, execution step(5);
Step(5), return to step(2), the highest task of subsequent levels is analyzed.
The basic principles, main features and the advantages of the invention have been shown and described above.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this
The principle of invention, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes
Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its
Equivalent thereof.
Claims (3)
- A kind of 1. electricity consumption data packet interactive interface method based on WebService, it is characterised in that:Comprise the following steps,Step(1), the data-interface service of the WebService provided by electricity consumption acquisition system, receives the use that destination end is initiated Electric data interaction task, classification or backstage of the data-interface service according to the foreground request of the electricity consumption data interactive task of reception Classification, the service inquiry demand of request set task grade, and are randomly assigned unique electricity consumption data interactive task ID number, and will The electricity consumption data interactive task ID number of the task of distribution returns to destination end;Step(2), the highest task of task grade is analyzed, the data of WebService are pressed by electricity consumption acquisition system The byte number of setting carries out subpackage, controls the number and flow of network interaction;Request according to foreground or backstage, business at the same time The data volume size of query demand, sets the priority of service interaction, and data volume interactive on demand is grouped plan according to Nagle Slightly algorithm is grouped, and generates some sub- packetized datas and corresponding subtask ID number, electricity consumption acquisition system is according to short operation Preferential and highest response ratio algorithm of operation divides subtask, and the high priority of subtask of grade carries out data preparation, inbound message Queue prepares data interaction;Step(3), after the completion of the corresponding data preparation in the highest subtask of grade, the data-interface service handle of WebService Corresponding subtask ID number returns to destination end, and destination end quickly obtains ready data according to subtask ID number;Step(4)The data-interface service of WebService continues the data preparation of the highest subtask of subsequent levels, returns to step Suddenly(3), until destination end obtains all packet ready data in subtask, execution step(5);Step(5), return to step(2), the highest task of subsequent levels is analyzed;Wherein, step(1), data-interface service according to the classification of the foreground request of the electricity consumption data interactive task of reception or after Classification, the service inquiry demand of platform request set task grade, and foreground request includes:Real time terminal facility registration and cancellation note Volume;Service inquiry demand includes:To terminal electric energy meter information, meter reading data, event data background query;Background request bag Include:Timed task end of scan facility registration situation is registered;When task grade is responded according to business significance level and requirement The angle of effect is respectively foreground request, service inquiry, background request from high to low.
- 2. the electricity consumption data packet interactive interface method according to claim 1 based on WebService, it is characterised in that: Step(1)The task ID number, for describing the unique mark of mission bit stream body, by task ID number to mission bit stream body into Row safeguards that task ID number is unduplicated.
- 3. the electricity consumption data packet interactive interface method according to claim 1 based on WebService, it is characterised in that: Step(2)The subtask ID number, for describing the unique mark of subtask imformosome, by subtask ID number to subtask Imformosome is safeguarded that subtask ID number is unduplicated, and is subordinated to corresponding task ID number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510181075.9A CN104821958B (en) | 2015-04-17 | 2015-04-17 | Electricity consumption data packet interactive interface method based on WebService |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510181075.9A CN104821958B (en) | 2015-04-17 | 2015-04-17 | Electricity consumption data packet interactive interface method based on WebService |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104821958A CN104821958A (en) | 2015-08-05 |
CN104821958B true CN104821958B (en) | 2018-04-27 |
Family
ID=53732121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510181075.9A Active CN104821958B (en) | 2015-04-17 | 2015-04-17 | Electricity consumption data packet interactive interface method based on WebService |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104821958B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105610965A (en) * | 2016-01-21 | 2016-05-25 | 广东电网有限责任公司 | Cross-system batch data transmission method based on OSB (Operation Service Bus) interface specification |
CN107273206A (en) * | 2017-05-19 | 2017-10-20 | 国网浙江省电力公司电力科学研究院 | A kind of priority dispatching method controlled based on business and data volume |
CN107832124B (en) * | 2017-09-25 | 2021-07-09 | 创新先进技术有限公司 | Method and device for processing task in file processing system |
CN108322331B (en) * | 2017-12-28 | 2020-11-06 | 国网智能科技股份有限公司 | Communication method and system capable of dynamically adjusting interactive measuring points |
CN112000492B (en) * | 2020-08-24 | 2023-08-18 | 中国银行股份有限公司 | Public number user tag management system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102723779A (en) * | 2012-06-04 | 2012-10-10 | 中国电力科学研究院 | Non-contact intelligent distribution device based on WebService and design method thereof |
CN103593471A (en) * | 2013-11-28 | 2014-02-19 | 国家电网公司 | Universal data processing method and device |
CN103793858A (en) * | 2014-02-18 | 2014-05-14 | 国电南瑞科技股份有限公司 | Method for sharing data between provincial level metering production scheduling platform and four-line one-base system |
CN104079656A (en) * | 2014-07-07 | 2014-10-01 | 用友软件股份有限公司 | Efficiency optimization device and method for soap messages in webService |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8051019B2 (en) * | 2006-07-13 | 2011-11-01 | Sap Ag | Neural network resource sizing apparatus for database applications |
-
2015
- 2015-04-17 CN CN201510181075.9A patent/CN104821958B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102723779A (en) * | 2012-06-04 | 2012-10-10 | 中国电力科学研究院 | Non-contact intelligent distribution device based on WebService and design method thereof |
CN103593471A (en) * | 2013-11-28 | 2014-02-19 | 国家电网公司 | Universal data processing method and device |
CN103793858A (en) * | 2014-02-18 | 2014-05-14 | 国电南瑞科技股份有限公司 | Method for sharing data between provincial level metering production scheduling platform and four-line one-base system |
CN104079656A (en) * | 2014-07-07 | 2014-10-01 | 用友软件股份有限公司 | Efficiency optimization device and method for soap messages in webService |
Also Published As
Publication number | Publication date |
---|---|
CN104821958A (en) | 2015-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104821958B (en) | Electricity consumption data packet interactive interface method based on WebService | |
Cui et al. | A blockchain-based containerized edge computing platform for the internet of vehicles | |
CN101547150B (en) | method and device for scheduling data communication input port | |
CN1206600C (en) | Full distribution type aggregation network servicer system | |
CN106101021B (en) | A kind of real-time execution dispatching method of Ethernet system functional block | |
CN103634364B (en) | A kind of system for realizing remote desktop, method, client and service centre | |
CN105511954A (en) | Method and device for message processing | |
CN106375241A (en) | Batch data processing method, front-end system, host and batch data processing system | |
CN103777950B (en) | Gridding method for resolving AOS (Advanced Orbiting System) telemetering data | |
CN108881485A (en) | The method for ensureing the high concurrent system response time under big data packet | |
CN102104544A (en) | Order preserving method for fragmented message flow in IP (Internet Protocol) tunnel of multi-nuclear processor with accelerated hardware | |
CN102055771A (en) | Device and method for controlling cloud service-oriented multiple concurrent service flow | |
CN105763297A (en) | Cloud computing system-based remote data optimized transmission method and device | |
CN110535811B (en) | Remote memory management method and system, server, client and storage medium | |
CN109547162A (en) | Data communications method based on two sets of unidirectional boundaries | |
CN102769668B (en) | Approximate-matching-based publication/subscription load balancing method | |
CN114710571B (en) | Data packet processing system | |
CN102945185A (en) | Task scheduling method and device | |
CN102609307A (en) | Multi-core multi-thread dual-operating system network equipment and control method thereof | |
CN102510403B (en) | Receive and the cluster distributed system and method for real-time analysis for vehicle data | |
CN103577469B (en) | Database connection multiplexing method and apparatus | |
CN101431475B (en) | Settings of high-performance streaming media server and method for reading high-performance program | |
CN106850770A (en) | High-efficiency transmission method and device based on cloud computing service | |
CN106131162A (en) | A kind of method realizing network service agent based on IOCP mechanism | |
CN109254844A (en) | A kind of triangle calculation method of Large Scale Graphs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |