CN104360899A - Process management system and management method - Google Patents

Process management system and management method Download PDF

Info

Publication number
CN104360899A
CN104360899A CN201410610547.3A CN201410610547A CN104360899A CN 104360899 A CN104360899 A CN 104360899A CN 201410610547 A CN201410610547 A CN 201410610547A CN 104360899 A CN104360899 A CN 104360899A
Authority
CN
China
Prior art keywords
storage unit
command
line data
order
order line
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.)
Granted
Application number
CN201410610547.3A
Other languages
Chinese (zh)
Other versions
CN104360899B (en
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.)
Tianjin Tianchuang Intelligent Technology Co ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410610547.3A priority Critical patent/CN104360899B/en
Publication of CN104360899A publication Critical patent/CN104360899A/en
Application granted granted Critical
Publication of CN104360899B publication Critical patent/CN104360899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention relates to the technical field of data management, in particular to a process management system and a process management method. The process management system is applied to switch equipment, and comprises an input unit, a first storage unit, a second storage unit, query unit and an execution unit, wherein the query unit is connected with the input unit, the second storage unit and the first storage unit respectively; the execution unit is connected with the input unit and the first storage unit respectively, and is used for reading and executing command line programs and command line data, which are stored in the first storage unit. The system and the method have the advantages that a process only includes the command line programs, and excludes the command line data; the command line programs are stored in the first storage unit; the command line data are stored in the second storage unit; when the command line process is executed, the command line data associated with the command line process are queried and called from the second storage unit through the query unit; the command line programs and the command line data are separately stored, so that the consumption of a system internal storage during the command line running process is reduced, and the system can be used by multiple users at the same time.

Description

A kind of process management system and management method
Technical field
The present invention relates to a kind of technical field of data management, particularly relate to a kind of process management system based on database and management method.
Background technology
Order line is a kind of switch management mode efficiently, usually when order line is created, is initialised in stack space by all command-line datas, and command-line data refers to that user can in the set of all instructions of switch input.
As shown in Figure 1, order line structure comprises order line process and command-line data, and wherein order line process refers to the code of logic function, and its function comprises: the capable data of initialization command are in internal memory; Receive the input of user, and perform the instruction of user's input, and user carries out alternately, but this kind of structure is when running complicated command-line data, committed memory is more.And switch is all provided services on the Internet, after each networking client is connected to switch, switch all wants a newly-built process, when client terminal quantity increases, is easy to just cause switch memory to exhaust, causes system crash.
Summary of the invention
For the deficiencies in the prior art, the invention provides a kind of process management system, be applied to switch device, wherein:
Input block, receives the instruction of user's input, and each described instruction forms one without the order line process of command-line data and independent and be associated with the described command-line data of described order line process;
First storage unit, connects described input block, in order to store described order line process;
Second storage unit, stores described command-line data;
Query unit, connect described second storage unit, the first storage unit respectively, according to the described order line process that current needs are performed, the described command-line data matched with it is inquired about in the second storage unit, and by described command-line data unloading in position corresponding to the order line process needing described in described first storage unit to be performed;
Performance element, connects described first storage unit, is above-mentionedly stored in the described order line process in described first storage unit and the described command-line data that matches with it in order to read and performs.
Preferably: described first storage unit adopts nesting structural embedded control to store described order line process.
Preferably: described second storage unit adopts data structured to store described command-line data.
Preferably: described data structure turns to SQLite database.
A kind of process management method, wherein: comprise the steps:
Step 1, input block receive the instruction of user's input, and each described instruction forms one without the order line process of command-line data and independent and be associated with the described command-line data of described order line process;
Step 2, described order line process is stored to the first storage unit;
Step 3, described command-line data is stored to the second storage unit
Step 4, query unit receive described order line process, in described second storage unit, the described command-line data matched with it is inquired about according to the described order line process that current needs are performed, and by described command-line data unloading in position corresponding to the order line process needing described in described first storage unit to be performed;
Step 5, performance element read described order line process in described first storage unit and described command-line data and perform.
Preferably: the logical organization of described command-line data adopts tree structure mode to store.
Preferably: before the described step 1 of execution, the second storage unit described in initialization.
Compared with prior art, the advantage that the present invention has: only comprise order line process in instruction, do not comprise command-line data, order line process is stored in the first storage unit, command-line data is stored in the second storage unit, when performing instruction, by query unit, call in the second storage unit query the command-line data be associated with order line process.Order line process and command-line data are separated and stores, thus reduce the consumption of Installed System Memory in execution of instructions, can for multiple user simultaneously.
Accompanying drawing explanation
Fig. 1 is the order line structural representation of prior art;
Fig. 2 is the order line structural representation adopted in the present invention;
Fig. 3 is a kind of command-line data storage organization schematic diagram in the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
As shown in Figure 2, a kind of process management system, is applied to switch device, wherein:
Input block, receives the instruction of user's input, and each instruction forms one without the order line process of command-line data and independent and be associated with the command-line data of order line process;
First storage unit, connects input block, to advance journey in order to memory command;
Second storage unit, the capable data of memory command;
Query unit, connect the second storage unit, the first storage unit respectively, according to the order line process that current needs are performed, the command-line data matched with it is inquired about in the second storage unit, and by position corresponding for the order line process that needs in command-line data unloading to the first storage unit to be performed;
Performance element, connects the first storage unit, is above-mentionedly stored in the order line process in the first storage unit and the described command-line data that matches with it in order to read and performs.
In the present invention, order line process is only comprised in instruction, do not comprise command-line data, order line process is stored in the first storage unit, command-line data is stored in the second storage unit, fill order advance journey time, by query unit, in the position that the order line process that the command-line data matched with it in the second storage unit query needing in unloading to the first storage unit is performed is corresponding.Order line process and command-line data are separated and stores, thus reduce the consumption of Installed System Memory in order line operational process, can for multiple user simultaneously.
As further preferred embodiment, the first storage unit adopts nesting structural embedded control to store described order line process.
As further preferred embodiment, the second storage unit adopts data structured to store described command-line data, and data structured adopts database mode to store.
As further preferred embodiment, data structure turns to SqLite database.SqLite database is a kind of light-duty database, takies resource few.
The application provides a kind of process management method simultaneously, wherein: comprise the steps:
Step 1, input block receive the instruction of user's input, and each instruction forms one without the order line process of command-line data and independent and be associated with the command-line data of order line process;
Step 2, order line process is stored to the first storage unit;
Step 3, command-line data is stored to the second storage unit
Step 4, query unit receive order line process, and the order line process be performed according to current needs inquires about the command-line data that matches with it and in the position needing the order line process that is performed corresponding in unloading to the first storage unit in the second storage unit;
Step 5, performance element read order line process in the first storage unit and command-line data and perform.
In said method, order line process and command-line data are separated and stores, fill order advance journey time, in the second storage unit, the command-line data be associated with order line process is inquired about by query unit, and in the position needing the order line process that is performed corresponding in unloading to the first storage unit.Adopt said method, reduce the consumption of Installed System Memory in order line operational process, can for multiple user simultaneously.
As further preferred embodiment, order line process adopts tree structure mode to store.Further, as shown in Figure 3, the logical organization of command-line data adopts tree structure corresponding with order line process to store.
As further preferred embodiment, command-line data storage mode is defined as:
Create table CmdNode
(
CmdID nvarchar (15),--as Primary Key, be made up of command name, order level
CmdName nvarchar (15),--the title of order line
CmdType int,--the type of order
CmdLevel int,--the level of order
CmdMode int,--the pattern of order
CmdDescribe nvarchar (128),--the descriptor of order line
CmdChild1nvarchar (15), deposits the key assignments of subcommand 1
CmdChild2nvarchar (15), deposits the key assignments of subcommand 2
CmdChildn nvarchar (15), deposits the key assignments of subcommand n
)
Wherein, CmdID is the key assignments of tables of data.The order that CmdLevel equals 1 is top-level command, all top-level commands can be obtained by CmdLevel inquiry, all subcommands can be obtained by the key assignments retrieving subcommand after obtaining top-level command, this completes storage and the read work of command-line data.
As further preferred embodiment, before execution step 1, initialization second storage unit.
These are only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection domain is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations instructions of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.

Claims (7)

1. a process management system, is applied to switch device, it is characterized in that, comprising:
Input block, receives the instruction of user's input, and each described instruction forms one without the order line process of command-line data and independent and be associated with the described command-line data of described order line process;
First storage unit, connects described input block, in order to store described order line process;
Second storage unit, stores described command-line data;
Query unit, connect described second storage unit, the first storage unit respectively, the described order line process that order line process is performed according to current needs, the described command-line data matched with it is inquired about in the second storage unit, and by described command-line data unloading in position corresponding to the order line process needing described in described first storage unit to be performed;
Performance element, connects described first storage unit, is above-mentionedly stored in the described order line process in the first storage unit and the described command-line data that matches with it in order to read and performs.
2. process management system according to claim 1, is characterized in that: described first storage unit adopts nesting structural embedded control to store described order line process.
3. process management system according to claim 1, is characterized in that: described second storage unit adopts data structured to store described command-line data.
4. process management system according to claim 3, is characterized in that: described data structure turns to SQLite database.
5. a process management method, is characterized in that: comprise the steps:
Step 1, input block receive the instruction of user's input, and each described instruction forms one without the order line process of command-line data and independent and be associated with the described command-line data of described order line process;
Step 2, described order line process is stored to the first storage unit;
Step 3, described command-line data is stored to the second storage unit
Step 4, query unit receive described order line process, and the described order line process be performed according to current needs is inquired about in position corresponding to the order line process that to need described in the described command-line data unloading to described first storage unit that match with it to be performed in the second storage unit;
Step 5, performance element read order line process in the first storage unit and command-line data and perform.
6. a kind of process management method according to claim 5, is characterized in that: the logical organization of described command-line data adopts tree structure to store.
7. process management method according to claim 5, is characterized in that: before the described step 1 of execution, the second storage unit described in initialization.
CN201410610547.3A 2014-11-03 2014-11-03 A kind of process management system and management method Active CN104360899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410610547.3A CN104360899B (en) 2014-11-03 2014-11-03 A kind of process management system and management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410610547.3A CN104360899B (en) 2014-11-03 2014-11-03 A kind of process management system and management method

