CN105915403A - Traffic import method and device - Google Patents

Traffic import method and device Download PDF

Info

Publication number
CN105915403A
CN105915403A CN201510939593.2A CN201510939593A CN105915403A CN 105915403 A CN105915403 A CN 105915403A CN 201510939593 A CN201510939593 A CN 201510939593A CN 105915403 A CN105915403 A CN 105915403A
Authority
CN
China
Prior art keywords
data source
flow
imports
api
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510939593.2A
Other languages
Chinese (zh)
Inventor
尹斐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201510939593.2A priority Critical patent/CN105915403A/en
Publication of CN105915403A publication Critical patent/CN105915403A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Abstract

The embodiment of the invention provides a traffic import method and device. The method comprises the steps that the API of each data source is acquired; a uniform style is provided for all the data sources according to the acquired API of each data source, and a traffic import template of the data sources is generated; and user traffic is imported to all the data sources by adopting the traffic import template of the data sources. Traffic importing of the data sources can be conveniently realized by the traffic import method and device.

Description

The method and apparatus that a kind of flow imports
Technical field
The present embodiments relate to communication technical field, particularly relate to a kind of flow import method and Device.
Background technology
Along with the high speed development of 3G/4G technology and the mobile terminal with smart mobile phone as representative Widely available, it is the swiftest and the most violent that mobile Internet and magnanimity application thereof have become internet development now The height of business, mobile communication technology and Internet technology merge bring to user unprecedented Operating experience.In recent years, mobile Internet just with the speed fast development imagined beyond people, People enter the entrance of the Internet and get more and more, and are not only traditional operating system and browse Device, the emerging application program such as wechat, mobile payment has become the important of user Internet access the most Mode.
Website traffic (traffic) refers to the visit capacity of website, is used to describe one website of access Number of users and the index such as the webpage quantity that browsed of user.Website traffic is for virtual sky Between for business flow refer to: user during flowing of access, the data volume size of generation, have Virtual Space business limit the size of flow, when just exceeding this website of this amount of website traffic Can not have accessed.
Website traffic statistic leading indicator includes: independent access person's quantity (unique visitors); Repeat visitor quantity (repeat visitors);Page browsing number (page views);Each The page browsing number (Page Views per user) of visitor;Some concrete file/page Statistical indicator, as the page shows number of times, file download number of times etc..
Website traffic statistic can also be carried out according to user behavior index and the mode of browsing web sites, its In,
User behavior index mainly reflects user is how to come website, stop on website How long, have accessed which page etc., main statistical indicator includes:
User is in the time of staying of website;
" guiding website " (is also named) in user sources website;
Search engine that user is used and key word thereof;
User's visit capacity situation etc. at different periods.
The mode of browsing web sites includes time, equipment, browser title and version, operating system, The mode ASSOCIATE STATISTICS index that user browses web sites specifically includes that
User's equipment for surfing the net type;
The title of user browser and version;
Visitor's computer resolution display pattern;
OS name that user is used and version;
User place regional distribution situation etc..
As it is shown in figure 1, website traffic analysis, refer to obtaining website visiting amount master data In the case of, relevant data are added up, are analyzed, therefrom finds that user accesses the rule of website, And these rules combined with net marketing strategy etc., thus find can in network marketing activity The problem that can exist, and provide foundation for revising or reformulate net marketing strategy further. Certain such definition is that the angle standing in network marketing management considers, if for other The purpose of aspect, has other to website traffic analysis and explains accordingly.
In the prior art, each data source needs to carry out network flow by equipment such as mobile terminals The importing of amount, importing process is complicated, needs relatively multioperation, causes not to mobile terminal producer etc. Just.
Summary of the invention
The embodiment of the present invention provides the method and apparatus that a kind of flow imports, it is possible to realize data source Flow import, thus obtain income.
The embodiment of the present invention provides a kind of method that flow imports, including:
Obtain the API of each data source;
According to the API of the data source got, provide unified pattern for each data source, make Flow imports template;
Use described flow to import template, customer flow is imported each data source.
The embodiment of the present invention provides the device that a kind of flow imports, including:
First processing module, for obtaining the API of each data source;
Second processing module, for the API according to the data source got, provides system for each data source The pattern of one, the flow generating data source imports template;
3rd processing module, is used for using described flow to import template, is imported by customer flow each Data source.
It is compared to prior art, the method for the flow importing that the embodiment of the present invention provides and dress Put, by each data source, its API be supplied to mobile terminal manufacturer, mobile terminal manufacturer according to The API of data source provides unified pattern, flow is directed into each data source, thus avoids Each data source needs to be carried out the importing of network traffics, importing process by equipment such as mobile terminals Complicated problem, it is achieved that data source is unified the flow of pattern and imported such that it is able to obtain easily Obtain income.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will The accompanying drawing used required in embodiment or description of the prior art is briefly described, aobvious and easy Insight, the accompanying drawing in describing below is some embodiments of the present invention, for ordinary skill From the point of view of personnel, on the premise of not paying creative work, it is also possible to obtain it according to these accompanying drawings His accompanying drawing.
Fig. 1 is the schematic diagram that in prior art, website traffic is analyzed;
Fig. 2 be the present invention a specific embodiment in the schematic flow sheet of method that imports of flow;
Fig. 3 be the present invention a specific embodiment in flow import method detailed process signal Figure;
Fig. 4 be the present invention a specific embodiment in flow import template schematic diagram.
The structural representation of the device that flow imports in one specific embodiment of Fig. 5 present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with Accompanying drawing in the embodiment of the present invention, carries out clear, complete to the technical scheme in the embodiment of the present invention Ground describes, it is clear that described embodiment is a part of embodiment of the present invention rather than whole Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
Embodiment one:
Fig. 2 be the present invention a specific embodiment in the schematic flow sheet of method that imports of flow.
As in figure 2 it is shown, the method includes:
Step S21, obtain each data source API (Application Programming Interface, Application programming interface);
Step S22, according to the API of the data source got, provides unified pattern for each data source, The flow generating data source imports template;
Step S23, uses the flow of described data source to import template, customer flow imports each data Source.
The method that the flow that embodiments of the invention one provide imports, by each data source by its API Being supplied to mobile terminal manufacturer, mobile terminal manufacturer provides unified pattern according to the API of data source, Flow is directed into each data source, thus avoids each data source and need to be set by mobile terminal etc. The standby importing carrying out network traffics, the problem that importing process is complicated, it is achieved that data source unifies pattern Flow import, thus obtain income.
Embodiment two:
Fig. 3 be the present invention a specific embodiment in flow import method detailed process signal Figure.
As it is shown on figure 3, the method includes:
Step S31, the LoadLibraryA () function of calling system and GetProcAddress () function Obtain the API of each data source.
Data source (Data Source), refers to the source of data, it is provided that data required for certain Device or original media, store all information setting up data base's connection in data source.Just as File can be found in file system the same by designated file name, by the number that offer is correct According to source name, you can find corresponding data base to connect.
API is some predefined functions, it is therefore an objective to provide application program and developer based on certain Software or hardware are accessed the ability of one group of routine, and without accessing source code, or understand internal The details of working mechanism.
In this step, can be with the LoadLibraryA () function of calling system and GetProcAddress () Function dynamically obtains the API of each data source.Wherein, LoadLibraryA () is used for loading API The dynamic link library that function is corresponding, it is corresponding that GetProcAddress () function is used for obtaining api function Entry address.
LoadLibraryA () and GetProcAddress () is the function drawn by kernel32.dll, So the address of LoadLibraryA () can also be obtained by GetProcAddress (). The address of GetProcAddress () in the export list of kernel32, can pass through force search method, Abnormality processing chained list search method, PEB method are searched kernel32 base address and are obtained GetProcAddress () Address.
Step S32, according to the API of the data source got, provides for each data source and includes data source The unified pattern of attribute information.
The isomery of data source refers to that the data store organisation of data source or access method differ, data The isomerism in source make the data access to different pieces of information source difficulty, need various different mode and Skill, and add the workload of software development, additionally, the isomerism of data source also affects not Coordinate with the communication between software system, limit the range of application system.
In this step, obtain the API of each data source, provide for each data source and include data source property The unified pattern of information such that it is able to solve the Heterogeneity of data source, it is achieved that subsequently data Source is unified the flow of pattern and is imported.
In a particular embodiment of the present invention, data source property information may include that
DatabaseName String database-name, the i.e. SID of data base;
DataSourceName String data resource interface realizes the title of class;
The description String description to data source;
The procotol name that networkProtocol String and server communication use;
The port that portNumber database server uses;
ServerName String database server title;
User String user login name;
Password String user login code.
Step S33, according to the unified pattern of data source, the flow generating data source imports template.
In this step, the flow generating data source according to data source property information imports template, has Body can be as shown in Figure 4.
Certainly the flow importing template comprising data source property information can be there to be other forms, at this The specific embodiment of invention does not limits.
Step S34, uses described flow to import template, customer flow imports each data source.
The method that the flow that embodiments of the invention two provide imports, by each data source by its API Being supplied to mobile terminal manufacturer, mobile terminal manufacturer provides unified pattern according to the API of data source, Flow is directed into each data source, thus avoids each data source and need to be set by mobile terminal etc. The standby importing carrying out network traffics, the problem that importing process is complicated, it is achieved that data source unifies pattern Flow import, thus obtain income.
Embodiment three:
The structural representation of the device that flow imports in one specific embodiment of Fig. 5 present invention.
As it is shown in figure 5, the inventive system comprises:
First processing module 51, for obtaining the API of each data source;
Second processing module 52, for the API according to the data source got, carries for each data source For unified pattern, the flow generating data source imports template;
3rd processing module 53, is used for using described flow to import template, is imported by customer flow each Data source.
Specifically,
First processing module, specifically for calling system LoadLibraryA () function and GetProcAddress () function obtains the API of each data source.
Second processing module, specifically for the API according to the data source got, for each data Source provides the unified pattern including data source property information, and according to the unified pattern of data source, The flow generating data source imports template.
The concrete ins and outs involved by device and aforesaid flow that the flow of the present invention imports are led The method entered is similar to, therefore is not repeated herein.
The device that the flow that embodiments of the invention three provide imports, by each data source by its API Being supplied to mobile terminal manufacturer, mobile terminal manufacturer provides unified pattern according to the API of data source, Flow is directed into each data source, thus avoids each data source and need to be set by mobile terminal etc. The standby importing carrying out network traffics, the problem that importing process is complicated, it is achieved that data source unifies pattern Flow import, thus obtain income.
Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, the parts shown as unit Can be or may not be physical location, i.e. may be located at a place, or can also divide Cloth is on multiple NEs.Some or all of mould therein can be selected according to the actual needs Block realizes the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying creativeness In the case of work, i.e. it is appreciated that and implements.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive Each embodiment can add the mode of required general hardware platform by software and realize, and the most also may be used To pass through hardware.Based on such understanding, technique scheme is the most in other words to prior art The part contributed can embody with the form of software product, and this computer software product can With storage in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including Some instructions with so that computer equipment (can be personal computer, server, or The network equipment etc.) perform the method described in some part of each embodiment or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than It is limited;Although the present invention being described in detail with reference to previous embodiment, this area Those of ordinary skill is it is understood that it still can be to the technical scheme described in foregoing embodiments Modify, or wherein portion of techniques feature is carried out equivalent;And these are revised or replace Change, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (8)

