CN108462743A - It is used for transmission the system, method and data server of analogue data - Google Patents
It is used for transmission the system, method and data server of analogue data Download PDFInfo
- Publication number
- CN108462743A CN108462743A CN201810190016.1A CN201810190016A CN108462743A CN 108462743 A CN108462743 A CN 108462743A CN 201810190016 A CN201810190016 A CN 201810190016A CN 108462743 A CN108462743 A CN 108462743A
- Authority
- CN
- China
- Prior art keywords
- data
- destination request
- acquisition module
- server
- destination
- 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/14—Session management
-
- 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/14—Session management
- H04L67/141—Setup of application sessions
-
- 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/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- 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/10—Protocols in which an application is distributed across nodes in the network
Abstract
The application provides a kind of system, method and data server being used for transmission analogue data, the system comprises:Service server and data server;Data server is based on default running environment and develops, and is equipped with the address acquisition module and data acquisition module preset running environment based on this and run;The service server, for sending destination request to the data server;The data server, in response to the destination request, the corresponding access address of the destination request to be determined according to the first configuration file to prestore by described address acquisition module;The corresponding target simulation data of the destination request are obtained from the analogue data to prestore based on the access address by the data acquisition module;The target simulation data are returned to the service server.The embodiment not only saves human resources, moreover, solving the problems, such as that development progress is slow and efficiency is low without relying on artificial participation.
Description
Technical field
This application involves field of communication technology, more particularly to a kind of system, method and data being used for transmission analogue data
Server.
Background technology
For at present, when carrying out front end exploitation, the service server for front end exploitation is usually required from Back end data
Server obtains analogue data, to carry out exploitation simulation.In the related art, analogue data is obtained from Back end data server
When, generally require the port of artificial setting data server and the data structure of analogue data, therefore, the acquisition of analogue data
Process is participated in dependent on artificial, not only wastes human resources, moreover, back-end services lack, causes development progress slow and efficiency
Low problem.
Invention content
In order to solve the above-mentioned technical problem one of, the application provide a kind of system being used for transmission analogue data, method and
Data server.
According to the embodiment of the present application in a first aspect, providing a kind of system being used for transmission analogue data, the system packet
It includes:Service server and data server;Communication connection is established between the service server and the data server;Institute
It states and is stored with analogue data in data server, the data server is based on default running environment and develops, and is equipped with base
The address acquisition module and data acquisition module preset running environment in this and run;
Wherein, the service server, for sending destination request to the data server, the destination request is used for
Ask analogue data;
The data server, in response to the destination request, by described address acquisition module according to prestoring
First configuration file determines the corresponding access address of the destination request;It is based on the access by the data acquisition module
Location obtains the corresponding target simulation data of the destination request from the analogue data to prestore;And to the service server
Return to the target simulation data.
Optionally, the data server is matched by described address acquisition module according to prestore first in the following way
It sets file and determines the corresponding access address of the destination request:
Described address acquisition module is called to obtain destination port number from the destination request;
The corresponding target array of the destination port number is obtained from first configuration file;And
It is obtained and the matched access address of the destination request from the target array.
Optionally, the data server is based on the access address by the data acquisition module in the following way
Obtain the corresponding target simulation data of the destination request:
If it is determined that the destination port number is mismatched with the port that the data server is opened, obtained by the data
Modulus block uses cross-domain resource shared mechanism, and the corresponding target simulation number of the destination request is obtained based on the access address
According to.
Optionally, the service server sends destination request to the data server in the following way:
Obtain the second configuration file to prestore;
Environmental variance parameter is obtained from second configuration file;
If being currently at simulated environment based on environmental variance parameter determination, mesh is sent to the data server
Mark request.
According to the second aspect of the embodiment of the present application, a kind of data server being used for transmission analogue data is provided, it is described
Analogue data is stored in data server, the data server is based on default running environment and develops;The data service
Device includes:Address acquisition module, data acquisition module and sending module;Described address acquisition module and the data acquisition module
Running environment is preset based on this and is run;
Wherein, described address acquisition module, in response to destination request, institute to be determined according to the first configuration file to prestore
State the corresponding access address of destination request;The destination request is for asking analogue data;
The data acquisition module is asked for obtaining the target from the analogue data to prestore based on the access address
Seek corresponding target simulation data;
The sending module, for sending the target simulation data.
Optionally, described address acquisition module is configured for:
Destination port number is obtained from the destination request;
The corresponding target array of the destination port number is obtained from first configuration file;And
It is obtained and the matched access address of the destination request from the target array.
Optionally, the data acquisition module is configured for:
If it is determined that the destination port number is mismatched with the port that the data server is opened, it is total using cross-domain resource
Mechanism is enjoyed, obtains the corresponding target simulation data of the destination request from the analogue data to prestore based on the access address.
According to the third aspect of the embodiment of the present application, a kind of method being used for transmission analogue data is provided, including:
In response to destination request, the corresponding access address of the destination request is determined according to the first configuration file to prestore;
The destination request is for asking analogue data;
The corresponding target simulation data of the destination request are obtained from the analogue data to prestore based on the access address;
Send the target simulation data.
Optionally, the first configuration file that the basis prestores determines the corresponding access address of the destination request, including:
Destination port number is obtained from the destination request;
The corresponding target array of the destination port number is obtained from first configuration file;And
It is obtained and the matched access address of the destination request from the target array.
Optionally, described to obtain the corresponding mesh of the destination request from the analogue data to prestore based on the access address
Analogue data is marked, including:
If it is determined that the destination port number is mismatched with the port that the data server is opened, it is total using cross-domain resource
Mechanism is enjoyed, obtains the corresponding target simulation data of the destination request from the analogue data to prestore based on the access address.
According to the fourth aspect of the embodiment of the present application, a kind of computer readable storage medium is provided, the storage medium is deposited
Computer program is contained, the computer program realizes following steps when being executed by processor:
In response to destination request, the corresponding access address of the destination request is determined according to the first configuration file to prestore;
The destination request is for asking analogue data;
The corresponding target simulation data of the destination request are obtained from the analogue data to prestore based on the access address;
Send the target simulation data.
Optionally, it when the computer program is executed by processor, realizes match according to prestore first in the following way
It sets file and determines the corresponding access address of the destination request:
Destination port number is obtained from the destination request;
The corresponding target array of the destination port number is obtained from first configuration file;And
It is obtained and the matched access address of the destination request from the target array.
Optionally, it when the computer program is executed by processor, realizes be based on the access address in the following way
The corresponding target simulation data of the destination request are obtained from the analogue data to prestore:
If it is determined that the destination port number is mismatched with the port that the data server is opened, it is total using cross-domain resource
Mechanism is enjoyed, obtains the corresponding target simulation data of the destination request from the analogue data to prestore based on the access address.
The technical solution that embodiments herein provides can include the following benefits:
A kind of system being used for transmission analogue data that embodiments herein provides, including service server and data
Server, wherein analogue data is stored in data server, data server is based on default running environment and develops, and pacifies
Equipped with the address acquisition module and data acquisition module run based on default running environment.Data server can be in response to industry
The destination request that business server is sent determines that destination request corresponds to by address acquisition module according to the first configuration file to prestore
Access address, and it is corresponding to obtain from the analogue data to prestore based on access address by data acquisition module destination request
Target simulation data, and return to target simulation data to service server.To in the transmission process of analogue data, be not necessarily to
Artificial participation is relied on, human resources are not only saved, moreover, solving the problems, such as that development progress is slow and efficiency is low.
The another kind system that is used for transmission analogue data that embodiments herein provides, as a result of being pre-created the
One configuration file, has recorded multiple port numbers and the corresponding array of each port numbers in first configuration file, in array
Element includes the access address of analogue data resource.It is therefore possible to use address acquisition module, according to the first configuration text to prestore
Part determines the corresponding access address of destination request, without dependent on the artificial port that data server is arranged and simulation number
According to data structure, improve development progress and development efficiency.
The system that the another kind that embodiments herein provides is used for transmission analogue data takes in service server and data
Data communication between business device can use cross-domain resource shared mechanism, base there are when Cross-domain problem by data acquisition module
The corresponding target simulation data of destination request are obtained in above-mentioned access address.To solve Cross-domain problem, help to improve out
Hair progress and development efficiency.
The system that the another kind that embodiments herein provides is used for transmission analogue data, since service server can root
According to environmental variance parameter, determine that it is data server or aol server to obtain the data source of data, without artificial
Participation can be automatically based upon running environment acquisition request data, further improve development progress and development efficiency.
A kind of method being used for transmission analogue data that above-described embodiment of the application provides, by being asked in response to target
It asks, the corresponding access address of destination request is determined according to the first configuration file to prestore, the destination request is for asking simulation number
According to the corresponding target simulation data of the destination request being obtained from the analogue data to prestore based on above-mentioned access address, and send
The target simulation data.To in the transmission process of analogue data, without relying on artificial participation, not only save manpower money
Source, moreover, solving the problems, such as that development progress is slow and efficiency is low.
The method that the another kind that above-described embodiment of the application provides is used for transmission analogue data uses and is pre-created the
One configuration file, has recorded multiple port numbers and the corresponding array of each port numbers in first configuration file, in array
Element includes the access address of analogue data resource.It is therefore possible to use address acquisition module, according to the first configuration text to prestore
Part determines the corresponding access address of destination request, without dependent on the artificial port that data server is arranged and simulation number
According to data structure.Also, data of the present embodiment between service server and data server communicate that there are Cross-domain problems
When, cross-domain resource shared mechanism can be used by data acquisition module, obtaining destination request based on above-mentioned access address corresponds to
Target simulation data, to solve Cross-domain problem.Therefore, it in the transmission process of analogue data, further improves out
Hair progress and development efficiency.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
The application can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application
Example, and the principle together with specification for explaining the application.
Fig. 1 is a kind of system block diagram that is used for transmission analogue data of the application shown according to an exemplary embodiment;
Fig. 2 is a kind of data server that is used for transmission analogue data of the application shown according to an exemplary embodiment
Block diagram;
Fig. 3 is a kind of flow of the method that is used for transmission analogue data of the application shown according to an exemplary embodiment
Figure;
Fig. 4 is the flow for the method that the application is used for transmission analogue data according to the another kind shown in an exemplary embodiment
Figure;
Fig. 5 is structural schematic diagram of the application according to a kind of electronic equipment shown in an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of consistent device and method of some aspects be described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, is not intended to be limiting the application.
It is also intended to including majority in the application and "an" of singulative used in the attached claims, " described " and "the"
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
As shown in Figure 1, Fig. 1 is a kind of system frame being used for transmission analogue data shown according to an exemplary embodiment
Figure, the system may include:Service server 101 and data server 102.
Wherein, communication connection is established between service server 101 and data server 102.It is deposited in data server 102
Contain analogue data, data server 102 is based on default running environment and develops, and be equipped with based on this preset running environment and
The address acquisition module 103 and data acquisition module 104 of operation.Wherein, which includes but not limited to Node.js
Running environment, it will be understood that the default running environment can also be other running environment, and the application to not limiting in this respect.
Wherein, service server 101, for sending destination request to data server 102, the destination request is for asking
Analogue data.
In the present embodiment, service server 101 can be used for front-end business exploitation, can be used for front-end business survey
Examination, can be also used for front-end business service.When service server 101 is developed for front-end business, running environment is in simulation
Environment.When service server 101 is developed for front-end business test and front-end business, running environment is in environment on line.
When service server 101 for front-end business develop, when running environment be in simulated environment, need acquisition analogue data.Business
Server 101 can send destination request to data server 102, and the destination request is for asking analogue data.
Data server 102 is used in response to the destination request, by address acquisition module 103 according to first to prestore
Configuration file determines the corresponding access address of the destination request.It is obtained based on above-mentioned access address by data acquisition module 104
The corresponding target simulation data of the destination request.And return to the target simulation data to service server 101.
In the present embodiment, it is stored with analogue data in data server 102, the analogue data is for service server
101 use when front-end business is developed.By taking Node.js running environment as an example, data server 102 can be based on Node.js and transport
Row environment is developed using koa Open Frameworks.Also, address acquisition module 103 and number are installed in data server 102
According to acquisition module 104.
In the present embodiment, after data server 102 receives the above-mentioned destination request of the transmission of service server 101,
The corresponding access address of the destination request can be determined according to the first configuration file to prestore by address acquisition module 103.Tool
For body, it can be pre-created the first configuration file, multiple port numbers and each port have been recorded in first configuration file
Number corresponding array, the element in array may include the access address of analogue data resource.It can be in advance by the first configuration text
Part is stored in data server 102, and data server 102 is in response to receiving destination request, call address acquisition module 103
Destination port number is obtained from the destination request, the corresponding target array of the destination port number is obtained from the first configuration file,
And it is obtained and the matched access address of the destination request from the target array.
In the present embodiment, if the port that the destination port number that the destination request carries is opened with data server 101
It mismatches, data server 102 can also use cross-domain resource shared mechanism by data acquisition module 104, be based on above-mentioned visit
Ask that address obtains the corresponding target simulation data of the destination request.
The system for being used for transmission analogue data that above-described embodiment of the application provides, including service server and data
Server, wherein analogue data is stored in data server, data server is based on default running environment and develops, and pacifies
Equipped with the address acquisition module and data acquisition module run based on default running environment.Data server can be in response to industry
The destination request that business server is sent determines that destination request corresponds to by address acquisition module according to the first configuration file to prestore
Access address, and it is corresponding to obtain from the analogue data to prestore based on access address by data acquisition module destination request
Target simulation data, and return to target simulation data to service server.To in the transmission process of analogue data, be not necessarily to
Artificial participation is relied on, human resources are not only saved, moreover, solving the problems, such as that development progress is slow and efficiency is low.
In some optional embodiments, data server is in the following way by address acquisition module according to prestoring
First configuration file determines the corresponding access address of destination request:Data acquisition module is called to obtain destination end from destination request
Slogan obtains the corresponding target array of destination port number, also, acquisition and target from target array from the first configuration file
Ask matched access address.
The present embodiment has recorded multiple ports as a result of the first configuration file is pre-created in first configuration file
Number and each corresponding array of port numbers, the element in array include the access address of analogue data resource.Therefore, it can adopt
With address acquisition module, the corresponding access address of destination request is determined according to the first configuration file to prestore, without relying on
In the manually data structure of the port of setting data server and analogue data, development progress and development efficiency are improved.
In other optional embodiments, data server is based on accessing by data acquisition module in the following way
Address obtains the corresponding target simulation data of destination request:If it is determined that the port that destination port number is opened with data server is not
Matching uses cross-domain resource shared mechanism by data acquisition module, and it is corresponding to obtain destination request based on above-mentioned access address
Target simulation data.
Data of the present embodiment between service server and data server are communicated there are when Cross-domain problem, can be passed through
Data acquisition module uses cross-domain resource shared mechanism, and the corresponding target simulation number of destination request is obtained based on above-mentioned access address
According to.To solve Cross-domain problem, development progress and development efficiency are helped to improve.
In other optional embodiments, service server sends target to data server in the following way and asks
It asks:The second configuration file to prestore is obtained, environmental variance parameter is obtained from the second configuration file, if being based on the environmental variance
Parameter determination is currently at simulated environment, then sends destination request to data server.
In the present embodiment, service server can be not only used for front-end business exploitation, can be also used for front-end business survey
Examination and front-end business service.When service server for front-end business develop when, running environment is in simulated environment, need from
Data server obtains analogue data.And when service server is serviced for front-end business test and front-end business, operation
Environment is in environment on line, needs to obtain data on line from aol server.
In the present embodiment, it is stored with the second configuration file in service server, ring has been recorded in second configuration file
Border variable parameter.The environmental variance parameter can characterize the running environment residing for service server.When service server obtains number
According to when, environmental variance parameter can be obtained first from the second configuration file, if determined based on the environmental variance parameter current
In simulated environment, then destination request can be sent to data server, with acquisition request analogue data.If being based on the environment
Variable parameter determination is currently at environment on line, then can send and ask to aol server, with data on acquisition request line.
In the present embodiment, since service server can determine that the data source for obtaining data is according to environmental variance parameter
Data server or aol server can be automatically based upon running environment acquisition request number without artificial participation
According to further improving development progress and development efficiency.
As shown in Fig. 2, Fig. 2 is a kind of number that is used for transmission analogue data of the application shown according to an exemplary embodiment
According to the block diagram of server, it is stored with analogue data in the data server, which is based on default running environment and opens
Hair, the data server include:Address acquisition module 201, data acquisition module 202 and sending module 203.Address acquisition module
201 and data acquisition module 202 running environment is preset based on this and is run.Wherein, which includes but not limited to
Node.js running environment, it will be understood that the default running environment can also be other running environment, and the application is in this respect
It does not limit.
Wherein, address acquisition module 201, in response to destination request, being determined according to the first configuration file to prestore should
The corresponding access address of destination request, the destination request is for asking analogue data.
Data acquisition module 202, for obtaining destination request pair from the analogue data to prestore based on above-mentioned access address
The target simulation data answered.
Sending module 203, for sending target simulation data.
In some optional embodiments, address acquisition module 201 is configured for:Destination end is obtained from destination request
Slogan obtains the corresponding target array of the destination port number, and acquisition and mesh from target array from the first configuration file
Mark asks matched access address.
In other optional embodiments, data acquisition module 202 is configured for:If it is determined that destination port number with
The port that data server is opened mismatches, using cross-domain resource shared mechanism, based on access address from the analogue data to prestore
The corresponding target simulation data of middle acquisition destination request.
It should be appreciated that above-mentioned apparatus can be pre-set in the server, can also be loaded by modes such as downloads
In server.Corresponding module in above-mentioned apparatus can cooperate with the module in server is used for transmission simulation number to realize
According to scheme.
As shown in figure 3, Fig. 3 is used for transmission the stream of the method for analogue data according to the another kind shown in an exemplary embodiment
Cheng Tu, this method can be applied in data server, include the following steps:
In step 301, in response to destination request, the corresponding visit of destination request is determined according to the first configuration file to prestore
Ask address, the destination request is for asking analogue data.
In the present embodiment, it is stored with analogue data in data server, the analogue data is for service server preceding
It is used when holding business development.Address acquisition module and data acquisition module are installed in data server.Work as data server
After receiving destination request, it can determine that the destination request corresponds to according to the first configuration file to prestore by address acquisition module
Access address.Specifically, it can be pre-created the first configuration file, multiple port numbers have been recorded in first configuration file
And each corresponding array of port numbers, the element in array may include the access address of analogue data resource.It can be advance
First configuration file is stored in data server, data server is obtained in response to receiving destination request, call address
Module obtains destination port number from the destination request, and the corresponding number of targets of the destination port number is obtained from the first configuration file
Group, and obtained and the matched access address of the destination request from the target array.
In step 302, the corresponding mesh of the destination request is obtained from the analogue data to prestore based on above-mentioned access address
Mark analogue data.
In the present embodiment, if the port opened of destination port number and data server that the destination request carries not
Match, data server can also use cross-domain resource shared mechanism by data acquisition module, be obtained based on above-mentioned access address
The corresponding target simulation data of the destination request.
In step 303, the target simulation data are sent.
The method for being used for transmission analogue data that above-described embodiment of the application provides, by response to destination request, root
The corresponding access address of destination request is determined according to the first configuration file to prestore, and the destination request is for asking analogue data, base
The corresponding target simulation data of the destination request are obtained from the analogue data to prestore in above-mentioned access address, and send the target
Analogue data.To in the transmission process of analogue data, manually be participated in without relying on, not only save human resources, moreover,
Solve the problems, such as that development progress is slow and efficiency is low.
As shown in figure 4, Fig. 4 is used for transmission the stream of the method for analogue data according to the another kind shown in an exemplary embodiment
Cheng Tu, This embodiment describes the process for obtaining target simulation data, this method can be applied in data server, including with
Lower step:
In step 401, in response to destination request, destination port number is obtained from the destination request.
In step 402, the corresponding target array of the destination port number is obtained from the first configuration file.
In step 403, it is obtained and the matched access address of the destination request from the target array.
In step 404, if it is determined that the port that the destination port number and the data server are opened mismatches, using across
Domain Resources Sharing Mechanism obtains the corresponding target simulation number of the destination request based on access address from the analogue data to prestore
According to.
In step 405, the target simulation data are sent.
It should be noted that for the step identical with Fig. 3 embodiments, no longer go to live in the household of one's in-laws on getting married in above-mentioned Fig. 4 embodiments
It states, related content can be found in Fig. 3 embodiments.
It is pre-created the first configuration file since the present embodiment uses, multiple ports have been recorded in first configuration file
Number and each corresponding array of port numbers, the element in array include the access address of analogue data resource.Therefore, it can adopt
With address acquisition module, the corresponding access address of destination request is determined according to the first configuration file to prestore, without relying on
In the manually data structure of the port of setting data server and analogue data.Also, the present embodiment service server with
Data communication between data server can share machine by data acquisition module there are when Cross-domain problem using cross-domain resource
System obtains the corresponding target simulation data of destination request, to solve Cross-domain problem based on above-mentioned access address.Therefore, exist
In the transmission process of analogue data, development progress and development efficiency are further improved.
Although should be noted that in the above-described embodiments, the operation of the application method is described with particular order, this
These operations must be executed according to the particular order by not requiring that or implying, or is had to carry out and operated just shown in whole
It can realize desired result.On the contrary, the step of describing in flow chart, which can change, executes sequence.It additionally or alternatively, can be with
Certain steps are omitted, multiple steps, which are merged into a step, to be executed, and/or a step is decomposed into execution of multiple steps.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The embodiment of the present application also provides a kind of computer readable storage medium, which is stored with computer journey
Sequence, computer program can be used for executing the method for being used for transmission analogue data that above-mentioned Fig. 3 is provided to Fig. 4 any embodiments.
Corresponding to the above-mentioned method for being used for transmission analogue data, the embodiment of the present application also proposed basis shown in fig. 5
The schematic configuration diagram of the electronic equipment of the exemplary embodiment of the application.Referring to FIG. 5, in hardware view, the electronic equipment
Including processor, internal bus, network interface, memory and nonvolatile memory, it is also possible that other business institutes certainly
The hardware needed.Processor is being patrolled from then operation in corresponding computer program to memory is read in nonvolatile memory
The device for being used for transmission analogue data is formed in the level of collecting.Certainly, other than software realization mode, it is not precluded in the application
His realization method, for example, logical device or software and hardware combining mode etc., that is to say, that the execution master of following process flow
Body is not limited to each logic unit, can also be hardware or logical device.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and includes the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precision architecture for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
Claims (11)
1. a kind of system being used for transmission analogue data, which is characterized in that the system comprises:Service server and data clothes
Business device;Analogue data is stored in the data server, the data server is equipped with based on default running environment and transports
Capable address acquisition module and data acquisition module;
Wherein, the service server, for sending destination request to the data server, the destination request is for asking
Analogue data;
The data server is used in response to the destination request, by described address acquisition module according to first to prestore
Configuration file determines the corresponding access address of the destination request;By the data acquisition module be based on the access address from
The corresponding target simulation data of the destination request are obtained in the analogue data to prestore;And it is returned to the service server
The target simulation data.
2. according to the method described in claim 1, it is characterized in that, the data server in the following way by describedly
Location acquisition module determines the corresponding access address of the destination request according to the first configuration file to prestore:
Described address acquisition module is called to obtain destination port number from the destination request;
The corresponding target array of the destination port number is obtained from first configuration file;And
It is obtained and the matched access address of the destination request from the target array.
3. according to the method described in claim 1, it is characterized in that, the data server passes through the number in the following way
It is based on the access address according to acquisition module and obtains the corresponding target simulation data of the destination request:
If it is determined that the destination port number is mismatched with the port that the data server is opened, pass through the data acquisition mould
Block uses cross-domain resource shared mechanism, and the corresponding target simulation data of the destination request are obtained based on the access address.
4. according to the method described in claim 1, it is characterized in that, the service server is in the following way to the data
Server sends destination request:
Obtain the second configuration file to prestore;
Environmental variance parameter is obtained from second configuration file;
If being currently at simulated environment based on environmental variance parameter determination, sends target to the data server and ask
It asks.
5. a kind of data server being used for transmission analogue data, which is characterized in that be stored with simulation in the data server
Data, the data server are based on default running environment and develop;The data server includes:Address acquisition module, number
According to acquisition module and sending module;Described address acquisition module and the data acquisition module based on the default running environment and
Operation;
Wherein, described address acquisition module, in response to destination request, the mesh to be determined according to the first configuration file to prestore
Mark asks corresponding access address;The destination request is for asking analogue data;
The data acquisition module, for obtaining the destination request pair from the analogue data to prestore based on the access address
The target simulation data answered;
The sending module, for sending the target simulation data.
6. data server according to claim 5, which is characterized in that described address acquisition module is configured for:
Destination port number is obtained from the destination request;
The corresponding target array of the destination port number is obtained from first configuration file;And
It is obtained and the matched access address of the destination request from the target array.
7. data server according to claim 5, which is characterized in that the data acquisition module is configured for:
If it is determined that the destination port number is mismatched with the port that the data server is opened, machine is shared using cross-domain resource
System, the corresponding target simulation data of the destination request are obtained based on the access address from the analogue data to prestore.
8. a kind of method being used for transmission analogue data, which is characterized in that the method includes:
In response to destination request, the corresponding access address of the destination request is determined according to the first configuration file to prestore;It is described
Destination request is for asking analogue data;
The corresponding target simulation data of the destination request are obtained from the analogue data to prestore based on the access address;
Send the target simulation data.
9. according to the method described in claim 8, it is characterized in that, the first configuration file that the basis prestores determines the mesh
Mark asks corresponding access address, including:
Destination port number is obtained from the destination request;
The corresponding target array of the destination port number is obtained from first configuration file;And
It is obtained and the matched access address of the destination request from the target array.
10. according to the method described in claim 8, it is characterized in that, it is described based on the access address from the simulation number to prestore
According to the corresponding target simulation data of the middle acquisition destination request, including:
If it is determined that the destination port number is mismatched with the port that the data server is opened, machine is shared using cross-domain resource
System, the corresponding target simulation data of the destination request are obtained based on the access address from the analogue data to prestore.
11. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter
The method described in any one of the claims 8-10 is realized when calculation machine program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810190016.1A CN108462743B (en) | 2018-03-08 | 2018-03-08 | System and method for transmitting analog data and data server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810190016.1A CN108462743B (en) | 2018-03-08 | 2018-03-08 | System and method for transmitting analog data and data server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108462743A true CN108462743A (en) | 2018-08-28 |
CN108462743B CN108462743B (en) | 2021-03-02 |
Family
ID=63219859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810190016.1A Active CN108462743B (en) | 2018-03-08 | 2018-03-08 | System and method for transmitting analog data and data server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108462743B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202309A (en) * | 2014-08-18 | 2014-12-10 | 深圳市江波龙电子有限公司 | Data transmission control method and apparatus |
US20160099043A1 (en) * | 2014-10-06 | 2016-04-07 | Windbond Electronics Corp. | Memory circuit and refresh method thereof |
CN105763628A (en) * | 2016-04-12 | 2016-07-13 | 上海帝联信息科技股份有限公司 | Data access request processing method and device, edge node server and edge cluster |
CN106878321A (en) * | 2017-03-09 | 2017-06-20 | 腾讯科技(深圳)有限公司 | A kind of server log method, apparatus and system |
-
2018
- 2018-03-08 CN CN201810190016.1A patent/CN108462743B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202309A (en) * | 2014-08-18 | 2014-12-10 | 深圳市江波龙电子有限公司 | Data transmission control method and apparatus |
US20160099043A1 (en) * | 2014-10-06 | 2016-04-07 | Windbond Electronics Corp. | Memory circuit and refresh method thereof |
CN105763628A (en) * | 2016-04-12 | 2016-07-13 | 上海帝联信息科技股份有限公司 | Data access request processing method and device, edge node server and edge cluster |
CN106878321A (en) * | 2017-03-09 | 2017-06-20 | 腾讯科技(深圳)有限公司 | A kind of server log method, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN108462743B (en) | 2021-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112988572B (en) | Multi-environment multi-channel multi-version simulation test method and device | |
CN110063051A (en) | Reconfigurable server | |
CN107404481B (en) | User information recognition methods and device | |
CN108737325A (en) | A kind of multi-tenant data partition method, apparatus and system | |
CN108306956A (en) | Information-pushing method, device, server and computer-readable medium | |
CN110034972B (en) | Server pressure testing method and device | |
CN107920138A (en) | A kind of user's unifying identifier generation method, apparatus and system | |
CN103136322B (en) | Apparatus and method for configuration querying | |
CN105453058B (en) | Directory service is found and/or study | |
CN109728984A (en) | A kind of access system, method and device | |
CN107580011A (en) | A kind of data sharing method and desktop cloud server terminal | |
CN114924751A (en) | Method and device for distributing service access request flow | |
CN106202074A (en) | A kind of method and device processing shared file | |
CN105988922A (en) | Testing method and device of application program as well as server | |
CN108008959A (en) | A kind of Software Development Kit SDK cut-in methods, system and device | |
CN107517139A (en) | Data processing method and system, device test system and bus test system | |
CN112804367B (en) | Address allocation method and device under dual-stack environment | |
CN113114503A (en) | Deployment method and device based on application delivery network requirements | |
CN108462743A (en) | It is used for transmission the system, method and data server of analogue data | |
WO2021108510A1 (en) | Quantum computing service supporting multiple quantum computing technologies | |
CN110322612A (en) | Business data processing method, calculates equipment and storage medium at device | |
CN105978744A (en) | Resource allocation method, device and system | |
CN106161668A (en) | Generate the method for domain name mapping, device and server | |
Cherrueau et al. | Geo-distribute cloud applications at the edge | |
CN107332836A (en) | Data sharing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |