CN105337816B - The method and apparatus that data consistency guarantees between local area network - Google Patents
The method and apparatus that data consistency guarantees between local area network Download PDFInfo
- Publication number
- CN105337816B CN105337816B CN201410370002.XA CN201410370002A CN105337816B CN 105337816 B CN105337816 B CN 105337816B CN 201410370002 A CN201410370002 A CN 201410370002A CN 105337816 B CN105337816 B CN 105337816B
- Authority
- CN
- China
- Prior art keywords
- local area
- area network
- equipment
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides the method and apparatus that data consistency between a kind of local area network guarantees, the local area network includes the first local area network and the second local area network being isolated with external network, it include the first equipment in first local area network, the permission that there is first equipment external network to send Email, it include the second equipment and server in second local area network, second equipment has the permission for receiving external network Email, the server has the permission for receiving external network data, and the method includes:Obtain the specified data in first equipment;The specified data are uploaded to server;Specific e-mail is generated according to the specified data;The specific e-mail is sent to second equipment.The embodiment of the present invention is to the data between synchronous local area network.
Description
Technical field
The present invention relates to Internet technical field, the method guaranteed more particularly to data consistency between a kind of local area network
The device that data consistency guarantees between a kind of local area network.
Background technique
Large-scale R & D Enterprises usually geographically establish research and development centre in different, such as may be respectively in Tianjin and north
Research and development centre is established in capital.For enterprise, requirement of the research and development of new product to secrecy is very high, so research and development centre generally uses
Independent local area network, thus enterprises development environment and external the Internet are disconnected, let out to avoid the research and development content of new product
Leakage.
When the research and development centre of different geographical needs work in coordination completion research and development, due to using independent local area network and outside
Internet disconnects, therefore cannot transmit mutually research and development information by internet.For example, when a game is carried out while being tested
When, it is assumed that the R&D team in Tianjin want the test case by newest modification pass to R&D team of Pekinese in order into
Row subsequent whole debugging and improvement, but since the network between Tianjin and research and development centre of Pekinese is to disconnect, it cannot
Test case is transmitted by internet.
Therefore, a technical problem that needs to be urgently solved by technical personnel in the field at present is exactly:It is proposed a kind of local area network
Between the synchronous strategy of data, to the data between synchronous local area network.
Summary of the invention
The technical problem to be solved is that provide the side that data consistency guarantees between a kind of local area network for the embodiment of the present invention
Method, to the data between synchronous local area network.
Correspondingly, the embodiment of the invention also provides the devices that data consistency between a kind of local area network guarantees, to protect
Demonstrate,prove the realization and application of the above method.
To solve the above-mentioned problems, described the invention discloses the method that data consistency between a kind of local area network guarantees
Local area network includes the first local area network and the second local area network being isolated with external network, is set in first local area network including first
Permission standby, that there is first equipment external network to send Email, interior second local area network includes the second equipment
And server, second equipment have the permission for receiving external network Email, the server, which has, receives extranets
The permission of network data, the method include:
Obtain the specified data in first equipment;
The specified data are uploaded to server;
Specific e-mail is generated according to the specified data;
The specific e-mail is sent to second equipment.
Preferably, it is equipped in first equipment in the first management system TestLink, the TestLink and includes
Database, it is described obtain the first equipment in specified data the step of include:
Back up the specified tables of data in the database in the TestLink;
The specified tables of data is saved as to the data file of specified format.
Preferably, the specific e-mail includes mail header and message body, and the specified data have filename,
The foundation specify data generate specific e-mail the step of include:
Mail header is generated using particular prefix;
Message body is generated using the filename;
It is specific e-mail by the mail header and message body tissue.
The embodiment of the invention also discloses the method that data consistency between a kind of local area network guarantees, the local area network includes
The first local area network and the second local area network being isolated with external network, include the first equipment in first local area network, and described the
The permission that there is one equipment external network to send Email, includes the second equipment and server in second local area network,
Second equipment has the permission for receiving external network Email, and the server has the power for receiving external network data
Limit, the method include:
Receive the Email that first equipment is sent;
Judge whether the Email is specific e-mail;
If so, obtaining specified data from server according to the specific e-mail.
Preferably, the Email includes mail header;It is described to judge whether the Email is specific electron postal
The step of part includes:
Mail header is extracted from the Email;
Judge whether the mail header is particular prefix;
If so, determining the Email for specific e-mail.
Preferably, the Email further includes message body;The second management system is installed in second equipment
TestLink, described the step of specified data are obtained from server according to the specific e-mail include:
Message body is extracted from the specific e-mail;
Obtain filename and the consistent data file of the message body in the server;
The data file is imported in the TestLink.
The embodiment of the invention also discloses the devices that data consistency between a kind of local area network guarantees, which is characterized in that institute
Stating local area network includes the first local area network and the second local area network being isolated with external network, includes first in first local area network
Equipment, the permission that there is first equipment external network to send Email, second local area network is interior to be set including second
Standby and server, second equipment have the permission for receiving external network Email, and the server, which has, receives outside
The permission of network data, the device include:
Module is obtained, for obtaining the specified data in first equipment;
Uploading module, for the specified data to be uploaded to server;
Generation module, for generating specific e-mail according to the specified data;
Sending module, for the specific e-mail to be sent to second equipment.
Preferably, it is equipped in first equipment in the first management system TestLink, the TestLink and includes
Database, the acquisition module include:
Backup submodule, for backing up the specified tables of data in the database in the TestLink;
Submodule is saved, for the specified tables of data to be saved as to the data file of specified format.
Preferably, the specific e-mail includes mail header and message body, and the specified data have filename,
The generation module includes:
Mail header generates submodule, for generating mail header using particular prefix;
Message body generates submodule, for generating message body using the filename;
Mail tissue submodule, for being specific e-mail by the mail header and message body tissue.
The embodiment of the invention also discloses the devices that data consistency between a kind of local area network guarantees, which is characterized in that institute
Stating local area network includes the first local area network and the second local area network being isolated with external network, includes first in first local area network
Equipment, the permission that there is first equipment external network to send Email, second local area network is interior to be set including second
Standby and server, second equipment have the permission for receiving external network Email, and the server, which has, receives outside
The permission of network data, the device include:
Receiving module, the Email sent for receiving first equipment;
Judgment module, for judging whether the Email is specific e-mail;Module is obtained if so, calling;
Module is obtained, for obtaining specified data from server according to the specific e-mail.
Compared with prior art, the embodiment of the present invention includes following advantages:
It is related to independent first local area network and the second local area network in embodiments of the present invention, is arranged inside the first local area network
The equipment of one permission only with external network transmission Email, setting one only has and connects inside the second local area network
Receive the equipment and the equipment only with reception external network data permission of the permission of external network Email.When
When the equipment of first local area network updates test case, which is uploaded to specified server, concurrent power transmission
The equipment of the second local area network of mail notification has new test case upload to finish.When the second local area network receives Email,
If judging the Email for specific e-mail, it is the Email that notice has new test case to upload, then goes to specify
It goes to obtain the new test case in server.The data consistency strategy of the embodiment of the present invention can synchronize between local area network
Data simply and are easily achieved, and can be realized the diversification of communication mode between local area network.
Detailed description of the invention
Fig. 1 is the step flow chart for the embodiment of the method 1 that data consistency guarantees between a kind of local area network of the invention;
Fig. 2 is the step flow chart for the embodiment of the method 2 that data consistency guarantees between a kind of local area network of the invention;
Fig. 3 is the structural block diagram for the Installation practice 1 that data consistency guarantees between a kind of local area network of the invention;
Fig. 4 is the structural block diagram for the Installation practice 2 that data consistency guarantees between a kind of local area network of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Referring to Fig.1, the step of showing embodiment of the method 1 that data consistency guarantees between a kind of local area network of the invention
Flow chart, the local area network may include the first local area network and the second local area network being isolated with external network, in the first game
It may include the first equipment in the net of domain, first equipment can have the permission that external network sends Email, described
It may include the second equipment and server in second local area network, second equipment, which can have, receives external network Email
Permission, the server can have receive external network data permission;
It should be noted that local area network in embodiments of the present invention is independent of each other, and it is isolated with external the Internet,
Therefore the equipment in local area network cannot arbitrarily be connect with external the Internet.For the equipment inside internet, ground based on actual
Different permissions can be accordingly arranged in hair demand.For example, can only allow a certain equipment to have sends electronics with external network
The permission of mail, alternatively, only allowing a certain equipment that there is the permission for receiving external network Email, in addition, in order to connect
The data from external network are received, the data from external network can also be can receive for the server setting inside local area network
Permission, the embodiments of the present invention are not limited thereto.
The method can specifically include following steps:
Step 101, the specified data in first equipment are obtained;
In one preferred embodiment of the invention, the first management system is installed in first equipment
It include database in TestLink, the TestLink, the step 101 may include following sub-step:
Sub-step S11 backs up the specified tables of data in the database in the TestLink;
The specified tables of data is saved as the data file of specified format by sub-step S12.
In the concrete realization, test case management system TestLink can be installed in the equipment of local area network, it is described
TestLink is the test case management system based on webpage web, and major function is the creation of test case, manages and hold
Row, and some simple statistical functions can also be provided.
The backup life of Database Systems Mysql offer can be used in the DB (Data Base, database) of TestLink
It enables, TestLink specified data library table content backup is come out, the backup data files of Mysql are generated, to be specified
Data.Wherein the data file is finally the file of .sql format.
In practical applications, if data file is larger, compression can also be carried out to data file and generates extended formatting
File, such as zip format, it is of course also possible to use extended formatting storing data file, such as rar format etc., the present invention is real
It is without restriction to this to apply example.
Specified data in the embodiment of the present invention can be test case, and wherein test case (Test Case) is for certain
A special objective and one group of test input, execution condition and the expected results worked out, to test some Program path or core
It is real whether to meet some particular demands.It should be noted that specified data may be the program error that implementation of test cases occurs
Other data such as false information BUG, the embodiment of the present invention are same without restriction to this.
Step 102, the specified data are uploaded to server;
Server can be FTP (File Transfer Protocol, File Transfer Protocol) server, the FTP clothes
Business device is can to provide the computer of memory space on the internet, can provide service according to File Transfer Protocol, realize that information is total
It enjoys.
It in embodiments of the present invention, can be by calling FTP order when being collected into specified data in the first local area network
The data file of generation is uploaded into specified ftp server, wherein ftp server is located in the second local area network, and only has
There is the permission for the data for receiving external network, i.e., cannot transmit data to external network.
Certainly, the ftp server can also be placed in outside local area network, and one is then arranged in local area network has from outer
The equipment that portion's network obtains data permission sends the notice for having specified data to upload when there is specified data to be uploaded to ftp server
To the equipment.
In the concrete realization, FTP address information, such as FTP address information can be deployed in advance in the first local area network
It may include IP address and port numbers, such as IP address is 10.2.2.1, port numbers 999.Certainly, in the second local area network
It can also be deployed with the IP address and port numbers of ftp server in advance, when the first local area network there are specified data needs to be uploaded to clothes
When business device, specified data can be uploaded to and be deployed with FTP address information in advance, when the second local area network needs to obtain the specified number
According to when, directly according to be deployed in advance ftp server IP address and port numbers to ftp server obtain.
It, can on the server of the installation TestLink in the first local area network in a kind of example of concrete application of the present invention
To be equipped with batch program tjUpload.bat, plan target automatic trigger batch program can be passed through in practice
tjUpload.bat.Certainly, batch program tjUpload.bat can also be triggered by manually mode.
The TestLink database back-up data file backed up (is assumed to be by the batch program tjUpload.bat
Abc.sql) ftp server is uploaded to using the FTP order of standard.
FTP life that the FTP order of the standard can be the operating system default offer of equipment, that exploitation environment is general
It enables;Specifically, grammer or thinking can be:
A. a configuration file that will be executed by FTP order is created, it is assumed that the configuration file is FTP.txt;
B. the open order of FTP is saved into FTP.txt file, and grammer is:
The address echo open FTP FTP port numbers>FTP.txt
C. FTP user's name information is saved into FTP.txt file, and grammer is:
Echo user name>>FTP.txt
D. FTP user's password is saved into FTP.txt file, and grammer is:
Echo user password>>FTP.txt
E. database back-up data file abc.sql to the FTP.txt file of Mysql is saved using the order mput of FTP
In, grammer is:
echo mput abc.sql>>FTP.txt
F. enter FTP environment and disposably execute instruction collection, i.e. configuration file FTP.txt, realize upload function, grammer is:
FTP-s:FTP.txt
In a particular application, finger can be realized using batch program tjUpload.bat running configuration file FTP.txt
The upload of fixed number evidence, grammer is simple, not easy to make mistakes in actual motion, and efficiency is higher.
It should be noted that in practical applications can also be using the specified data of other modes upload to ftp server, this
Inventive embodiments are without restriction to this.
In order to make those skilled in the art more fully understand the embodiment of the present invention, said below using specific example
It is bright.Assuming that enterprise establishes in Tianjin and Beijing research and development centre, and Tianjin and research and development centre of Pekinese use two solely
Vertical local area network.
There is platform equipment (abbreviation A equipment) to be mounted with management system TestLink in the local area network of Tianjin, the Tianjin local area network
Interior only A equipment has the permission toward outer net hair mail, and other equipment can not transmit any data to outer net, therefore can guarantee
Information security inside the local area network of Tianjin.
There is platform equipment (abbreviation B device) to be mounted with test case management system TestLink, Beijing office in the local area network of Beijing
The TestLink on B device can be used in examination personnel in the net of domain.All devices can not be to external interconnections in the local area network of Beijing
Net sends any information, but can receive the Email of external the Internet transmission.In practice, TestLink can portion
It affixes one's name in one or more equipment in the local area network of Beijing.
In the concrete realization, Tianjin local area network is provided using the DB Backup of TestLink as point of penetration using Mysql
After TestLink specified data library table content is obtained specified data by backup command, and it will also lead in the form of E-mail
Know that Beijing local area network there are new data.
Step 103, specific e-mail is generated according to the specified data;
After the first local passes specified data to server on the net, an envelope Email to the second local will be also sent simultaneously
Net, to inform that specified data have uploaded completion.
In one preferred embodiment of the invention, the specific e-mail may include mail header and mail just
Text, the specified data can have filename, and the step 103 may include following sub-step:
Sub-step S21 generates mail header using particular prefix;
Sub-step S22 generates message body using the filename;
The mail header and message body tissue are specific e-mail by sub-step S23.
It, can be according to specified data in embodiments of the present invention for informing that specified data have uploaded the Email of completion
It is arranged, understands the purpose of the Email, convenient for the equipment in local area network to arrange the processing of next step in time.
Specifically, the mail header of Email may include particular prefix, such as " [TestLinkSyncUp]:",
To indicate the transmitting purpose of the Email.Message body may include the Data Filename of specified data, for example can be
"2014-6-16-15-00.sql".It is of course also possible to the storage of specified data is written in the message body of Email
Location, then the second local area network can directly obtain specified data according to storage address into server.
Step 104, the specific e-mail is sent to second equipment.
When generating for informing the Email for there are specified data to upload, the Email is sent to the second local
Have in the equipment for receiving Email permission in net.
It should be noted that in the concrete realization can also except Email by the way of transmit specified data and upload
Message, the embodiments of the present invention are not limited thereto.
In embodiments of the present invention, the equipment in local area network cannot arbitrarily connect external network, be just for actual demand
Permission is arranged in equipment in local area network, for example is set as only sending the permission of Email with external network, only has and connects
The permission of external network Email is received, only there is the permission etc. for receiving external network data, limiting device and external network
The way of connection can be with the safety of effective protection local area network internal data.
Referring to Fig. 2, the step of showing embodiment of the method 2 that data consistency guarantees between a kind of local area network of the invention
Flow chart, the local area network may include the first local area network and the second local area network being isolated with external network, in the first game
It may include the first equipment in the net of domain, first equipment can have the permission that external network sends Email, described
It may include the second equipment and server in second local area network, second equipment, which can have, receives external network Email
Permission, the server can have the permission for receiving external network data, and the method can specifically include following step
Suddenly:
Step 201, the Email that first equipment is sent is received;
When there are specified data to want to pass to the second local area network in the first local area network, local area network transmission will be received
Email, the Email is to notify the second local area network to have specified data to be uploaded to server.Specifically, second
Local area network can pass through SMPT (Simple Mail Transport Protocol, Simple Mail Transfer protocol) mail server
Receive the Email from external interconnections network.
It should be noted that periodic cleaning electricity can be set since the Email transmitted between local area network may be more
Sub- mail avoids the accumulation due to Email, and the problem of other subsequent Emails can not be received.
Step 202, judge whether the Email is specific e-mail;If so, thening follow the steps 203;
In one preferred embodiment of the invention, the Email may include mail header;The step 202 can
To include following sub-step:
Sub-step S31 extracts mail header from the Email;
Sub-step S32 judges whether the mail header is particular prefix;If so, executing sub-step S33;
Sub-step S33 determines the Email for specific e-mail.
In the concrete realization, for the Email received, can be judged according to the mail header of the Email
Whether the Email is specific e-mail, that is, determines whether the Email is that notice has specified data to be uploaded to service
The Email of device.
In a kind of example of concrete application of the present invention, the equipment in the second local area network writes OutLook plug-in unit, this is inserted
Part is mainly used as monitoring whether the first local area network has the specified data of upload to server, and triggers and import script from server
It obtains specified data and imports the second local area network, to realize the synchronizing function of data.
NewMailEx event is used in the OutLook plug-in unit, the automatic trigger function when there is new Email to arrive
Can, while whether including particular prefix by the mail header for judging the Email, than such as whether being
"[TestLinkSyncUp]:" prefix, to judge whether it is specific e-mail, if so, message body content is obtained, in postal
Filename comprising specified data in part text, such as " 2014-6-16-15-00.sql ".
Step 203, specified data are obtained from the server according to the specific e-mail.
In one preferred embodiment of the invention, the specific e-mail can also include message body;Described
Second management system TestLink is installed, the step 203 may include following sub-step in the second equipment:
Sub-step S41 extracts message body from the specific e-mail;
Sub-step S42 obtains filename and the consistent data file of the message body in the server;
Sub-step S43 imports the data file in the TestLink.
In embodiments of the present invention, if it is determined that the Email received is specific e-mail, then from the electronics postal
The filename of specified data, such as " 2014-6-16-15-00.sql " are got in the message body of part, then according to second
Ftp server address information can also be deployed in local area network in advance, and that the filename is obtained in ftp server is corresponding
Data file, the address information may include IP address and port numbers, such as IP address is 10.2.2.1, port numbers 999.
It is obtained according to described into server.Certainly, the finger that the first local passes on the net can be written in message body in practice
Fixed number is according in server address information, and the equipment of the second local area network is from according to the address information extracted from message body to service
Device obtains specified data.
In the concrete realization, TestLink is installed in the equipment in the second local area network, is got when from the server
When specified data, the reduction order for importing script and Mysql being used to provide of TestLink can be imported specified data
The database of TestLink.
In a kind of example of concrete application of the present invention, it can be installed in the TestLink of the equipment in the second local area network
There is batch program bjSync.bat, (is assumed to be the filename of the specified data obtained in message body in OutLook plug-in unit
Abc.sql it) parses, is transmitted to batch program bjSync.bat as parameter.
Specifically, in the second local area network specify data the process of downloading and the upload procedure of specified data on the contrary, its
Thinking or grammer can be:
Batch program bjSync.bat is called by Outlook plug-in card program, is realized from server and is downloaded specified data
Under abc.sql to local path.The roadmap of batch program bjSync.bat is as follows:
A. a configuration file that will be executed by ftp order is created, it is assumed that it is ftp.txt that this, which sets file,;
B. the open order of ftp is saved into ftp.txt file, and grammer is:
The address echo open ftp ftp port numbers>ftp.txt
C. ftp username information is saved into ftp.txt file, and grammer is:
Echo user name>>ftp.txt
D. ftp user password is saved into ftp.txt file, and grammer is:
Echo user password>>ftp.txt
E. the specified data file abc.sql of Mysql is obtained using ftp order mget, grammer is:
echo mget abc.sql>>ftp.txt
F. enter ftp environment at standard dos and disposably execute instruction collection, i.e. ftp.txt configuration file, realize downloading function
Can, substantially grammer is as follows:
ftp-s:ftp.txt
In a particular application, it can be realized using batch program bjSync.bat running configuration file FTP.txt specified
The downloading of data, grammer is simple, not easy to make mistakes in actual motion, and efficiency is higher.
In a kind of example of concrete application of the present invention, Outlook plug-in unit is installed in the equipment of the second local area network, is criticized
Processing routine bjSync.bat and importing script Restore.bat, after Outlook plug-in unit receives specific e-mail,
The filename of specified data is parsed from the specific e-mail, and calls batch program bjSync.bat from FTP service
Device obtains specified data and is saved under specified path, and subsequent OutLook plug-in unit, which calls, imports script Restore.bat execution number
According to the reduction order in library, the specified data under specified path are imported in the TestLink database of the second local area network, this current political situation
TestLink data between the net of domain are completely the same, realize the TestLink data automatic synchronizing function between local area network.
In order to make those skilled in the art more fully understand the embodiment of the present invention, said below using specific example
It is bright.
Assuming that the equipment (assuming that being B device) in the local area network of Beijing can be received by SMPT mail server from outer
The Email of portion's network.
Test case management TestLink can be disposed on the B device of Beijing local area network, and Outlook is installed on B device
Mailbox simultaneously configures a specified Email Accounts (being assumed to be the specified Email Accounts is AutoTest@* * * .com), special to use
In Email of the reception from Tianjin local area network.
The TestLink disposed on the B device of Beijing local area network may include OutLook plug-in unit and TestLink plug-in unit two
Part, the TestLink plug-in unit can be including batch program bjSync.bat and import script Restore.bat.
OutLook plug-in unit is mounted on the Outlook mailbox on B device, TestLink plug-in unit then can in the form of a script portion
It affixes one's name at TestLink under the root directory
When the A equipment of Tianjin local area network has new test case, in Tianjin, the A equipment of local area network gives Beijing local area network
Particular account number AutoTest@* * * .com send Email.Specifically, the mail header of the Email with "
[TestLinkSyncUp]:" it is prefix, is specific e-mail for indicating this Email, in addition, the postal of the Email
Part text includes the filename of specified data or the address information of server.
The OutLook mailbox that B device is disposed in the local area network of Beijing installs mail automatic trigger plug-in unit, due to registering in plug-in unit
NewMailEx event, then any new Email arrival can all trigger the plug-in unit, therefore whenever specified mailbox
When AutoTest@* * * .com receives new e-mail, meeting automatic trigger plug-in unit executes the detection program of Email.
Outlook mailbox on B device in the local area network of Beijing, which receives, issues specified account AutoTest@* * *
.com after Email, execute detection program go to detect first the Email mail header whether with "
[TestLinkSyncUp]:" starts for prefix, if it is, indicating to be specific e-mail, then need to carry out next step behaviour
Make, if it is not, then can abandon, does not need to be further processed.
Specifically, Outlook plug-in unit extracts in the message body of the Email when being the discovery that specific e-mail
Hold, i.e., the filename of specified data, Outlook plug-in unit calls batch program bjSync.bat to be taken according to preconfigured FTP
Device address information of being engaged in ftp server obtains the corresponding data file of the filename, finally using importing script
The data file that Restore.bat will acquire imports in the database of TestLink.
In a particular application, in order to guarantee the consistency of the first local area network and the second local area network TestLink version, if
There is some local area network to carry out version updating, then can send mail notification other side and carry out version updating in time.
In addition, the specified data file of upload server by network environment influence, may be caused to lack in the first local area network
Or damage, in order to guarantee import TestLink file validity, can in the second local area network can for specify data
It is detected, if it find that specified data file missing or damage, then can notify in time the first local area network to upload again.
It is related to independent first local area network and the second local area network in embodiments of the present invention, is arranged inside the first local area network
The equipment of one permission only with external network transmission Email, setting one only has and connects inside the second local area network
Receive the equipment and the equipment only with reception external network data permission of the permission of external network Email.When
When the equipment of first local area network updates test case, which is uploaded to specified server, concurrent power transmission
The equipment of the second local area network of mail notification has new test case upload to finish.When the second local area network receives Email,
If judging the Email for specific e-mail, it is the Email that notice has new test case to upload, then goes to specify
It goes to obtain the new test case in server.The data consistency strategy of the embodiment of the present invention can synchronize between local area network
Data simply and are easily achieved, and can be realized the diversification of communication mode between local area network.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 3, the structural frames for the Installation practice 1 that data consistency guarantees between a kind of local area network of the present invention are shown
Figure, the local area network may include the first local area network and the second local area network being isolated with external network, in first local area network
Inside may include the first equipment, first equipment can have external network send Email permission, described second
It may include the second equipment and server in local area network, second equipment can have the power for receiving external network Email
Limit, the server can have the permission for receiving external network data, and the device can specifically include following module:
Module 301 is obtained, for obtaining the specified data in first equipment;
In one preferred embodiment of the invention, the first management system is installed in first equipment
It include database in TestLink, the TestLink, the acquisition module 301 may include following submodule:
Backup submodule, for backing up the specified tables of data in the database in the TestLink;
Submodule is saved, for the specified tables of data to be saved as to the data file of specified format.
Uploading module 302, for the specified data to be uploaded to server;
Generation module 303, for generating Email according to the specified data;
In one preferred embodiment of the invention, the Email includes mail header and message body, the finger
For fixed number according to having filename, the generation module 303 may include following submodule:
Mail header generates submodule, for generating mail header using particular prefix;
Message body generates submodule, for generating message body using the filename;
Mail tissue submodule, for being Email by the mail header and message body tissue.
Sending module 304, for the Email to be sent to second equipment.
Referring to Fig. 4, the structural frames for the Installation practice 2 that data consistency guarantees between a kind of local area network of the present invention are shown
Figure, the local area network may include the first local area network and the second local area network being isolated with external network, in first local area network
Inside may include the first equipment, first equipment can have external network send Email permission, described second
It may include the second equipment and server in local area network, second equipment can have the power for receiving external network Email
Limit, the server can have the permission for receiving external network data, and the device can specifically include following module:
Receiving module 401, the Email sent for receiving first equipment;The Email includes mail mark
Topic and message body;
Judgment module 402, for judging whether the Email is specific e-mail according to the mail header;If
It is then to call to obtain module 403;
In one preferred embodiment of the invention, the Email may include mail header;The judgment module
402 may include following submodule:
Mail header extracting sub-module, for extracting mail header from the Email;
Mail header judging submodule, for judging whether the mail header is particular prefix;If so, calling first
Decision sub-module, if it is not, then calling the second decision sub-module;
First decision sub-module, for determining the Email for specific e-mail;
Second decision sub-module, for if it is not, then determining that the Email is nonspecific Email.
Module 403 is obtained, for obtaining specified data from server according to the message body.
In one preferred embodiment of the invention, the Email can also include message body;Described second
Second management system TestLink can be installed, the acquisition module 403 may include following submodule in equipment:
Message body extracting sub-module, for extracting message body from the Email;
Data file acquisition submodule, for obtaining filename and the consistent data of the message body in the server
File;
Data file imports submodule, for importing the data file in the TestLink.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to the method and a kind of local area network that data consistency guarantees between a kind of local area network provided by the present invention it
Between the device that guarantees of data consistency, be described in detail, specific case used herein is to the principle of the present invention and reality
The mode of applying is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Together
When, for those of ordinary skill in the art, according to the thought of the present invention, have in specific embodiments and applications
Change place, in conclusion the contents of this specification are not to be construed as limiting the invention.
Claims (10)
1. a kind of method that data consistency guarantees between local area network, which is characterized in that the local area network includes and external network
The first local area network and the second local area network of isolation, include the first equipment in first local area network, and first equipment has
External network sends the permission of Email, includes the second equipment and server in second local area network, described second sets
Standby to have the permission for receiving external network Email, the server has the permission for receiving external network data, described
Method includes:
Obtain the specified data in first equipment;
The specified data are uploaded to server;
Specific e-mail is generated according to the specified data;
The specific e-mail is sent to second equipment.
2. the method according to claim 1, wherein being equipped with the first management system in first equipment
In TestLink, the TestLink include database, it is described obtain the first equipment in specified data the step of include:
Back up the specified tables of data in the database in the TestLink;
The specified tables of data is saved as to the data file of specified format.
3. method according to claim 1 or 2, which is characterized in that the specific e-mail includes mail header and postal
Part text, the specified data include with the step of filename, the foundation specifies data to generate specific e-mail:
Mail header is generated using particular prefix;
Message body is generated using the filename;
It is specific e-mail by the mail header and message body tissue.
4. a kind of method that data consistency guarantees between local area network, which is characterized in that the local area network includes and external network
The first local area network and the second local area network of isolation, include the first equipment in first local area network, and first equipment has
External network sends the permission of Email, includes the second equipment and server in second local area network, described second sets
Standby to have the permission for receiving external network Email, the server has the permission for receiving external network data, described
Method includes:
Receive the Email that first equipment is sent;
Judge whether the Email is specific e-mail;
If so, obtaining specified data from server according to the specific e-mail.
5. according to the method described in claim 4, it is characterized in that, the Email includes mail header;The judgement institute
State that the step of whether Email is specific e-mail includes:
Mail header is extracted from the Email;
Judge whether the mail header is particular prefix;
If so, determining the Email for specific e-mail.
6. method according to claim 4 or 5, which is characterized in that the Email further includes message body;Described
Second management system TestLink is installed in the second equipment, it is described to be referred to from server according to the specific e-mail
Fixed number according to the step of include:
Message body is extracted from the specific e-mail;
Obtain filename and the consistent data file of the message body in the server;
The data file is imported in the TestLink.
7. the device that data consistency guarantees between a kind of local area network, which is characterized in that the local area network includes and external network
The first local area network and the second local area network of isolation, include the first equipment in first local area network, and first equipment has
External network sends the permission of Email, includes the second equipment and server in second local area network, described second sets
Standby to have the permission for receiving external network Email, the server has the permission for receiving external network data, described
Device includes:
Module is obtained, for obtaining the specified data in first equipment;
Uploading module, for the specified data to be uploaded to server;
Generation module, for generating specific e-mail according to the specified data;
Sending module, for the specific e-mail to be sent to second equipment.
8. device according to claim 7, which is characterized in that be equipped with the first management system in first equipment
It include database in TestLink, the TestLink, the acquisition module includes:
Backup submodule, for backing up the specified tables of data in the database in the TestLink;
Submodule is saved, for the specified tables of data to be saved as to the data file of specified format.
9. device according to claim 7 or 8, which is characterized in that the specific e-mail includes mail header and postal
Part text, the specified data have filename, and the generation module includes:
Mail header generates submodule, for generating mail header using particular prefix;
Message body generates submodule, for generating message body using the filename;
Mail tissue submodule, for being specific e-mail by the mail header and message body tissue.
10. the device that data consistency guarantees between a kind of local area network, which is characterized in that the local area network includes and external network
The first local area network and the second local area network of isolation, include the first equipment in first local area network, and first equipment has
External network sends the permission of Email, includes the second equipment and server in second local area network, described second sets
Standby to have the permission for receiving external network Email, the server has the permission for receiving external network data, described
Device includes:
Receiving module, the Email sent for receiving first equipment;
Judgment module, for judging whether the Email is specific e-mail;Module is obtained if so, calling;
Module is obtained, for obtaining specified data from server according to the specific e-mail.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410370002.XA CN105337816B (en) | 2014-07-30 | 2014-07-30 | The method and apparatus that data consistency guarantees between local area network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410370002.XA CN105337816B (en) | 2014-07-30 | 2014-07-30 | The method and apparatus that data consistency guarantees between local area network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105337816A CN105337816A (en) | 2016-02-17 |
CN105337816B true CN105337816B (en) | 2018-11-23 |
Family
ID=55288128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410370002.XA Active CN105337816B (en) | 2014-07-30 | 2014-07-30 | The method and apparatus that data consistency guarantees between local area network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105337816B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110971447A (en) * | 2019-10-22 | 2020-04-07 | 视联动力信息技术股份有限公司 | Test information management method and device, electronic equipment and readable storage medium |
CN111274008B (en) * | 2020-01-08 | 2023-07-18 | 百度在线网络技术(北京)有限公司 | Process control method, server and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8762577B2 (en) * | 2003-06-30 | 2014-06-24 | Apple Inc. | Method and system for providing network synchronization with a unified messaging system |
US20060031323A1 (en) * | 2004-06-29 | 2006-02-09 | International Business Machines Corporation | Systems, methods, and media for database synchronization on a network |
CN102098321A (en) * | 2009-12-11 | 2011-06-15 | 北大方正集团有限公司 | Remote data query method, system and device |
-
2014
- 2014-07-30 CN CN201410370002.XA patent/CN105337816B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105337816A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8463859B2 (en) | Email system including synchronization server(s) providing synchronization based upon synchronization indicators stored on mobile devices and related methods | |
CN103747132B (en) | The method of display message and terminal | |
CN108430116A (en) | Suspension reconnection method, medium, device and computing device | |
CN104935502B (en) | The creation method and device of mail group | |
CN104615534A (en) | Interface test method and device | |
CN103647701B (en) | The control method and device of instantaneous communication system message forwarding | |
CN107911483A (en) | A kind of information transferring method and device | |
CN104052652B (en) | It is a kind of to realize method, client, system and electronic equipment that message is automatically deleted | |
CN102387482A (en) | Method, system and mobile phone for acquiring mobile phone service information | |
CN108200219A (en) | Method of data synchronization, device, server and storage medium | |
CN108139936A (en) | The methods, devices and systems of access to the serial port from the virtual machine in the virtual application of deployment are provided | |
CN110502572A (en) | A kind of method and server that data are synchronous | |
CN103631652A (en) | Method and system for achieving virtual machine migration | |
CN105337816B (en) | The method and apparatus that data consistency guarantees between local area network | |
CN107786671A (en) | A kind of power equipment remote test system | |
CN109600257B (en) | Tool deployment method, device and storage medium | |
CN105827739B (en) | Contact information synchronous method, device, server and system | |
CN113645314A (en) | Private cloud deployment method and server | |
CN103379015B (en) | The data transmission method of Website server and IM client and its device and system | |
US8774029B1 (en) | Web application server configuration deployment framework | |
CN109981386B (en) | Network quality testing method, testing server and testing system | |
CN101674541A (en) | Method for backing up mobile phone information to personal email and system thereof | |
EP2405618B1 (en) | Email system including synchronization server(s) providing synchronization based upon synchronization indicators stored on mobile devices and related methods | |
CN113114510B (en) | Network fault information synchronization method and device | |
CN105721231A (en) | Service quality sensing detection method and service quality sensing detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |