CLI (command-line interface) command line processing method and device
A processing method and processing device technology, applied in the field of asynchronous processing, can solve the problem that synchronous serial processing cannot meet the needs of cloud platform storage devices and storage applications, and achieve the effects of good scalability and convenient code maintenance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] like figure 1 As shown, a cli command line processing method of the present invention comprises the following steps:
[0043] Step S101, the user issues a cli command line.
[0044] Step S102, checking whether the issued cli command line is grammatical, if yes, performing parameter parsing and encapsulation on the cli command line, if not, outputting an error message, and ending the process.
[0045] Step S103, parsing and encapsulating the parameters of the cli command line.
[0046] In step S104, parameter transmission is performed on the encapsulated cli command line, and the foreground transmits the encapsulated cli command line to the background.
[0047] Step S105, analyzing the parameters of the transmitted cli command line to obtain the cli command line id.
[0048] Step S106, querying the handle corresponding to the registration of the corresponding cli command line according to the cli command line id.
[0049] Step S107, processing the cli command line co...
Embodiment 2
[0057] like figure 2 As shown, a cli command line processing device of the present invention includes a user interface module 201, a verification module 202, a cli analysis and encapsulation module 203, a command line transmission module 204 in a data transmission module, a cli analysis query module 205, a command line The handle processing module 206, the response transmission module 207 in the data transmission module, the response analysis conversion module 208, and the control port module 209, and the user interface module 201 are sequentially connected to the verification module 202, the cli analysis and packaging module 203, and the command line in the data transmission module The transmission module 204 , the cli analysis query module 205 , the command line handle processing module 206 , the response transmission module 207 in the data transmission module, the response analysis conversion module 208 and the control port module 209 .
[0058]The user interface module 20...
Embodiment 3
[0060] like image 3 As shown, another cli command line processing method of the present invention includes the following steps:
[0061] Step S301, performing parameter parsing and encapsulation on multiple cli command lines issued by multiple users at the same time;
[0062] Step S302, performing parameter transmission on multiple encapsulated cli command lines;
[0063] Step S303, analyzing the parameters of the transmitted multiple cli command lines, and querying their corresponding handles during registration;
[0064] Step S304, processing the cli command line corresponding to the handle.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


