CN109947790A - The method, apparatus and non-volatile memory medium of cloud resource management - Google Patents

The method, apparatus and non-volatile memory medium of cloud resource management Download PDF

Info

Publication number
CN109947790A
CN109947790A CN201910209956.5A CN201910209956A CN109947790A CN 109947790 A CN109947790 A CN 109947790A CN 201910209956 A CN201910209956 A CN 201910209956A CN 109947790 A CN109947790 A CN 109947790A
Authority
CN
China
Prior art keywords
instruction
cloud resource
resource management
user
request instruction
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
CN201910209956.5A
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.)
Excellent Polytron Technologies Inc
Original Assignee
Excellent Polytron Technologies Inc
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 Excellent Polytron Technologies Inc filed Critical Excellent Polytron Technologies Inc
Priority to CN201910209956.5A priority Critical patent/CN109947790A/en
Publication of CN109947790A publication Critical patent/CN109947790A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides the methods of cloud resource management, this method comprises: receiving step, receives at least one request instruction of the scheduled instruction of user's input;First judgment step, judges whether at least one request instruction meets the format of the scheduled instruction, if it is, otherwise returning to receiving step into analyzing step;Analyzing step parses at least one request instruction, obtains at least one and executes instruction;Step is executed, described at least one is executed and executes instruction.Present invention reduces the learning costs of user, improve working efficiency, have friendly interactive mode, and the atomicity of operation may be implemented in the present invention.The present invention also provides the devices and non-volatile memory medium of a kind of cloud resource management.

Description

