CN114338804A - Policy control method and device for cloud mobile phone, storage medium and terminal - Google Patents

Policy control method and device for cloud mobile phone, storage medium and terminal Download PDF

Info

Publication number
CN114338804A
CN114338804A CN202111588823.7A CN202111588823A CN114338804A CN 114338804 A CN114338804 A CN 114338804A CN 202111588823 A CN202111588823 A CN 202111588823A CN 114338804 A CN114338804 A CN 114338804A
Authority
CN
China
Prior art keywords
mobile phone
cloud mobile
target cloud
preset strategy
preset
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.)
Pending
Application number
CN202111588823.7A
Other languages
Chinese (zh)
Inventor
王凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202111588823.7A priority Critical patent/CN114338804A/en
Publication of CN114338804A publication Critical patent/CN114338804A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a strategy control method and device of a cloud mobile phone, a storage medium and a terminal, wherein the strategy control method of the cloud mobile phone comprises the steps of determining a target cloud mobile phone to be executed with a preset strategy, and judging the on-off state of the target cloud mobile phone; if the judgment result is that the target cloud mobile phone is in a power-off state, judging whether the target cloud mobile phone needs to be powered on to execute a preset strategy according to the preset strategy; and if the judgment result is needed, the target cloud mobile phone is called to be started and the preset strategy is executed. The method and the system can enable the target cloud mobile phone in the power-off state to execute the preset strategy to be executed immediately, and further avoid the problem that the traditional management and control mode is disconnected from management and control due to the fact that the strategy execution fails in the network access state or the physical power-off state.

Description

Policy control method and device for cloud mobile phone, storage medium and terminal
Technical Field
The invention relates to the technical field of cloud mobile phones, in particular to a strategy control method and device of a cloud mobile phone, a storage medium and a terminal.
Background
A cloud mobile phone (Cloudphone), which is a virtual mobile phone that applies a cloud computing technology to a network terminal service and realizes a cloud service through a cloud server. The operating party can operate the virtual cloud mobile phone built on the cloud server through the terminal device, so that the functions of the real mobile phone are realized or surpassed.
In the prior art, when a policy is distributed to a cloud mobile phone, the cloud mobile phone may not receive the latest policy due to the influence of the operating system of the entity mobile phone, the current network status, the power-off state and other states, so that the policy management and control of the cloud mobile phone are failed.
Disclosure of Invention
In view of the above, the present invention provides a policy control method and apparatus for a cloud phone, a storage medium, and a terminal, and mainly aims to solve the technical problem that a target cloud phone in a power-off state cannot execute a preset policy that needs to be executed immediately.
According to an aspect of the present invention, a policy control method for a cloud phone is provided, including:
determining a target cloud mobile phone to be executed with a preset strategy, and judging the on-off state of the target cloud mobile phone;
if the judgment result is that the target cloud mobile phone is in a power-off state, judging whether the target cloud mobile phone needs to be powered on to execute a preset strategy according to the preset strategy;
and if the judgment result is needed, the target cloud mobile phone is called to be started and the preset strategy is executed.
Further, the method also comprises the following steps:
if the target cloud mobile phone does not need to be started to execute the preset strategy according to the preset strategy, caching the preset strategy according to the identification of the target cloud mobile phone to obtain cache data;
and after the target cloud mobile phone is started, automatically reading the cache data through the target cloud mobile phone and executing the preset strategy.
Further, after the target cloud phone executes the preset policy, the method further includes:
judging whether the preset strategy is effective on the target cloud mobile phone, and if not, issuing the preset strategy to the target cloud mobile phone again;
and executing the preset strategy issued again in the target cloud mobile phone until the preset strategy is judged to be effective on the target cloud mobile phone.
Further, the method further comprises:
counting the number of times of issuing the preset strategy to the target cloud mobile phone;
and when the frequency of issuing the preset strategy reaches a preset frequency, locking the target cloud mobile phone and informing an administrator of abnormal issuing of the preset strategy.
Further, if the determination result is that the target cloud mobile phone is needed, the method for starting the target cloud mobile phone and executing the preset strategy includes:
acquiring resource information of a request resource of the target cloud mobile phone and resource information of a computing resource of a physical machine corresponding to the target cloud mobile phone;
and when the resource information of the request resource of the target cloud mobile phone is matched with the resource information of the computing resource of the physical machine, sending a starting-up instruction to the target cloud mobile phone so as to start up the target cloud mobile phone according to the starting-up instruction.
Further, if the determination result is that the target cloud mobile phone is needed, the method for starting the target cloud mobile phone and executing the preset strategy further includes:
when the resource information of the request resource of the target cloud mobile phone is not matched with the resource information of the computing resource of the physical machine, adding the resource information of the request resource of the target cloud mobile phone into a queue arrangement;
and detecting the resource information of the computing resources of the physical machine at regular time, and sending a starting instruction to the target cloud mobile phone when the detected resource information of the request resources of the target cloud mobile phone is matched with the resource information of the computing resources of the physical machine.
Further, the method also comprises the following steps:
and after the target cloud mobile phone executes the preset strategy, automatically powering off the target cloud mobile phone.
Further, the method also comprises the following steps:
and if the target cloud mobile phone is judged to be in the power-on state, sending the preset strategy to the target cloud mobile phone so that the target cloud mobile phone can immediately execute the preset strategy.
According to another aspect of the present invention, there is provided a policy control apparatus for a cloud phone, including:
the system comprises a power-on and power-off state judging module, a power-on and power-off state judging module and a power-on and power-off state judging module, wherein the power-on and power-off state judging module is used for determining a target cloud mobile phone to be executed with a preset strategy and judging the power-on and power-off state of the target cloud mobile phone;
the first judgment module is used for judging whether the target cloud mobile phone needs to be started up to execute a preset strategy according to the preset strategy if the judgment result shows that the target cloud mobile phone is in a power-off state;
and the first execution module is used for calling the target cloud mobile phone to be started and executing the preset strategy if the judgment result is that the target cloud mobile phone is required.
According to still another aspect of the present invention, there is provided a storage medium, where at least one executable instruction is stored, and the executable instruction causes a processor to perform an operation corresponding to the policy control method of a cloud phone according to any one of the above descriptions.
According to still another aspect of the present invention, there is provided a terminal including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the policy control method of the cloud mobile phone.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
compared with the prior art, the method and the device for controlling the strategy of the cloud mobile phone, the storage medium and the terminal are provided by the invention, the on-off state of the target cloud mobile phone is judged, and when the target cloud mobile phone is judged to be in the off state, whether the target cloud mobile phone needs to be started up or not is judged according to the preset strategy to execute the preset strategy; and if the target cloud mobile phone is judged to need to be started to execute the preset strategy, the target cloud mobile phone is called to be started and the preset strategy is executed. Therefore, the method and the device can enable the target cloud mobile phone in the power-off state to execute the preset strategy required to be executed immediately, and further solve the technical problem that the target cloud mobile phone in the power-off state cannot execute the preset strategy required to be executed immediately.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic diagram illustrating an exemplary system architecture of a policy control method for a cloud handset according to an embodiment of the present invention;
fig. 2 shows a flowchart of a policy control method for a cloud handset according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a policy control method for a cloud handset according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a policy control method for a cloud handset according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a policy control method for a cloud phone according to another embodiment of the present invention;
fig. 6 shows a block diagram of a policy control method for a cloud handset according to an embodiment of the present invention;
fig. 7 is a block diagram illustrating a policy control apparatus of another cloud handset according to an embodiment of the present invention;
fig. 8 is a block diagram illustrating a policy control apparatus of a cloud handset according to another embodiment of the present invention;
fig. 9 is a block diagram illustrating a policy control apparatus of a cloud phone according to another embodiment of the present invention;
fig. 10 shows a physical structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of a policy control method and apparatus, a storage medium, and a terminal of a cloud handset of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include cloud handsets 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium of communication links between the cloud handsets 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user interacts with the server 105 through the network 104, either by directly controlling the server 105 or through the cloud handsets 101, 102, 103, to receive or send messages or the like.
The cloud handsets 101, 102, 103 and the server 105 may be hardware or software. When the cloud mobile phones 101, 102, and 103 are hardware, the physical machines may be physical machines used by users, and the physical machines may be smart phones, tablet computers, laptop computers, and the like, or servers providing cloud computing capabilities for the above terminal devices; when the cloud handsets 101, 102, and 103 are software, they may be installed in the electronic devices listed above or a server providing cloud computing capability for each terminal device, and may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module, which is not limited herein. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server; when the server is software, the server may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not limited herein.
The server 105 is used to control the update and configuration of the servers providing cloud computing capability for the cloud handsets 101, 102 and 103, and the following effects can be achieved by way of example: firstly, the server 105 acquires a target cloud mobile phone and judges the on-off state of the target cloud mobile phone; then, if the server 105 determines that the target cloud mobile phone is in the power-off state, determining whether the target cloud mobile phone needs to be powered on to execute a preset policy according to a preset policy; finally, if the judgment result is that the target cloud mobile phone is needed, the server 105 calls the target cloud mobile phone to be started and executes a preset strategy.
Since the execution of the preset policy requires more computing resources and stronger computing power, the policy control method for the cloud phone provided in the following embodiments of the present disclosure is generally executed by the server 105 having stronger computing power and more computing resources, and accordingly, the cloud phone control device is generally also disposed in the server 105. However, it should be noted that when the cloud handsets 101, 102, and 103 also have computation capabilities and computation resources that meet the requirements, if the cloud handsets 101, 102, and 103 can also complete the above computations that are performed by the server 105, and then output the same result as the server 105, any one of the cloud handsets may be used as the execution main body of the policy control method of the cloud handset. Accordingly, the policy control device of the cloud phone may also be provided in the mobile phones 101, 102, 103. In such a case, the exemplary system architecture 100 may not include the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. Any number of cloud handsets, networks, and servers may be present, as desired for implementation.
The policy control method for a cloud phone according to the present application is introduced as follows, and as shown in fig. 2, the method includes:
201. determining a target cloud mobile phone to be executed with a preset strategy, and judging the on-off state of the target cloud mobile phone.
It should be noted that the policy management background selects a corresponding user group or related users through the user management module, determines a preset policy according to the policy in the preset policy list and then issues the preset policy, and sends messages to the user group selected by the management module or each cloud mobile phone corresponding to the user in batches through the task queue, so that each cloud mobile phone corresponding to the selected user group or user is the target mobile phone.
202. And if the judgment result is that the target cloud mobile phone is in a power-off state, judging whether the target cloud mobile phone needs to be powered on to execute the preset strategy according to the preset strategy.
In this embodiment, each cloud mobile phone corresponding to a user group or a user running on the virtualization subsystem is detected by the index collector, and the use condition and the running condition of the resource of each cloud mobile phone corresponding to the current user group or user are collected to determine that each cloud mobile phone corresponding to the current user group or user is in the power-off state, and then whether each cloud mobile phone corresponding to the user group or user in the power-off state needs to be powered on to execute a preset strategy is determined according to a preset strategy. The preset policy may include an execution condition for executing the preset policy after the target cloud mobile phone is powered on, and the preset policy may also include an execution condition for immediately executing the preset policy by the target cloud mobile phone.
203. And if the judgment result is needed, the target cloud mobile phone is called to be started and the preset strategy is executed.
In this embodiment, if it is determined that the target cloud mobile phone in the power-off state needs to be powered on to execute the preset policy according to the preset policy, that is, the preset policy includes an execution condition for the target cloud mobile phone to immediately execute the preset policy, the target cloud mobile phone in the power-off state is invoked by controlling the management and control logic, so that the target cloud mobile phone in the power-off state can execute the preset policy, and the technical problem that the target cloud mobile phone in the power-off state cannot immediately execute the preset policy that needs to be immediately executed is solved.
Compared with the prior art, the method for controlling the strategy of the cloud mobile phone, the storage medium and the terminal are provided by the embodiment of the invention, the on-off state of the target cloud mobile phone is judged, and when the target cloud mobile phone is judged to be in the off state, whether the target cloud mobile phone needs to be powered on to execute the preset strategy is judged according to the preset strategy; and if the target cloud mobile phone is judged to need to be started to execute the preset strategy, the target cloud mobile phone is called to be started and the preset strategy is executed. Therefore, the method and the device can enable the target cloud mobile phone in the power-off state to execute the preset strategy required to be executed immediately, avoid the technical problem that the target cloud mobile phone in the power-off state cannot execute the preset strategy required to be executed immediately, and further avoid the problem that the traditional management and control mode is disconnected from management and control due to the fact that the strategy execution fails in the network blockage state or the physical power shutdown state.
An embodiment of the present invention provides another policy control method for a cloud mobile phone, and as shown in fig. 3, the method includes:
301. determining a target cloud mobile phone to be executed with a preset strategy, and judging the on-off state of the target cloud mobile phone.
Here, the target cloud mobile phone may detect the target cloud mobile phone running on the virtualization subsystem in real time through the index collector, and collect the use condition and the running condition of the current resource of the target cloud mobile phone, thereby determining whether the current target cloud mobile phone is in a state of starting, shutting down, restarting, or the like.
302. And if the judgment result is that the target cloud mobile phone is in a power-off state, judging whether the target cloud mobile phone needs to be powered on to execute the preset strategy according to the preset strategy.
It should be noted that the target cloud mobile phone detects the target cloud mobile phone running on the virtualization subsystem in real time through the index collector, collects the running status of the target cloud mobile phone, and determines whether the target cloud mobile phone needs to be powered on to execute the preset policy according to the execution condition of the preset policy when the current target cloud mobile phone is judged to be in the power-off state.
303. And if the target cloud mobile phone does not need to be started to execute the preset strategy according to the preset strategy, caching the preset strategy according to the identification of the target cloud mobile phone to obtain cache data.
The preset strategy comprises an execution condition for executing the preset strategy after the target cloud mobile phone is started, so that the target cloud mobile phone can be determined not to be started to execute the preset strategy, and at the moment, the preset strategy is cached according to the identification of the target cloud mobile phone, cache data corresponding to the target cloud mobile phone is obtained, and the cloud mobile phone after being started in the following steps can read the cache data with the preset strategy.
It should be noted that, after receiving the identifier of the target cloud mobile phone in the power-off state detected by the index collector, the server binds the identifier corresponding to the target cloud mobile phone and the preset policy corresponding to the target cloud mobile phone, establishes a relationship index table between the target cloud mobile phone and the preset policy in the server, and stores the relationship index table in the database of the server. For example, the server may determine that the identifier of the target cloud handset is M1 according to the reported target cloud handset in the power-off state, and bind M1 with a preset policy, where, to facilitate establishment of a relationship index table between the target cloud handset and the preset policy, a policy identifier is further generated for the preset policy, for example, the policy identifier generated by the preset policy is D1, an index correspondence relationship, that is, M1 → D1, is established in the server, and the correspondence relationship is written into the relationship index table of the server, so that after receiving at least one preset policy corresponding to the target cloud handset identified as M1, the server obtains, according to the index relationship table, cache data corresponding to the target cloud handset identified as M1 and including at least one preset policy.
Here, if the cache data carries a plurality of preset policies, an execution queuing list is established according to the plurality of preset policies, so that when the target cloud mobile phone automatically reads the cache data and executes the preset policies, the plurality of preset policies are executed in the target cloud mobile phone according to the sequence of the preset policies in the execution queuing list. For example, if the target cloud phone identified as M1 corresponds to four preset policies, an execution queuing list is established according to the four preset policies, and the order of the four preset policies in the execution queuing list is determined, for example: the sequence of the preset strategy 1, the preset strategy 2, the preset strategy 3 and the preset strategy 4 in the execution queuing list is respectively 1, 2, 3 and 4, and then the four preset strategies are sequentially executed in the target cloud mobile phone according to the sequence of the execution queuing list which is respectively 1, 2, 3 and 4.
304. And after the target cloud mobile phone is started, automatically reading the cache data through the target cloud mobile phone and executing the preset strategy.
After the index collector detects that the target cloud mobile phone is started, the cache data with the preset strategy is pushed to the started cloud mobile phone, so that the target cloud mobile phone automatically reads the cache data and executes the preset strategy, and the effect of executing the preset strategy immediately after the target cloud mobile phone is started is achieved.
In addition, if the preset strategy carried by the cache data has a preset execution time condition, executing on the target cloud mobile phone according to the preset execution time corresponding to the preset strategy.
305. And judging whether the preset strategy is effective on the target cloud mobile phone, and if not, issuing the preset strategy to the target cloud mobile phone again.
In this embodiment, after the target cloud mobile phone executes the preset policy, it is determined whether the policy execution is in effect, that is, after the server receives the policy configuration success message reported by the target cloud mobile phone, the server sends a policy effect response; if a policy validation response sent by the server is received, determining that a preset policy is validated on the target cloud mobile phone; and if a strategy effective response which is not sent by the server is received, determining that the preset strategy is not effective on the target cloud mobile phone, and further determining to issue the preset strategy to the target cloud mobile phone again.
306. And executing the preset strategy issued again in the target cloud mobile phone until the preset strategy is judged to be effective on the target cloud mobile phone.
In this embodiment, after the target cloud mobile phone executes the preset policy each time, it is determined whether the issued preset policy is in effect on the target cloud mobile phone, if the preset policy is not in effect on the target cloud mobile phone, the policy is issued to the target cloud mobile phone again, and the preset policy is executed on the target cloud mobile phone, and this process may be repeated one or more times until it is determined that the preset policy is in effect on the target cloud mobile phone. The method provided by the embodiment can ensure that the preset strategy is effective on the target mobile phone, and further avoid the problem that the strategy management and control are failed due to the failure of executing the preset strategy.
In order to avoid that the target cloud mobile phone is affected by an abnormal policy when the preset policy is executed, the step 306 further includes: counting the number of times of issuing the preset strategy to the target cloud mobile phone; when the frequency of issuing the preset strategy reaches the preset frequency, the target cloud mobile phone is locked, an administrator is informed of abnormity of issuing of the preset strategy, and the execution of the preset strategy on the target cloud mobile phone is stopped, so that the aim of safety protection of the target cloud mobile phone is fulfilled.
Compared with the prior art, the embodiment of the invention provides another strategy control method for the cloud mobile phone, and the method comprises the steps of judging the power-on and power-off state of the target cloud mobile phone, and judging whether the target cloud mobile phone needs to be powered on to execute a preset strategy according to the preset strategy when the target cloud mobile phone is judged to be in the power-off state; if the target cloud mobile phone does not need to be started up to execute the preset strategy according to the preset strategy, caching the preset strategy according to the identification of the target cloud mobile phone, and acquiring cache data corresponding to the target cloud mobile phone; after the target cloud mobile phone is started, the target cloud mobile phone automatically reads the cache data and executes the preset strategy, so that the preset strategy can be generated into the cache data corresponding to the target cloud mobile phone, the target cloud mobile phone in the shutdown state can read and execute the preset strategy for the cache data with the preset strategy after being started, and the purpose that the target cloud mobile phone in the shutdown state can automatically read the cache data with the preset strategy and configure the strategy after being started is achieved.
An embodiment of the present invention provides another policy control method for a cloud mobile phone, and as shown in fig. 4, the method includes:
401. determining a target cloud mobile phone to be executed with a preset strategy, and judging the on-off state of the target cloud mobile phone.
402. And if the judgment result is that the target cloud mobile phone is in a power-off state, judging whether the target cloud mobile phone needs to be powered on to execute the preset strategy according to the preset strategy.
403. And if the judgment result is required, acquiring resource information of the request resource of the target cloud mobile phone and resource information of the computing resource of the physical machine corresponding to the target cloud mobile phone.
It should be noted that the resource information of the computing resource includes the cp core number allowed to be allocated by the physical machine and the memory size allowed to be operated by the cpu of the physical machine, and the resource information of the requested resource of the target cloud mobile phone includes the cp core number of the target cloud mobile phone and the memory size of the requested resource of the target cloud mobile phone.
404. And when the resource information of the request resource of the target cloud mobile phone is matched with the resource information of the computing resource of the physical machine, sending a starting-up instruction to the target cloud mobile phone so as to start up the target cloud mobile phone according to the starting-up instruction.
It should be noted that the matching of the resource information of the request resource of the target cloud mobile phone and the resource information of the computing resource of the physical machine specifically means: the cp core number allowed to be allocated by the physical machine of the computing resources of the physical machine is not less than the cp core number of the target cloud mobile phone, and the memory size allowed by the physical machine to run by the cpu is not less than the memory size of the request resources of the target cloud mobile phone, for example: the number of cp cores allowed to be allocated to the physical machine of the computing resources of the physical machine is 2 cores, and the physical machine can be matched with a target cloud mobile phone with the number of cp cores being 2; for another example, if the size of the memory that the physical machine allows the cpu to run is 1.2G, the physical machine can match the target cloud mobile phone whose memory requesting the resource is smaller than 1.2G.
405. And when the resource information of the request resource of the target cloud mobile phone is not matched with the resource information of the computing resource of the physical machine, adding the resource information of the request resource of the target cloud mobile phone into a queue arrangement.
Here, the fact that the resource information of the request resource of the target cloud mobile phone does not match the resource information of the computing resource of the physical machine specifically means that: the cp core number allowed to be allocated by the physical machine of the computing resources of the physical machine is smaller than the cp core number of the target cloud mobile phone, and the memory allowed by the physical machine to run by the cpu is smaller than the memory size of the request resources of the target cloud mobile phone, for example: if the cp core number allowed to be allocated to the physical machine of the computing resources of the physical machine is 2 cores, the physical machine cannot be matched with the target cloud mobile phone with the cp core number of 4; for another example, if the size of the memory that the physical machine allows the cpu to run is 1.2G, the physical machine cannot match the target cloud mobile phone whose memory requesting the resource is smaller than 1.5G.
In order to enable the target cloud mobile phone in the power-off state to be successfully called, resource information of the request resource of the target cloud mobile phone, which is not matched with the resource information of the computing resource of the physical machine, is added into the queue arrangement to wait for matching between the resource information of the request resource of the target cloud mobile phone and the resource information of the computing resource of the physical machine.
406. And detecting the resource information of the computing resources of the physical machine at regular time, and sending a starting instruction to the target cloud mobile phone when the detected resource information of the request resources of the target cloud mobile phone is matched with the resource information of the computing resources of the physical machine.
It should be noted that, after the cloud mobile phone in the queue and in front of the target cloud mobile phone is turned off, the physical machine may release the memory of the cpu of the physical machine occupied by the cloud mobile phone in front of the target cloud mobile phone, so that the target cloud mobile phone in the queue may send the power-on instruction to the target cloud mobile phone after the resource information of the computing resource of the physical machine is matched with the resource information of the corresponding request resource.
407. And after the target cloud mobile phone executes the preset strategy, automatically powering off the target cloud mobile phone.
Here, after the target cloud mobile phone in the power-off state is powered on and executes the preset policy, the target cloud mobile phone is automatically powered off, and the memory of the cpu of the computing resource of the physical machine corresponding to the target cloud mobile phone can be released.
Compared with the prior art, the embodiment of the invention provides another strategy control method for the cloud mobile phone, and when the target cloud mobile phone in the power-off state is judged to need to be started up to execute the preset strategy according to the preset strategy, the method judges that the power-on instruction is sent to the target cloud mobile phone through matching analysis between the resource information of the request resource of the target cloud mobile phone and the resource information of the computing resource of the physical machine, so that the target cloud mobile phone which needs to be started up to execute the preset strategy can be started up smoothly.
An embodiment of the present invention provides another policy control method for a cloud mobile phone, and as shown in fig. 5, the method includes:
501. determining a target cloud mobile phone to be executed with a preset strategy, and judging the on-off state of the target cloud mobile phone.
502. And if the target cloud mobile phone is judged to be in the power-on state, sending the preset strategy to the target cloud mobile phone so that the target cloud mobile phone can immediately execute the preset strategy.
It should be noted that the target cloud mobile phone detects the target cloud mobile phone running on the virtualization subsystem in real time through the index collector, collects the running status of the target cloud mobile phone, and enables the target cloud mobile phone to execute the preset policy in real time when the current target cloud mobile phone is judged to be in the power-on state.
Compared with the prior art, the embodiment of the invention provides another strategy control method for the cloud mobile phone, and the target cloud mobile phone executes the preset strategy in real time after the target cloud mobile phone is judged to be in the power-on state, so that the preset strategy can be executed in real time on the target cloud mobile phone in the power-on state.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention provides a policy control apparatus for a cloud mobile phone, and as shown in fig. 6, the policy control apparatus includes:
the power on/off state judgment module 61 is used for determining a target cloud mobile phone to be executed with a preset strategy and judging the power on/off state of the target cloud mobile phone;
the first judging module 62 is configured to, if the judging result is that the target cloud mobile phone is in the power-off state, judge whether the target cloud mobile phone needs to be powered on to execute the preset policy according to the preset policy;
and the first executing module 63 is configured to call the target cloud mobile phone to be powered on and execute the preset policy if the determination result is that the target cloud mobile phone is required.
Compared with the prior art, the embodiment of the invention provides a policy control device of a cloud mobile phone, and the policy control device judges whether the target cloud mobile phone needs to be started up to execute a preset policy according to the preset policy by judging the power-on and power-off state of the target cloud mobile phone and judging whether the target cloud mobile phone is in the power-off state; and if the target cloud mobile phone is judged to need to be started to execute the preset strategy, the target cloud mobile phone is called to be started and the preset strategy is executed. Therefore, the method and the device can enable the target cloud mobile phone in the power-off state to execute the preset strategy required to be executed immediately, and further solve the technical problem that the target cloud mobile phone in the power-off state cannot execute the preset strategy required to be executed immediately.
As an implementation of the method shown in fig. 3, an embodiment of the present invention provides another policy control apparatus for a cloud mobile phone, and as shown in fig. 7, the apparatus includes:
the power on/off state judgment module 71 is configured to determine a target cloud mobile phone to be subjected to a preset policy, and judge a power on/off state of the target cloud mobile phone;
a first judging module 72, configured to, if the judgment result is that the target cloud mobile phone is in a power-off state, judge whether the target cloud mobile phone needs to be powered on to execute the preset policy according to the preset policy;
the caching module 73 is configured to, if it is determined that the target cloud mobile phone does not need to be powered on to execute the preset policy according to the preset policy, cache the preset policy according to the identifier of the target cloud mobile phone to obtain cached data;
the second executing module 74 is configured to, after the target cloud mobile phone is powered on, automatically read the cache data through the target cloud mobile phone and execute the preset policy;
a second determining module 75, configured to determine whether the preset policy is in effect on the target cloud mobile phone, and if the determination result is negative, issue the preset policy to the target cloud mobile phone again;
a third determining module 76, configured to execute the re-issued preset policy in the cloud mobile phone until it is determined that the preset policy is in effect on the target cloud mobile phone.
Further, the apparatus further comprises:
the counting module is used for counting the number of times of issuing the preset strategy to the target cloud mobile phone;
and the locking module is used for locking the target cloud mobile phone and informing an administrator of abnormal issuing of the preset strategy when the repetition times of issuing the preset strategy reaches the preset times.
Compared with the prior art, the embodiment of the invention provides a policy control device of a cloud mobile phone, and the policy control device judges whether the target cloud mobile phone needs to be started up to execute a preset policy according to the preset policy by judging the power-on and power-off state of the target cloud mobile phone and judging whether the target cloud mobile phone is in the power-off state; if the target cloud mobile phone does not need to be started up to execute the preset strategy according to the preset strategy, caching the preset strategy according to the identification of the target cloud mobile phone, and acquiring cache data corresponding to the target cloud mobile phone; after the target cloud mobile phone is started, the target cloud mobile phone automatically reads the cache data and executes the preset strategy, so that the preset strategy can be generated into the cache data corresponding to the target cloud mobile phone, the target cloud mobile phone in the shutdown state can read and execute the preset strategy for the cache data with the preset strategy after being started, and the purpose that the target cloud mobile phone in the shutdown state can automatically read the cache data with the preset strategy and configure the strategy after being started is achieved.
As an implementation of the method shown in fig. 4, an embodiment of the present invention provides another policy control apparatus for a cloud mobile phone, where as shown in fig. 8, the apparatus includes:
the power on/off state judgment module 81 is configured to determine a target cloud mobile phone to be subjected to a preset policy, and judge a power on/off state of the target cloud mobile phone;
a first determining module 82, configured to determine, according to the preset policy, whether the target cloud mobile phone needs to be powered on to execute the preset policy if the determination result indicates that the target cloud mobile phone is in the powered-off state.
A resource information obtaining unit 831, configured to obtain resource information of a request resource of the target cloud mobile phone and resource information of a computing resource of a physical machine corresponding to the target cloud mobile phone if a determination result is that the resource information is required;
a first boot control unit 832, configured to send a boot instruction to the target cloud mobile phone when the resource information of the request resource of the target cloud mobile phone matches the resource information of the computing resource of the physical machine, so that the target cloud mobile phone boots according to the boot instruction;
an information queuing unit 833, configured to add resource information of the request resource of the target cloud mobile phone to a queue arrangement when the resource information of the request resource of the target cloud mobile phone is not matched with the resource information of the computing resource of the physical machine;
the second boot control unit 834 is configured to detect resource information of the computing resources of the physical machine at regular time, and send a boot instruction to the target cloud mobile phone when the detected resource information of the requested resources of the target cloud mobile phone matches the detected resource information of the computing resources of the physical machine.
Further, the apparatus further comprises:
and the shutdown module is used for automatically shutting down the target cloud mobile phone after the target cloud mobile phone executes the preset strategy.
Compared with the prior art, the embodiment of the invention provides another policy control device for a cloud mobile phone, and when the target cloud mobile phone in the power-off state is judged to need to be started up to execute the preset policy according to the preset policy, the embodiment of the invention judges that a starting-up instruction is sent to the target cloud mobile phone through matching analysis between the resource information of the request resource of the target cloud mobile phone and the resource information of the computing resource of the physical machine, so that the target cloud mobile phone which needs to be started up to execute the preset policy can be started up smoothly.
As an implementation of the method shown in fig. 5, an embodiment of the present invention provides another policy control apparatus for a cloud mobile phone, where as shown in fig. 9, the apparatus includes:
an embodiment of the present invention provides another policy control method for a cloud mobile phone, and as shown in fig. 5, the method includes:
the power on/off state judgment module 91 is configured to determine a target cloud mobile phone to be subjected to a preset policy, and judge a power on/off state of the target cloud mobile phone;
the second executing module 92 is configured to send the preset policy to the target cloud mobile phone if it is determined that the target cloud mobile phone is in the power-on state, so that the target cloud mobile phone immediately executes the preset policy.
Compared with the prior art, the embodiment of the invention provides another policy control device for the cloud mobile phone, and the target cloud mobile phone executes the preset policy in real time after the target cloud mobile phone is judged to be in the power-on state, so that the preset policy can be executed in real time on the target cloud mobile phone in the power-on state.
According to an embodiment of the present invention, a storage medium is provided, where the storage medium stores at least one executable instruction, and the computer executable instruction may execute a policy control method of a cloud phone in any of the above method embodiments.
Based on the above embodiments of the method shown in fig. 2 and the apparatus shown in fig. 7, an embodiment of the present invention further provides an entity structure diagram of a computer device, as shown in fig. 10, where the computer device includes: a processor 1001, a memory 1002, and a computer program stored on the memory 1002 and executable on the processor, wherein the memory 1002 and the processor 1001 are each configured on a bus 1003 such that the following steps are achieved when the processor 1001 executes the program: determining a target cloud mobile phone to be executed with a preset strategy, and judging the on-off state of the target cloud mobile phone; if the judgment result is that the target cloud mobile phone is in a power-off state, judging whether the target cloud mobile phone needs to be powered on to execute a preset strategy according to the preset strategy; and if the judgment result is needed, the target cloud mobile phone is called to be started and the preset strategy is executed.
According to the technical scheme, the power-on and power-off state of the target cloud mobile phone can be judged, and when the target cloud mobile phone is judged to be in the power-off state, whether the target cloud mobile phone needs to be powered on or not is judged according to the preset strategy to execute the preset strategy; and if the target cloud mobile phone is judged to need to be started to execute the preset strategy, the target cloud mobile phone is called to be started and the preset strategy is executed. Therefore, the method and the device can enable the target cloud mobile phone in the power-off state to execute the preset strategy required to be executed immediately, and further solve the technical problem that the target cloud mobile phone in the power-off state cannot execute the preset strategy required to be executed immediately.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented using program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A policy control method for a cloud mobile phone is characterized by comprising the following steps:
determining a target cloud mobile phone to be executed with a preset strategy, and judging the on-off state of the target cloud mobile phone;
if the judgment result is that the target cloud mobile phone is in a power-off state, judging whether the target cloud mobile phone needs to be powered on to execute a preset strategy according to the preset strategy;
and if the judgment result is needed, the target cloud mobile phone is called to be started and the preset strategy is executed.
2. The policy control method for a cloud handset according to claim 1, further comprising:
if the target cloud mobile phone does not need to be started to execute the preset strategy according to the preset strategy, caching the preset strategy according to the identification of the target cloud mobile phone to obtain cache data;
and after the target cloud mobile phone is started, automatically reading the cache data through the target cloud mobile phone and executing the preset strategy.
3. The policy control method for a cloud handset according to claim 1 or 2, wherein after the target cloud handset executes the preset policy, the method further comprises:
judging whether the preset strategy is effective on the target cloud mobile phone, and if not, issuing the preset strategy to the target cloud mobile phone again;
and executing the preset strategy issued again in the target cloud mobile phone until the preset strategy is judged to be effective on the target cloud mobile phone.
4. The policy control method for a cloud handset according to claim 3, wherein the method further comprises:
counting the number of times of issuing the preset strategy to the target cloud mobile phone;
and when the frequency of issuing the preset strategy reaches a preset frequency, locking the target cloud mobile phone and informing an administrator of abnormal issuing of the preset strategy.
5. The policy control method for a cloud phone according to claim 1, wherein if the determination result is that the target cloud phone is required, the step of calling the target cloud phone to be powered on and executing the preset policy comprises:
acquiring resource information of a request resource of the target cloud mobile phone and resource information of a computing resource of a physical machine corresponding to the target cloud mobile phone;
and when the resource information of the request resource of the target cloud mobile phone is matched with the resource information of the computing resource of the physical machine, sending a starting-up instruction to the target cloud mobile phone so as to start up the target cloud mobile phone according to the starting-up instruction.
6. The policy control method for a cloud phone according to claim 5, wherein if the determination result is that the target cloud phone is required, the target cloud phone is invoked to be powered on and the preset policy is executed, further comprising:
when the resource information of the request resource of the target cloud mobile phone is not matched with the resource information of the computing resource of the physical machine, adding the resource information of the request resource of the target cloud mobile phone into a queue arrangement;
and detecting the resource information of the computing resources of the physical machine at regular time, and sending a starting instruction to the target cloud mobile phone when the detected resource information of the request resources of the target cloud mobile phone is matched with the resource information of the computing resources of the physical machine.
7. The policy control method for a cloud handset according to claim 1, further comprising:
and if the target cloud mobile phone is judged to be in the power-on state, sending the preset strategy to the target cloud mobile phone so that the target cloud mobile phone can immediately execute the preset strategy.
8. A policy control device of a cloud mobile phone is characterized by comprising:
the system comprises a power-on and power-off state judging module, a power-on and power-off state judging module and a power-on and power-off state judging module, wherein the power-on and power-off state judging module is used for determining a target cloud mobile phone to be executed with a preset strategy and judging the power-on and power-off state of the target cloud mobile phone;
the first judgment module is used for judging whether the target cloud mobile phone needs to be started up to execute a preset strategy according to the preset strategy if the judgment result shows that the target cloud mobile phone is in a power-off state;
and the first execution module is used for calling the target cloud mobile phone to be started and executing the preset strategy if the judgment result is that the target cloud mobile phone is required.
9. A storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the policy control method of the cloud handset according to any one of claims 1-7.
10. A terminal, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the policy control method of the cloud mobile phone as claimed in any one of claims 1-7.
CN202111588823.7A 2021-12-23 2021-12-23 Policy control method and device for cloud mobile phone, storage medium and terminal Pending CN114338804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111588823.7A CN114338804A (en) 2021-12-23 2021-12-23 Policy control method and device for cloud mobile phone, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111588823.7A CN114338804A (en) 2021-12-23 2021-12-23 Policy control method and device for cloud mobile phone, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN114338804A true CN114338804A (en) 2022-04-12

Family

ID=81054386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111588823.7A Pending CN114338804A (en) 2021-12-23 2021-12-23 Policy control method and device for cloud mobile phone, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN114338804A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801862A (en) * 2012-08-07 2012-11-28 上海斐讯数据通信技术有限公司 Method for automatically starting up cell phone
US20150119011A1 (en) * 2013-10-30 2015-04-30 Lenovo (Beijing) Co., Ltd. Information processing method and device
WO2016090771A1 (en) * 2014-12-11 2016-06-16 捷开通讯(深圳)有限公司 Mobile terminal and information processing method therefor in shutdown state
CN106713507A (en) * 2017-02-22 2017-05-24 上海斐讯数据通信技术有限公司 Management method and management system for batches of cloud terminal devices
CN108833704A (en) * 2018-06-20 2018-11-16 Oppo(重庆)智能科技有限公司 Mobile terminal and its based reminding method of event, storage medium
CN109697104A (en) * 2018-12-07 2019-04-30 国云科技股份有限公司 A kind of cloud classroom resources management method based on course
CN112667408A (en) * 2021-01-19 2021-04-16 北京字节跳动网络技术有限公司 Memory allocation method and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801862A (en) * 2012-08-07 2012-11-28 上海斐讯数据通信技术有限公司 Method for automatically starting up cell phone
US20150119011A1 (en) * 2013-10-30 2015-04-30 Lenovo (Beijing) Co., Ltd. Information processing method and device
WO2016090771A1 (en) * 2014-12-11 2016-06-16 捷开通讯(深圳)有限公司 Mobile terminal and information processing method therefor in shutdown state
CN106713507A (en) * 2017-02-22 2017-05-24 上海斐讯数据通信技术有限公司 Management method and management system for batches of cloud terminal devices
CN108833704A (en) * 2018-06-20 2018-11-16 Oppo(重庆)智能科技有限公司 Mobile terminal and its based reminding method of event, storage medium
CN109697104A (en) * 2018-12-07 2019-04-30 国云科技股份有限公司 A kind of cloud classroom resources management method based on course
CN112667408A (en) * 2021-01-19 2021-04-16 北京字节跳动网络技术有限公司 Memory allocation method and terminal equipment

