A drive management device and method

By introducing controllable client modules, client driver factory modules and proxy client modules into the cloud service management platform, the docking and resource use of third-party virtualization management platforms is realized, and the docking of different brand types of virtualization in the existing technology is solved. The adaptation and update issues during the management platform have reduced development costs and complexity.

CN113886013BActive Publication Date: 2025-02-25SHANDONG HAILIANG INFORMATION TECH RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111154240.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2025-02-25
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

When connecting with virtualized management platforms of different brands, existing cloud service management platforms need to undergo a lot of adaptation and updates, resulting in large development business volume and high labor and time costs.

Method used

Provide a driver management device and method, including a controllable client module, a client driver factory module and a proxy client module, through which the docking and resource use of third-party virtualization management platforms is realized, reducing cloud service management Platform adaptation requirements.

Benefits of technology

It effectively reduces the development business volume, reduces labor and time costs, and simplifies the integration process of the cloud service management platform with third-party virtualization management platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886013B_ABST
    Figure CN113886013B_ABST
Patent Text Reader

Abstract

The present invention discloses a driver management device and method, which is applied to a cloud service management platform, including: a controllable client module, which is used to provide a plurality of controllable clients that can use virtual resources under the corresponding third-party virtualization management platform as a docking driver of the corresponding third-party virtualization management platform; a client driver factory module, which is used to instantiate each controllable client to obtain a corresponding controllable client instance; a proxy client module, which is used to use the virtual resources under the corresponding third-party virtualization management platform by the proxy client using the client instance when it is normal, and to process the event that the corresponding virtual resources need to be used by the fake proxy client when it is abnormal; and to determine whether there is a valid session required to use the corresponding virtual resources with the third-party virtualization management platform based on the situation of using the virtual resources under the third-party virtualization management platform. It can effectively reduce the development business volume, thereby effectively reducing the manpower and time costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud service management technology, and more specifically, to a driver management device and method. Background Art

[0002] Most of the current cloud service management platforms are developed independently by various manufacturers, and use the northbound interface provided by the upstream virtualization management platform for integration and docking, so as to realize the use of virtual resources under the virtualization management platform. However, when the cloud service management platform is docked with virtualization management platforms of different brands and types, it is necessary to perform corresponding adaptation and update operations on the entire cloud service management platform, which requires a large amount of development business and brings high manpower and time costs. Summary of the invention

[0003] The purpose of the present invention is to provide a driver management device and method, which can effectively reduce the development business volume, thereby effectively reducing manpower and time costs.

[0004] In order to achieve the above object, the present invention provides the following technical solutions:

[0005] A driver management device, applied to a cloud service management platform, includes a controllable client module, a client driver factory module and a proxy client module, wherein:

[0006] The controllable client module is used to: provide a plurality of controllable clients that can use virtual resources under the corresponding third-party virtualization management platform as a docking driver of the corresponding third-party virtualization management platform;

[0007] The client driver factory module is used to: respectively instantiate each of the controllable clients to obtain controllable client instances corresponding to each of the controllable clients;

[0008] The proxy client module is used to: in normal circumstances, the proxy client uses the client instance to use the virtual resources under the corresponding third-party virtualization management platform; in abnormal circumstances, the fake proxy client uses the fake proxy client to handle events that require the use of the virtual resources under the corresponding third-party virtualization management platform; and when using the virtual resources under the third-party virtualization management platform, determine whether there is a valid session with the third-party virtualization management platform required to use the corresponding virtual resources based on the usage situation.

[0009] Preferably, the proxy client is included in the proxy client module, and is specifically used to: pass in all the controllable client instances during initialization; and when receiving a request to use virtual resources under any third-party virtualization management platform, determine that the any third-party virtualization management platform is the target virtualization management platform, intercept the request to use the virtual resources under the target virtualization management platform, and obtain the controllable client instance required to use the virtual resources under the target virtualization management platform; if the acquisition is successful, use the virtual resources under the target virtualization management platform using the obtained controllable client instance; if the acquisition fails, initialize and use the virtual resources under the target virtualization management platform using the controllable client instance corresponding to the target virtualization management platform passed in during initialization.

[0010] Preferably, the proxy client is specifically used for: establishing a valid session with each of the third-party virtualization management platforms during initialization; and for, in the process of using the virtual resources under the target virtualization management platform using the corresponding controllable client instance, if the use of the virtual resources under the target virtualization management platform cannot be achieved based on the currently existing session with the target virtualization management platform, then determining that the currently existing session with the target virtualization management platform has expired, clearing all controllable client instances in the proxy client, re-initiating a request for the use of the virtual resources under the target virtualization management platform, and returning to execute the step of intercepting the request for the use of the virtual resources under the target virtualization management platform, until the use of the virtual resources under the target virtualization management platform is successfully achieved.

[0011] Preferably, the proxy client is also used for: if an exception is returned when the corresponding controllable client instance is used to implement the use of virtual resources under the target virtualization management platform, the returned exception will be passed to the controllable client instance corresponding to the target virtualization management platform to instruct the controllable client instance corresponding to the target virtualization management platform to directly throw the received exception internally when the received exception can be identified and accepted, and return the received exception when the received exception cannot be identified and accepted; and if an exception is returned by the controllable client instance corresponding to the target virtualization management platform, the steps of failing to implement the use of virtual resources under the target virtualization management platform based on the currently existing session with the target virtualization management platform are executed.

[0012] Preferably, the proxy client is also used to: maintain a list of proxy service objects and a list of proxy target service objects; and return a corresponding proxy service object upon receiving a request to use virtual resources under the target virtualization management platform, so as to instruct the outside world to use the returned proxy service object to call a method for using the virtual resources under the target virtualization management platform, and when the outside world calls a method for using virtual resources under the target virtualization management platform, use the corresponding proxy target service object to implement the use of the virtual resources under the target virtualization management platform; wherein the proxy service object list contains proxy service objects for use by users when calling methods, and the proxy target service object list contains controllable client instances as proxy target service objects.

[0013] Preferably, the fake proxy client is included in the proxy client module, and is specifically used for: determining that the target virtualization management platform cannot provide usable virtual resources when a received exception is thrown inside the controllable client instance corresponding to the target virtualization management platform; and for intercepting the request for using the virtual resources under the target virtualization management platform if a request for using the virtual resources under the target virtualization management platform is received when it is determined that the target virtualization management platform cannot provide usable virtual resources, and returning empty or an empty list when the request for using the virtual resources under the target virtualization management platform is a query, and throwing a corresponding exception when the request for using the virtual resources under the target virtualization management platform is an execution operation.

[0014] Preferably, the controllable client includes a control interface and an extended service interface, wherein:

[0015] The control interface is used to: establish a session with a corresponding third-party virtualization management platform, so that the driver management device can achieve data interaction with the third-party virtualization management platform;

[0016] The extended service interface is used to: when called, based on data interaction with the corresponding third-party virtualization platform, realize the use of virtual resources under the corresponding third-party virtualization management platform.

[0017] Preferably, the controllable client further includes:

[0018] The data interaction carrier is used to provide the control interface with data information required for establishing a session.

[0019] Preferably, the client driver factory module is also used to: obtain the platform information of each of the third-party virtualization management platforms and the implementation class of each controllable client by scanning the corresponding path during initialization, display the platform information for obtaining the supported third-party virtualization management platforms, and display the implementation class of the controllable client for corresponding verification.

[0020] Preferably, the client driver factory module is further used to: store the acquired platform information of each third-party virtualization management platform and the corresponding controllable client implementation class in a cache in a key-value pair format for query.

[0021] A drive management method, applied in a cloud service management platform, includes:

[0022] Provides a docking driver for the corresponding third-party virtualization management platform, and can use multiple controllable clients of the virtual resources under the corresponding third-party virtualization management platform;

[0023] Instantiate each of the controllable clients respectively to obtain controllable client instances corresponding to each of the controllable clients;

[0024] Under normal circumstances, the proxy client uses the client instance to use the virtual resources under the corresponding third-party virtualization management platform. Under abnormal circumstances, the fake proxy client handles the events that require the use of the virtual resources under the corresponding third-party virtualization management platform. When using the virtual resources under the third-party virtualization management platform, it is determined based on the usage whether there is a valid session with the third-party virtualization management platform to use the corresponding virtual resources.

[0025] The present invention provides a driver management device and method, which is applied to a cloud service management platform, and includes a controllable client module, a client driver factory module and a proxy client module, wherein: the controllable client module is used to provide a plurality of controllable clients that can use virtual resources under the corresponding third-party virtualization management platform as a docking driver of the corresponding third-party virtualization management platform; the client driver factory module is used to instantiate each of the controllable clients respectively to obtain a controllable client instance corresponding to each of the controllable clients; the proxy client module is used to: in normal circumstances, the proxy client uses the client instance to use the virtual resources under the corresponding third-party virtualization management platform, and in abnormal circumstances, the fake proxy client processes the events that need to use the virtual resources under the corresponding third-party virtualization management platform; and when using the virtual resources under the third-party virtualization management platform, determine whether there is a valid session required to use the corresponding virtual resources between the third-party virtualization management platform and the third-party virtualization management platform based on the usage situation. The driver management device of the present application is applied to the cloud service management platform, including a controllable client module, a client driver factory module and a proxy client module; the controllable client module provides a plurality of controllable clients that can use the virtual resources under the corresponding third-party virtualization management platform as the docking driver of each third-party virtualization management platform, and the client driver factory module instantiates each controllable client to obtain the corresponding controllable client instance, and the proxy client module realizes the use of the virtual resources under the corresponding third-party virtualization management platform or directly handles the virtual resource use event under the corresponding third-party virtualization management platform by cooperating with the proxy client and the fake proxy client in normal and abnormal situations, and the proxy client module will also passively perceive whether the session with the third-party virtualization management platform is valid during the use of the virtual resources under the third-party virtualization management platform. It can be seen that the present application sets controllable clients that are docked with multiple third-party virtualization management platforms in the cloud service management platform, and then uses these controllable clients to realize the use of virtual resources under the corresponding third-party virtualization management platform, without the need to perform corresponding adaptation and update operations on the entire cloud service management platform, effectively reducing the development business volume, and thus effectively reducing the manpower and time costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0027] Figure 1A schematic diagram of the structure of a drive management device provided by an embodiment of the present invention;

[0028] Figure 2 A flowchart of a proxy client implementing corresponding virtual resource usage in a driver management device provided by an embodiment of the present invention;

[0029] Figure 3 A flowchart of a proxy client in a driver management device provided by an embodiment of the present invention determining whether a corresponding valid session exists;

[0030] Figure 4 A flowchart of a drive management method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] See also Figure 1 , which shows a schematic diagram of the structure of a driver management device provided by an embodiment of the present invention, the driver management device is applied to a cloud service management platform, and may include a controllable client module 11, a client driver factory module 12 and a proxy client module 13, wherein:

[0033] The controllable client module 11 is used to provide a plurality of controllable clients that can use virtual resources under the corresponding third-party virtualization management platform as a docking driver;

[0034] The client driver factory module 12 is used to: instantiate each controllable client to obtain a controllable client instance corresponding to each controllable client;