1. the method that a flow imports, it is characterised in that including:
Obtain the API of each data source;
According to the API of the described each data source got, provide unified pattern for each data source, and The flow generating data source imports template;
The flow using described data source imports template, and customer flow imports each data source.
The method that flow the most according to claim 1 imports, it is characterised in that described acquisition The step of the API of each data source includes:
LoadLibraryA () function and the GetProcAddress () function of calling system obtain each number According to the API in source, wherein,
LoadLibraryA () is used for loading the dynamic link library that api function is corresponding;
GetProcAddress () function is used for obtaining the entry address that api function is corresponding.
The method that flow the most according to claim 2 imports, it is characterised in that described is each Data source provides the step of unified pattern to include:
The unified pattern including data source property information is provided for each data source.
The method that flow the most according to claim 3 imports, it is characterised in that described data Source attribute information includes that database-name, data resource interface realize the title of class, retouch data source State and the procotol name of server communication use, the port of database server use, data Storehouse server name, user login name and user login code.
The method that flow the most according to claim 4 imports, it is characterised in that described generation The flow of data source imports the step of template and includes:
The flow generating data source according to data source property information imports template.
6. the device that a flow imports, it is characterised in that including:
First processing module, for obtaining the API of each data source;
Second processing module, for the API according to the described each data source got, for each data source Unified pattern is provided, and the flow generating data source imports template;
3rd processing module, for using the flow of described data source to import template, by customer flow Import each data source.
The device that flow the most according to claim 6 imports, it is characterised in that described first Processing module, specifically for:
LoadLibraryA () function and the GetProcAddress () function of calling system obtain each number According to the API in source, wherein,
LoadLibraryA () is used for loading the dynamic link library that api function is corresponding;
GetProcAddress () function is used for obtaining the entry address that api function is corresponding.
The device that flow the most according to claim 7 imports, it is characterised in that described second Processing module, specifically for:
According to the API of the described each data source got, provide for each data source and include data source property The unified pattern of information, and the flow importing template of data source is generated according to data source property information;
Described data source property information include database-name, data resource interface realize class title, The procotol name, the database server that use description and the server communication of data source use Port, database server title, user login name and user login code.
CN201510939593.2A 2015-12-15 2015-12-15 Traffic import method and device Pending CN105915403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510939593.2A CN105915403A (en) 2015-12-15 2015-12-15 Traffic import method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510939593.2A CN105915403A (en) 2015-12-15 2015-12-15 Traffic import method and device

Publications (1)

Publication Number Publication Date
CN105915403A true CN105915403A (en) 2016-08-31

Family

ID=56744183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510939593.2A Pending CN105915403A (en) 2015-12-15 2015-12-15 Traffic import method and device

Country Status (1)

Country Link
CN (1) CN105915403A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214461A1 (en) * 2005-06-08 2007-09-13 Logitech Europe S.A. System and method for transparently processing multimedia data
US7451214B1 (en) * 2001-07-24 2008-11-11 Cranor Charles D Method and apparatus for packet analysis in a network
CN101694952A (en) * 2009-09-28 2010-04-14 国电南京自动化股份有限公司 Method for generating embedded telecontrol system definitions by IEC61850 SCD files
CN104978405A (en) * 2015-06-08 2015-10-14 湖南工学院 Human error data processing method ans system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7451214B1 (en) * 2001-07-24 2008-11-11 Cranor Charles D Method and apparatus for packet analysis in a network
US20070214461A1 (en) * 2005-06-08 2007-09-13 Logitech Europe S.A. System and method for transparently processing multimedia data
CN101694952A (en) * 2009-09-28 2010-04-14 国电南京自动化股份有限公司 Method for generating embedded telecontrol system definitions by IEC61850 SCD files
CN104978405A (en) * 2015-06-08 2015-10-14 湖南工学院 Human error data processing method ans system

Similar Documents

Publication Publication Date Title
CN102937979B (en) The self-defined optimization of webpage
JP5298117B2 (en) Data merging in distributed computing
CN102999586B (en) A kind of method and apparatus of recommendation of websites
CN108363602A (en) Intelligent UI quick interface arrangement methods, device, terminal device and storage medium
CN109446570B (en) Business process display method, device, computer equipment and storage medium
CN105227352B (en) A kind of update method and device of user identifier collection
CN106559438A (en) A kind of program method for uploading and device based on objective network platform
JP6713238B2 (en) Electronic device, method for constructing retail store evaluation model, system and storage medium
CN109471795A (en) It is grouped test method, device, computer equipment and storage medium
CN104899220A (en) Application program recommendation method and system
CN107908695A (en) Operation system operation method, device, system and readable storage medium storing program for executing
CN105721629A (en) User identifier matching method and device
CN110166499A (en) A kind of method and server obtaining user's representation data
CN109151824A (en) A kind of library data service extension system and method based on 5G framework
CN108900619A (en) A kind of independent Statistics of accessing population method and device
CN108171528A (en) A kind of attribution method and attribution system
CN104657435A (en) Storage management method for application data and network management system
CN107229392A (en) A kind of method for showing interface and system
CN107315833A (en) Method and apparatus of the retrieval with downloading based on application program
CN113268243A (en) Memory prediction method and device, storage medium and electronic equipment
CN109815712A (en) User right management-control method, device, computer installation and readable storage medium storing program for executing
CN106371706A (en) Method and device for site selection of application shortcuts
CN105653550B (en) Webpage filtering method and device
CN102999576A (en) Method and equipment for confirming page description information corresponding to target pages
CN109284488B (en) Method, device and medium for modifying front-end table column data based on local storage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160831

WD01 Invention patent application deemed withdrawn after publication