CN110515698A - A kind of resource application method, system and electronic equipment and storage medium - Google Patents

A kind of resource application method, system and electronic equipment and storage medium Download PDF

Info

Publication number
CN110515698A
CN110515698A CN201910760156.2A CN201910760156A CN110515698A CN 110515698 A CN110515698 A CN 110515698A CN 201910760156 A CN201910760156 A CN 201910760156A CN 110515698 A CN110515698 A CN 110515698A
Authority
CN
China
Prior art keywords
resource
request
task
current goal
request packet
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
CN201910760156.2A
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN201910760156.2A priority Critical patent/CN110515698A/en
Publication of CN110515698A publication Critical patent/CN110515698A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application discloses a kind of resource application method, system and electronic equipment and storage medium, method includes: the request packet obtained for applying for multiple target resources;Request packet is parsed, is obtained to the request task of the multiple target resource in request packet, and determines the resource parameters of multiple target resources;Determine the resource bid sequence of multiple target resources;The corresponding interface of each target resource is called automatically using resource parameters based on resource bid sequence, completes above-mentioned request task.From the above, it can be seen that, after the application gets the request packet for applying for multiple target resources, it can determine the resource parameters that multiple target resources are directed in the request task of the request packet, the corresponding interface of each target resource is called using resource parameters automatic sequence, user is set to send the application that primary request achieves that multiple resources, without calling the corresponding multiple interfaces of multiple resources manually, the use complexity of user is reduced, manpower and time cost are reduced.

Description

A kind of resource application method, system and electronic equipment and storage medium
Technical field
This application involves field of cloud computer technology, more specifically to a kind of resource application method, system and a kind of electricity Sub- equipment and a kind of computer readable storage medium.
Background technique
OpenStack is current most popular open source cloud platform, externally provides standard set RESTAPI, is used for Entire cloud platform is managed, application and deletion including all kinds of resources etc., such as virtual machine, volume, network etc..Majority third party at present Application platform is developed based on OpenStack, but since the application of resource each in OpenStack is based on independent Interface realize, for example, if think application one be provided simultaneously with volume as data disks, Floating IP address access external network it is virtual Machine, it is necessary to which caller calls at least five corresponding interfaces that could complete this resource bid, including application virtual machine, application Volume, application Floating IP address, carry volume, carry Floating IP address.Above-mentioned calling process is comparatively laborious for a user, and needs looking into It just can be carried out subsequent operation after asking the resource bid success of precondition, undoubtedly increase the burden of user, expend time cost And human cost.
Summary of the invention
The application be designed to provide a kind of resource application method, system and a kind of electronic equipment and a kind of computer can Storage medium is read, the use complexity of user is reduced, reduces manpower and time cost.
To achieve the above object, this application provides a kind of resource application methods, comprising:
Obtain the request packet for applying for multiple target resources;
The request packet is parsed, is obtained to the request task of the multiple target resource in the request packet, and Determine the resource parameters of the multiple target resource;
Determine the resource bid sequence of the multiple target resource;
Call each target resource is corresponding to connect automatically using the resource parameters based on the resource bid sequence Mouthful, complete the request task.
Optionally, described to call each target to provide automatically using the resource parameters based on the resource bid sequence The corresponding interface in source, completes the request task, comprising:
The son request for applying for the current goal resource is generated using the resource parameters of current goal resource;
Using the corresponding interface of current goal resource described in the sub- request call, the Shen of the current goal resource is carried out Please;
After monitoring the current goal resource bid success, the current mesh is determined based on the resource bid sequence Mark next target resource of resource;
Next target resource is determined as the current goal resource, and the resource of Returning utilization current goal resource Parameter generates the step of son request for applying for the current goal resource, until completing the request task.
Optionally, described using the corresponding interface of current goal resource described in the sub- request call, it carries out described current After the application of target resource, further includes:
If monitoring the current goal failures in resource application, the current goal resource is applied again;
If request times are more than preset times again, rollback is carried out according to current request Task Progress.
Optionally, the request packet is parsed, obtains the request in the request packet to the multiple target resource After task, further includes:
The request task is stored into task queue, and the request packet is stored into request queue;
Characterization request, which is issued, to the initiator of the request packet receives successful feedback information;The feedback information includes institute The corresponding request identification information of request packet described in request queue is stated, so that the initiator looks into according to the request identification information Ask the treatment process of the request packet.
Optionally, the task queue is used to save the identification information and its corresponding request mark letter of the request task Breath;The request queue is for saving the request identification information, the corresponding request task quantity of each request packet, running succeeded First task quantity, execute failure the second task quantity and execute failure description information.
Optionally, before the request task being stored into task queue, further includes:
Token authentication is carried out to the initiator of the request packet;
If token authentication does not pass through, token fail message or failure prompt information are returned;
If token authentication passes through, parameter legitimate verification is carried out to the request packet, and after legitimate verification passes through The request task is stored the step into task queue by starting.
To achieve the above object, this application provides a kind of resource bid systems, comprising:
Request module, for obtaining the request packet for applying for multiple target resources;
Request analysis module obtains in the request packet for parsing to the request packet to the multiple target The request task of resource, and determine the resource parameters of the multiple target resource;
Sequence determining module, for determining the resource bid sequence of the multiple target resource;
Automatic calling module, it is each described for being called automatically based on the resource bid sequence using the resource parameters The corresponding interface of target resource, completes the request task.
Optionally, the automatic calling module, comprising:
Generation unit is requested, is generated for the resource parameters using current goal resource for applying for that the current goal provides The son request in source;
Interface call unit, for carrying out institute using the corresponding interface of current goal resource described in the sub- request call State the application of current goal resource;
First determination unit is based on the resource bid after monitoring the current goal resource bid success Sequence determines next target resource of the current goal resource;
Second determination unit for next target resource to be determined as the current goal resource, and returns to execution The workflow of the request generation unit, until completing the request task.
To achieve the above object, this application provides a kind of electronic equipment, comprising:
Memory, for storing computer program;
Processor realizes the step of aforementioned disclosed any resource application method when for executing the computer program Suddenly.
To achieve the above object, this application provides a kind of computer readable storage medium, the computer-readable storages Computer program is stored on medium, the computer program realizes aforementioned disclosed any resource Shen when being executed by processor Please method the step of.
By above scheme it is found that a kind of resource application method provided by the present application, comprising: obtain for applying for multiple mesh Mark the request packet of resource;The request packet is parsed, the request in the request packet to the multiple target resource is obtained Task, and determine the resource parameters of the multiple target resource;Determine the resource bid sequence of the multiple target resource;It is based on The resource bid sequence calls the corresponding interface of each target resource using the resource parameters automatically, asks described in completion Seek task.From the foregoing, it will be observed that the application after getting the request packet for applying for multiple target resources, can determine the request packet Request task in be directed to the resource parameters of multiple target resources, and then call each target to provide using resource parameters automatic sequence The corresponding interface in source makes user send the application that primary request achieves that multiple resources, without calling multiple resources pair manually The multiple interfaces answered reduce the use complexity of user, reduce manpower and time cost.
Disclosed herein as well is a kind of resource bid system and a kind of electronic equipment and a kind of computer readable storage medium, Equally it is able to achieve above-mentioned technical effect.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Application.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of resource application method disclosed in the embodiment of the present application;
Fig. 2 is the refined flow chart of step S104 in a kind of resource application method disclosed in the embodiment of the present application;
Fig. 3 is a kind of structure chart of resource bid system disclosed in the embodiment of the present application;
Fig. 4 is the structure chart of a kind of electronic equipment disclosed in the embodiment of the present application;
Fig. 5 is the structure chart of another kind electronic equipment disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Conventionally, as the application of each resource is realized based on individual interface in OpenStack, if thinking Apply for multiple resources simultaneously, then user is needed to call the corresponding multiple interfaces of multiple resources manually, calling process carrys out user Say it is comparatively laborious, and need inquiry precondition resource bid success after just can be carried out subsequent operation, undoubtedly increase The burden of user expends time cost and human cost.
Therefore, the embodiment of the present application discloses a kind of resource application method, reduces the use complexity of user, reduces Manpower and time cost.
Shown in Figure 1, a kind of resource application method disclosed in the embodiment of the present application includes:
S101: the request packet for applying for multiple target resources is obtained;
In the present embodiment, the request packet for being used to apply multiple target resources that user sends is obtained, target resource can have Body is virtual machine, network, book etc..
S102: parsing the request packet, obtains appointing the request of the multiple target resource in the request packet Business, and determine the resource parameters of the multiple target resource;
In this step, to above-mentioned user send request packet parse, obtain in request packet for multiple targets The request task that resource is applied, and then determine that user is for the resource ginseng of each target resource setting in request task Number.It is understood that may include one or more request tasks in the request of the present embodiment, can concurrently carry out multiple The application of request task.
Specifically, the present embodiment is parsed to request packet, obtains appointing the request of multiple target resources in request packet After business, request task all in the request packet can also be stored into task queue, and request packet is stored to request In queue.Wherein, task queue is used to save the identification information and its corresponding request identification information of request task;Request queue For saving request identification information, the corresponding request task quantity of each request packet, the first task quantity to run succeeded, executing Second task quantity of failure and the description information for executing failure.The present embodiment can be monitored each request task, The task quantity in request queue, the first task quantity if running succeeded are updated according to implementing result after the completion of task execution Add one, the second task quantity adds one if executing failure.It is understood that if first task quantity and the second task quantity When with being equal to the total quantity of request task in the request packet, characterizing the corresponding all request tasks of the request packet and having executed completion.
It, can also be to the initiation of request packet before storing all request tasks into task queue in the present embodiment Fang Jinhang token authentication;If token authentication does not pass through, token fail message or failure prompt information are returned;If token authentication is logical Cross, then to the request packet carry out parameter legitimate verification, and after legitimate verification passes through starting by request task store to appoint The step being engaged in queue.
It is understood that the present embodiment is after storing request packet into request queue, it can be to the hair of request packet It plays side and issues the successful feedback information of characterization request reception;Wherein, feedback information may include request packet described in request queue Corresponding request identification information, so that initiator can be according to the treatment process of request identification information-enquiry corresponding requests packet.
S103: the resource bid sequence of the multiple target resource is determined;
It should be pointed out that each request task for applying for multiple target resources, needs the application of target resource It is completed based on certain sequence.
S104: call each target resource corresponding automatically using the resource parameters based on the resource bid sequence Interface, complete the request task.
It is understood that the money of the present embodiment multiple target resources in determining resource parameters and each request task After source application sequence, it will successively call automatically each target resource corresponding using above-mentioned resource parameters based on resource bid sequence Interface.Wherein, in above-mentioned calling process, ability after previous resource bid success is needed in ensuring resource bid sequence Carry out the calling of current interface.
Specifically, as shown in Fig. 2, the refinement process of above-mentioned steps S104 may include:
S1041: it is generated using the resource parameters of current goal resource for applying for that the son of the current goal resource is requested;
S1042: using the corresponding interface of current goal resource described in the sub- request call, the current goal money is carried out The application in source;
S1043: after monitoring that the current goal resource bid succeeds, based on described in the resource bid sequence determination Next target resource of current goal resource;
S1044: next target resource is determined as the current goal resource, and Returning utilization current goal resource Resource parameters the step of generating the son request for applying for the current goal resource, until completing the request task.
In the present embodiment, using the corresponding interface of sub- request call current goal resource, current goal resource is carried out After application, if monitoring current goal failures in resource application, further current goal resource can also be applied again; If again request times be more than preset times after apply yet successfully, according to current request Task Progress progress rollback.
By above scheme it is found that a kind of resource application method provided by the present application, comprising: obtain for applying for multiple mesh Mark the request packet of resource;The request packet is parsed, the request in the request packet to the multiple target resource is obtained Task, and determine the resource parameters of the multiple target resource;Determine the resource bid sequence of the multiple target resource;It is based on The resource bid sequence calls the corresponding interface of each target resource using the resource parameters automatically, asks described in completion Seek task.From the foregoing, it will be observed that the application after getting the request packet for applying for multiple target resources, can determine the request packet Request task in be directed to the resource parameters of multiple target resources, and then call each target to provide using resource parameters automatic sequence The corresponding interface in source makes user send the application that primary request achieves that multiple resources, without calling multiple resources pair manually The multiple interfaces answered reduce the use complexity of user, reduce manpower and time cost.
Using the virtual machine for applying being provided simultaneously with the book as data disks and the Floating IP address for accessing external network For, the embodiment of the present application discloses a kind of specific resource application method, and relative to a upper embodiment, the present embodiment is to technology Scheme has made further instruction and optimization.It is specific:
When user requests to reach, whether legal verify corresponding token first with keystone, if legal after It is continuous to be handled, otherwise return to token failure or illegal prompt information.
And then parameter legitimate verification is carried out to the request, as essential option whether be it is empty, that whether user's quota meets is default The request is put into task queue by condition etc. after being verified, wherein each combined resource application task is one and appoints Above-mentioned multiple tasks are added preservation into task queue, while this request being put into and is asked if there is multiple tasks by business It asks in queue, to judge whether that all tasks have all been completed.Wherein, task queue is hash queue, can be specifically included: Task identification information, specifically requests body, the virtual machine identification information of application, the data of application at corresponding request identification information Volume information and the Floating IP address information of application;Request queue is hash queue, and can specifically include: the identification information of request is asked Ask the total task number for including, the task quantity to run succeeded in request, the task quantity that failure is executed in request and failure Reason description.
Further, the present embodiment can return indicate resource bid request received feedback information to caller, Request identification information is returned to simultaneously, to inquire the progress and state of this application resource.Specifically, the present embodiment can will be applied The progress and state of resource are kept records of in database.
In specific implementation, it periodically takes out task from task queue using mission thread pond to be executed, from specific Request body in take out creation virtual machine need parameter, assembling generate nova creation virtual machine need request body, call The interface of nova creates virtual machine.Wherein, Nova is a most important module in OpenStack all components, is responsible in cloud The management of virtual machine.It should be noted that Flavor is module important in nova, the memory that Flavor defines host is big It is small, cpu size etc., and can be used to limit the series of parameters of virtual machine, it is equivalent to a production mould, use is same Flavor is created that the virtual machine come is consistent substantially in specification.When user creates virtual machine, if user is not specified Flavor then needs to re-create Flavor according to vcpu, ram, root_disk parameter set by user, virtual for creating Machine.Further, the state of the task is set in creation, is re-applied to task queue end.This is because creation virtual machine A period of time is needed, the task that the present embodiment can allow needs to start creation preferentially executes.When thread pool goes to this again When business, the carry out state of the task will be checked again for, if being still to continue the task being put into task queue in virtual machine creating End first carries out other creation tasks.
If the creation state of virtual machine is to complete, book is created, the book parameter in specific request body is spelled Delivering a child becomes the parameter for calling cinder interface, goes to create corresponding book.Cinder and Nova is the group of OpenStack Part, Cinder are specially that the virtual machine in Nova provides block storage service.Since the creation initial value of book is a blank coil, Fast speed, the present embodiment is without being rejoined into task queue, because thread switching is also required to waste CPU money Source.It is inquired according to state of the preset period of time to book, until the state of book in creation by being updated to create Success.Wherein, preset period of time can configure suitable value according to the rear end cinder storage speed.All books are waited to create After building up function, then carry out the carry of book.After the completion of book carry, call network interface go creation Floating IP address, and It after creating successfully, binds on Floating IP address to the specific network interface card of virtual machine, can be closed according to the mapping set in request body in binding System is bound.
In the present embodiment, creation virtual machine, creation book, creation Floating IP address, carry data disks and binding Floating IP address Each process be correspondingly arranged individual retry mechanism, i.e., after the error of each process, all retried, if number of retries is super Preset times are crossed, then this resource bid creation failure, carries out rolling back action.Since different OpenStack environment may be by Lead to different delays in hardware and network difference, preset times and retries interval duration and can be carried out according to specific implementation situation Setting.When carrying out rolling back action, the progress of Current resource application is inquired first, i.e. mistake occurs in which process, according to looking into It askes result and successively unbinds Floating IP address, delete Floating IP address, unload data disks, delete data disks, finally delete virtual machine, complete back Rolling.
After any one resource bid task execution is complete, need to update the corresponding content of the request in request queue.Such as The success of fruit task execution, then the task quantity to run succeeded add one, and the task quantity for otherwise executing failure adds one, and adds and fail Reason, different task can use branch and be split.When the task quantity to run succeeded and execute the task quantity to fail When summation is equal to the total task number of current request, this request terminates, and according to the implementing result of task, it is corresponding to update the request It is recorded according to library table.
In the present embodiment, user can call the interface polls of primary OpenStack to all combined resources, Bu Huiying Native interface is rung, and the device that this method is realized can be specifically deployed in the internal network of OpenStack various components, adjusted It is fast with speed and safer.
Specifically, resource application method provided by the present application can be implemented as micro services by the present embodiment, can be incited somebody to action The micro services are deployed in the control node of OpenStack, can also be deployed on individual server, and application money is externally provided The API in source.That is, resource application method provided by the present application, can make caller call an interface that can obtain desired Calculating, storage and Internet resources, greatly simplifie the process for using of user, and the corresponding micro services of this method with OpenStack is deployed in identical interior web area, and intrinsic call time delay is very short, effectively reduces the whole creation time.Together When, how user uses how the interface of each resource of OpenStack uses without research, it is only necessary to which the business for paying close attention to itself is patrolled Volume, significantly improve the efficiency of development and application.
A kind of resource bid system provided by the embodiments of the present application is introduced below, a kind of resource Shen described below Please system can be cross-referenced with a kind of above-described resource application method.
Shown in Figure 3, a kind of resource bid system provided by the embodiments of the present application includes:
Request module 11, for obtaining the request packet for applying for multiple target resources;
Request analysis module 12 obtains the request task in the request packet for parsing to the request packet, and Determine the resource parameters of the multiple target resource;
Sequence determining module 13, for determining the resource bid sequence of the multiple target resource;
Automatic calling module 14, for calling each institute automatically using the resource parameters based on the resource bid sequence The corresponding interface of target resource is stated, the request task is completed.
On the basis of the above embodiments, the automatic calling module 14 may include: as a preferred implementation manner,
Generation unit is requested, is generated for the resource parameters using current goal resource for applying for that the current goal provides The son request in source;
Interface call unit, for carrying out institute using the corresponding interface of current goal resource described in the sub- request call State the application of current goal resource;
First determination unit is based on the resource bid after monitoring the current goal resource bid success Sequence determines next target resource of the current goal resource;
Second determination unit for next target resource to be determined as the current goal resource, and returns to execution The workflow of the request generation unit, until completing the request task.
Present invention also provides a kind of electronic equipment, shown in Figure 4, a kind of electronic equipment provided by the embodiments of the present application Include:
Memory 100, for storing computer program;
Step provided by above-described embodiment may be implemented in processor 200 when for executing the computer program.
Specifically, memory 100 includes non-volatile memory medium, built-in storage.Non-volatile memory medium storage There are operating system and computer-readable instruction, which is that the operating system and computer in non-volatile memory medium can The operation of reading instruction provides environment.Processor 200 can be a central processing unit (Central in some embodiments Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, mentioned for electronic equipment Previous embodiment may be implemented and disclose when executing the computer program saved in the memory 100 for calculating and control ability Resource application method the step of.
On the basis of the above embodiments, preferably, shown in Figure 5, the electronic equipment further include:
Input interface 300 is connected with processor 200, for obtaining computer program, parameter and the instruction of external importing, It saves through the control of processor 200 into memory 100.The input interface 300 can be connected with input unit, and it is manual to receive user The parameter or instruction of input.The input unit can be the touch layer covered on display screen, be also possible to be arranged in terminal enclosure Key, trace ball or Trackpad, be also possible to keyboard, Trackpad or mouse etc..
Display unit 400 is connected with processor 200, for video-stream processor 200 processing data and for show can Depending on the user interface changed.The display unit 400 can for light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..
The network port 500 is connected with processor 200, for being communicatively coupled with external each terminal device.The communication link The communication technology used by connecing can be cable communicating technology or wireless communication technique, and such as mobile high definition chained technology (MHL) leads to It is blue with universal serial bus (USB), high-definition media interface (HDMI), adopting wireless fidelity technology (WiFi), Bluetooth Communication Technology, low-power consumption The tooth communication technology, communication technology based on IEEE802.11s etc..
Fig. 5 illustrates only the electronic equipment with component 100-500, it will be appreciated by persons skilled in the art that Fig. 5 shows Structure out does not constitute the restriction to electronic equipment, may include than illustrating less perhaps more components or combining certain A little components or different component layouts.
Present invention also provides a kind of computer readable storage medium, the storage medium may include: USB flash disk, mobile hard disk, Read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic The various media that can store program code such as dish or CD.Computer program, the calculating are stored on the storage medium The step of resource application method disclosed in previous embodiment is realized when machine program is executed by processor.
The application can determine that the request of the request packet is appointed after getting the request packet for applying for multiple target resources It is directed to the resource parameters of multiple target resources in business, and then calls each target resource corresponding using resource parameters automatic sequence Interface makes user send the application that primary request achieves that multiple resources, without calling multiple resources corresponding multiple manually Interface reduces the use complexity of user, reduces manpower and time cost.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration .It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (10)

1. a kind of resource application method characterized by comprising
Obtain the request packet for applying for multiple target resources;
The request packet is parsed, is obtained to the request task of the multiple target resource in the request packet, and is determined The resource parameters of the multiple target resource;
Determine the resource bid sequence of the multiple target resource;
The corresponding interface of each target resource is called automatically using the resource parameters based on the resource bid sequence, it is complete At the request task.
2. resource application method according to claim 1, which is characterized in that described to be utilized based on the resource bid sequence The resource parameters call the corresponding interface of each target resource automatically, complete the request task, comprising:
The son request for applying for the current goal resource is generated using the resource parameters of current goal resource;
Using the corresponding interface of current goal resource described in the sub- request call, the application of the current goal resource is carried out;
After monitoring the current goal resource bid success, determine that the current goal provides based on the resource bid sequence Next target resource in source;
Next target resource is determined as the current goal resource, and the resource parameters of Returning utilization current goal resource The step of generating the son request for applying for the current goal resource, until completing the request task.
3. resource application method according to claim 2, which is characterized in that it is described using described in the sub- request call when The corresponding interface of preceding target resource, after the application for carrying out the current goal resource, further includes:
If monitoring the current goal failures in resource application, the current goal resource is applied again;
If request times are more than preset times again, rollback is carried out according to current request Task Progress.
4. resource application method according to any one of claims 1 to 3, which is characterized in that solved to the request packet Analysis, after obtaining in the request packet to the request task of the multiple target resource, further includes:
The request task is stored into task queue, and the request packet is stored into request queue;
Characterization request, which is issued, to the initiator of the request packet receives successful feedback information;The feedback information includes described asks The corresponding request identification information of request packet described in queue is sought, so that the initiator is according to request identification information-enquiry institute State the treatment process of request packet.
5. resource application method according to claim 4, which is characterized in that the task queue is for saving the request The identification information of task and its corresponding request identification information;The request queue for save the request identification information, often The corresponding task quantity of a request packet, the first task quantity to run succeeded, the second task quantity and execution for executing failure The description information of failure.
6. resource application method according to claim 4, which is characterized in that storing the request task to task queue In before, further includes:
Token authentication is carried out to the initiator of the request packet;
If token authentication does not pass through, token fail message or failure prompt information are returned;
If token authentication passes through, parameter legitimate verification is carried out to the request packet, and start after legitimate verification passes through The request task is stored to the step into task queue.
7. a kind of resource bid system characterized by comprising
Request module, for obtaining the request packet for applying for multiple target resources;
Request analysis module obtains in the request packet for parsing to the request packet to the multiple target resource Request task, and determine the resource parameters of the multiple target resource;
Sequence determining module, for determining the resource bid sequence of the multiple target resource;
Automatic calling module, for calling each target automatically using the resource parameters based on the resource bid sequence The corresponding interface of resource, completes the request task.
8. resource bid system according to claim 7, which is characterized in that the automatic calling module, comprising:
Generation unit is requested, for generating using the resource parameters of current goal resource for applying for the current goal resource Son request;
Interface call unit is worked as described in progress for utilizing the corresponding interface of current goal resource described in the sub- request call The application of preceding target resource;
First determination unit, after monitoring the current goal resource bid success, based on the resource bid sequence Determine next target resource of the current goal resource;
Second determination unit for next target resource to be determined as the current goal resource, and returns described in execution The workflow of generation unit is requested, until completing the request task.
9. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor, realizing the resource application method as described in any one of claim 1 to 6 when for executing the computer program Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the step of the resource application method as described in any one of claim 1 to 6 when the computer program is executed by processor Suddenly.
CN201910760156.2A 2019-08-16 2019-08-16 A kind of resource application method, system and electronic equipment and storage medium Pending CN110515698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910760156.2A CN110515698A (en) 2019-08-16 2019-08-16 A kind of resource application method, system and electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910760156.2A CN110515698A (en) 2019-08-16 2019-08-16 A kind of resource application method, system and electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110515698A true CN110515698A (en) 2019-11-29

Family

ID=68625603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910760156.2A Pending CN110515698A (en) 2019-08-16 2019-08-16 A kind of resource application method, system and electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110515698A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158794A (en) * 2019-12-19 2020-05-15 苏州浪潮智能科技有限公司 OpenStack-oriented API (application program interface) combination optimization method and device
CN111222845A (en) * 2019-12-27 2020-06-02 北京健康之家科技有限公司 Resource transfer method, device, equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177812A1 (en) * 1999-12-01 2005-08-11 Microsoft Corporation External resource files for application development and management
EP2035943A2 (en) * 2006-06-15 2009-03-18 International Business Machines Corporation Management of composite software services
CN104781802A (en) * 2012-11-02 2015-07-15 亚马逊科技公司 Custom resources in resource stack
CN105007323A (en) * 2015-07-22 2015-10-28 上海斐讯数据通信技术有限公司 System and method for arranging cloud resources
CN106469068A (en) * 2015-08-14 2017-03-01 中国移动通信集团安徽有限公司 The dispositions method of application program and system
CN107402862A (en) * 2016-03-17 2017-11-28 阿里巴巴集团控股有限公司 For realizing the method and apparatus of resource layout in client
CN107577521A (en) * 2017-10-26 2018-01-12 郑州云海信息技术有限公司 A kind of virtual resource management method and device
CN109840144A (en) * 2018-12-28 2019-06-04 航天信息股份有限公司 A kind of information service dispatching method and system for the request of across mechanism bulk service

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177812A1 (en) * 1999-12-01 2005-08-11 Microsoft Corporation External resource files for application development and management
EP2035943A2 (en) * 2006-06-15 2009-03-18 International Business Machines Corporation Management of composite software services
CN104781802A (en) * 2012-11-02 2015-07-15 亚马逊科技公司 Custom resources in resource stack
CN105007323A (en) * 2015-07-22 2015-10-28 上海斐讯数据通信技术有限公司 System and method for arranging cloud resources
CN106469068A (en) * 2015-08-14 2017-03-01 中国移动通信集团安徽有限公司 The dispositions method of application program and system
CN107402862A (en) * 2016-03-17 2017-11-28 阿里巴巴集团控股有限公司 For realizing the method and apparatus of resource layout in client
CN107577521A (en) * 2017-10-26 2018-01-12 郑州云海信息技术有限公司 A kind of virtual resource management method and device
CN109840144A (en) * 2018-12-28 2019-06-04 航天信息股份有限公司 A kind of information service dispatching method and system for the request of across mechanism bulk service

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
管增辉,曾凡浪: "《OpenStack架构分析与实践》", 31 December 2018, 中国铁道出版社 *
韩璞,陈可,刘黎明: "《OpenStack技术原理与实战》", 30 April 2016, 西安电子科技大学出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158794A (en) * 2019-12-19 2020-05-15 苏州浪潮智能科技有限公司 OpenStack-oriented API (application program interface) combination optimization method and device
CN111158794B (en) * 2019-12-19 2023-03-31 苏州浪潮智能科技有限公司 OpenStack-oriented API (application program interface) combination optimization method and device
CN111222845A (en) * 2019-12-27 2020-06-02 北京健康之家科技有限公司 Resource transfer method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108293081B (en) Deep linking of program playback to mobile application state through user interface events
CN109960521B (en) Application program upgrading method and device, electronic equipment and storage medium
US20150332244A1 (en) Method, apparatus and system for procrssing payment request for virtual commodities on open network platform
US9614931B2 (en) Identifying a resource set require for a requested application and launching the resource set in a container for execution in a host operating system
US20120116751A1 (en) Providing message text translations
US20140068026A1 (en) System for automatically configuring server using pre-recorded configuration script and method thereof
CN107038062A (en) A kind of virtual machine initial method and device based on cloud platform
CN108319554B (en) Application function testing method, computer readable storage medium and terminal device
CN112882734B (en) Upgrading method and device, computer equipment and medium
WO2018054026A1 (en) Electronic terminal, and device and method for managing application program
JP2003296147A (en) Volume management method and device
CN106445580A (en) Method and device for BMC (Baseboard Management Controller) with external upgrading
CN110515698A (en) A kind of resource application method, system and electronic equipment and storage medium
CN103840963B (en) Method and device for updating server data
CN108763311A (en) Interface display method, device, intelligent interaction tablet and storage medium
WO2021169639A1 (en) Method, system and device for bmc customization, and readable storage medium
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN110244963A (en) Data-updating method, device and terminal device
US20130080751A1 (en) Method and device for updating bios program for computer system
CN111679837B (en) System installation control method, system and computing device
CN107682389B (en) Method, terminal and computer readable storage medium for executing network request
JP6751778B2 (en) Methods, electronic devices and storage media for realizing communication between business systems and multi-assembly
CN111026945B (en) Multi-platform crawler scheduling method, device and storage medium
CN108520401A (en) User list management method, device, platform and storage medium
WO2014067368A1 (en) Method, apparatus and device for obtaining resource preview image

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

Application publication date: 20191129

RJ01 Rejection of invention patent application after publication