The method, apparatus and non-volatile memory medium of cloud resource management
Technical field
The present invention relates to the method, apparatus and non-volatile memory medium of a kind of cloud resource management.
Background technique
As cloud manufacturer, a variety of methods can be provided for user and go to apply for and safeguard the resource that user applies, often at present There are three types of methods: 1. web page operations, 2.API operation, 3. dedicated clients (client).These three modes respectively have spy Point, but be not available family convenience and completely apply and safeguard resource, and each way requires the cost of some study, also It needs to operate according to their format, to user and unfriendly.
Summary of the invention
In order to overcome the drawbacks of the prior art, the present invention provides the method, apparatus of a kind of cloud resource management and non-volatile Property storage medium.
Wherein, the present invention provides a kind of methods of cloud resource management, this method comprises:
Receiving step receives at least one request instruction of the scheduled instruction of user's input;
First judgment step, judges whether at least one request instruction meets the format of the scheduled instruction, if It is then to enter analyzing step, otherwise return to receiving step;
Analyzing step parses at least one request instruction, obtains at least one and executes instruction;
Step is executed, described at least one is executed and executes instruction.
Wherein, the scheduled instruction is structured query language.
Wherein, this method further comprises:
Second judgment step, judges whether predefined identifier occurs, if it is, into the first prompt step, otherwise into Enter the second prompt step;
First prompt step prompts at least one request instruction described in the user to be completed;
Second prompt step prompts at least one request instruction described in the user not complete.
The present invention also provides a kind of device of cloud resource management, which includes:
Receiving unit receives at least one request instruction of the scheduled instruction of user's input;
First judging unit, judges whether at least one request instruction meets the format of the scheduled instruction, if It is then to enter resolution unit, otherwise return to receiving unit;
Resolution unit parses at least one request instruction, obtains at least one and executes instruction;
Execution unit executes described at least one and executes instruction.
The present invention also provides a kind of non-volatile memory mediums, are stored with cloud resource on the non-volatile memory medium The program of management, described program are computer-executed to implement the method for cloud resource management, which includes:
Instruction is received, at least one request instruction of the scheduled instruction of user's input is received;
First decision instruction, judges whether at least one request instruction meets the format of the scheduled instruction, if It is then to enter resolution unit, otherwise return to receiving unit;
It analyzes the instruction, at least one request instruction is parsed, obtain at least one and execute instruction;
It executes instruction, executes described at least one and execute instruction.
In the present invention, due to having used sql like language to greatly reduce user as the instruction of management cloud resource Cost is practised, working efficiency is improved, there is friendly interactive mode.Moreover, the atomicity of operation may be implemented in the present invention, facilitate use Family knows to manage result.
Detailed description of the invention
Fig. 1 is the structure chart of the device of the cloud resource management of embodiment according to the present invention;
Fig. 2 is the flow chart of the method for the cloud resource management of embodiment according to the present invention.
Specific embodiment
With reference to the accompanying drawing, the embodiment of the present invention is described in detail.
Fig. 1 is the structure chart of the device 10 of the cloud resource management of embodiment according to the present invention.As shown in Figure 1, the device 10 include receiving unit 11, the first judging unit 12, resolution unit 13, execution unit 14.As an example, the device 10 for example may be used To be realized by Cloud Server, or it is included in Cloud Server.
Fig. 2 is the flow chart of the method for the cloud resource management of embodiment according to the present invention.Below with reference to Fig. 1-2 to this hair Bright embodiment is described in detail.
In the receiving step S21 of Fig. 2, at least one request that receiving unit 11 receives the scheduled instruction of user's input refers to It enables.Here, scheduled instruction is, for example, structured query language (SQL).In the present invention, scheduled instruction can also be to be made convenient for user Other language, and it is unrestricted.
Structured query language includes the request instruction of various functions, such as: inserting instruction (insert), installation instruction (install), more new command (update), deletion instruction (delete), selection instruction (select) etc..
In the first judgment step S22, the first judging unit 12 judges whether at least one request instruction meets scheduled instruction Format otherwise return to receiving step S21 if it is, into analyzing step S23.For example, the judgement of the first judging unit 12 is used Whether these SQL instruction of family input meets the semanteme and grammer of SQL, if met, enters S23, otherwise returns to S21, weight The new SQL instruction for receiving user's input.That is, not will do it subsequent when the SQL of user's input is instructed when the error occurs Operation, until receiving correct SQL instruction.
Then, in analyzing step S23, resolution unit 13 parses at least one request instruction, obtains at least one It executes instruction.Wherein, at least one the instruction that e.g. device 10 is able to carry out is executed instruction.
Step S24 is being executed, execution unit 14 executes at least one and executes instruction.
In the present invention, use structured query language (SQL) as management cloud resource instruction, due to sql like language since It is well-known in field of information processing since the seventies is by invention, there is great user base.Using sql like language as pipe The instruction for managing cloud resource, will substantially reduce the learning cost of user, improves its working efficiency.
In general, during using existing method to manage cloud resource, for example, if necessary to sending before revocation Order, that is, need to carry out rolling back action, operation is extremely complex then this is rolled back.And in the present invention, sql like language can be borrowed The mechanism of mirror db transaction, it is only necessary to which automatic rolling back action can be realized in an order.Therefore, letter may be implemented in the present invention Single, automation rollback.
Further, during using existing method to manage cloud resource, for example, it is next in the mode operated using API When establishing a cloud database, user for example needs to input the following contents:
https://docs.ucloud.cn/api/udb-api/create_udb_instance", this is for users Quite cumbersome inconvenience.And in the present invention, due to having used sql like language, so user need to only input such as " insert " life Order.Therefore, user management cloud resource can be greatly facilitated.
Further, during using existing method to manage cloud resource, for example, when user needs to check that this year is new All resources for building, need to check configured in current all resources highest or minimum resource, need to check all resources (or certain A little specific resources) average configuration etc. when, these all cannot achieve.And in the present invention, it is asked since sql like language has With average, the statistical of a variety of latitudes such as maximum value, minimum value, therefore can be convenient and summarize desired resource.
Preferably, as shown in Figure 1, the device of the invention 10 further includes second judgment unit 15 and prompt unit 16.
The second judgment step S25 described in Fig. 2, execution unit 14 perform at least one execute instruction after, Two judging units 15 judge whether predefined identifier occurs, if it is, otherwise entering second into the first prompt step S27 Prompt step S26.Wherein, predefined identifier be, for example, indicate performed at least one execute instruction in the last item instruction End identifier.
When there is the end identifier, into the first prompt step S27, prompt unit 16 prompts user at least one to ask Instruction is asked to be completed.That is, expression at least one is executed instruction and is all run succeeded.
In addition, into the second prompt step S26, prompt unit 16 prompts user when the end identifier does not occur At least one request instruction does not complete.In executing step S24, execution unit 14 executes these one by one and executes instruction, wherein It may be executed due to failure and not successfully during executing some instruction, then, just no longer execute remaining execution being not carried out Instruction, that is, execution terminates.At this point, end identifier does not occur, and prompt user at least one execute instruction all without at Function executes.
In the present invention, executes instruction or whole successful execution or is all not successfully performed by at least one, And by corresponding message notifying to user.So, it can be ensured that the atomicity of the operation of these instructions, while user being facilitated to know Manage result.
The present invention provides a kind of non-volatile memory medium, and cloud resource management is stored on non-volatile memory medium Program, the program are computer-executed to implement the method for cloud resource management, which includes:
Instruction is received, at least one request instruction of the scheduled instruction of user's input is received;
First decision instruction, judges whether at least one request instruction meets the format of the scheduled instruction, if It is then to enter resolution unit, otherwise return to receiving unit;
It analyzes the instruction, at least one request instruction is parsed, obtain at least one and execute instruction;
It executes instruction, executes described at least one and execute instruction.
To sum up, it in the method, apparatus of cloud resource management of the invention, due to substantially reducing the learning cost of user, mentions High working efficiency, therefore there is friendly interactive mode.Moreover, present invention can assure that the atomicity of operation, facilitates user to know Dawn management result.
Although by being described in conjunction with specific embodiments to the present invention, for the ordinary artisan of this field, It will be apparent according to many substitutions, modification and the variation made after mentioned above.Therefore, when such substitution, modification When being fallen into variation within the spirit and scope of appended claims, it should be included in the present invention.

Claims (7)

1. a kind of method of cloud resource management, which is characterized in that the described method includes:
Receiving step receives at least one request instruction of the scheduled instruction of user's input;
First judgment step, judges whether at least one request instruction meets the format of the scheduled instruction, if it is, Into analyzing step, receiving step is otherwise returned;
Analyzing step parses at least one request instruction, obtains at least one and executes instruction;
Step is executed, described at least one is executed and executes instruction.
2. the method for cloud resource management as described in claim 1, which is characterized in that the scheduled instruction is structuralized query language Speech.
3. the method for cloud resource management as claimed in claim 2, which is characterized in that the method further includes:
Second judgment step, judges whether predefined identifier occurs, if it is, into the first prompt step, otherwise enters the Two prompt steps;
First prompt step prompts at least one request instruction described in the user to be completed;
Second prompt step prompts at least one request instruction described in the user not complete.
4. a kind of device of cloud resource management, which is characterized in that described device includes:
Receiving unit receives at least one request instruction of the scheduled instruction of user's input;
First judging unit, judges whether at least one request instruction meets the format of the scheduled instruction, if it is, Into resolution unit, receiving unit is otherwise returned;
Resolution unit parses at least one request instruction, obtains at least one and executes instruction;
Execution unit executes described at least one and executes instruction.
5. the device of cloud resource management as claimed in claim 4, which is characterized in that the scheduled instruction is structuralized query language Speech.
6. the device of cloud resource management as claimed in claim 5, which is characterized in that described device further comprises:
Second judgment unit, judges whether predefined identifier occurs;
Prompt unit prompts described in the user extremely when the second judgment unit judges that the predefined identifier occurs A few request instruction is completed, when the second judgment unit judges that the predefined identifier does not occur, described in prompt At least one request instruction described in user does not complete.
7. a kind of non-volatile memory medium is stored with the program of cloud resource management, institute on the non-volatile memory medium It states program to be computer-executed to implement the method for cloud resource management, which is characterized in that described program includes:
Instruction is received, at least one request instruction of the scheduled instruction of user's input is received;
First decision instruction, judges whether at least one request instruction meets the format of the scheduled instruction, if it is, Into resolution unit, receiving unit is otherwise returned;
It analyzes the instruction, at least one request instruction is parsed, obtain at least one and execute instruction;
It executes instruction, executes described at least one and execute instruction.
CN201910209956.5A 2019-03-19 2019-03-19 The method, apparatus and non-volatile memory medium of cloud resource management Pending CN109947790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910209956.5A CN109947790A (en) 2019-03-19 2019-03-19 The method, apparatus and non-volatile memory medium of cloud resource management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910209956.5A CN109947790A (en) 2019-03-19 2019-03-19 The method, apparatus and non-volatile memory medium of cloud resource management

Publications (1)

Publication Number Publication Date
CN109947790A true CN109947790A (en) 2019-06-28

Family

ID=67010322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910209956.5A Pending CN109947790A (en) 2019-03-19 2019-03-19 The method, apparatus and non-volatile memory medium of cloud resource management

Country Status (1)

Country Link
CN (1) CN109947790A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823815B (en) * 2012-11-19 2017-05-17 中国联合网络通信集团有限公司 server and database access method
CN107045542A (en) * 2017-02-23 2017-08-15 上海赛可电子商务有限公司 Data query system and querying method
CN107257973A (en) * 2015-02-18 2017-10-17 起元技术有限责任公司 The data source inquired about on network
CN107480280A (en) * 2017-08-22 2017-12-15 金蝶软件(中国)有限公司 The method and relevant device of a kind of data processing
US10019479B2 (en) * 2012-09-05 2018-07-10 Salesforce.Com, Inc. Systems, methods and techniques for polymorphic queries
CN108958751A (en) * 2018-06-01 2018-12-07 优刻得科技股份有限公司 The method, apparatus of software deployment or maintenance, system and storage medium
CN109446218A (en) * 2018-09-25 2019-03-08 中国平安人寿保险股份有限公司 SQL statement generation method, device and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10019479B2 (en) * 2012-09-05 2018-07-10 Salesforce.Com, Inc. Systems, methods and techniques for polymorphic queries
CN103823815B (en) * 2012-11-19 2017-05-17 中国联合网络通信集团有限公司 server and database access method
CN107257973A (en) * 2015-02-18 2017-10-17 起元技术有限责任公司 The data source inquired about on network
CN107045542A (en) * 2017-02-23 2017-08-15 上海赛可电子商务有限公司 Data query system and querying method
CN107480280A (en) * 2017-08-22 2017-12-15 金蝶软件(中国)有限公司 The method and relevant device of a kind of data processing
CN108958751A (en) * 2018-06-01 2018-12-07 优刻得科技股份有限公司 The method, apparatus of software deployment or maintenance, system and storage medium
CN109446218A (en) * 2018-09-25 2019-03-08 中国平安人寿保险股份有限公司 SQL statement generation method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11450314B2 (en) Voice user interface shortcuts for an assistant application
EP2825957B1 (en) Systems and methods for supporting inline delegation of middle-tier transaction logs to database
US7502824B2 (en) Database shutdown with session migration
WO2017063520A1 (en) Method and apparatus for operating database
US9021485B2 (en) Automatically restarting a first child process based on presence of SQL code in a list
CN110716793A (en) Execution method, device, equipment and storage medium of distributed transaction
CN109460358B (en) Configuration management method and system based on Cmdb
CN113157411B (en) Celery-based reliable configurable task system and device
US8539490B2 (en) System and method for providing dynamic transaction optimizations
CN101163043A (en) Network management function configuring method and system
JP2017526043A (en) Method and apparatus for controlling network payments
CN111858090B (en) Data processing method, system, electronic equipment and storage medium
US20150180960A1 (en) Using a same program on a local system and a remote system
US8286181B2 (en) Supporting administration of a multi-application landscape
CN109947790A (en) The method, apparatus and non-volatile memory medium of cloud resource management
WO2017041637A1 (en) Database operating method and device
CN110839064A (en) Method and device for executing script by distributed system
US20230153723A1 (en) Workflow manager
CN114817134A (en) Snapshot task monitoring method, device, equipment and medium
US11252028B2 (en) Distribution of content in cloud applications
CN114328026A (en) Virtual disk backup method, device, equipment and medium
CN110245148B (en) Data storage method, device, system and medium
CN113672203A (en) Model inheritance method for CMDB configuration management
KR102567658B1 (en) Method and System for developing business components in isolation using multi-transactions
CN114780021B (en) Copy repairing method and device, electronic equipment and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190628