Similar Documents

Publication Publication Date Title
CN103201724B (en) Providing application high availability in highly-available virtual machine environments
CN107832100B (en) APK plug-in loading method and terminal thereof
CN110661658B (en) Node management method and device of block chain network and computer storage medium
CN108566290A (en) service configuration management method, system, storage medium and server
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
CN109766172B (en) Asynchronous task scheduling method and device
CN112860282B (en) Cluster plug-in upgrading method, device and server
CN111694638A (en) Rule package loading method, rule package executing method and terminal equipment
CN108563472B (en) Service plug-in loading method and device based on multi-open application
CN107547277B (en) Method for realizing virtualization control board and network communication equipment
CN111090442B (en) Application updating method, device and storage medium
CN114338804A (en) Policy control method and device for cloud mobile phone, storage medium and terminal
CN115052041B (en) Channel identifier allocation method, device, equipment and storage medium
CN114610446B (en) Method, device and system for automatically injecting probe
CN108156201B (en) Method and device for uniformly managing configuration data of application system
CN115658745A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
CN115309457A (en) Application instance restarting method and device, electronic equipment and readable storage medium
CN112540839B (en) Information changing method, device, electronic equipment and storage medium
CN114490135A (en) Task processing method and device, electronic equipment and storage medium
CN110058866B (en) Cluster component installation method and device
CN109101253B (en) Management method and device for host in cloud computing system
CN115344366B (en) Connection pool object switching method and device, electronic equipment and readable storage medium
CN117033084B (en) Virtual machine backup method and device, electronic equipment and storage medium
CN113992516B (en) Firmware updating method and device of Internet of things equipment and Internet of things
CN117631994A (en) Method and device for online migration of volumes, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination