Summary of the invention
Technical problem to be solved by this invention provides a kind of method of using multiple GDS business, makes that GDS user does not need repeatedly to login, and can use different PID, thereby obtains the multiple business service of GDS.
Accordingly, the present invention also provides the system and the intermediary service apparatus of the multiple GDS business of use of using the said method realization.
In order to address the above problem, the invention discloses a kind of method of using multiple GDS business, it is characterized in that be provided with intermediate server between client and the server, described method comprises:
Step S1, intermediate server are set up the interface channel between intermediate server and the server based on the authentication information logon server, and are each interface channel key of appointment (KEY) value;
Step S2, user send the connection request of specifying the KEY value from client to intermediate server;
Step S3, intermediate server judge whether to exist unappropriated interface channel with described KEY value sign, if, then take this interface channel, set up client and be connected with the direct of server;
Step S4, intermediate server judge whether the user does not re-use the interface channel of described KEY value sign, if then discharge the intermediate server of the described KEY of having value sign and the interface channel between the server.
Preferably, described method also comprises between step S2 and S3:
Described intermediate server is preserved client user's information, and the described user's of foundation information, and the connection request that described user sends from client is controlled; Wherein, described user's information comprises user name, password and access rights thereof.
Preferably, described authentication information is that described server is the authentication sign (PID) of client distribution and the connection string that password is formed thereof, and this authentication information is kept in the intermediate server.
Preferably, described intermediate server is preserved the mapping relations between described KEY value and the PID, and these mapping relations are more than 1 pair, many to 1 or multi-to-multi.
Preferably, described GDS business comprises the civil aviation transportation business, tourism, and the hotel business of booking rooms, the business of hiring a car, the railway ticket booking is professional, or the steamer ticket booking is professional.
Preferably, described client is a character terminal.
Preferably, described intermediate server judges that the method that the user does not re-use the interface channel of described KEY value sign is: the user withdraws from from the GDS system, or the interface channel that described KEY value identifies is in idle condition for a long time.
Preferably, described method also comprises:
Described intermediate server is made regular check on the state of the interface channel between described intermediate server and the server, if described interface channel is idle for a long time, then sends heartbeat data according to the default time limit to server.
The embodiment of the invention also discloses a kind of system that uses multiple GDS business, include client and server, it is characterized in that, be provided with intermediate server between described client and the server, described intermediate server comprises connection pool administrative unit, service management unit, wherein: the connection pool administrative unit is used to set up and safeguards that interface channel between described intermediate server and the server, service management unit are used to set up and cancel direct connection between client and the server; The workflow of described system is as follows:
Described connection pool administrative unit is set up the interface channel between intermediate server and the server based on the authentication information logon server, and is KEY value of each interface channel appointment;
Described service management unit receives the connection request of the appointment KEY value that the user sends from described client, and wherein, described client is a character terminal;
Described service management unit judges whether to exist unappropriated interface channel with described KEY value sign, if then notify the connection pool administrative unit to take this interface channel, and set up direct connection the between client and the server;
Described service management unit judges whether the user withdraws from from the GDS system, or the interface channel of described KEY value sign is in idle condition for a long time, if then notify the intermediate server of the described appointment of connection pool administrative unit release KEY value and the interface channel between the server.
Preferably, described system also comprises:
Described service management unit is preserved client user's information, and the described user's of foundation information, and the connection request that described user sends from client is controlled; Wherein, described user's information comprises user name, password and access rights thereof.
Preferably, described authentication information is that server is the PID of client distribution and the connection string that password is formed thereof, and this connection string is kept in the described connection pool administrative unit.
Preferably, described connection pool administrative unit is preserved the mapping relations between described KEY value and the PID, and these mapping relations are more than 1 pair, many to 1 or multi-to-multi.
Preferably, described GDS business comprises the civil aviation transportation business, tourism, and the hotel business of booking rooms, the business of hiring a car, the railway ticket booking is professional, or the steamer ticket booking is professional.
Preferably, the effect of the connection pool administrative unit of described system also comprises:
Described connection pool administrative unit is made regular check on the state of the interface channel between described intermediate server and the server, if described interface channel is idle for a long time, then sends heartbeat data according to the default time limit to server.
The embodiment of the invention also discloses a kind of intermediary service apparatus that uses multiple GDS business, it is characterized in that described intermediate server comprises connection pool administrative unit and service management unit, wherein:
Described connection pool administrative unit is set up the interface channel between intermediate server and the server based on the PID logon server, and is KEY value of each interface channel appointment;
Described service management unit receives the connection request of the appointment KEY value that described client sends, and judges whether to exist unappropriated interface channel with described KEY value sign; If then notify the connection pool administrative unit to take this interface channel, and set up direct connection the between client and the server;
Described service management unit judges whether the user withdraws from from the GDS system, or the interface channel that described direct connection takies is in idle condition for a long time; If then notify the connection pool administrative unit to discharge described the have intermediate server of appointment KEY value sign and the interface channel between the server.
Preferably, the effect of the service management unit of described intermediary service apparatus also comprises:
Described service management unit is preserved client user's information, and the described user's of foundation information, and the connection request that described user sends from client is controlled; Wherein, described user's information comprises user name, password and access rights thereof.
Compared with prior art, the present invention has the following advantages:
At first, between intermediate server and GDS server, set up interface channel based on PID, and be the key assignments (KEY) that every interface channel is specified its ownership of a sign and the scope of business, form the connection pool (PID-POOL) between intermediate server and the GDS server; When the user uses GDS professional by the GDS client, only need the login intermediate server, can use interface channel with different K EY value sign, with the GDS server set up can direct communication be connected, obtain the business service of GDS system, thereby, can avoid the user because of using the professional process of repeatedly logining the GDS server of different GDS.On the one hand, can simplify the operating process of user at the GDS character terminal; On the other hand, can exempt the authentication process that the GDS server is repeatedly logined the user, improve the performance of GDS system.
Secondly, intermediate server both can use the PID of a plurality of same line of business and GDS server to connect, also can use the PID and the GDS server of a plurality of different business to connect, therefore, the present invention program can realize a plurality of PID of multiple users share, thereby, can utilize the PID resource greatly, obtain bigger system benefit.
The 3rd, the present invention only limits to client part to the transformation of GDS system, does not influence the operation of existing GDS system.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
One of core idea of the present invention is, at first, between intermediate server and GDS server,, and be the KEY value that every interface channel is specified its ownership of a sign and the scope of business based on the PID passage that connects, the connection pool between formation intermediate server and the GDS server; When the user uses GDS professional by the GDS client, only need the login intermediate server, can use interface channel with different K EY value sign, with the GDS server set up can direct communication be connected, obtain the business service of GDS system, thereby, can avoid the user repeatedly to login and withdraw from the GDS server because of using different GDS business.
With reference to Fig. 1, show a kind of method first embodiment flow chart that uses multiple GDS business of the present invention, specifically may further comprise the steps:
Step 101: intermediate server is set up the interface channel between intermediate server and the GDS server, and is specified a key assignments (KEY) for each interface channel based on PID login GDS server, identifies the ownership and the scope of business of described interface channel.
Wherein, described intermediate server is preserved the connection string of PID and password thereof, connect string based on this, but intermediate server simulant-client login GDS server, set up the interface channel of intermediate server and GDS server, thereby form the connection pool (PID-POOL) between intermediate server and the GDS server.
In addition, described intermediate server is preserved the mapping relations between described KEY value and the PID, and these mapping relations are more than 1 pair, many to 1 or multi-to-multi.
Following table is the example of the inventive method embodiment about contrast relationship between PID and the KEY value:
PID |
KEY |
Remarks |
07343444 |
Order#BJS181 |
The business that expression is used is " Order ", and the PID ownership is " BJS181 " |
07343445 |
Ticketing#BJS181 |
The business that expression is used is " Ticketing ", and the PID ownership is " BJS181 " |
07343476 |
Order#BJS171 |
The business that expression is used is " Order ", and the PID ownership is " BJS171 " |
07343477 |
Order#BJS171 |
The business that expression is used is " Order ", and the PID ownership is " BJS171 " |
By last table as can be seen, by the KEY value, can carry out grouping management to PID.As, in the last table, the KEY value has 1 for the interface channel of " Order#BJS181 ", and its PID is designated 07343476; The KEY value has 2 for the interface channel of " Order#BJS171 ", and its PID sign is respectively 07343476 and 07343476.Like this, when client is carried out service request, can be according to the different scopes of business and ownership thereof, seek and have the interface channel that corresponding K EY value identifies, set up being connected between GDS client and the GDS server.
In the present embodiment, the specified scope of business of described KEY value comprises the air transportation business, tourism, and the hotel business of booking rooms, the business of hiring a car, the railway ticket booking is professional, or steamer ticket booking business etc.
Step 102: the user sends the connection request of specifying the KEY value from the GDS client to intermediate server; Wherein, described GDS client is a character terminal.
Step 103: intermediate server judges whether to exist unappropriated interface channel with described KEY value sign, if exist, then changes step 104; Otherwise, return relevant information and give the client user.
For every interface channel between intermediate server and the GDS server, intermediate server is preserved their state, as, can use " doing " and " spare time " respectively, represent that this interface channel is occupied and unoccupied.
Step 104: intermediate server takies the interface channel with KEY value sign, set up between GDS client and the GDS server can direct communication be connected;
Connect based on this, the user can send relevant service order request from client, and obtains replying of GDS server; At this moment, the state of this interface channel is " hurrying ".
Step 105: when the user did not re-use the interface channel with KEY value sign, intermediate server discharged the described intermediate server of KEY value and the interface channel between the GDS server of being designated.
Wherein, the method that intermediate server judgement user does not re-use the interface channel of described key assignments sign is: the user withdraws from from the GDS system, or the interface channel of described key assignments sign is in idle condition for a long time.If the user does not re-use described interface channel, then cancel being connected that GDS client and server can direct communication, the state with described interface channel changes " spare time " into then.
The invention also discloses a preferable methods embodiment, except that five steps of said method embodiment, also comprise:
Described intermediate server is made regular check on the state of the interface channel between described intermediate server and the GDS server, if described interface channel is idle for a long time, then regularly sends heartbeat data to the GDS server.
By above-mentioned steps, can prevent that the GDS server from initiatively closing the interface channel between intermediate server and the GDS server, ensure that the connection request of GDS client can in time be met; And, can avoid intermediate server because of connecting the process of interrupting repeatedly logining the GDS server.
With reference to Fig. 2, show a kind of method second embodiment flow chart that uses multiple GDS business of the present invention, in this embodiment, the user is from GDS client single login, can use a plurality of interface channels of intermediate server, thereby obtain multiple GDS business service based on different PID and the foundation of GDS server.Idiographic flow is as follows:
Step 201: intermediate server is set up the interface channel between intermediate server and the GDS server based on PID login GDS server, and specifies the KEY value of its ownership of a sign and the scope of business for each interface channel;
Step 202: the user sends the connection request of specifying the KEY value from GDS client login intermediate server to intermediate server;
Does step 203: intermediate server judge whether the user legal? if then change step 204; Otherwise, process ends;
Wherein, intermediate server is preserved GDS client user's information, and utilizes these information Control user's connection request; Described user's information comprises user name, password and access rights thereof.
Authentication control by to the user can prevent that the disabled user is by the Operational Visit of intermediate server to the GDS server.
Does step 204: intermediate server judge whether the user has the right to use the interface channel of described appointment KEY value sign, and has unappropriated interface channel with above-mentioned KEY sign? if then change step 205; Otherwise, change step 206;
Intermediate server can be controlled its connection request according to user's access rights, thereby the assurance validated user can only be operated in the scope of business of oneself.
Step 205: intermediate server set up between GDS client and the GDS server can direct communication be connected;
Afterwards, the user can send the corresponding business instruction request to the GDS server from the GDS client, and obtains replying of GDS server.
Does step 206: intermediate server judge that the user has the connection request of other KEY value signs? if then change step 204; Otherwise, change step 207;
Step 207: when the user did not re-use the interface channel of the above-mentioned KEY of having value sign, intermediate server discharged the interface channel between this intermediate server that is designated the KEY value and the GDS server.
With reference to Fig. 3, show a kind of system embodiment structured flowchart that uses multiple GDS business of the present invention, specifically comprise:
Unit 31:GDS client is equipped with special-purpose GDS client software, is used for input, computing and the output of data; The user sends request from GDS client unit 31 to intermediate server unit 33, and by the connection pool between intermediate server unit 33 and the GDS server unit 32, can direct communication between foundation and the GDS server unit 32 be connected.
Unit 32:GDS server unit is equipped with Database Systems, is used for depositing and data retrieval of shared data; Be used to the GDS client to distribute and connect needed PID; Intermediate server unit 33 is based on the interface channel between described PID foundation and the GDS server unit 32.
Unit 33: intermediate server, comprise connection pool management subelement 331 and user management subelement 332, wherein, connection pool management subelement 331 is used to set up and safeguards based on the intermediate server unit 33 of PID and the interface channel between the GDS server unit 32; User management subelement 332 is used to receive the connection of GDS client subelement 31 or withdraw from request, set up or cancellation GDS client unit 31 and GDS server unit 32 between can direct communication be connected.
The operation flow of native system embodiment is as follows:
At first, connection pool management subelement 331 is set up interface channel between intermediate server unit 33 and the GDS server unit 32 based on PID, and be that each interface channel specifies a KEY value, identify the ownership and the scope of business of this interface channel, form the connection pool between intermediate server unit 33 and the GDS server unit 32;
Wherein, connection pool management subelement 331 is preserved the mapping relations between described KEY value and the PID, and these mapping relations are more than 1 pair, many to 1 or multi-to-multi.
The specified scope of business of described KEY value comprises the air transportation business, tourism, and the hotel business of booking rooms, the business of hiring a car, the railway ticket booking is professional, or steamer ticket booking business etc.
In addition, connection pool management subelement 331 is also preserved the connection string of PID and password thereof, and based on described connection string simulation GDS client login GDS server unit 32, thereby the interface channel between foundation and the GDS server unit 32 forms the connection pool between intermediate server unit 33 and the GDS server unit 32.
When the user when GDS client unit 31 is sent the connection request of specifying KEY value, user management subelement 332 judges that connection pool manages subelement 331 and whether have the unappropriated interface channel that described KEY value identifies that has;
If, then notify connection pool management subelement 331 to take this interface channel, and set up between GDS client and the GDS server can direct communication be connected;
When the user do not re-use between above-mentioned GDS client and the GDS server can direct communication be connected the time, user management subelement 332 notice connection pools management subelements 331 discharge intermediate server that is designated the KEY value that above-mentioned connection takies and the interface channel between the GDS server.
The invention also discloses a preferred systems embodiment, the effect of the user management subelement 332 of said system embodiment also comprises:
User management subelement 332 is also preserved GDS client user's information, and the described user's of foundation information, and described user's connection request is controlled; Wherein, described user's information comprises user name, password and access rights thereof.
As user during from GDS client unit 31 login intermediate server unit 33, user management subelement 332 carries out authentication to it, and after authentication was passed through, the user could send and the connection request of the appointment KEY value of GDS server unit 32;
Specify the connection request of KEY value for the user, user management subelement 332 judges at first whether this user has the right to use this to be designated the interface channel of KEY value; Use if having the right, then search the interface channel that the unappropriated KEY of having value identifies, thus set up between GDS client unit 31 and the GDS server unit 32 can direct communication be connected; Otherwise, the connection request of refusing user's.
The invention also discloses another preferred systems embodiment, the effect of the connection pool management subelement 331 of said system embodiment also comprises:
Connection pool management subelement 331 has the function of making regular check on, can make regular check on the state of the interface channel between intermediate server unit 33 and the GDS server unit 32, if described interface channel is idle for a long time, then regularly send heartbeat datas, thereby prevent that GDS server unit 32 from initiatively closing the interface channel between intermediate server and the GDS server to GDS server unit 32
The present invention also discloses a kind of intermediary service apparatus embodiment that uses multiple GDS business, with reference to Fig. 4, specifically comprises with lower unit:
Unit 41: the connection pool administrative unit is used to set up and safeguard the interface channel between intermediate server and the GDS server.
Connection pool administrative unit 41 is set up the interface channel between intermediate server and the GDS server, and is specified a KEY value for each interface channel based on PID login GDS server, identifies the ownership and the scope of business of this interface channel;
When the user did not re-use described interface channel, connection pool administrative unit 41 was according to the request of service management unit 42, discharged the taking of interface channel that this is designated the KEY value.
Unit 42: service management unit is used to set up and cancels direct connection between GDS client and the GDS server.
The connection request of the appointment KEY value that the described GDS client of service management unit 42 receptions is sent;
Service management unit 42 judges whether the user has the right to use the interface channel that is designated the KEY value, and, judge whether connection pool administrative unit 41 exists the interface channel of the unappropriated KEY of having value sign; If, then notify connection pool administrative unit 41 to take this interface channel, and set up between GDS client and the GDS server can direct communication be connected;
Service management unit 42 judges whether the user withdraws from from the GDS server, or whether the interface channel of CU is in idle condition for a long time; If then notify the intermediate server of the connection pool administrative unit 41 releases described KEY value that above-mentioned connection takies and the interface channel between the GDS server.
The invention also discloses a preferred intermediary service apparatus embodiment, the effect of the service management unit 42 of said apparatus embodiment also comprises:
Service management unit 42 is also preserved GDS client user's information, and the described user's of foundation information, and described user's connection request is controlled; Wherein, described user's information comprises user name, password and access rights thereof.
As user during from GDS client login intermediate server, service management unit 42 carries out authentication to it, and after authentication was passed through, the user could send the connection request of appointment KEY value;
Specify the connection request of KEY value for the user, service management unit 42 judges at first whether this user has the right to use this to be designated the interface channel of KEY value; Use if having the right, then search the interface channel that the unappropriated KEY of having value identifies, thus set up between GDS client and the GDS server can direct communication be connected; Otherwise, the connection request of refusing user's.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device and system embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than to a kind of multiple whole world distribution professional method, system and intermediary service apparatus of using provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.