CN104821958A - WebService-based power utilization data packet interactive interface method - Google Patents
WebService-based power utilization data packet interactive interface method Download PDFInfo
- Publication number
- CN104821958A CN104821958A CN201510181075.9A CN201510181075A CN104821958A CN 104821958 A CN104821958 A CN 104821958A CN 201510181075 A CN201510181075 A CN 201510181075A CN 104821958 A CN104821958 A CN 104821958A
- Authority
- CN
- China
- Prior art keywords
- data
- task
- electricity consumption
- subtask
- 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.)
- Granted
Links
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 WebService-based power utilization data packet interactive interface method. The method includes the following steps: a data interface service of WebService provided by a power utilization collection system performs grouping and generates priority, allocates unique interaction data task ID numbers randomly, and returns the allocated task ID numbers to a target end; the data interface service performs grouping according to the volume of data needing interaction and performs sequencing according to priority of the tasks, and generates subtask ID numbers for each group of tasks; and after completion of preparation of data corresponding to the subtasks in sequence, the data interface service returns the corresponding subtask ID numbers to the target end, and the target end rapidly obtains the prepared data according to the subtask ID numbers. The method provided by the invention solves the problem of grouping and sequencing according to a priority strategy on the basis of the request data volume and specific data information in WebService real-time interaction, response is given in sequence, asynchronous interaction of packets is realized, and the method has good application prospects.
Description
Technical field
The present invention relates to electricity consumption acquisition system technical field, be specifically related to a kind of electricity consumption packet interactive interface method of sing on web Service.
Background technology
There is due to WebService the technical characterstics such as cross-platform, distributed, loose coupling, in inter-system data is mutual, obtains more and more extensive use.At present, information interaction approach between major part heterogeneous system all adopts the mode of WebService+ middle database, but, because interim stock is not cleared up in time at junk data, frequency access and statistics cause database performance to decline and renewal rewards theory causes the problems such as lock table, so do not adopt the mode of WebService+ middle database in electricity consumption acquisition system and other operation system data interaction, Webservice mode is just directly adopted to carry out data interaction, the message request that what but Webservice transmitted in a network is based on XML file and response, if first do not adopt middle database to carry out the mutual memory carrier of mass data, disposable large batch of transfer of data can make network become bottleneck, easily cause the problem of data packetloss, secondly when carrying out data encasement, also need to take the service end resource much comprising time, performance etc., active demand is introduced by algorithm and program optimization promotes electricity consumption acquisition system and external system data interaction function.
According to above-mentioned introduction, the shortcoming of above prior art is: when cancelling middle database, employing WebService mode transmitted data amount can not be too large, ask there is impact to service end performance during data in enormous quantities, request end cannot monitor data transmission procedure effectively, simultaneously business demand cause batch query and the data volume mutual with external system very large, suppress Webservice mode to carry out data interaction.
Summary of the invention
Technical problem solved by the invention is when cancelling middle database, adopts WebService mode to transmit the problem of data.The electricity consumption packet interactive interface method of sing on web Service of the present invention, the efficient asynchronous interactive of data in enormous quantities between system is realized based on Nagle grouping strategy algorithm and SJF, the highest response ratio algorithm of operation and external system by WebService in electricity consumption acquisition system, good solution transmits the problem of big data quantity by WebService mode, has applications well prospect.
In order to achieve the above object, the technical solution adopted in the present invention is:
An electricity consumption packet interactive interface method of sing on web Service, is characterized in that: comprise the following steps,
Step (1), the data-interface service of the WebService provided by electricity consumption acquisition system, the electricity consumption data interaction task that receiving target end is initiated, data-interface service arranges task grade according to the foreground of electricity consumption data interaction task received or background request classification, service inquiry demand, and the electricity consumption data interaction task ID number that Random assignment is unique, and the electricity consumption data interaction task ID number of the task of distribution is returned to destination end;
Step (2), task to task the highest grade is analyzed, and carries out subpackage, the number of times that net control is mutual and flow by electricity consumption acquisition system to the data of WebService by the byte number of setting; Simultaneously according to foreground or the request on backstage, the data volume size of service inquiry demand, the priority of service interaction is set, and data volume mutual is on demand divided into groups according to Nagle grouping strategy algorithm, generate some sub-packetized data and No. ID corresponding, subtask, electricity consumption acquisition system is according to SJF and the highest response ratio algorithm of operation antithetical phrase task division, the priority of subtask that grade is high carries out data encasement, enters message queue and prepares data interaction;
Step (3), after the data encasement that the subtask that the highest grade is corresponding completes, the data-interface service of WebService returns to destination end No. ID, corresponding subtask, and destination end obtains ready data fast according to No. ID, subtask;
The data-interface service of step (4) WebService continues the data encasement of the highest subtask of subsequent levels, returns step (3), until destination end obtains the ready data in all grouping subtasks, performs step (5);
Step (5), return step (2), the task the highest to subsequent levels is analyzed.
The electricity consumption packet interactive interface method of aforesaid sing on web Service, it is characterized in that: step (1), data-interface service arranges task grade according to the foreground of electricity consumption data interaction task received or background request classification, service inquiry demand, and foreground request comprises: real time terminal facility registration and cancel register; Service inquiry demand comprises: inquire about the backstage of terminal electric energy meter information, meter reading data, event data; Background request comprises: timed task end of scan facility registration situation is registered; Priority of task grade is according to business significance level and require that the angle of response timeliness is respectively foreground request, service inquiry, background request from high to low.
The electricity consumption packet interactive interface method of aforesaid sing on web Service, it is characterized in that: the task ID number described in step (1), for describing the unique identification of mission bit stream body, safeguarded mission bit stream body by task ID number, task ID number is unduplicated.
The electricity consumption packet interactive interface method of aforesaid sing on web Service, it is characterized in that: No. ID, the subtask described in step (2), for the unique identification of descriptor mission bit stream body, safeguarded by subtask ID antithetical phrase mission bit stream body, No. ID, subtask is unduplicated, and is subordinated to corresponding task ID number.
The invention has the beneficial effects as follows: the electricity consumption packet interactive interface method of sing on web Service of the present invention, the efficient asynchronous interactive of data in enormous quantities between system is realized based on Nagle grouping strategy algorithm and SJF, the highest response ratio algorithm of operation and external system by WebService in electricity consumption acquisition system, realize grouping asynchronous interactive, good solution transmits the problem of big data quantity by WebService mode, has applications well prospect.
Accompanying drawing explanation
Fig. 1 is the flow chart figure of the electricity consumption packet interactive interface method of sing on web Service of the present invention.
Embodiment
Below in conjunction with Figure of description, the present invention is further illustrated.
The electricity consumption packet interactive interface method of sing on web Service of the present invention, the efficient asynchronous interactive of data in enormous quantities between system is realized based on Nagle grouping strategy algorithm and SJF, the highest response ratio algorithm of operation and external system by WebService in electricity consumption acquisition system, realize grouping asynchronous interactive, good solution transmits the problem of big data quantity by WebService mode, as shown in Figure 1, specifically comprise the following steps
Step (1), the data-interface service of the WebService provided by electricity consumption acquisition system, the electricity consumption data interaction task that receiving target end is initiated, data-interface service is according to the foreground of the electricity consumption data interaction task received or background request classification, service inquiry demand arranges task grade, and the electricity consumption data interaction task ID number that Random assignment is unique, and the electricity consumption data interaction task ID number of the task of distribution is returned to destination end, task ID number, for describing the unique identification of mission bit stream body, by task ID number, mission bit stream body is safeguarded, task ID number is unduplicated,
Described data-interface service arranges task grade according to the foreground of electricity consumption data interaction task received or background request classification, service inquiry demand, and foreground request comprises: real time terminal facility registration and cancel register; Service inquiry demand comprises: inquire about the backstage of terminal electric energy meter information, meter reading data, event data; Background request comprises: timed task end of scan facility registration situation is registered; Priority of task grade is according to business significance level and require that the angle of response timeliness is respectively foreground request, service inquiry, background request from high to low;
Step (2), task to task the highest grade is analyzed, and carries out subpackage, the number of times that net control is mutual and flow by electricity consumption acquisition system to the data of WebService by the byte number of setting, simultaneously according to the request on foreground or backstage, the data volume size of service inquiry demand, the priority of service interaction is set, and data volume mutual is on demand divided into groups according to Nagle grouping strategy algorithm, generate some sub-packetized data and No. ID corresponding, subtask, electricity consumption acquisition system is according to SJF and the highest response ratio algorithm of operation antithetical phrase task division, the priority of subtask that grade is high carries out data encasement, enter message queue and prepare data interaction, No. ID, subtask, for the unique identification of descriptor mission bit stream body, safeguarded by subtask ID antithetical phrase mission bit stream body, No. ID, subtask is unduplicated, and be subordinated to corresponding task ID number,
Step (3), after the data encasement that the subtask that the highest grade is corresponding completes, the data-interface service of WebService returns to destination end No. ID, corresponding subtask, and destination end obtains ready data fast according to No. ID, subtask, namely obtains the data in corresponding XML file;
The data-interface service of step (4) WebService continues the data encasement of the highest subtask of subsequent levels, returns step (3), until destination end obtains the ready data in all grouping subtasks, performs step (5);
Step (5), return step (2), the task the highest to subsequent levels is analyzed.
More than show and describe general principle of the present invention and principal character and advantage of the present invention.The technical staff of the industry should understand; the present invention is not restricted to the described embodiments; what describe in above-described embodiment and specification just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.Application claims protection range is defined by appending claims and equivalent thereof.
Claims (4)
1. an electricity consumption packet interactive interface method of sing on web Service, is characterized in that: comprise the following steps,
Step (1), the data-interface service of the WebService provided by electricity consumption acquisition system, the electricity consumption data interaction task that receiving target end is initiated, data-interface service arranges task grade according to the foreground of electricity consumption data interaction task received or background request classification, service inquiry demand, and the electricity consumption data interaction task ID number that Random assignment is unique, and the electricity consumption data interaction task ID number of the task of distribution is returned to destination end;
Step (2), task to task the highest grade is analyzed, and carries out subpackage, the number of times that net control is mutual and flow by electricity consumption acquisition system to the data of WebService by the byte number of setting; Simultaneously according to foreground or the request on backstage, the data volume size of service inquiry demand, the priority of service interaction is set, and data volume mutual is on demand divided into groups according to Nagle grouping strategy algorithm, generate some sub-packetized data and No. ID corresponding, subtask, electricity consumption acquisition system is according to SJF and the highest response ratio algorithm of operation antithetical phrase task division, the priority of subtask that grade is high carries out data encasement, enters message queue and prepares data interaction;
Step (3), after the data encasement that the subtask that the highest grade is corresponding completes, the data-interface service of WebService returns to destination end No. ID, corresponding subtask, and destination end obtains ready data fast according to No. ID, subtask;
The data-interface service of step (4) WebService continues the data encasement of the highest subtask of subsequent levels, returns step (3), until destination end obtains the ready data in all grouping subtasks, performs step (5);
Step (5), return step (2), the task the highest to subsequent levels is analyzed.
2. the electricity consumption packet interactive interface method of sing on web Service according to claim 1, it is characterized in that: step (1), data-interface service arranges task grade according to the foreground of electricity consumption data interaction task received or background request classification, service inquiry demand, and foreground request comprises: real time terminal facility registration and cancel register; Service inquiry demand comprises: inquire about the backstage of terminal electric energy meter information, meter reading data, event data; Background request comprises: timed task end of scan facility registration situation is registered; Priority of task grade is according to business significance level and require that the angle of response timeliness is respectively foreground request, service inquiry, background request from high to low.
3. the electricity consumption packet interactive interface method of sing on web Service according to claim 1, it is characterized in that: the task ID number described in step (1), for describing the unique identification of mission bit stream body, safeguarded mission bit stream body by task ID number, task ID number is unduplicated.
4. the electricity consumption packet interactive interface method of sing on web Service according to claim 1, it is characterized in that: No. ID, the subtask described in step (2), for the unique identification of descriptor mission bit stream body, safeguarded by subtask ID antithetical phrase mission bit stream body, No. ID, subtask 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 true CN104821958A (en) | 2015-08-05 |
CN104821958B 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) |
Cited By (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 |
CN107832124A (en) * | 2017-09-25 | 2018-03-23 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus that task is handled in document handling system |
CN108322331A (en) * | 2017-12-28 | 2018-07-24 | 山东鲁能智能技术有限公司 | A kind of communication means and system being dynamically adapted interactive measuring point |
CN112000492A (en) * | 2020-08-24 | 2020-11-27 | 中国银行股份有限公司 | Management system and method for public number user label |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080016014A1 (en) * | 2006-07-13 | 2008-01-17 | Lev Sigal | Neural network resource sizing apparatus for database applications |
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 |
-
2015
- 2015-04-17 CN CN201510181075.9A patent/CN104821958B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080016014A1 (en) * | 2006-07-13 | 2008-01-17 | Lev Sigal | Neural network resource sizing apparatus for database applications |
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 |
Cited By (7)
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 |
CN107832124A (en) * | 2017-09-25 | 2018-03-23 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus that task is handled in document handling system |
CN108322331A (en) * | 2017-12-28 | 2018-07-24 | 山东鲁能智能技术有限公司 | A kind of communication means and system being dynamically adapted interactive measuring point |
CN108322331B (en) * | 2017-12-28 | 2020-11-06 | 国网智能科技股份有限公司 | Communication method and system capable of dynamically adjusting interactive measuring points |
CN112000492A (en) * | 2020-08-24 | 2020-11-27 | 中国银行股份有限公司 | Management system and method for public number user label |
CN112000492B (en) * | 2020-08-24 | 2023-08-18 | 中国银行股份有限公司 | Public number user tag management system and method |
Also Published As
Publication number | Publication date |
---|---|
CN104821958B (en) | 2018-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104821958A (en) | WebService-based power utilization data packet interactive interface method | |
CN101547150B (en) | method and device for scheduling data communication input port | |
CN106101021B (en) | A kind of real-time execution dispatching method of Ethernet system functional block | |
CN103777950B (en) | Gridding method for resolving AOS (Advanced Orbiting System) telemetering data | |
CN102737065A (en) | Method and device for acquiring data | |
CN102316133A (en) | Method and device for balancing load | |
CN109067644A (en) | A kind of implementation method and device of PROFINET Industrial Ethernet gateway | |
CN103941662A (en) | Task scheduling system and method based on cloud computing | |
CN104158699A (en) | Data acquisition method based on priority and segmentation | |
CN102970244A (en) | Network message processing method of multi-CPU (Central Processing Unit) inter-core load balance | |
CN105760459A (en) | Distributed data processing system and method | |
CN109670954A (en) | Transaction processing method based on block chain | |
CN105763297A (en) | Cloud computing system-based remote data optimized transmission method and device | |
CN103428099B (en) | A kind of method of universal multi-core network processor flow control | |
CN102510403B (en) | Receive and the cluster distributed system and method for real-time analysis for vehicle data | |
CN202617155U (en) | Multiple host RS485 communication device | |
CN102945185A (en) | Task scheduling method and device | |
CN104065588A (en) | Device for scheduling and buffering data packets and method thereof | |
CN104753813A (en) | DMA (Direct Memory Access) message transfer method | |
CN103701865A (en) | Data transmission method and system | |
CN109254844A (en) | A kind of triangle calculation method of Large Scale Graphs | |
CN103915899A (en) | Autonomous networking structure and method for electric power automatic terminals | |
CN104780471B (en) | A kind of all optical networks fringe node light packet data framing method | |
CN202385116U (en) | Distributed operation and maintenance data acquisition device | |
CN112698950B (en) | Memory optimization method for industrial Internet of things edge equipment |
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 |