[0035] The proxy client module 13 is used to: use the virtual resources of the corresponding third-party virtualization management platform by the proxy client using the client instance under normal circumstances, and use the fake proxy client to handle events that require the use of the virtual resources of the corresponding third-party virtualization management platform under abnormal circumstances; and when using the virtual resources of the third-party virtualization management platform, determine whether there is a valid session with the third-party virtualization management platform required to use the corresponding virtual resources based on the usage situation.

[0036] It should be noted that the driver management device provided in the embodiment of the present application serves as a driver management module for connecting the cloud service management platform to a third-party virtualization management platform, and can be set in the cloud service management platform; and the driver management device can include a controllable client module, a client driver factory module and a proxy client module.

[0037] The controllable client module provides multiple controllable clients, each of which has a corresponding third-party virtualization management platform, and each controllable client can serve as a docking driver for the corresponding third-party virtualization management platform, and then realize the function of the docking driver when needed to realize the use of virtual resources (virtual resources may include virtual machines and other resources) under the corresponding third-party virtualization management platform. It can be seen that the uncertainty of the docking driver for the third-party virtualization management platform and the introduction of its code make the cloud service management platform dependent on the corresponding SDK (Service Develop Kit, service development kit; the lower-level software provides a unified SDK, which is used to provide to upper-level services or software developers to provide interfaces through its internal implementation of tools that can control the lower-level software). The embodiment of the present application adopts the idea of ​​abstraction and encapsulation, and classifies the docking driver of each third-party virtualization management platform into a corresponding controllable client, so that the controllable client provided by the controllable client module is used on the cloud service management platform side to realize the use of virtual resources under the third-party virtualization management platform, so that the corresponding SDK of the third-party virtualization management platform is separated from the cloud service management platform. In order to realize the use of controllable clients, the client driver factory module in the embodiment of the present application can instantiate each controllable client separately, thereby obtaining a controllable client instance for each controllable client, and then realize the use of virtual resources under the corresponding third-party virtualization management platform based on the controllable client instance.

[0038] The proxy client module may include a proxy client and a fake proxy client. When the corresponding third-party virtualization management platform can provide the use function of virtual resources, the proxy client uses the client instance to realize the use of the virtual resources under the corresponding third-party virtualization management platform. When the corresponding third-party virtualization management platform cannot provide the use function of virtual resources, the fake proxy client processes the event that needs to use the virtual resources under the corresponding third-party virtualization management platform, thereby realizing event processing in different situations through the cooperation of the proxy client and the fake proxy client. In addition, the embodiment of the present application can also passively perceive the communication situation with the third-party virtualization management platform. Specifically, there is no need to actively detect the communication situation with the third-party virtualization management platform (whether the current session with the third-party virtualization management platform is valid) to avoid problems such as resource waste caused by active detection. Instead, when the virtual resources under the third-party virtualization management platform need to be used, it is carried out according to the normal process. Then, when it is found that the virtual resources under the corresponding third-party virtualization management platform cannot be used based on the current session, it is explained that the current session with the corresponding third-party virtualization management platform is invalid, otherwise it is explained that the current session with the corresponding third-party virtualization management platform is valid.

[0039] The driver management device of the present application is applied to the cloud service management platform, including a controllable client module, a client driver factory module and a proxy client module; the controllable client module provides a plurality of controllable clients that can use the virtual resources under the corresponding third-party virtualization management platform as the docking driver of each third-party virtualization management platform, and the client driver factory module instantiates each controllable client to obtain the corresponding controllable client instance, and the proxy client module realizes the use of the virtual resources under the corresponding third-party virtualization management platform or directly handles the virtual resource use event under the corresponding third-party virtualization management platform by cooperating with the proxy client and the fake proxy client in normal and abnormal situations, and the proxy client module will also passively perceive whether the session with the third-party virtualization management platform is valid during the use of the virtual resources under the third-party virtualization management platform. It can be seen that the present application sets controllable clients that are docked with multiple third-party virtualization management platforms in the cloud service management platform, and then uses these controllable clients to realize the use of virtual resources under the corresponding third-party virtualization management platform, without the need to perform corresponding adaptation and update operations on the entire cloud service management platform, effectively reducing the development business volume, and thus effectively reducing the manpower and time costs.

[0040] Moreover, in the present application, the proxy client and the fake proxy client cooperate to realize virtual resource usage events, thereby effectively ensuring the effectiveness of event processing; the communication status with the third-party virtualization management platform is also determined through passive perception, so as to obtain the corresponding communication status while saving resources.

[0041] An embodiment of the present invention provides a drive management device, wherein the controllable client may include a control interface, an extended service interface, and a data interaction carrier, wherein:

[0042] The control interface is used to: establish a session with a corresponding third-party virtualization management platform so that the driver management device can achieve data interaction with the third-party virtualization management platform;

[0043] The extended service interface is used to: when called, based on data interaction with the corresponding third-party virtualization platform, realize the use of virtual resources under the corresponding third-party virtualization management platform;

[0044] The data interaction carrier is used to provide the control interface with the data information required to establish a session.

[0045] It should be noted that the controllable client of the embodiment of the present application can provide an interface (control interface), an extended service interface and a data interaction carrier for docking with the SDK of the third-party virtualization management platform. Specifically, the processing logic used when docking with the SDK of the third-party virtualization management platform is encapsulated in a separate code package (the code in the code package needs to implement the control interface and the extended service interface of the controllable client), and then the relevant personnel obtain the packaging of the overall code required for docking with the third-party virtualization management platform SDK based on the code package, and obtain the docking driver of the third-party virtualization management platform, that is, the controllable client. Among them, the control interface mainly provides the controllable client with the corresponding third-party virtualization management platform SDK for session authentication, re-authentication and logout operations, and at the same time provides the controllable client with parameters, exception handling interface and interface for obtaining the implementation of the extended service interface, so that the developer can freely control the relevant internal details while ensuring that the interface intention is implemented; the extended service interface is mainly used to realize the use of virtual resources under the corresponding third-party virtualization management platform when it is called; the data interaction carrier is used for the data information required for the control interface to perform session authentication, re-authentication and logout operations, such as user name, password, etc. Therefore, by setting the above interface and carrier, it is ensured that the controllable client can effectively implement operations such as the use of virtual resources.

[0046] A driver management device provided by an embodiment of the present invention, the client driver factory module can also be used for: obtaining the platform information of each third-party virtualization management platform and the implementation class of each controllable client by scanning the corresponding path during initialization, displaying the platform information for obtaining the supported third-party virtualization management platforms, and displaying the implementation class of the controllable client for corresponding verification; and storing the obtained platform information of each third-party virtualization management platform and the corresponding implementation class of the controllable client in the form of key-value pairs in the cache for query.

[0047] The client driver factory module is responsible for discovering and instantiating the controllable client and completing the relevant configuration operations of the controllable client. When the client driver factory module is initialized, it will scan the driver configuration files of all specific file paths under the preset project path. The driver configuration file includes the platform information of the supported third-party virtualization platform (such as name, supported version, version branch, etc.) and the corresponding controllable client implementation class (which can also be the path of the implementation class) and other information. Then, the driver configuration file is loaded and converted into driver information and stored in the cache; at the same time, the controllable client implementation class in the driver configuration file can be parsed, loaded and verified, and then instantiated after verification to obtain the corresponding controllable client instance.

[0048] After the loading of the driver configuration file is realized in the embodiment of the present application, the client driver factory module can store the platform information of the third-party virtualization management platform and the corresponding controllable client instance in the cache in the form of a key-value pair to accelerate the query efficiency of obtaining the corresponding type of controllable client instance through the factory class. In addition, the client driver factory module in the embodiment of the present application can also provide an interface that can obtain the basic information of all driver information loaded into the factory, including lists or information entities in different combinations of names, supported versions, supported system types, etc., and of course the most basic interface for obtaining controllable client instances in the driver information. In order to facilitate the viewing and verification of information, the embodiment of the present application can also prohibit the display of the platform information of the third-party virtualization management platform and the corresponding controllable client implementation class. The two can be displayed on the same interface or on different interfaces, all within the protection scope of the present invention.

[0049] A driver management device provided by an embodiment of the present invention, wherein a proxy client is included in a proxy client module, and can be specifically used to: pass in all controllable client instances during initialization; and upon receiving a request to use virtual resources under any third-party virtualization management platform, determine that the any third-party virtualization management platform is a target virtualization management platform, intercept the request to use the virtual resources under the target virtualization management platform, obtain the controllable client instance required to use the virtual resources under the target virtualization management platform, and if the acquisition is successful, use the virtual resources under the target virtualization management platform using the obtained controllable client instance; if the acquisition fails, perform initialization, and use the virtual resources under the target virtualization management platform using the controllable client instance corresponding to the target virtualization management platform passed in during initialization.

[0050] In the embodiment of the present application, the proxy client can obtain all controllable client instances from the client driver factory module when initializing, and then use the controllable client instances to use the virtual resources under the corresponding third-party virtualization management platform. In a specific implementation, the process of using the client instance to use the virtual resources under the corresponding third-party virtualization management platform can be as follows: Figure 2 As shown, this may include:

[0051] S11: upon receiving a request to use virtual resources under any third-party virtualization management platform, determining the any third-party virtualization management platform as a target virtualization management platform;

[0052] S12: intercepting a request for using virtual resources under the target virtualization management platform, and obtaining a controllable client instance required for using the virtual resources under the target virtualization management platform;

[0053] S13: If the acquisition is successful, the acquired controllable client instance is used to use the virtual resources under the target virtualization management platform.

[0054] S14: If the acquisition fails, initialization is performed, and the controllable client instance corresponding to the target virtualization management platform passed in during initialization is used to use the virtual resources under the target virtualization management platform.

[0055] When a request from a user to use virtual resources under any third-party virtualization management platform is received, the request can be intercepted, and then an attempt can be made to obtain the controllable client instance required for using the virtual resources under any third-party virtualization management platform corresponding to the request. If the required controllable client instance can be obtained, the obtained controllable client instance can be directly used to use the virtual resources under any third-party virtualization management platform, and the corresponding result can be returned. If the required controllable client instance cannot be obtained, the required controllable client instance needs to be re-introduced, so initialization is performed again to obtain all controllable client instances from the client driver factory module through initialization, and then the required controllable client instance introduced in this initialization can be used to use the virtual resources under any third-party virtualization management platform. It should be noted that when a request for the use of virtual resources under any third-party virtualization management platform is received, if the request is responded to directly, an error may be returned when the corresponding controllable client instance does not exist. Therefore, in order to avoid this situation as much as possible, the embodiment of the present application intercepts the above request, and then directly realizes the use of the virtual resources under any third-party virtualization management platform after successfully attempting to obtain the corresponding controllable client instance. After re-transmitting all controllable client instances after failing to attempt to obtain the corresponding controllable client instance, the use of the virtual resources under any third-party virtualization management platform is realized.

[0056] A driver management device provided by an embodiment of the present invention, the proxy client can be specifically used for: establishing a valid session with each third-party virtualization management platform during initialization; and for, in the process of using the virtual resources under the target virtualization management platform using the corresponding controllable client instance, if the use of the virtual resources under the target virtualization management platform cannot be achieved based on the currently existing session with the target virtualization management platform, then it is determined that the currently existing session with the target virtualization management platform has expired, all controllable client instances in the proxy client are cleared, and a request for the use of the virtual resources under the target virtualization management platform is initiated again, and the step of intercepting the request for the use of the virtual resources under the target virtualization management platform is returned to execute until the use of the virtual resources under the target virtualization management platform is successfully achieved.

[0057] In the embodiment of the present application, the proxy client can also establish a valid session with each third-party virtualization management platform during initialization, and then use the virtual resources of the corresponding third-party virtualization management platform based on the valid session. In a specific implementation, the process of determining whether there is a valid session with the third-party virtualization management platform for using the corresponding virtual resources based on the usage situation can be as follows: Figure 3 As shown, this may include:

[0058] S21: in the process of using the corresponding controllable client instance to use the virtual resources of the target virtualization management platform, if the virtual resources of the target virtualization management platform cannot be used based on the currently existing session with the target virtualization management platform, it is determined that the currently existing session with the target virtualization management platform has expired;

[0059] S22: Clear all controllable client instances in the proxy client;

[0060] S23: initiating a request for using the virtual resources of the target virtualization management platform again, and returning to the step of intercepting the request for using the virtual resources of the target virtualization management platform until the virtual resources of the target virtualization management platform are successfully used.

[0061] In the embodiment of the present application, when using a controllable client to realize the use of virtual resources under the corresponding third-party virtualization management platform, if it is impossible to realize the use of virtual resources under the corresponding third-party virtualization management platform based on the currently existing session with the corresponding third-party virtualization management platform, it can be determined that the currently existing session with the corresponding third-party virtualization management platform has expired. At this time, in order to re-establish the corresponding valid session, all controllable client instances in the proxy client can be cleared, and then the request to use the virtual resources under the corresponding third-party virtualization management platform is initiated again, and the step of intercepting the request to use the virtual resources under the corresponding third-party virtualization management platform is returned to trigger the initialization of the proxy client, and then the valid session with each third-party virtualization management platform is established through initialization. It can be seen that the present application can passively perceive the validity of the session with the corresponding third-party virtualization management platform in the above manner, and then establish the corresponding valid session through the initialization trigger when the corresponding session fails, saving resources while ensuring the use of the corresponding virtual resources based on the session.

[0062] A driver management device provided by an embodiment of the present invention, the proxy client can also be used for: if an exception is returned when using the corresponding controllable client instance to implement the use of virtual resources under the target virtualization management platform, the returned exception is passed to the controllable client instance corresponding to the target virtualization management platform to instruct the controllable client instance corresponding to the target virtualization management platform to directly throw the received exception internally when it is able to identify and accept the received exception, and return the received exception when it is unable to identify and accept the received exception; and if an exception is returned by the controllable client instance corresponding to the target virtualization management platform, the steps of failing to implement the use of virtual resources under the target virtualization management platform based on the currently existing session with the target virtualization management platform are executed.

[0063] It should be noted that, when the embodiment of the present application utilizes a controllable client instance to implement the use of virtual resources under a corresponding third-party virtualization management platform, if an exception is returned indicating that the use of the corresponding virtual resources cannot be implemented normally, the returned exception is passed to the corresponding controllable client instance; after receiving the exception, the controllable client instance identifies the received exception; if it is identified that the received exception is caused by the corresponding third-party virtualization management platform being unable to provide the function of using virtual resources normally, the exception is accepted and directly thrown internally; if it is identified that the received exception is not caused by the corresponding third-party virtualization management platform being unable to provide the function of using virtual resources normally, the exception is refused to be received and returned to the proxy client; after receiving the exception returned by the controllable client instance, the proxy client determines that the exception is due to the inability to implement the use of virtual resources based on the currently existing session with the corresponding third-party virtualization management platform, and therefore executes subsequent steps such as determining that the session with the corresponding third-party virtualization management platform has expired. It can be seen that the present application processes the exceptions returned when using virtual resources through a controllable client instance, and then when the exception is caused by the inability of the corresponding third-party virtualization management platform to normally provide the function of using virtual resources, the exception is directly thrown internally, otherwise the exception is returned to the proxy client to inform the proxy client that the exception is caused by the failure of the session with the corresponding third-party virtualization management platform, thereby achieving efficient handling of the exception.

[0064] A driver management device provided by an embodiment of the present invention, the proxy client can also be used to: maintain a proxy service object list and a proxy target service object list; and return a corresponding proxy service object when receiving a request to use virtual resources under a target virtualization management platform, so as to instruct the outside world to use the returned proxy service object to call a method for using virtual resources under the target virtualization management platform, and when the outside world calls the method for using virtual resources under the target virtualization management platform, use the corresponding proxy target service object to realize the use of virtual resources under the target virtualization management platform; wherein, the proxy service object list contains proxy service objects for users to use when calling methods, and the proxy target service object list contains controllable client instances as proxy target service objects.

[0065] In the embodiment of the present application, the proxy client can also maintain a proxy service object list and a proxy target service object list, and then implement the corresponding call operation based on these two lists. Specifically, the proxy service object included in the proxy service object list is a data object used by the user when calling the method, and then the proxy client returns the corresponding proxy service object to the user when receiving a request to use the virtual resources under the corresponding third-party virtualization management platform, and the user uses the proxy service object to call the corresponding method, which is a method of using the virtual resources under the corresponding third-party virtualization management platform; the proxy target service object included in the proxy target service object list is a controllable client instance, and there is a one-to-one correspondence between the proxy service object and the proxy target service object, and then when the outside world calls the proxy service object, the proxy target service object corresponding to the called proxy service object is used to implement the corresponding method, that is, the use of the virtual resources under the corresponding third-party virtualization management platform. It can be seen that the present application can realize the effective implementation of the use of virtual resources through the proxy service object and the proxy target service object, and facilitate the effective control of the way of using virtual resources.

[0066] In a specific implementation, the proxy client is the main component under normal operation, which is responsible for intercepting the corresponding method of calling the extended service interface of the controllable client module, and controlling the activity status of the controllable client instance and exception interception and other matters; when the proxy client is initialized, it is required to pass in the controllable client instance (the corresponding controllable client instance is obtained at the client driver proxy factory interface through the docking name, and the name supported by the client driver proxy factory can be obtained from the interface provided by the client driver proxy factory); and when initializing, the controllable client can be held internally, and two cache information lists are maintained, namely the proxy service object list and the proxy target service object list. Among them, the proxy service object list and the proxy target service object list are both implementations of the service extension interface provided in the proxy client, except that the proxy service object is instantiated by the proxy client and is used to intercept the method of the extended service interface, while the proxy target service object is implemented inside the controllable client instance and is used to execute the real third-party docking call business logic.

[0067] When in use, after instantiating the proxy client, the proxy client instance is used to execute the extended service interface provided by the controllable client instance in the cloud service management platform to execute the business logic, so as to complete the control of the call execution process of the third-party virtualization management platform; when the extended service interface to be used is obtained through the proxy client (a request is initiated), the proxy client returns the proxy service object of the corresponding type of extended service interface to the user, and the user uses the proxy service object to execute the corresponding method, which may specifically include the following steps:

[0068] Intercept the call of the corresponding method of the extended service interface, obtain the controllable client instance that implements the corresponding method of the extended service interface, if the acquisition is successful, directly use the obtained controllable client instance to implement the corresponding method, otherwise it means that the controllable client instance has not been initialized, so the proxy client is initialized (including using the held controllable client to establish a valid session), and obtain all the proxy service objects implemented by the controllable client instance to update to the proxy service object list; use the obtained extended service interface corresponding to the proxy service object implementation, call the real method and return the result. If an exception is returned during the call, intercept this exception, and pass the exception to the exception handling interface provided by the controllable client instance, and let the controllable client instance select and handle it. Specifically, if the controllable client recognizes and accepts the exception, it can be directly thrown internally. If it is not accepted, it will be returned to the interception block of the proxy client. At this time, this exception is unified as session failure processing. In the case of session failure, the proxy client will clear the proxy service target object list and use the proxy service object to call this method again, thereby falling into the interception of the method call again, and repeating the above process until the method call is completed.

[0069] A driver management device provided by an embodiment of the present invention, in which a fake proxy client is included in a proxy client module, can be specifically used for: when a received exception is thrown inside a controllable client instance corresponding to a target virtualization management platform, determining that the target virtualization management platform cannot provide usable virtual resources; and when it is determined that the target virtualization management platform cannot provide usable virtual resources, if a request for using virtual resources under the target virtualization management platform is received, intercepting the request for using virtual resources under the target virtualization management platform, and returning null or an empty list when the request for using virtual resources under the target virtualization management platform is a query, and throwing a corresponding exception when the request for using virtual resources under the target virtualization management platform is an execution operation.

[0070] It should be noted that the fake proxy client is a subclass of the proxy client. It only maintains a list of proxy service objects. It does not need to pass in a controllable client instance for initialization. The main purpose is to provide a fake proxy client to provide a method entry to maintain the normal operation of the cloud management platform when the third-party virtualization management platform is inaccessible. Specifically, when the fake proxy client is initialized, only the list of proxy service objects is initialized, and the list of proxy service objects is handed over to a unified management entry for maintenance; its use is no different from the proxy client, except that when the method is trapped, its control logic no longer actually calls the controllable client instance, but distinguishes the type of method it calls, such as whether the method type is query or execution operation. If it is a query, it returns empty or an empty list, and if it is an operation, it throws an exception. Therefore, by providing a proxy client and a fake proxy client, and handing it over to a unified proxy client class for maintenance, it can achieve the level that developers do not need to worry about the availability of the third-party platform, and automatically complete data processing, rather than throwing exceptions infinitely and affecting business logic.

[0071] In summary, the present application encapsulates the docking logic of the third-party virtualization management platform through the controllable client module, and then combines the client driver factory module to scan and build the implementation of different controllable clients. Finally, the proxy client module controls the execution logic, and completely separates the docking code of the third-party virtualization management platform from the cloud service management platform code, simplifies and completes the session management and logic control of the cloud service management platform to the third-party virtualization management platform, and reduces the manpower and time costs brought by the cloud platform's horizontal support for virtualization platform types; specifically, the present invention can allow the cloud service management platform to separate its dependency on the third-party virtualization management platform, so that when there is or is no docking with the third-party virtualization management platform, All of them can normally complete the business logic of the cloud service management platform; it improves the horizontal expansion capability of the cloud service management platform when integrating a third-party virtualization management platform. There is no need to adapt and develop the cloud service management platform. It only needs to provide and update the docking driver implementation of the third-party virtualization management platform, and can dynamically update the docking driver of the third-party virtualization management platform to achieve non-stop compatibility with the third-party platform; in addition, the unique proxy client module processing method within the present invention greatly reduces the difficulty of developers in processing the cloud management platform logic, and at the same time performs unified control processing and unified exception interception processing on the connection session, etc., to ensure that the operation and management platform interacts efficiently and stably with the third-party virtualization platform.

[0072] The embodiment of the present invention also provides a drive management method, such as Figure 4 As shown, it is applied to the cloud service management platform and may include:

[0073] S31: providing a docking driver for a corresponding third-party virtualization management platform, and being able to use multiple controllable clients of virtual resources under the corresponding third-party virtualization management platform;

[0074] S32: Instantiate each controllable client to obtain a controllable client instance corresponding to each controllable client;

[0075] S33: Under normal circumstances, the proxy client uses the client instance to use the virtual resources under the corresponding third-party virtualization management platform. Under abnormal circumstances, the fake proxy client handles the events that require the use of the virtual resources under the corresponding third-party virtualization management platform. When using the virtual resources under the third-party virtualization management platform, it is determined based on the usage whether there is a valid session with the third-party virtualization management platform to use the corresponding virtual resources.

[0076] An embodiment of the present invention provides a driver management method, which normally uses a client instance to use virtual resources under a corresponding third-party virtualization management platform, and may include:

[0077] When a request to use virtual resources under any third-party virtualization management platform is received, the arbitrary third-party virtualization management platform is determined to be the target virtualization management platform, the request to use the virtual resources under the target virtualization management platform is intercepted, and the controllable client instance required for using the virtual resources under the target virtualization management platform is obtained. If the acquisition is successful, the virtual resources under the target virtualization management platform are used by using the obtained controllable client instance. If the acquisition fails, initialization is performed, and the controllable client instance corresponding to the target virtualization management platform passed in during initialization is used to use the virtual resources under the target virtualization management platform; wherein, all controllable client instances are passed in during initialization.

[0078] An embodiment of the present invention provides a driver management method, which determines whether there is a valid session required to use corresponding virtual resources with a third-party virtualization management platform based on usage conditions, and may include:

[0079] In the process of using the corresponding controllable client instance to use the virtual resources under the target virtualization management platform, if the use of the virtual resources under the target virtualization management platform cannot be achieved based on the currently existing session with the target virtualization management platform, it is determined that the currently existing session with the target virtualization management platform has expired, all controllable client instances in the proxy client are cleared, and a request to use the virtual resources under the target virtualization management platform is initiated again, and the step of intercepting the request to use the virtual resources under the target virtualization management platform is returned to execute until the use of the virtual resources under the target virtualization management platform is successfully achieved; wherein, a valid session with each third-party virtualization management platform is established during initialization.

[0080] A drive management method provided by an embodiment of the present invention may further include:

[0081] If an exception is returned when using the corresponding controllable client instance to use the virtual resources under the target virtualization management platform, the returned exception will be passed to the controllable client instance corresponding to the target virtualization management platform to instruct the controllable client instance corresponding to the target virtualization management platform to directly throw the received exception internally when it is able to identify and accept the received exception, and return the received exception when it is unable to identify and accept the received exception; if an exception is returned by the controllable client instance corresponding to the target virtualization management platform, the steps of failing to use the virtual resources under the target virtualization management platform based on the currently existing session with the target virtualization management platform are executed.

[0082] A drive management method provided by an embodiment of the present invention may further include:

[0083] Maintaining a proxy service object list and a proxy target service object list; wherein the proxy service object list includes proxy service objects used by users when calling methods, and the proxy target service object list includes controllable client instances as proxy target service objects;

[0084] When a request to use the virtual resources under the target virtualization management platform is received, the corresponding proxy service object is returned to instruct the outside world to use the returned proxy service object to call the method of using the virtual resources under the target virtualization management platform. When the outside world calls the method of using the virtual resources under the target virtualization management platform, the corresponding proxy target service object is used to realize the use of the virtual resources under the target virtualization management platform.

[0085] A driver management method provided by an embodiment of the present invention realizes the processing of events that require the use of virtual resources under a corresponding third-party virtualization management platform in abnormal situations, and may include:

[0086] When the received exception is thrown inside the controllable client instance corresponding to the target virtualization management platform, it is determined that the target virtualization management platform cannot provide usable virtual resources; when it is determined that the target virtualization management platform cannot provide usable virtual resources, if a request to use the virtual resources under the target virtualization management platform is received, the request to use the virtual resources under the target virtualization management platform is intercepted, and when the request to use the virtual resources under the target virtualization management platform is a query, empty or an empty list is returned, and a corresponding exception is thrown when the request to use the virtual resources under the target virtualization management platform is an execution operation.

[0087] A drive management method provided by an embodiment of the present invention may further include:

[0088] By scanning the corresponding path, the platform information of each third-party virtualization management platform and the implementation class of each controllable client are obtained, and the platform information is displayed to obtain the supported third-party virtualization management platforms, and the implementation class of the controllable client is displayed for corresponding verification; and the platform information of each third-party virtualization management platform and the corresponding implementation class of the controllable client are stored in the cache in the form of key-value pairs for query.

[0089] It should be noted that for the description of the relevant parts of a drive management method provided by an embodiment of the present invention, please refer to the detailed description of the corresponding parts of a drive management device provided by an embodiment of the present invention, which will not be repeated here. In addition, the parts of the above technical solutions provided by the embodiment of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

[0090] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A drive management device, characterized in that: Applied in the cloud service management platform, including controllable client module, client driver factory module and proxy client module, among which: The controllable client module is used to: provide a docking driver for a corresponding third-party virtualization management platform, and provide a plurality of controllable clients capable of using virtual resources under the corresponding third-party virtualization management platform; The client driver factory module is used to: respectively instantiate each of the controllable clients to obtain controllable client instances corresponding to each of the controllable clients; The proxy client module is used to: use the controllable client instance to use the virtual resources of the corresponding third-party virtualization management platform by the proxy client in normal conditions, and use the fake proxy client to handle events that require the use of the virtual resources of the corresponding third-party virtualization management platform in abnormal conditions; and determine whether there is a valid session with the third-party virtualization management platform for using the corresponding virtual resources based on the usage when using the virtual resources of the third-party virtualization management platform; The proxy client is included in the proxy client module, and is specifically used to: pass in all the controllable client instances during initialization; and upon receiving a request to use virtual resources under any third-party virtualization management platform, determine that the any third-party virtualization management platform is a target virtualization management platform, intercept the request to use the virtual resources under the target virtualization management platform, obtain the controllable client instance required to use the virtual resources under the target virtualization management platform, and if the acquisition is successful, use the virtual resources under the target virtualization management platform using the obtained controllable client instance; if the acquisition fails, perform initialization, and use the virtual resources under the target virtualization management platform using the controllable client instance corresponding to the target virtualization management platform passed in during initialization; The controllable client includes a control interface and an extended service interface, wherein: The control interface is used to: establish a session with a corresponding third-party virtualization management platform, so that the driver management device can achieve data interaction with the third-party virtualization management platform; The extended service interface is used to: when called, based on data interaction with the corresponding third-party virtualization platform, realize the use of virtual resources under the corresponding third-party virtualization management platform.

