CN106844030A - A kind of cli order lines processing method and processing device - Google Patents
A kind of cli order lines processing method and processing device Download PDFInfo
- Publication number
- CN106844030A CN106844030A CN201710048897.9A CN201710048897A CN106844030A CN 106844030 A CN106844030 A CN 106844030A CN 201710048897 A CN201710048897 A CN 201710048897A CN 106844030 A CN106844030 A CN 106844030A
- Authority
- CN
- China
- Prior art keywords
- order lines
- cli
- cli order
- encapsulation
- handle
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
Abstract
The present invention discloses a kind of cli order lines processing method, including:Parameter analysis of electrochemical and encapsulation are carried out to multiple cli order lines that multiple users issue simultaneously;The parameter of the multiple cli order lines after to encapsulation is transmitted;Multiple cli order lines after to transmission carry out Parameter analysis of electrochemical, corresponding handle when inquiring about its registration;Cli order lines corresponding to handle are processed.A kind of cli order lines processing unit, cli parsing package modules, for carrying out Parameter analysis of electrochemical and encapsulation to multiple cli order lines that multiple users issue simultaneously are also disclosed;Data transmission module, the parameter for transmitting multiple cli order lines for encapsulating;Cli parses enquiry module, and Parameter analysis of electrochemical is carried out for the multiple cli order lines after to transmission, corresponding handle when inquiring about its registration;Order line handle processing modules, for processing the corresponding multiple cli order lines of handle.The present invention provides a kind of cli order lines processing method and processing device, realizes multiple users while the parallel processing of the multiple cli order lines for issuing.
Description
Technical field
The present invention relates to asynchronous process field, more particularly to a kind of cli order lines processing method and processing device.
Background technology
With the fast development of computer technology, digital information progressively replaces paper media's data, and mass data is therewith
Produce, and mass data has expedited the emergence of the development of cloud computing, big data and mass storage system (MSS), and storage device and storage are applied
Demand also more and more higher, the synchronous serial treatment of cli order lines cannot meet cloud platform and storage device and storage have been applied
Deng demand.
The content of the invention
A kind of weak point that the present invention develops for current needs and prior art, there is provided cli order lines treatment side
Method and its device, by processing multiple cli order lines that multiple users issue simultaneously simultaneously, realize cli order lines
Parallel processing asynchronous framework, recorded using cli order lines login mechanism cli order lines initialization registration phase when preserve
Cli order line id and cli order line handle, be that cli order lines carry out correspondence handle inquiries and process ready work
Make.
To achieve these goals, the present invention uses following technical scheme:
A kind of cli order lines processing method, comprises the following steps:
Parameter analysis of electrochemical and encapsulation are carried out to multiple cli order lines that multiple users issue simultaneously;
Multiple cli order lines after to encapsulation enter line parameter transmission;
Multiple cli order lines after to transmission carry out Parameter analysis of electrochemical, corresponding handle when inquiring about its registration;
Cli order lines corresponding to handle are processed.
Preferably, before the multiple cli order lines issued to multiple users carry out Parameter analysis of electrochemical and encapsulation simultaneously, also wrap
Include:User issues cli order lines;Whether the cli order lines that verification is issued close grammer, if so, then entering line parameter to cli order lines
Parsing and encapsulation, if it is not, then output error message, end treatment.
Preferably, to transmission after multiple cli order lines carry out Parameter analysis of electrochemical, inquire about its registration when corresponding handle,
Including:Parameter analysis of electrochemical is carried out to the cli order lines after transmission, cli order lines id is obtained;Correspondence is inquired about according to cli order lines id
Handle when cli order lines are registered.
Preferably, cli order lines corresponding to handle are processed, including:Cli orders corresponding to handle are advanced
Row treatment;The response for correspondence cli order lines is given after treatment;Response is packaged.
Preferably, to encapsulation after multiple cli order lines enter line parameter transmission, including:Foreground is by the cli orders after encapsulation
Row is transmitted to backstage.
Preferably, to transmission after multiple cli order lines carry out Parameter analysis of electrochemical, inquire about its registration when corresponding handle,
Including:Parameter analysis of electrochemical is carried out to the cli order lines after transmission, cli order lines id is obtained;Correspondence is inquired about according to cli order lines id
Handle when cli order lines are registered.
Preferably, after processing the corresponding cli order lines of handle, also include:Backstage by encapsulation after return
Should transmit to foreground;The response for encapsulating for cli order lines to being given is parsed and is converted to string format;Will
The response for being converted to string format is exported to user.
Present invention also offers a kind of cli order lines processing unit based on a kind of above-mentioned cli order lines processing method,
Including:
Cli parses package module, for carrying out Parameter analysis of electrochemical and encapsulation to multiple cli order lines that multiple users issue simultaneously;
Data transmission module, line parameter transmission is entered for the multiple cli order lines after to encapsulation;
Cli parses enquiry module, and Parameter analysis of electrochemical is carried out for the multiple cli order lines after to transmission, correspondence when inquiring about its registration
Handle;
Order line handle processing modules, for processing the corresponding cli order lines of handle.
Preferably, also include:
Subscriber Interface Module SIM, cli order lines are issued for user;
Correction verification module, for verifying whether the cli order lines for issuing close grammer, if so, then carrying out Parameter analysis of electrochemical to cli order lines
And encapsulation, if it is not, then output error message, end treatment.
Preferably, data transmission module, further includes:
Order line transport module, transmits to backstage the cli order lines after encapsulation for foreground;
Transport module is responded, the response after encapsulation is transmitted to foreground for backstage.
Preferably, also include:Respond parsing modular converter, for be given for cli order lines encapsulate time
Should be parsed and be converted to string format.
Preferably, also include:Control port module, the response for being converted into string format is exported to user.
Beneficial effects of the present invention:
1. the present invention realizes cli order lines by processing multiple cli order lines that multiple users issue simultaneously simultaneously
Parallel processing asynchronous framework;
2. the present invention records the cli orders preserved during cli order lines initialization registration phase using cli order lines login mechanism
Row id and cli order line handle, is that cli order lines carry out the correspondence handle ready work of inquiry, is also provided good
Newly-increased cli order lines autgmentability, be that follow-up code maintenance offers convenience.
Brief description of the drawings
Fig. 1 is a kind of one of schematic flow sheet of cli order lines processing method of the invention.
Fig. 2 is a kind of one of structural representation of cli order lines processing unit of the invention.
Fig. 3 is the two of the schematic flow sheet of a kind of cli order lines processing method of the invention.
Fig. 4 is the two of the structural representation of a kind of cli order lines processing unit of the invention.
Specific embodiment
In order to make it easy to understand, the part noun to occurring in the present invention makees explanation explained below:
cli:Refer to the interface that executable instruction can be keyed under user's prompt, it does not support mouse generally, user passes through key
Disk is input into order line, after computer receives order line, is performed.
request:Request is to parse the data knot that data agreement is carried out between package module and dissection process module
Structure, mainly includes cli order lines type, the description of cli order lines id, cli command-line option etc., and request structures can be complete
Description cli order line each side information.
handle:Cli order line asynchronous process functions, for realizing parallel processing multiple user while the multiple for issuing
Cli order lines.
With reference to the accompanying drawings and examples, specific embodiment of the invention is described in further detail:
Embodiment one:
As shown in figure 1, a kind of cli order lines processing method of the invention, comprises the following steps:
Step S101, user issues cli order lines.
Whether step S102, the cli order lines that verification is issued close grammer, if so, then carrying out Parameter analysis of electrochemical to cli order lines
And encapsulation, if it is not, then output error message, end treatment.
Step S103, Parameter analysis of electrochemical and encapsulation are carried out to cli order lines.
Step S104, line parameter transmission is entered to the cli order lines after encapsulation, and the cli order lines after encapsulation are transmitted on foreground
To backstage.
Step S105, Parameter analysis of electrochemical is carried out to the cli order lines after transmission, obtains cli order lines id.
Step S106, corresponding handle when being registered according to cli order lines id inquiry correspondence cli order lines.
Step S107, cli order lines corresponding to handle are processed.
Step S108, provides the response to cli order lines after treatment.
Step S109, the response to being given is packaged.
Step S110, backstage is transmitted to foreground by the response after encapsulation.
Step S111, the response for encapsulating for cli order lines to being given is parsed and is converted to character string lattice
Formula.
Step S112, the response for being converted into string format is exported to user.
Used as a kind of enforceable mode, the mode being packaged to cli order lines in the present embodiment is request knots
Structure is encapsulated.
Embodiment two:
As shown in Fig. 2 a kind of cli order lines processing unit of the invention, including Subscriber Interface Module SIM 201, correction verification module 202,
Order line transport module 204, cli parsing enquiry module 205 in cli parsing package modules 203, data transmission module, order
Response transport module 207, response parsing modular converter 208 and control in row handle processing modules 206, data transmission module
Port module 209, Subscriber Interface Module SIM 201 is sequentially connected correction verification module 202, cli parsing package module 203, data transfer mould
Order line transport module 204, cli parsing enquiry module 205 in block, order line handle processing modules 206, data transfer mould
Response transport module 207, response parsing modular converter 208 and control port module 209 in block.
Subscriber Interface Module SIM 201, cli order lines are issued for user;Correction verification module 202, for verifying the cli for issuing lives
Whether order row closes grammer, if so, Parameter analysis of electrochemical and encapsulation then are carried out to cli order lines, if it is not, then output error message, terminates
Treatment;Cli parses package module 203, for carrying out Parameter analysis of electrochemical and envelope to multiple cli order lines that multiple users issue simultaneously
Dress;Order line transport module 204 in data transmission module, line parameter transmission is entered for the multiple cli order lines after to encapsulation;
Cli parses enquiry module 205, and Parameter analysis of electrochemical is carried out for the multiple cli order lines after to transmission, inquires about corresponding during its registration
handle;Order line handle processing modules 206, for processing the corresponding cli order lines of handle;Data transfer mould
Response transport module 207 in block, transmits to foreground the response after encapsulation for backstage;Parsing modular converter 208 is responded, is used
Parsed and be converted to string format in the response for encapsulating for cli order lines to being given;Control port module
209, the response for being converted into string format is exported to user.
Embodiment three:
As shown in figure 3, another cli order lines processing method of the invention, comprises the following steps:
Multiple cli order lines that multiple users issue simultaneously are carried out Parameter analysis of electrochemical and encapsulation by step S301;
Step S302, to encapsulation after multiple cli order lines enter line parameter transmission;
Step S303, to transmission after multiple cli order lines carry out Parameter analysis of electrochemical, inquire about its registration when corresponding handle;
Step S304, cli order lines corresponding to handle are processed.
Example IV:
As shown in figure 4, another cli order lines processing unit of the invention, including cli parsing package modules 401, data transfer
Module 402, cli parses enquiry module 403 and order line handle processing modules 404, and cli parsing package modules 401 connect successively
Connect data transmission module 402, cli parsing enquiry module 403 and order line handle processing modules 404.
Cli parses package module 401, for carrying out Parameter analysis of electrochemical to multiple cli order lines that multiple users issue simultaneously
And encapsulation;Data transmission module 402, line parameter transmission is entered for the multiple cli order lines after to encapsulation;Cli parsing inquiry moulds
Block 403, Parameter analysis of electrochemical is carried out for the multiple cli order lines after to transmission, corresponding handle when inquiring about its registration;Order line
Handle processing modules 404, for processing the corresponding cli order lines of handle.
Illustrated above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of cli order lines processing method, it is characterised in that comprise the following steps:
Parameter analysis of electrochemical and encapsulation are carried out to multiple cli order lines that multiple users issue simultaneously;
Multiple cli order lines after to encapsulation enter line parameter transmission;
Multiple cli order lines after to transmission carry out Parameter analysis of electrochemical, corresponding handle when inquiring about its registration;
Cli order lines corresponding to handle are processed.
2. a kind of cli order lines processing method according to claim 1, it is characterised in that to multiple users with present
Before multiple cli order lines of hair carry out Parameter analysis of electrochemical and encapsulation, also include:
User issues cli order lines;
Whether the cli order lines that verification is issued close grammer, if so, Parameter analysis of electrochemical and encapsulation then are carried out to cli order lines, if it is not,
Then output error message, end treatment.
3. a kind of cli order lines processing method according to claim 1, it is characterised in that the multiple after described pair of encapsulation
Cli order lines enter line parameter transmission, including:Foreground is transmitted to backstage by the cli order lines after encapsulation.
4. a kind of cli order lines processing method according to claim 1, it is characterised in that the multiple after described pair of transmission
Cli order lines carry out Parameter analysis of electrochemical, corresponding handle when inquiring about its registration, including:
Parameter analysis of electrochemical is carried out to the cli order lines after transmission, cli order lines id is obtained;
Handle when being registered according to cli order lines id inquiry correspondence cli order lines.
5. a kind of cli order lines processing method according to claim 1, it is characterised in that described corresponding to handle
Cli order lines are processed, including:
Cli order lines corresponding to handle are processed;
The response for correspondence cli order lines is given after treatment;
Response is packaged.
6. a kind of cli order lines processing method according to claim 1, it is characterised in that to the corresponding cli of handle
After order line is processed, also include:
Backstage is transmitted to foreground by the response after encapsulation;
The response for encapsulating for cli order lines to being given is parsed and is converted to string format;
The response for being converted into string format is exported to user.
7. a kind of a kind of cli order lines processing unit of any described cli order lines processing methods of claim 1-6 is based on,
It is characterised in that it includes:
Cli parses package module, for carrying out Parameter analysis of electrochemical and encapsulation to multiple cli order lines that multiple users issue simultaneously;
Data transmission module, line parameter transmission is entered for the multiple cli order lines after to encapsulation;
Cli parses enquiry module, and Parameter analysis of electrochemical is carried out for the multiple cli order lines after to transmission, correspondence when inquiring about its registration
Handle;
Order line handle processing modules, for processing the corresponding cli order lines of handle.
8. a kind of cli order lines processing unit according to claim 7, it is characterised in that also include:
Subscriber Interface Module SIM, cli order lines are issued for user;
Correction verification module, for verifying whether the cli order lines for issuing close grammer, if so, then carrying out Parameter analysis of electrochemical to cli order lines
And encapsulation, if it is not, then output error message, end treatment.
9. a kind of cli order lines processing unit according to claim 7, it is characterised in that data transmission module, further
Including:
Order line transport module, transmits to backstage the cli order lines after encapsulation for foreground;
Transport module is responded, the response after encapsulation is transmitted to foreground for backstage.
10. a kind of cli order lines processing unit according to claim 7, it is characterised in that also include:
Parsing modular converter is responded, for the response for encapsulating for cli order lines for providing to be parsed and is converted to
String format;
Preferably, also include:Control port module, the response for being converted into string format is exported to user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710048897.9A CN106844030A (en) | 2017-01-23 | 2017-01-23 | A kind of cli order lines processing method and processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710048897.9A CN106844030A (en) | 2017-01-23 | 2017-01-23 | A kind of cli order lines processing method and processing device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106844030A true CN106844030A (en) | 2017-06-13 |
Family
ID=59120121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710048897.9A Pending CN106844030A (en) | 2017-01-23 | 2017-01-23 | A kind of cli order lines processing method and processing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106844030A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402480A (en) * | 2011-10-12 | 2012-04-04 | 吴华中 | Tool for debugging (testing) command line of circuit board firmware |
CN103164200A (en) * | 2011-12-15 | 2013-06-19 | 华迪计算机集团有限公司 | Application system development control method |
CN104598202A (en) * | 2014-12-26 | 2015-05-06 | 曙光信息产业股份有限公司 | Command line management device and method |
-
2017
- 2017-01-23 CN CN201710048897.9A patent/CN106844030A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402480A (en) * | 2011-10-12 | 2012-04-04 | 吴华中 | Tool for debugging (testing) command line of circuit board firmware |
CN103164200A (en) * | 2011-12-15 | 2013-06-19 | 华迪计算机集团有限公司 | Application system development control method |
CN104598202A (en) * | 2014-12-26 | 2015-05-06 | 曙光信息产业股份有限公司 | Command line management device and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106411907A (en) | Data transmission method and system | |
TW527794B (en) | Data sending and receiving structure among application programs, data sending and receiving method among application programs and computer readable recording medium for recording program executing sending and receiving method among application programs | |
CN112039824B (en) | Communication method, system, device and computer readable storage medium | |
EP3208974A1 (en) | Power line carrier communication terminal control device, system and method | |
EP2512163B1 (en) | Method, system for defining message in machine-to-machine platform, and machine-to-machine platform | |
CN106972974B (en) | A kind of the Web network management systems and its terminal authentication method of electric power LTE wireless terminals | |
CN110012002A (en) | Message parsing method, device and server, computer readable storage medium | |
CN101894059B (en) | A kind of detection method of running status and system | |
CN107392768A (en) | A kind of futures trading system and method based on FPGA | |
CN111954100B (en) | Interface upgrading method and device and optical network unit management method and device | |
CN103595712B (en) | A kind of Web authentication method, apparatus and system | |
CN105302564B (en) | Network OA service control and implementation method | |
CN109495135A (en) | A kind of debugging system and method based on power line carrier communication | |
CN108649691A (en) | A kind of distribution terminal plug and play method suitable for APP dynamic loads | |
WO2015103848A1 (en) | Method, system and terminal for realizing network access via wifi | |
CN105335316A (en) | Motor assembling line serial port server based on cloud computation | |
CN107168161A (en) | EtherCAT master-salve station communication systems based on ROS systems | |
CN105190530A (en) | Transmitting hardware-rendered graphical data | |
CN106569789B (en) | Task submission method and device | |
CN107332857A (en) | A kind of network data transmission method, device, system and storage medium | |
CN108039041A (en) | A kind of high speed 4G concentrators communication module, power information acquisition system and method | |
CN107040613A (en) | A kind of message transmitting method and system | |
CN106713411A (en) | Communication apparatus and method based on Ethernet virtual serial port technology and LTE wireless network | |
CN107800552A (en) | A kind of data interactive method and device | |
CN104468703A (en) | Communication method and system for distributed small power source and upper computer |
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: 20170613 |