CN105323276B - Cloud access method and device of application and application server - Google Patents
Cloud access method and device of application and application server Download PDFInfo
- Publication number
- CN105323276B CN105323276B CN201410325404.8A CN201410325404A CN105323276B CN 105323276 B CN105323276 B CN 105323276B CN 201410325404 A CN201410325404 A CN 201410325404A CN 105323276 B CN105323276 B CN 105323276B
- Authority
- CN
- China
- Prior art keywords
- application
- cloud
- adaptation
- cloud access
- 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
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000006978 adaptation Effects 0.000 claims description 181
- 230000003044 adaptive effect Effects 0.000 claims description 2
- 239000010410 layer Substances 0.000 description 54
- 230000006870 function Effects 0.000 description 27
- 239000002346 layers by function Substances 0.000 description 26
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a cloud access method and device of an application and an application server, wherein the method comprises the following steps: acquiring category information of an application to be accessed; acquiring cloud access data according to the category information of the application; loading the cloud access data to the application; and accessing the application to a cloud server by adopting the cloud access data. The invention can save the time cost and the labor cost of the application cloud access and improve the cloud access efficiency of the application.
Description
Technical Field
The invention relates to the technical field of internet, in particular to the technical field of application processing, and particularly relates to a cloud access method and device of an application and an application server.
Background
Applications may include, but are not limited to: an instant messaging application, an SNS (Social Networking Services) application, a browser application, a desktop application, an image processing application, and the like. During the running process of the application, an exception may be generated due to unstable use of some functions, such as: due to the fact that some functions in the application and the terminal where the application is located have the problem of adaptation compatibility, the operation of the application is abnormal. For the problem of repairing an abnormally-operated application, adaptation information is generally downloaded from a cloud end to solve the problem, and the application is required to have cloud access capability. At present, in order to enable an application to have a cloud access capability, an application developer needs to improve or rewrite a source code of the application; when the number of applications requiring cloud access is large, the source code of the applications is improved or rewritten one by one, which undoubtedly consumes huge time cost and labor cost, and reduces the cloud access efficiency of the applications.
Disclosure of Invention
The embodiment of the invention provides an application cloud access method, an application cloud access device and an application server, which can save the time cost and the labor cost of application cloud access and improve the cloud access efficiency of application.
A first aspect of an embodiment of the present invention provides a cloud access method for an application, which may include:
acquiring category information of an application to be accessed;
acquiring cloud access data according to the category information of the application;
loading the cloud access data to the application;
and accessing the application to a cloud server by adopting the cloud access data.
A second aspect of the embodiments of the present invention provides an applied cloud access apparatus, which may include:
the category acquisition module is used for acquiring category information of the application to be accessed;
the data acquisition module is used for acquiring cloud access data according to the application category information;
a loading module for loading the cloud access data to the application;
and the cloud access module is used for accessing the application to a cloud server by adopting the cloud access data.
A third aspect of the embodiments of the present invention provides an application server, which may include the cloud access apparatus for an application provided in the second aspect.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a cloud access method for an application according to an embodiment of the present invention;
fig. 2 is a flowchart of another cloud access method for an application according to an embodiment of the present invention;
fig. 3 is a flowchart of a cloud access method for another application according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a cloud access apparatus applied in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data acquisition module according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another data acquisition module according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a loading module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a cloud access module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an application server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The cloud access method applied in the embodiments of the present invention will be described in detail below with reference to fig. 1 to 3.
Referring to fig. 1, a flowchart of a cloud access method for an application according to an embodiment of the present invention is shown; the method may comprise the following steps S101-S104.
S101, obtaining the category information of the application to be accessed.
The classification is performed according to the function of the application, and the category information of the application may include, but is not limited to: any one of an instant messaging category, an SNS category, and an image processing category. The classification is performed according to the code structure of the application, and the category information of the application may include, but is not limited to: an inheritance type code structure category or a module type code structure category. The inheritance type code structure refers to a code structure formed by replacing an old version code with a new version code, for example: the V2.0 version code replaces the V1.0 version code, and the inheritance type code structure is the V2.0 version code structure. The module type code structure refers to a code structure formed by compatibility of a new version code and an old version code, for example: the code of the V2.0 version is compatible with the code of the V1.0 version, and the module type code structure comprises a code structure of the V1.0 version and a code structure of the V2.0 version. In this step, the category information of the application may be acquired according to the function of the application or the code structure of the application.
And S102, acquiring cloud access data according to the application category information.
The cloud access data refers to data capable of solving a cloud access problem of the application, and can access the application to a cloud server so that the application can communicate with the cloud server to use a cloud adaptation service. In this step, cloud access data may be acquired according to the category information of the application.
S103, loading the cloud access data to the application.
In this step, the cloud access data is loaded to the application, even if the application loads the cloud access data, so that the application can solve the cloud access problem by using the cloud access data.
And S104, accessing the application to a cloud server by adopting the cloud access data.
In this step, the application runs the cloud access data simultaneously in the running process of the application, and the cloud access data can access the application to the cloud server, so that the cloud access problem of the application is solved, and the application can communicate with the cloud server to use cloud adaptation service.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
Fig. 2 is a flowchart of another cloud access method for application according to an embodiment of the present invention; the method may include the following steps S201 to S207.
S201, obtaining the category information of the application to be accessed.
Step S201 of this embodiment can refer to step S101 of the embodiment shown in fig. 1, which is not described herein again.
S202, searching general adaptation data corresponding to the application category information from a preset adaptation database.
The preset adaptation database records the corresponding relation between the applied category information and the general adaptation data, and the corresponding relation comprises the following steps: one category of applications corresponds to one generic adaptation data. The general adaptation data refers to data that can solve a type of application corresponding to the general adaptation data and can access the type of application to the cloud server, so that the type of application can communicate with the cloud server to use cloud adaptation services. The structure of the generic adaptation data comprises: a network layer, an adaptation layer and a functional layer; wherein, the network layer contains network information required for cloud access, such as: address information of the cloud server, network resource information required for accessing the cloud server, and the like; the adaptation layer comprises a class, a method, interface information and the like of the application of the class corresponding to the general adaptation data, which needs to be subjected to cloud adaptation; the functional layer contains basic functional information of the application of the corresponding category of the general adaptation data.
In this step, the category information of the application may be reported to an application server, so that the application server searches for general adaptation data corresponding to the category information of the application from a preset adaptation information base, and then may download the general adaptation data corresponding to the category information of the application from the application server. For example: assuming that the category information of the application is an instant messaging category, in this step, general adaptation data corresponding to the instant messaging category may be searched from a preset adaptation database.
S203, determining the general adaptation data as cloud access data.
The structure of the cloud access data comprises: a network layer, an adaptation layer and a functional layer; wherein, the network layer contains network information required for cloud access, such as: address information of the cloud server, network resource information required for accessing the cloud server, and the like; the adaptation layer comprises a class, a method, interface information and the like of the application of the class corresponding to the general adaptation data, which needs to be subjected to cloud adaptation; the functional layer contains basic functional information of the application of the corresponding category of the general adaptation data.
Steps S202 to S203 of the present embodiment may be specific refinements of step S102 of the embodiment shown in fig. 1.
And S204, reading the source code text of the application.
The source code text of the application is recorded in the configuration file of the application, and the step can read the configuration file of the application and extract the source code text of the application from the configuration file of the application.
S205, writing the cloud access data into the source code text of the application.
And writing the cloud access data into the source code text of the application, namely writing the code of the cloud access data into the source code text of the application as the source code of the application, so that the cloud access data is loaded into the application.
Steps S204 to S205 of the present embodiment may be a detailed refinement of step S103 of the embodiment shown in fig. 1.
S206, running the cloud access data in the source code text of the application.
And S207, accessing the application to a cloud server through the operation of the cloud access data.
In step S206-step S207, by running the source code text of the application, cloud access data in the source code text is run, and an adaptation layer of the cloud access data covers a class, a method, interface information, and the like of the application, which need to be cloud adapted, and enables the application to have a function of loading cloud adaptation service; information contained in the functional layer of the cloud access data can be reported to the cloud server through the network layer of the cloud access data, the cloud server responds to the network layer of the cloud access data, and therefore the purpose that the application is accessed to the cloud server is achieved, and then the application can communicate with the cloud server to obtain cloud adaptation service from the cloud server.
Step S206-step S207 of the present embodiment may be a specific refinement step of step S103 of the embodiment shown in fig. 1.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
Please refer to fig. 3, which is a flowchart of a cloud access method for another application according to an embodiment of the present invention; the method may include the following steps S301 to S309.
S301, obtaining the category information of the application to be accessed.
S302, searching general adaptation data corresponding to the application category information from a preset adaptation database.
Steps S301 to S302 of this embodiment can refer to steps S201 to S202 of the embodiment shown in fig. 2, which are not described herein again.
S303, reading the adaptive parameters of the application.
The adaptation parameters of the application may include: any one or more of network information parameters, adaptation interface parameters, and function information parameters. The network information parameter includes network information of a specific cloud to which the application is to access, for example: address information of a specific cloud server to be accessed, network resource information required for accessing the specific cloud server, and the like; the adaptation interface parameters include adaptation interface information that can be used by a specific cloud to which the application is to access, for example: open adaptation interface information provided by a specific cloud server to be accessed, or adaptation interface information customized and developed for the specific cloud server to be accessed, and the like; the function information parameter includes function information to be cloud-adapted by the application, for example: basic function information of the instant messaging application such as an instant messaging function, or additional function information of the instant messaging application such as an emoticon management function, and the like.
S304, configuring the general adaptation data by adopting the adaptation parameters of the application to generate the customized adaptation data.
The structure of the generic adaptation data comprises: a network layer, an adaptation layer and a functional layer; wherein, the network layer contains network information required for cloud access, such as: address information of the cloud server, network resource information required for accessing the cloud server, and the like; the adaptation layer comprises a class, a method, interface information and the like of the application of the class corresponding to the general adaptation data, which needs to be subjected to cloud adaptation; the functional layer contains basic functional information of the application of the corresponding category of the general adaptation data. In this step, the network layer of the generic adaptation data may be configured by using the network information parameters of the application, the adaptation layer of the generic adaptation data may be configured by using the adaptation interface parameters of the application, and the functional layer of the generic adaptation data may be configured by using the functional information parameters of the application. After the configuration in this step, customized adaptation data can be generated, where the customized adaptation data refers to data that is customized by the application and can solve the cloud access problem of the application, and the application is accessed to the cloud server, and the functions customized by the application can all enjoy cloud adaptation services. The structure of the custom adaptation data comprises: a network layer, an adaptation layer and a functional layer; wherein the network layer includes network information of a specific cloud to which the application is to access, such as: address information of a specific cloud server to be accessed, network resource information required for accessing the specific cloud server, and the like; the adaptation layer comprises the class, method, interface information and the like of a cloud adaptation interface which can be used by a specific cloud end to which the application is to be accessed; the functional layer comprises functional information of the application to be subjected to cloud adaptation.
S305, determining the customized adaptation data as cloud access data.
The structure of the cloud access data comprises: a network layer, an adaptation layer and a functional layer; wherein the network layer includes network information of a specific cloud to which the application is to access, such as: address information of a specific cloud server to be accessed, network resource information required for accessing the specific cloud server, and the like; the adaptation layer comprises the class, method, interface information and the like of a cloud adaptation interface which can be used by a specific cloud end to which the application is to be accessed; the functional layer comprises functional information of the application to be subjected to cloud adaptation.
Steps S302-S305 of the present embodiment may be a detailed refinement of step S102 of the embodiment shown in fig. 1.
S306, reading the source code text of the application.
S307, writing the cloud access data into the source code text of the application.
And S308, running the cloud access data in the source code text of the application.
S309, accessing the application to a cloud server through the operation of the cloud access data.
Steps S306 to S309 of this embodiment can refer to steps S204 to S207 of the embodiment shown in fig. 2, which is not described herein again.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
A cloud access apparatus applied in an embodiment of the present invention will be described in detail below with reference to fig. 4 to 8. It should be noted that the cloud access apparatus of the application illustrated in fig. 4 to 8 can be applied to perform the method illustrated in fig. 1 to 3.
Fig. 4 is a schematic structural diagram of a cloud access apparatus applied in the embodiment of the present invention; the apparatus may include: the cloud access system comprises a category acquisition module 101, a data acquisition module 102, a loading module 103 and a cloud access module 104.
The category obtaining module 101 is configured to obtain category information of an application to be accessed.
The classification is performed according to the function of the application, and the category information of the application may include, but is not limited to: any one of an instant messaging category, an SNS category, and an image processing category. The classification is performed according to the code structure of the application, and the category information of the application may include, but is not limited to: an inheritance type code structure category or a module type code structure category. The inheritance type code structure refers to a code structure formed by replacing an old version code with a new version code, for example: the V2.0 version code replaces the V1.0 version code, and the inheritance type code structure is the V2.0 version code structure. The module type code structure refers to a code structure formed by compatibility of a new version code and an old version code, for example: the code of the V2.0 version is compatible with the code of the V1.0 version, and the module type code structure comprises a code structure of the V1.0 version and a code structure of the V2.0 version. The category obtaining module 101 may obtain the category information of the application according to the function of the application or the code structure of the application.
And the data acquisition module 102 is configured to acquire cloud access data according to the category information of the application.
The cloud access data refers to data capable of solving a cloud access problem of the application, and can access the application to a cloud server so that the application can communicate with the cloud server to use a cloud adaptation service. The data obtaining module 102 may obtain the cloud access data according to the category information of the application.
A loading module 103, configured to load the cloud access data to the application.
The loading module 103 loads the cloud access data to the application even if the application loads the cloud access data, thereby enabling the application to solve a cloud access problem using the cloud access data.
And the cloud access module 104 is configured to access the application to a cloud server by using the cloud access data.
Because the application is loaded with the cloud access data, the cloud access data is operated simultaneously in the operation process of the application, and the application can be accessed to the cloud server by the cloud access data, so that the cloud access problem of the application is solved, and the application can communicate with the cloud server to use cloud adaptation service.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
Fig. 5 is a schematic structural diagram of a data acquisition module according to an embodiment of the present invention; the data acquisition module 102 may include: a first look-up unit 1201 and a first determination unit 1202.
A first searching unit 1201, configured to search general adaptation data corresponding to the category information of the application from a preset adaptation database.
The preset adaptation database records the corresponding relation between the applied category information and the general adaptation data, and the corresponding relation comprises the following steps: one category of applications corresponds to one generic adaptation data. The general adaptation data refers to data that can solve a type of application corresponding to the general adaptation data and can access the type of application to the cloud server, so that the type of application can communicate with the cloud server to use cloud adaptation services. The structure of the generic adaptation data comprises: a network layer, an adaptation layer and a functional layer; wherein, the network layer contains network information required for cloud access, such as: address information of the cloud server, network resource information required for accessing the cloud server, and the like; the adaptation layer comprises a class, a method, interface information and the like of the application of the class corresponding to the general adaptation data, which needs to be subjected to cloud adaptation; the functional layer contains basic functional information of the application of the corresponding category of the general adaptation data.
The first searching unit 1201 may report the category information of the application to an application server, so that the application server searches for general adaptation data corresponding to the category information of the application from a preset adaptation information library, and then may download the general adaptation data corresponding to the category information of the application from the application server. For example: assuming that the category information of the application is an instant messaging category, the first searching unit 1201 may search general adaptation data corresponding to the instant messaging category from a preset adaptation database.
A first determining unit 1202, configured to determine the general adaptation data as cloud access data.
The structure of the cloud access data comprises: a network layer, an adaptation layer and a functional layer; wherein, the network layer contains network information required for cloud access, such as: address information of the cloud server, network resource information required for accessing the cloud server, and the like; the adaptation layer comprises a class, a method, interface information and the like of the application of the class corresponding to the general adaptation data, which needs to be subjected to cloud adaptation; the functional layer contains basic functional information of the application of the corresponding category of the general adaptation data.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
Fig. 6 is a schematic structural diagram of another data acquisition module according to an embodiment of the present invention; the data acquisition module 102 may include: a second lookup unit 1211, a parameter reading unit 1212, a configuration unit 1213, and a second determination unit 1214.
A second searching unit 1211, configured to search a preset adaptation database for general adaptation data corresponding to the category information of the application.
The preset adaptation database records the corresponding relation between the applied category information and the general adaptation data, and the corresponding relation comprises the following steps: one category of applications corresponds to one generic adaptation data. The general adaptation data refers to data that can solve a type of application corresponding to the general adaptation data and can access the type of application to the cloud server, so that the type of application can communicate with the cloud server to use cloud adaptation services. The structure of the generic adaptation data comprises: a network layer, an adaptation layer and a functional layer; wherein, the network layer contains network information required for cloud access, such as: address information of the cloud server, network resource information required for accessing the cloud server, and the like; the adaptation layer comprises a class, a method, interface information and the like of the application of the class corresponding to the general adaptation data, which needs to be subjected to cloud adaptation; the functional layer contains basic functional information of the application of the corresponding category of the general adaptation data.
The second searching unit 1211 may report the category information of the application to an application server, so that the application server searches for the general adaptation data corresponding to the category information of the application from a preset adaptation information library, and then may download the general adaptation data corresponding to the category information of the application from the application server. For example: assuming that the category information of the application is an instant messaging category, the second searching unit 1211 may search general adaptation data corresponding to the instant messaging category from a preset adaptation database.
A parameter reading unit 1212, configured to read the adaptation parameter of the application.
The adaptation parameters of the application may include: any one or more of network information parameters, adaptation interface parameters, and function information parameters. The network information parameter includes network information of a specific cloud to which the application is to access, for example: address information of a specific cloud server to be accessed, network resource information required for accessing the specific cloud server, and the like; the adaptation interface parameters include adaptation interface information that can be used by a specific cloud to which the application is to access, for example: open adaptation interface information provided by a specific cloud server to be accessed, or adaptation interface information customized and developed for the specific cloud server to be accessed, and the like; the function information parameter includes function information to be cloud-adapted by the application, for example: basic function information of the instant messaging application such as an instant messaging function, or additional function information of the instant messaging application such as an emoticon management function, and the like.
A configuration unit 1213, configured to configure the general adaptation data by using the adaptation parameters of the application, so as to generate customized adaptation data.
The structure of the generic adaptation data comprises: a network layer, an adaptation layer and a functional layer; wherein, the network layer contains network information required for cloud access, such as: address information of the cloud server, network resource information required for accessing the cloud server, and the like; the adaptation layer comprises a class, a method, interface information and the like of the application of the class corresponding to the general adaptation data, which needs to be subjected to cloud adaptation; the functional layer contains basic functional information of the application of the corresponding category of the general adaptation data. The configuration unit 1213 may configure the network layer of the generic adaptation data by using the network information parameters of the application, configure the adaptation layer of the generic adaptation data by using the adaptation interface parameters of the application, and configure the functional layer of the generic adaptation data by using the function information parameters of the application. After the configuration by the configuration unit 1213, customized adaptation data can be generated, where the customized adaptation data refers to data that is customized by the application and can solve the cloud access problem of the application, and the application is accessed to the cloud server, so that the functions customized by the application can all enjoy cloud adaptation services. The structure of the custom adaptation data comprises: a network layer, an adaptation layer and a functional layer; wherein the network layer includes network information of a specific cloud to which the application is to access, such as: address information of a specific cloud server to be accessed, network resource information required for accessing the specific cloud server, and the like; the adaptation layer comprises the class, method, interface information and the like of a cloud adaptation interface which can be used by a specific cloud end to which the application is to be accessed; the functional layer comprises functional information of the application to be subjected to cloud adaptation.
A second determining unit 1214, configured to determine the custom adaptation data as cloud access data.
The structure of the cloud access data comprises: a network layer, an adaptation layer and a functional layer; wherein the network layer includes network information of a specific cloud to which the application is to access, such as: address information of a specific cloud server to be accessed, network resource information required for accessing the specific cloud server, and the like; the adaptation layer comprises the class, method, interface information and the like of a cloud adaptation interface which can be used by a specific cloud end to which the application is to be accessed; the functional layer comprises functional information of the application to be subjected to cloud adaptation.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
Fig. 7 is a schematic structural diagram of a load module according to an embodiment of the present invention; the loading module 103 may include: a code reading unit 1301 and a writing unit 1302.
A code reading unit 1301, configured to read a source code text of the application.
The source code text of the application is recorded in the configuration file of the application, and the code reading unit 1301 may read the configuration file of the application and extract the source code text of the application from the configuration file of the application.
A writing unit 1302, configured to write the cloud access data into a source code text of the application.
The writing unit 1302 writes the cloud access data into the source code text of the application, that is, writes the code of the cloud access data into the source code text of the application as the source code of the application, so that the cloud access data is loaded into the application.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
Please refer to fig. 8, which is a schematic structural diagram of a cloud access module according to an embodiment of the present invention; the cloud access module 104 may include: an execution unit 1401 and an access unit 1402.
An execution unit 1401, configured to execute the cloud access data in the source code text of the application.
An accessing unit 1402, configured to access the application to a cloud server through operation of the cloud access data.
The running unit 1401 runs the cloud access data in the source code text by running the source code text of the application, and an adaptation layer of the cloud access data covers a class, a method, interface information and the like of the application which need to be subjected to cloud adaptation, so that the application has a function of loading cloud adaptation service; information contained in the functional layer of the cloud access data can be reported to the cloud server through the network layer of the cloud access data, the cloud server responds to the network layer of the cloud access data, the access unit 1402 accesses the application to the cloud server, and then the application can communicate with the cloud server to obtain cloud adaptation service from the cloud server.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
The embodiment of the invention also discloses an application server, wherein the application server can comprise an application cloud access device, and the structure and the function of the device can refer to the relevant description of the embodiments shown in fig. 4 to fig. 8, which is not repeated herein.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
Fig. 9 is a schematic structural diagram of an application server according to an embodiment of the present invention; the application server of the embodiment of the invention comprises: at least one processor 201, e.g., a CPU, at least one communication bus 202, at least one network interface 203, memory 204. Wherein a communication bus 202 is used to enable the connection communication between these components. The network interface 203 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The memory 204 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 204 may optionally be at least one storage device located remotely from the processor 201. As shown in fig. 9, a memory 204, which is a kind of computer storage medium, stores an operating system, a network communication module, and a program for performing cloud access of an application and other programs.
In a possible implementation manner, the processor 201 may be configured to call a program stored in the memory 204 for performing cloud access of an application, and perform the following steps:
acquiring category information of an application to be accessed;
acquiring cloud access data according to the category information of the application;
loading the cloud access data to the application;
and accessing the application to a cloud server by adopting the cloud access data.
Wherein the category information of the application includes: any one of an instant messaging category, an SNS category, and an image processing category; or, the category information of the application includes: an inheritance type code structure category or a module type code structure category.
Further, in a feasible implementation manner of the embodiment of the present invention, when the processor 201 executes the step of acquiring the cloud access data according to the category information of the application, the following steps are specifically executed:
searching general adaptation data corresponding to the application category information from a preset adaptation database;
and determining the universal adaptation data as cloud access data.
Further, in another feasible implementation manner of the embodiment of the present invention, when the processor 201 executes the step of acquiring the cloud access data according to the category information of the application, the following steps are specifically executed:
searching general adaptation data corresponding to the application category information from a preset adaptation database;
reading adaptation parameters of the application;
adopting the adaptation parameters of the application to configure the general adaptation data to generate customized adaptation data;
and determining the customized adaptation data as cloud access data.
Wherein the adaptation parameters of the application include: any one or more of network information parameters, adaptation interface parameters, and function information parameters.
Further, when the processor 201 executes the step of loading the cloud access data to the application, the following steps are specifically executed:
reading a source code text of the application;
and writing the cloud access data into a source code text of the application.
Further, when executing the step of accessing the application to the cloud server by using the cloud access data, the processor 201 specifically executes the following steps:
running cloud access data in the source code text of the application;
and accessing the application to a cloud server through the operation of the cloud access data.
In the embodiment of the invention, the cloud access data can be acquired according to the type information of the application, and the cloud access data is loaded to the application, so that the application can be accessed to the cloud server by adopting the cloud access data, the cloud access process of the application is completed, the application can enjoy cloud service, the resource consumption caused by manually improving or rewriting the source code of the application is avoided, the time cost and the labor cost of the cloud access of the application are saved, and the cloud access efficiency of the application is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (12)
1. A cloud access method for an application, comprising:
acquiring category information of an application to be accessed;
searching general adaptation data corresponding to the application category information from a preset adaptation database;
reading adaptation parameters of the application;
adopting the adaptation parameters of the application to configure the general adaptation data to generate customized adaptation data;
determining the customized adaptation data as cloud access data;
loading the cloud access data to the application;
and accessing the application to a cloud server by adopting the cloud access data.
2. The method of claim 1, wherein the category information of the application comprises: any one of an instant messaging category, a Social Network Service (SNS) category and an image processing category; or,
the category information of the application includes: an inheritance type code structure category or a module type code structure category.
3. The method of claim 1, wherein the applied adaptation parameters comprise: any one or more of network information parameters, adaptation interface parameters, and function information parameters.
4. The method of any of claims 1-3, wherein the loading the cloud access data to the application comprises:
reading a source code text of the application;
and writing the cloud access data into a source code text of the application.
5. The method of claim 4, wherein said accessing the application to a cloud server using the cloud access data comprises:
running cloud access data in the source code text of the application;
and accessing the application to a cloud server through the operation of the cloud access data.
6. A cloud access apparatus for an application, comprising:
the category acquisition module is used for acquiring category information of the application to be accessed;
the data acquisition module is used for acquiring cloud access data according to the category information of the application, wherein the cloud access data is used for accessing the application to a cloud server so that the application can use cloud adaptation service;
a loading module for loading the cloud access data to the application;
the cloud access module is used for accessing the application to a cloud server by adopting the cloud access data;
the data acquisition module comprises:
the second searching unit is used for searching general adaptation data corresponding to the application category information from a preset adaptation database;
the parameter reading unit is used for reading the adaptive parameters of the application;
the configuration unit is used for configuring the general adaptation data by adopting the adaptation parameters of the application to generate customized adaptation data;
a second determining unit, configured to determine the customized adaptation data as cloud access data.
7. The apparatus of claim 6, wherein the category information of the application comprises: any one of an instant messaging category, an SNS category, and an image processing category; or,
the category information of the application includes: an inheritance type code structure category or a module type code structure category.
8. The apparatus of claim 6, wherein the adaptation parameters of the application comprise: any one or more of network information parameters, adaptation interface parameters, and function information parameters.
9. The apparatus of any of claims 6-8, wherein the loading module comprises:
the code reading unit is used for reading a source code text of the application;
and the writing unit is used for writing the cloud access data into the source code text of the application.
10. The apparatus of claim 9, wherein the cloud access module comprises:
the running unit is used for running the cloud access data in the source code text of the application;
and the access unit is used for accessing the application to a cloud server through the operation of the cloud access data.
11. An application server, characterized in that it comprises a cloud access means for an application according to any of claims 6-10.
12. A computer-readable storage medium, in which one or more programs are stored, the programs being used to execute a cloud access method for an application according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410325404.8A CN105323276B (en) | 2014-07-09 | 2014-07-09 | Cloud access method and device of application and application server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410325404.8A CN105323276B (en) | 2014-07-09 | 2014-07-09 | Cloud access method and device of application and application server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105323276A CN105323276A (en) | 2016-02-10 |
CN105323276B true CN105323276B (en) | 2020-05-26 |
Family
ID=55249868
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410325404.8A Active CN105323276B (en) | 2014-07-09 | 2014-07-09 | Cloud access method and device of application and application server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105323276B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665195A (en) * | 2012-04-26 | 2012-09-12 | 深圳市中兴移动通信有限公司 | Data terminal, data terminal system and data terminal implementation method based on cloud service |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007304998A (en) * | 2006-05-12 | 2007-11-22 | Hitachi Software Eng Co Ltd | Source code generation method, device, and program |
WO2010034329A1 (en) * | 2008-09-25 | 2010-04-01 | Siemens Enterprise Communications Gmbh & Co. Kg | Method for configuring an application |
CN101950254B (en) * | 2010-09-16 | 2014-07-30 | 新邮通信设备有限公司 | Software updating method and system thereof |
CN102546208B (en) * | 2010-12-13 | 2015-04-08 | 北大方正集团有限公司 | Device management method, system and device management server |
CA2734860A1 (en) * | 2011-03-21 | 2012-09-21 | Calgary Scientific Inc. | Method and system for providing a state model of an application program |
CN102170476B (en) * | 2011-05-09 | 2015-07-22 | 中兴通讯股份有限公司 | Cloud computing method and device based on cloud node autonomic learning |
CN102722439B (en) * | 2012-06-01 | 2015-07-08 | 北京奇虎科技有限公司 | Method, device and system for improving running stability of FLASH assembly |
-
2014
- 2014-07-09 CN CN201410325404.8A patent/CN105323276B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665195A (en) * | 2012-04-26 | 2012-09-12 | 深圳市中兴移动通信有限公司 | Data terminal, data terminal system and data terminal implementation method based on cloud service |
Also Published As
Publication number | Publication date |
---|---|
CN105323276A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109117169B (en) | Method and device for repairing kernel vulnerability | |
US10025694B1 (en) | Monitoring activity of software development kits using stack trace analysis | |
CN105302711B (en) | Application restoration method and device and terminal | |
US20150024720A1 (en) | Remote Testing Through Third Party Devices | |
CN112256296B (en) | Weex-based express service APP updating method, weex-based express service APP updating device, weex-based express service APP updating equipment and storage medium | |
CN108287708B (en) | Data processing method and device, server and computer readable storage medium | |
CN104866342A (en) | Method and device for simultaneously starting multiple same applications on intelligent terminal | |
CN107370804B (en) | Software application processing method and device | |
CN108255735B (en) | Associated environment testing method, electronic device and computer readable storage medium | |
CN106293849B (en) | application updating method and terminal | |
CN108647032A (en) | Using loading method and device, computer installation and computer readable storage medium | |
CN106775754A (en) | The compatible processing method and processing device of application | |
CN105187562A (en) | System and method for operating remote file | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN109032693B (en) | Method and device for loading display information, electronic equipment and readable storage medium | |
CN104182266A (en) | Application installation method and device | |
CN105323276B (en) | Cloud access method and device of application and application server | |
CN109840156B (en) | Data caching method and equipment, storage medium and terminal thereof | |
CN107172610B (en) | GSM network self-adaption method and device and electronic equipment | |
US20140244719A1 (en) | Techniques To Manage Platform Migrations | |
CN112491799B (en) | Remote repair method and device for communication module, computer equipment and storage medium | |
RU2595763C2 (en) | Method and apparatus for managing load on basis of android browser | |
CN112000354A (en) | Version information updating method, version information updating device, version information updating equipment and storage medium | |
CN104268205A (en) | Method and device for obtaining information of installed applications in IOS system | |
CN105320853B (en) | Information monitoring method and device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |