Summary of the invention
For the problem in correlation technique, the present invention proposes the SaaS moving method in a kind of PaaS platform service environment, can realize the function that creates identical SaaS service in the multiple PaaS platform service that can not communicate by letter mutually.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, provide the SaaS moving method in a kind of PaaS platform service environment, having comprised:
SaaS service information file bag is imported in PaaS platform;
From described SaaS service information file bag, obtain the essential information of SaaS service;
The essential information of resolving SaaS service is obtained the establishment information of assets required in the bottom running environment of SaaS, and according to the establishment information creating assets of described assets;
Monitor the establishment situation of the total assets under described SaaS service;
Judge while having created total assets according to described establishment situation, obtain the configuration information of SaaS and script file to serve at PaaS platform deploy SaaS from described SaaS service information file bag.
In optional embodiment, described SaaS moving method also comprises: generate SaaS migration record according to the essential information of described SaaS service; The recorded information of asset creation is associated with SaaS migration record.In this case, thus the establishment situation of monitoring the lower total assets of described SaaS service comprises that the described SaaS migration of monitoring record records according to described SaaS migration the establishment situation of obtaining all assets.
In optional embodiment, described SaaS moving method also comprises: judge described SaaS moves to record whether have asset creation failure; While being judged as YES, by the associated successful withdrawal of assets of establishment of described SaaS migration record; While being judged as NO, continue to judge whether to have created total assets, if the judgment is Yes, carry out the step of disposing SaaS service; If the judgment is No, continue the described SaaS migration of monitoring record.
In optional embodiment, described SaaS moving method also comprises: the situation of SaaS service is disposed in monitoring, if failure, by the associated successful withdrawal of assets of establishment of described SaaS migration record; If success is successfully by SaaS service mark.
According to a further aspect in the invention, also provide the SaaS moving method in a kind of PaaS platform service environment, having comprised:
According to the SaaS information on services in SaaS service acquisition the one PaaS platform of specifying, and generate SaaS service information file bag;
Described SaaS service information file bag is derived from a described PaaS platform, and import in the 2nd PaaS platform;
From imported SaaS service information file bag, obtain the essential information of SaaS service;
The essential information of resolving SaaS service is obtained the establishment information of assets required in the bottom running environment of SaaS, and according to the establishment information creating assets of described assets;
Monitor the establishment situation of the total assets under described SaaS service;
Judge while having created total assets according to described establishment situation, obtain the configuration information of SaaS and script file with in described the 2nd PaaS platform deploy SaaS service from described SaaS service information file bag.
In optional embodiment, described SaaS moving method also comprises: generate SaaS migration record according to the essential information of described SaaS service; The recorded information of asset creation is associated with SaaS migration record; And, thereby the establishment situation of monitoring the lower total assets of described SaaS service comprises that the described SaaS migration of monitoring record records according to described SaaS migration the establishment situation of obtaining all assets.
In optional embodiment, described SaaS moving method also comprises: judge described SaaS moves to record whether have asset creation failure; While being judged as YES, by the associated successful withdrawal of assets of establishment of described SaaS migration record; While being judged as NO, continue to judge whether to have created total assets, if the judgment is Yes, carry out the step of disposing SaaS service; If the judgment is No, continue the described SaaS migration of monitoring record.
In optional embodiment, described SaaS moving method also comprises: the situation of SaaS service is disposed in monitoring, if failure, by the associated successful withdrawal of assets of establishment of described SaaS migration record; If success is successfully by SaaS service mark.
In optional embodiment, described SaaS information on services comprises configuration file and script file when SaaS application message and SaaS create.
In optional embodiment, described SaaS application message comprises the establishment information of the flexible strategy of expansion, Asset List and the assets of essential information, the SaaS of SaaS.
The embodiment of the present invention imports identical SaaS service information file bag by the PaaS platform different, thereby then specific SaaS service-creation flow process can create identical SaaS clothes on different PaaS platforms.Platform management person can be freed from repeat complicated work in addition.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further illustrated.
Fig. 1 is the process flow diagram of the SaaS moving method in a kind of PaaS platform service environment of the embodiment of the present invention.As shown in Figure 1, described SaaS moving method comprises:
S101, imports to SaaS service information file bag in PaaS platform;
S102 obtains the essential information of SaaS service from described SaaS service information file bag;
S103, the essential information of resolving SaaS service is obtained the establishment information of assets required in the bottom running environment of SaaS, and according to the establishment information creating assets of described assets;
S104, monitors the establishment situation of the total assets under described SaaS service;
S105, judges while having created total assets according to described establishment situation, obtains the configuration information of SaaS and script file to serve at PaaS platform deploy SaaS from described SaaS service information file bag.
Import after PaaS platform at SaaS service information file bag, in order to dispose, SaaS serves the constructive process of the bottom running environment of being served by SaaS from realizing and two parts of establishment deployment of SaaS service form.The constructive process of the bottom running environment of SaaS service, the bottom running environment of SaaS service be exactly be in fact equipped with can not template virtual machine or physical machine.Its constructive process is exactly the constructive process of these virtual machines or physical machine in essence.In embodiments of the present invention, mean establishment information creating virtual machine or the physical machine according to assets according to the establishment information creating assets of assets.
In optional embodiment, described SaaS moving method also comprises: generate SaaS migration record according to the essential information of described SaaS service.Wherein, SaaS migration record can exist in the mode of database, for recording the establishment information of transition process.In one embodiment, described SaaS moving method also comprises the recorded information of asset creation associated with SaaS migration record, so that the establishment progress of queries asset.In another embodiment, the status information of asset creation can be to be directly recorded in SaaS migration record, so that the establishment progress of queries asset.In the embodiment of SaaS moving method that comprises above-mentioned steps, thereby the establishment situation of monitoring the lower total assets of described SaaS service can comprise that the described SaaS migration of monitoring record records according to described SaaS migration the establishment situation of obtaining all assets.
In optional embodiment, described SaaS moving method is further comprising the steps of: judge described SaaS moves to record whether have asset creation failure; While being judged as YES, by the associated successful withdrawal of assets of establishment of described SaaS migration record; While being judged as NO, continue to judge whether to have created total assets, if the judgment is Yes, carry out the step of disposing SaaS service; If the judgment is No, continue the described SaaS migration of monitoring record.
In optional embodiment, described SaaS moving method also comprises: the situation of SaaS service is disposed in monitoring, if failure, by the associated successful withdrawal of assets of establishment of described SaaS migration record; If success is successfully by SaaS service mark.
In the above embodiment of the present invention, SaaS service information file bag can be compressed data packets, and SaaS service information file bag can be to have created from one the PaaS platform that SaaS serves.
Fig. 2 is the process flow diagram of the SaaS moving method in PaaS platform service environment according to another embodiment of the present invention.As shown in Figure 2, described SaaS moving method, comprising:
S201, according to the SaaS information on services in SaaS service acquisition the one PaaS platform of specifying, and generates SaaS service information file bag;
Particularly, can be in PaaS platform according to the SaaS service having existed, creates an information that has comprised SaaS with and the compressed package of the information of the running environment of dependence.
In optional embodiment, described SaaS information on services can comprise configuration file and script file when SaaS application message and SaaS create.In optional embodiment, described SaaS application message comprises the establishment information of the flexible strategy of expansion, Asset List and the assets of essential information, the SaaS of SaaS.
S202 derives described SaaS service information file bag from a described PaaS platform, and imports in the 2nd PaaS platform;
S203 obtains the essential information of SaaS service from imported SaaS service information file bag;
S204, the essential information of resolving SaaS service is obtained the establishment information of assets required in the bottom running environment of SaaS, and according to the establishment information creating assets of described assets;
S205, monitors the establishment situation of the total assets under described SaaS service;
S206, judges while having created total assets according to described establishment situation, obtains the configuration information of SaaS and script file with in described the 2nd PaaS platform deploy SaaS service from described SaaS service information file bag.
In optional embodiment, described SaaS moving method also comprises: generate SaaS migration record according to the essential information of described SaaS service; The recorded information of asset creation is associated with SaaS migration record; And, thereby the establishment situation of monitoring the lower total assets of described SaaS service comprises that the described SaaS migration of monitoring record records according to described SaaS migration the establishment situation of obtaining all assets.
In optional embodiment, described SaaS moving method also comprises: judge described SaaS moves to record whether have asset creation failure; While being judged as YES, by the associated successful withdrawal of assets of establishment of described SaaS migration record; While being judged as NO, continue to judge whether to have created total assets, if the judgment is Yes, carry out the step of disposing SaaS service; If the judgment is No, continue the described SaaS migration of monitoring record.
In optional embodiment, described SaaS moving method also comprises: the situation of SaaS service is disposed in monitoring, if failure, by the associated successful withdrawal of assets of establishment of described SaaS migration record; If success is successfully by SaaS service mark.
An example of the SaaS moving method in the PaaS platform service environment of the embodiment of the present invention is described below.
In this embodiment, based on the SaaS service having existed in PaaS platform, create generated an information that has comprised SaaS with and the compressed package of the information of the running environment that relies on, can be for example SaaSAppZip compressed package by name.Then the SaaS information on services compressed package of described generation is derived.The SaaS compressed package of deriving can send by Intranet other PaaS platform to; Or, be saved in the intermediarys such as USB flash disk and use for other PaaS platforms in strange land.
Fig. 3 is that the SaaS information on services in the SaaS moving method of one embodiment of the invention is derived process schematic diagram.As shown in Figure 3, deriving SaaS information on services from PaaS platform comprises:
1) according to the information of the picture character such as the default icon of the SaaS service acquisition SaaS specifying, and picture file is saved in to local default folder.
2) according to the SaaS information in the SaaS service acquisition PaaS platform of specifying
1. obtain the essential information of SaaS service,
2. obtain the flexible policy information of expansion of SaaS service,
3. obtain SaaS and serve the Asset List in the running environment relying on, and obtain the establishment information of assets according to Asset List.
4. by 1. 2. the information in 3. integrate, be saved in the XML file of standard information of SaaS.
3) required configuration file and script file while establishment according to the SaaS service acquisition SaaS specifying.
By first three step 1) 2) 3) in compressing file in local specified compression file.
The PaaS platform in strange land has obtained after SaaSAppZip compressed package, is uploaded to the default path of PaaS server, then calls import feature, completes the establishment of running environment and the visioning procedure of SaaS service that SaaS relies on.Two parts of establishment deployment of the constructive process of the bottom running environment that import feature is served by SaaS from realizing and SaaS service form.The constructive process of the bottom running environment of SaaS service, the bottom running environment of SaaS service be exactly be in fact equipped with can not template virtual machine or physical machine.Its constructive process is exactly the constructive process of these virtual machines or physical machine in essence.
Fig. 4 and Fig. 5 are the SaaS information on services importing process schematic diagram in the SaaS moving method of one embodiment of the invention.The process schematic diagram of the bottom running environment of SaaS service as shown in Figure 4, comprising:
1. the SaaSAppZip compressed package of generation is uploaded in the default path of PaaS Platform Server;
2. by SaaSAppZip compressed package decompress(ion);
3. in the file of decompress(ion), find Xml file, parse the essential information of SaaS;
4. generate the migration record of SaaS according to the essential information of SaaS;
The essential information of 5. resolving SaaS is obtained required assets in the bottom running environment of SaaS, and the establishment information of assets;
6. according to the establishment information creating assets in 5.;
7. by associated with SaaS migration record the recorded information that creates assets, so that the establishment progress of queries asset.
Further, the process schematic diagram that the establishment of carrying out SaaS is as shown in Figure 5 disposed, comprising:
1. monitor each uncompleted SaaS migration record;
In embodiments of the present invention, under the multiple dissimilar SaaS service scenario of Paas Platform deployment, each SaaS service can corresponding SaaS migration record.
2. obtain the establishment situation of total assets according to SaaS migration record;
3. judge whether certain SaaS moves in the total assets constructive process of recording failed;
If 4. failure, by the associated successful withdrawal of assets of establishment of this SaaS migration record, and is labeled as failure by this SaaS migration record, migration finishes;
If 5. there is not failure, judge whether total assets creates end; If do not finish, continue this SaaS migration of monitoring and record associated asset creation progress.
6. the total assets of step in 5. creates and finishes, and shows that total assets successfully creates, and obtains configuration information and the script file of SaaS;
7. in new PaaS platform, dispose SaaS service; If 4. failure, carry out, migration finishes; If success, is successfully by SaaS service mark, SaaS moves end.
SaaSAppZip compressed package in the embodiment of the present invention can have different embodiment modes, as the type of compressed package, and zip, rar etc., the present invention has only realized a kind of compress mode of zip.The preserving type of the information content in compressed package can be the file layout such as Xml file or word file or pdf.
On the PaaS platform that can realize effectively rapidly in each homogeneity by the SaaS moving method of embodiment of the present invention, create the function of SaaS service, and simple and clear, simple to operate.Can save like this PaaS platform management person's plenty of time, prevent from making a fault in the time creating identical SaaS service, and can solve because the work that re-creates after the SaaS service damage that maloperation causes.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.