Publications (2)

Publication Number Publication Date
CN104360899A true CN104360899A (en) 2015-02-18
CN104360899B CN104360899B (en) 2019-06-07

Family

ID=52528163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410610547.3A Active CN104360899B (en) 2014-11-03 2014-11-03 A kind of process management system and management method

Country Status (1)

Country Link
CN (1) CN104360899B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847044A (en) * 2016-03-21 2016-08-10 上海斐讯数据通信技术有限公司 Command line processing apparatus and method based on JavaScript
CN106201667A (en) * 2016-06-29 2016-12-07 武汉斗鱼网络科技有限公司 A kind of user instruction queue management system and method
CN110134056A (en) * 2019-05-05 2019-08-16 北京龙鼎源科技股份有限公司 Monitoring method and device, storage medium and the electronic device of data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060005173A1 (en) * 2004-06-30 2006-01-05 Coherent Logix Incorporated Execution of hardware description language (HDL) programs
CN101299194A (en) * 2008-06-26 2008-11-05 上海交通大学 Heterogeneous multi-core system thread-level dynamic dispatching method based on configurable processor
CN101546264A (en) * 2009-04-27 2009-09-30 成都市华为赛门铁克科技有限公司 command line processing method, device and communication system
CN102930322A (en) * 2012-09-29 2013-02-13 上海复旦微电子集团股份有限公司 Smart card and method for processing instructions
CN103631648A (en) * 2012-08-20 2014-03-12 华为技术有限公司 Task processing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060005173A1 (en) * 2004-06-30 2006-01-05 Coherent Logix Incorporated Execution of hardware description language (HDL) programs
CN101299194A (en) * 2008-06-26 2008-11-05 上海交通大学 Heterogeneous multi-core system thread-level dynamic dispatching method based on configurable processor
CN101546264A (en) * 2009-04-27 2009-09-30 成都市华为赛门铁克科技有限公司 command line processing method, device and communication system
CN103631648A (en) * 2012-08-20 2014-03-12 华为技术有限公司 Task processing method and system
CN102930322A (en) * 2012-09-29 2013-02-13 上海复旦微电子集团股份有限公司 Smart card and method for processing instructions

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847044A (en) * 2016-03-21 2016-08-10 上海斐讯数据通信技术有限公司 Command line processing apparatus and method based on JavaScript
CN106201667A (en) * 2016-06-29 2016-12-07 武汉斗鱼网络科技有限公司 A kind of user instruction queue management system and method
WO2018000908A1 (en) * 2016-06-29 2018-01-04 武汉斗鱼网络科技有限公司 User instruction queue management system and method
CN106201667B (en) * 2016-06-29 2020-02-04 武汉斗鱼网络科技有限公司 User instruction queue management system and method
CN110134056A (en) * 2019-05-05 2019-08-16 北京龙鼎源科技股份有限公司 Monitoring method and device, storage medium and the electronic device of data

Also Published As

Publication number Publication date
CN104360899B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN104090889B (en) Data processing method and system
US9372765B2 (en) System and method for recovering system status consistently to designed recovering time point in distributed database
US20160283479A1 (en) Method and system for manipulating data
CN104331421A (en) High-efficiency processing method and system for big data
CN104516908A (en) Database access method and device
CN105426467A (en) SQL query method and system for Presto
CN102710763B (en) The method and system of a kind of distributed caching pond, burst and Failure Transfer
CN104123238A (en) Data storage method and device
CN104113576A (en) Method and device for updating client
JP2018526746A (en) Method and apparatus for optimizing database transactions
CN104360899A (en) Process management system and management method
CN103473036A (en) Input method skin push method and system
CN104268298A (en) Method for creating database index and inquiring data
CN109388614A (en) A kind of method, system and the equipment of catalogue file number quota
CN105610899A (en) Text file parallel uploading method and device
CN106874343B (en) Data deletion method and system for time sequence database
CN105573774A (en) Application parameter managing and configuring method
CN103377292B (en) Database result set caching method and device
CN102262562A (en) Task processing method and system
CN104778252A (en) Index storage method and index storage device
CN102841894A (en) Data storage method of file allocation table
CN106101710A (en) A kind of distributed video transcoding method and device
CN102955808A (en) Data acquisition method and distributed file system
CN105446981A (en) Site map generation method, access method and device
CN110109986B (en) Task processing method, system, server and task scheduling system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201211

Address after: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee after: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

Address before: No.20, Lane 4855, Guangfulin Road, Songjiang District, Shanghai, 201616

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240207

Address after: A-2002-5, Xinhua Building, No. 35 Baoding Road, Xiaobailou Street, Heping District, Tianjin, 300041

Patentee after: Tianjin Tianchuang Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee before: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right