2. The device according to claim 1, characterized in that The proxy client is specifically used for: establishing a valid session with each of the third-party virtualization management platforms during initialization; and for, in the process of using the virtual resources under the target virtualization management platform using the corresponding controllable client instance, if the use of the virtual resources under the target virtualization management platform cannot be achieved based on the currently existing session with the target virtualization management platform, then determining that the currently existing session with the target virtualization management platform has expired, clearing all controllable client instances in the proxy client, re-initiating a request for the use of the virtual resources under the target virtualization management platform, and returning to execute the step of intercepting the request for the use of the virtual resources under the target virtualization management platform, until the use of the virtual resources under the target virtualization management platform is successfully achieved.

3. The device according to claim 2, characterized in that The proxy client is also used for: if an exception is returned when the corresponding controllable client instance is used to implement the use of virtual resources under the target virtualization management platform, the returned exception will be passed to the controllable client instance corresponding to the target virtualization management platform to instruct the controllable client instance corresponding to the target virtualization management platform to directly throw the received exception internally when the received exception can be identified and accepted, and return the received exception when the received exception cannot be identified and accepted; and if an exception is returned by the controllable client instance corresponding to the target virtualization management platform, the steps of failing to implement the use of virtual resources under the target virtualization management platform based on the currently existing session with the target virtualization management platform are executed.

4. The device according to claim 3, characterized in that The proxy client is also used to: maintain a list of proxy service objects and a list of proxy target service objects; and return a corresponding proxy service object when receiving a request to use virtual resources under the target virtualization management platform, so as to instruct the outside world to use the returned proxy service object to call a method for using the virtual resources under the target virtualization management platform, and when the outside world calls a method for using the virtual resources under the target virtualization management platform, use the corresponding proxy target service object to implement the use of the virtual resources under the target virtualization management platform; wherein the proxy service object list contains proxy service objects for use by users when calling methods, and the proxy target service object list contains controllable client instances as proxy target service objects.

5. The device according to claim 4, characterized in that The fake proxy client is included in the proxy client module, and is specifically used for: determining that the target virtualization management platform cannot provide usable virtual resources when a received exception is thrown inside the controllable client instance corresponding to the target virtualization management platform; and for intercepting the request for using the virtual resources under the target virtualization management platform if a request for using the virtual resources under the target virtualization management platform is received when it is determined that the target virtualization management platform cannot provide usable virtual resources, and returning empty or an empty list when the request for using the virtual resources under the target virtualization management platform is a query, and throwing a corresponding exception when the request for using the virtual resources under the target virtualization management platform is an execution operation.

6. The device according to claim 5, characterized in that The controllable client also includes: The data interaction carrier is used to provide the control interface with data information required for establishing a session.

7. The device according to claim 6, characterized in that The client driver factory module is also used to: obtain the platform information of each third-party virtualization management platform and the implementation class of each controllable client by scanning the corresponding path during initialization, display the platform information to obtain the supported third-party virtualization management platform, and display the implementation class of the controllable client for corresponding verification.

8. The device according to claim 7, characterized in that The client driver factory module is further used to store the acquired platform information of each third-party virtualization management platform and the corresponding controllable client implementation class in a cache in a key-value pair format for query.

9. A drive management method, characterized in that: Applied to cloud service management platform, including: Provide a docking driver for the corresponding third-party virtualization management platform, and provide multiple controllable clients that can use the virtual resources under the corresponding third-party virtualization management platform; Instantiate each of the controllable clients respectively to obtain controllable client instances corresponding to each of the controllable clients; In normal situations, the proxy client uses the controllable client instance to use the virtual resources of the corresponding third-party virtualization management platform, and in abnormal situations, the fake proxy client processes the events that require the use of the virtual resources of the corresponding third-party virtualization management platform; and when using the virtual resources of the third-party virtualization management platform, it is determined based on the usage whether there is a valid session with the third-party virtualization management platform required to use the corresponding virtual resources; Normally, the client instance is used to use the virtual resources of the corresponding third-party virtualization management platform, including: When receiving a request to use virtual resources under any third-party virtualization management platform, determine that the any third-party virtualization management platform is the target virtualization management platform, intercept the request to use the virtual resources under the target virtualization management platform, obtain the controllable client instance required to use the virtual resources under the target virtualization management platform, if the acquisition is successful, use the virtual resources under the target virtualization management platform using the acquired controllable client instance, if the acquisition fails, initialize and use the virtual resources under the target virtualization management platform using the controllable client instance corresponding to the target virtualization management platform passed in during initialization; wherein, all controllable client instances are passed in during initialization; The controllable client includes a control interface and an extended service interface, wherein: The control interface is used to: establish a session with a corresponding third-party virtualization management platform so that the driver management device can achieve data interaction with the third-party virtualization management platform; The extended service interface is used to: when called, based on data interaction with the corresponding third-party virtualization platform, realize the use of virtual resources under the corresponding third-party virtualization management platform.

Citation Information

Patent Citations

  • Cloud application integrated management platform and method supporting service fusion

    CN102739771A

  • Virtual interaction system and method based on client / server mode

    CN103944890A