CN107621968A - One kind instruction issues request processing method and control node - Google Patents

One kind instruction issues request processing method and control node Download PDF

Info

Publication number
CN107621968A
CN107621968A CN201610559615.7A CN201610559615A CN107621968A CN 107621968 A CN107621968 A CN 107621968A CN 201610559615 A CN201610559615 A CN 201610559615A CN 107621968 A CN107621968 A CN 107621968A
Authority
CN
China
Prior art keywords
request
response
attribute
instruction
issued
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
CN201610559615.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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610559615.7A priority Critical patent/CN107621968A/en
Publication of CN107621968A publication Critical patent/CN107621968A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

This application provides one kind instruction to issue request processing method and control node, the processing procedure for issuing request will be instructed to be decomposed into data item configuration and normal process calling, as long as the requested data item in request message is set, without entering writing or changing for line code again, it is possible to increase the development efficiency of service request.

Description

One kind instruction issues request processing method and control node
Technical field
The application is related to electronic information field, more particularly to a kind of instruction issues request processing method and control node.
Background technology
In dummy machine system, in order to manage the physical machine in downstream, network and memory resource pool etc., control node needs Do substantial amounts of instruction and issue operation.The type of the instruction issued is up to hundreds of, with being continuously increased for user's request, issues rule Then need constantly addition and change, that is to say, that, it is necessary to send instructions under continually developing and (write and produce) newly.And existing skill In art, progress can only be write or be changed to the generation of instruction by code, inefficient.Therefore, instruction exploitation how is improved Efficiency, turn into current urgent problem to be solved.
The content of the invention
This application provides one kind instruction to issue request processing method and control node, it is therefore intended that solves instruction generation effect The problem of rate is not high.
To achieve these goals, this application provides following technical scheme:
One kind instruction issues request processing method, including:
Receive instruction and issue request;
The instruction is issued into input item of the request as standard process flow, runs the standard process flow, it is described Standard process flow comprises at least:
The instruction is issued into request and is converted to preset format, and
Framework is handled by call request, the instruction is sent and issues request.
A kind of control node, including:
Receiving module, request is issued for receiving instruction;
Processing module, for the instruction to be issued into input item of the request as standard process flow, run the standard Handling process, the standard process flow comprise at least:
The instruction is issued into request and is converted to preset format, and
Framework is handled by call request, the instruction is sent and issues request.
Instruction described herein issues request processing method and control node, will after receiving instruction and issuing request Instruction issues request and is input to as input item in standard process flow, and by operation standard handling process, sends under instruction Hair request.In actual applications, it can will instruct and give flow composition standard process flow general in request sending process, because Existing written in code or modification mode, can be reduced to the mistake that operation standard handling process sends instruction and issues request by this Journey, therefore, it is possible to improve the efficiency that request issues, therefore it is the part for instructing generation that request, which issues, is referred to thus it is possible to improve Make the efficiency of generation.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart that the disclosed instruction of the embodiment of the present application issues request processing method;
Fig. 2 is the schematic diagram of requested data item and response data item disclosed in the embodiment of the present application;
Fig. 3 is the structural representation of control node disclosed in the embodiment of the present application;
Fig. 4 (a) is the schematic diagram of the existing processing procedure for instructing and issuing request;
Fig. 4 (b) is that the embodiment of the present application discloses the schematic diagram that instruction issues request processing method.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
A kind of instruction issues request processing method disclosed in the embodiment of the present application, applied to the control section in dummy machine system Point.As shown in figure 1, comprise the following steps:
S101:The request message that user sends is received, the value of default requested data item is obtained from request message.
Specifically, in data item as shown in Figure 2, including request type, attribute, the category of response object of asking object Property and request configuration.Wherein, request type, the attribute of request object and request are configured to requested data item.Specifically, request pair The attribute of elephant include but is not limited to it is one or more in subnet title, subnet mask, network belonging region and network holder, Request configuration includes but is not limited to the time-out time that requested business is allowed to, the path of requested business and acceptable It is one or more in return code.
It should be noted that above-mentioned requested data item is pre-set, and the value of requested data item needs to report from request Obtained in text, for example, the value that request type is obtained from request message is establishment subnet.
S102:The attribute of user-defined response object is obtained in the request message sent from user.
As shown in Fig. 2 the attribute of response object includes but is not limited to one of subnet ID, operation detail or wrong details It is or multinomial.
It should be noted that S102 is optional step, that is to say, that can include user-defined sound in request message Data item is answered, the attribute of response object can not also be included, in the case of the attribute that response object is not included in request message, Do not perform S102.
S103:Configured according to the request type in requested data item and request, structure instruction issues request, and instruction issues please The attribute including asking object is asked (optionally, if performing S202, to instruct the category for issuing and also including response object in request Property).
S104:It will instruct and issue input item of the request as standard process flow, and operation standard handling process, transmission refer to Order issues request.
Specifically, standard process flow includes but is not limited to following processing step:1st, by instruction issue request format and Serializing, to obtain being adapted to the byte stream of network transmission.2nd, framework is handled by call request, instruction is issued into request and sent out Go generally, the request outside physical machine of the request processing framework where control node handles framework.
In S101~S104, the general procedure logical abstraction during issuing will be instructed to come out, form standard processing stream Journey, the instruction generated according to requested data item (and attribute of response object) is issued into request input standard process flow can be complete Into issuing for instruction request, without entering the modification of line code again and writing, therefore, it is possible to improve the effect that instruction issues request Rate.
S105:Receive the response that instruction issues request.
Wherein, instruction issues the response of request and the physical machine of request can be issued by receiving instruction sends, can also be by Other control nodes are sent, or control node responds the instruction that itself sends and issues request.
The content of response is that control node is made an appointment with responder, including but not limited to the value of the attribute of response object. Alternatively, if performing S102, items of the responder according to the attribute of response object, the value of the attribute of feedback response object, If being not carried out S102, i.e., user is configured without the attribute of response object, then the customized response pair of responder's reponse system The value of the attribute of elephant.S106:The value for the attribute that response object is obtained in the response of request is issued from instruction.
S107:By calling normal response Processing Interface, parsing has obtained the attribute of the response object of occurrence.
S108:If the attribute for parsing response object is system default, normal response handling process is called.
Normal response handling process can be the general response handling process that system is pre-set.
S109:If the attribute for parsing response object is User Defined, default response handling process is called.
Specifically, default (outside) request response handling process include success response logic, failure response logic and Exception response logic, success response logic be used for represent issued ask successfully after need operation to be performed, failure response logic For representing to need operation to be performed after issuing request failure, exception response logic is issued after exception occurs in request for expression and needed Operation to be performed.
It should be noted that if calling normal response handling process, or external request respond handling process, processing Flow is run according to the value of response object attribute.
It should be noted that the logic for how being responded and being responded not within the scope of the present invention, may refer to Prior art, repeat no more here.
From said process as can be seen that method described in the present embodiment, obtains default request data from request message Value and after issuing request according to requested data item structure, the sound of request can be issued by calling standard process flow to obtain Should, then response is handled.That is, the processing procedure for issuing request can will be instructed to be decomposed into data item configuration and mark Quasi- process invocation, response handle several parts, are based on this handling process, for newly-increased service request, as long as Requested data item and response data item (can be without setting) in request message is set, without entering line code again Write or change, thus it is possible to improve the development efficiency of service request, simplify development process.
Fig. 3 is a kind of control node disclosed in the embodiment of the present application, including:
Receiving module, request is issued for receiving instruction.
Processing module, for the instruction to be issued into input item of the request as standard process flow, run the standard Handling process.Specifically, the standard process flow comprises at least:The instruction is issued into request and is converted to preset format, with And framework is handled by call request, send the instruction and issue request.
Further, control node can also include:
Request structure module, for obtaining attribute, request type and the request of request object from the request message of user Configuration;And request is issued according to the request type and the request configuration structure instruction, the instruction is issued in request Carry the attribute of the request object.Optionally, please if the request message that user sends includes the attribute of response object Structure module is asked to can be also used for issuing the attribute addition instruction of response object in request.
Further, receiving module can be also used for receiving the response for instructing and issuing request, and the response includes default Response object attribute value, the attribute of the default response object includes:The attribute of the first kind, or, carry The instruction issues the attribute of the Second Type in request.
Control node can also include:Respond module, for from it is described instruct issue request response in inquire about it is default The value of the attribute of response object;And by calling normal response Processing Interface, analyze the response to the type of the attribute of object;Such as The attribute of response object described in fruit is the first kind, then calls normal response handling process;If the attribute of the response object For Second Type, then default response handling process is called.Optionally, default response handling process is patrolled including success response Volume, one or more of failure response logic and exception response logic.
Control node described in the present embodiment, the processing procedure for issuing request will be instructed to be decomposed into data item configuration and standard Process invocation, response handle several parts, as long as the requested data item and response data item in setting request message (can not be entered Row is set), without entering writing or changing for line code again, it is possible to increase the development efficiency of service request.
Below based on above-described embodiment, it is illustrated for method difference with the prior art described herein:
, can be according to after the request message of establishment subnet of user's transmission is received as shown in figure 4, in the prior art Linear logic processing in Fig. 4 (a).
And the method described in the embodiment of the present application is used, as shown in Fig. 4 (b), receiving establishment of user's transmission After the request message of net, following configure is obtained from request message:
Request type:Create subnet
Subnet mask:255.255.255.128
Time-out time:100S
Request is issued according to configuration structure instruction, above-mentioned configuration is input in standard process flow.Then receiving please The response asked, because not having specified response configuration item in configuration, default response type is parsed from response, therefore, adjusted It can be completed to issue instruction the processing of request with normal response handling process.
It can be seen that Fig. 4 (b) by the linear process logic transition in Fig. 4 (a) into obtain configuration-input configuration operation standard at Manage the process of flow-calling response handling process.And standard process flow therein is to be abstracted in the linear logic in Fig. 4 (a) Common segment out.Therefore, can operation standard as long as extracting configuration after receiving new instruction and issuing request message Handling process and calling response handling process can be completed to handle, so as to improve the treatment effeciency for request.
If the function described in the embodiment of the present application method is realized in the form of SFU software functional unit and is used as independent production Product are sold or in use, can be stored in a computing device read/write memory medium.It is real based on such understanding, the application The part for applying part that example contributes to prior art or the technical scheme can be embodied in the form of software product, The software product is stored in a storage medium, including some instructions are make it that a computing device (can be personal meter Calculation machine, server, mobile computing device or network equipment etc.) perform each embodiment methods described of the application whole or portion Step by step.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), with Machine access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be with it is other The difference of embodiment, between each embodiment same or similar part mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the application. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments in the case where not departing from spirit herein or scope.Therefore, the application The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

1. one kind instruction issues request processing method, it is characterised in that including:
Receive instruction and issue request;
The instruction is issued into input item of the request as standard process flow, runs the standard process flow, the standard Handling process comprises at least:
The instruction is issued into request and is converted to preset format, and
Framework is handled by call request, the instruction is sent and issues request.
2. according to the method for claim 1, it is characterised in that described to instruct the construction method for giving request to include:
The attribute, request type and request configuration of request object are obtained from the request message of user;
Request is issued according to the request type and the request configuration structure instruction, the instruction issues to be carried in request The attribute of the request object.
3. method according to claim 1 or 2, it is characterised in that also include:
The response for instructing and issuing request is received, the value for responding the attribute for including default response object is described default The attribute of response object include:The attribute of the first kind, or, carry and issue the Second Type in request in the instruction Attribute.
4. according to the method for claim 3, it is characterised in that also include:
The value of the attribute of default response object is inquired about from the response for instructing and issuing request;
By calling normal response Processing Interface, the type of the attribute of object is analyzed the response to;
If the attribute of the response object is the first kind, normal response handling process is called;
If the attribute of the response object is Second Type, default response handling process is called.
5. according to the method for claim 4, it is characterised in that the default response handling process includes:Success response One or more of logic, failure response logic and exception response logic.
A kind of 6. control node, it is characterised in that including:
Receiving module, request is issued for receiving instruction;
Processing module, for the instruction to be issued into input item of the request as standard process flow, run the standard processing Flow, the standard process flow comprise at least:
The instruction is issued into request and is converted to preset format, and
Framework is handled by call request, the instruction is sent and issues request.
7. device according to claim 6, it is characterised in that also include:
Request structure module, for obtaining the attribute, request type and request configuration of request object from the request message of user; And request is issued according to the request type and the request configuration structure instruction, the instruction, which is issued in request, carries institute State the attribute of request object.
8. the device according to claim 6 or 7, it is characterised in that the receiving module is additionally operable to:
The response for instructing and issuing request is received, the value for responding the attribute for including default response object is described default The attribute of response object include:The attribute of the first kind, or, carry and issue the Second Type in request in the instruction Attribute.
9. device according to claim 8, it is characterised in that also include:
Respond module, for from it is described instruct issue request response in inquire about default response object attribute value;And lead to Calling normal response Processing Interface is crossed, analyzes the response to the type of the attribute of object;If the attribute of the response object is The first kind, then call normal response handling process;If the attribute of the response object is Second Type, call default Respond handling process.
10. device according to claim 9, it is characterised in that the respond module is used to call default response to handle Flow includes:
The respond module is specifically used for, and calls one in success response logic, failure response logic and exception response logic It is individual or multiple.
CN201610559615.7A 2016-07-15 2016-07-15 One kind instruction issues request processing method and control node Pending CN107621968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610559615.7A CN107621968A (en) 2016-07-15 2016-07-15 One kind instruction issues request processing method and control node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610559615.7A CN107621968A (en) 2016-07-15 2016-07-15 One kind instruction issues request processing method and control node

Publications (1)

Publication Number Publication Date
CN107621968A true CN107621968A (en) 2018-01-23

Family

ID=61086859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610559615.7A Pending CN107621968A (en) 2016-07-15 2016-07-15 One kind instruction issues request processing method and control node

Country Status (1)

Country Link
CN (1) CN107621968A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273593A (en) * 2005-06-10 2008-09-24 湍溪系统有限责任公司 Method, system, and data structure for providing a general request/response messaging protocol using a presence protocol
CN101461183A (en) * 2006-06-05 2009-06-17 康博泰公司 Provisioning and activation using a service catalog
CN102810069A (en) * 2012-07-16 2012-12-05 深圳市融创天下科技股份有限公司 JAVA object requesting and responding methods, devices and systems and terminal
CN105472015A (en) * 2015-12-22 2016-04-06 广州华多网络科技有限公司 Method and device for accessing cloud platform to third-party application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273593A (en) * 2005-06-10 2008-09-24 湍溪系统有限责任公司 Method, system, and data structure for providing a general request/response messaging protocol using a presence protocol
CN101461183A (en) * 2006-06-05 2009-06-17 康博泰公司 Provisioning and activation using a service catalog
CN102810069A (en) * 2012-07-16 2012-12-05 深圳市融创天下科技股份有限公司 JAVA object requesting and responding methods, devices and systems and terminal
CN105472015A (en) * 2015-12-22 2016-04-06 广州华多网络科技有限公司 Method and device for accessing cloud platform to third-party application

Similar Documents

Publication Publication Date Title
CN102446220B (en) Adaptive tree structure for visulizing data
CN107203626A (en) A kind of BPM method and system
CN106408170A (en) Electronic worksheet processing method, workflow engine and electronic worksheet system
CN109754072B (en) Processing method of network offline model, artificial intelligence processing device and related products
CN104660489A (en) Method and system for controlling message delivery in messaging system
CN109448100A (en) Threedimensional model format conversion method, system, computer equipment and storage medium
CN107122343A (en) A kind of online contract template edit methods and system
CN103634177A (en) Method and system for implementing configuration on basis of network services
CN110061910A (en) A kind of processing method of voice short message, equipment and medium
CN108363684A (en) List creation method, device and server
US11687817B2 (en) System and method for providing data computation via quantum computers
CN105022619A (en) Code processing method and device
CN110633959A (en) Method, device, equipment and medium for creating approval task based on graph structure
WO2016074434A1 (en) Data extraction method and device
CN110781180A (en) Data screening method and data screening device
CN109191078A (en) A kind of traffic flow modeling method, device and equipment
CN113467782B (en) Method, device and equipment for determining business process
CN105550762A (en) Meeting room appointment method and device
CN113703996B (en) Access control method, equipment and medium based on user and YANG model grouping
CN103473106B (en) Method and system for generating page
CN114244821A (en) Data processing method, device, equipment, electronic equipment and storage medium
CN107621968A (en) One kind instruction issues request processing method and control node
CN109068286A (en) A kind of method, medium and the equipment of information parsing
CN107957909B (en) Information processing method, terminal equipment and server
CN110471776A (en) Applied data communications method, apparatus and system

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: 20180123

RJ01 Rejection of invention patent application after publication