CN104360899B - A kind of process management system and management method - Google Patents

A kind of process management system and management method Download PDF

Info

Publication number
CN104360899B
CN104360899B CN201410610547.3A CN201410610547A CN104360899B CN 104360899 B CN104360899 B CN 104360899B CN 201410610547 A CN201410610547 A CN 201410610547A CN 104360899 B CN104360899 B CN 104360899B
Authority
CN
China
Prior art keywords
storage unit
command
order line
data
line data
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.)
Active
Application number
CN201410610547.3A
Other languages
Chinese (zh)
Other versions
CN104360899A (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 present invention relates to a kind of technical field of data management more particularly to a kind of process management system and management methods.Applied to switch device, wherein: including input unit, first storage unit, second storage unit, query unit is separately connected input unit, the second storage unit, the first storage unit, execution unit, it is separately connected input unit, the first storage unit, to read order line program in the first storage unit and command-line data and execute.The present invention has the advantage that: only including order line program in process, it does not include command-line data, order line program is stored in the first storage unit, command-line data is stored in the second storage unit, when executing order line process, by query unit, in the second storage unit query and command-line data associated with order line process is called.Order line program is stored separately with command-line data, to reduce the consumption of Installed System Memory in order line operational process, is used simultaneously for multiple users.

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 more particularly to a kind of process management systems based on database And management method.
Background technique
Order line is a kind of efficient switch management mode, usually when order line is created, by all order lines For data initialization into stack space, command-line data refers to the set of all instructions that user can input in interchanger.
As shown in Figure 1, including order line process and command-line data in order line structure, wherein order line process refers to have The code of logic function, function include: initialization command row data into memory;The input of user is received, and executes user The instruction of input and user interact, but such structure, in the complicated command-line data of operation, committed memory is more. And interchanger all provides network service, and after each networking client is connected to interchanger, interchanger will create a process, When client terminal quantity increases, it is easy to result in switch memory and exhaust, lead to system crash.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of process management system, is applied to switch device, in which:
Input unit, receive user input instruction, each described instruction formed one without command-line data life It enables traveling journey and independence and is associated with the command-line data of the order line process;
First storage unit connects the input unit, to store the order line process;
Second storage unit stores the command-line data;
Query unit is separately connected second storage unit, the first storage unit, according to the institute for currently needing to be performed Order line process is stated, inquires the matched command-line data in the second storage unit, and by the order line number According to being transferred in the corresponding position of order line process for needing to be performed described in first storage unit;
Execution unit connects first storage unit, to read above-mentioned be stored in first storage unit The order line process and the matched command-line data simultaneously execute.
Preferably: first storage unit stores the order line process using nesting structural embedded control.
Preferably: second storage unit stores the command-line data using data structured.
Preferably: the data structure turns to SQLite database.
A kind of process management method, in which: include the following steps:
Step 1, input unit receive the instruction of user's input, and each described instruction forms one without command-line data Order line process and an independence and the command-line data for being associated with the order line process;
Step 2 stores the order line process to the first storage unit;
Step 3 stores the command-line data to the second storage unit
Step 4, query unit receive the order line process, according to the order line process for currently needing to be performed in It inquires the matched command-line data in second storage unit, and the command-line data is transferred to described In the corresponding position of order line process for needing to be performed described in first storage unit;
Step 5, execution unit read the order line process and the command-line data in first storage unit And it executes.
Preferably: the logical construction of the command-line data is stored using tree mode.
Preferably: before executing the step 1, initializing second storage unit.
Compared with prior art, the present invention has the advantage that: only including order line process in instruction, does not include order line number According to order line process is stored in the first storage unit, and command-line data is stored in the second storage unit, when executing instruction, passes through Query unit in the second storage unit query and calls command-line data associated with order line process.By order line process It is stored separately with command-line data, to reduce the consumption of Installed System Memory in execution of instructions, makes simultaneously for multiple users With.
Detailed description of the invention
Fig. 1 is the order line structural schematic diagram of the prior art;
Fig. 2 is the order line structural schematic diagram used in the present invention;
Fig. 3 is a kind of command-line data storage organization schematic diagram in the present invention.
Specific embodiment
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
As shown in Fig. 2, a kind of process management system, is applied to switch device, in which:
Input unit, receives the instruction of user's input, and each instructs the order line to form one without command-line data Process and independence and the command-line data for being associated with order line process;
First storage unit connects input unit, to store command traveling journey;
Second storage unit, store command row data;
Query unit is separately connected the second storage unit, the first storage unit, according to the order line for currently needing to be performed Process inquires matched command-line data in the second storage unit, and command-line data is transferred to the first storage In the corresponding position of order line process for needing to be performed in unit;
Execution unit connects the first storage unit, advances to read the above-mentioned order being stored in the first storage unit Journey and the matched command-line data simultaneously execute.
In the present invention, only includes order line process in instruction, do not include command-line data, order line process is stored in first Storage unit, command-line data are stored in the second storage unit, when executing order line process, by query unit, deposit in second Storage unit inquires matched command-line data and is transferred to the order line process in the first storage unit needed to be performed In corresponding position.Order line process is stored separately with command-line data, to reduce in order line operational process in system The consumption deposited uses simultaneously for multiple users.
As further preferred embodiment, the first storage unit stores the order line process using nesting structural embedded control.
As further preferred embodiment, the second storage unit stores the command-line data using data structured, Data structured is stored using database mode.
As further preferred embodiment, data structure turns to SqLite database.SqLite database is a kind of light The database of type, takes up less resources.
The application provides a kind of process management method simultaneously, in which: includes the following steps:
Step 1, input unit receive the instruction of user's input, and each instructs the life to form one without command-line data Enable traveling journey and an independence and the command-line data for being associated with order line process;
Step 2 stores order line process to the first storage unit;
Step 3 stores command-line data to the second storage unit
Step 4, query unit receive order line process, according to the order line process for currently needing to be performed in the second storage Matched command-line data is inquired in unit and is transferred to the order line process in the first storage unit needed to be performed In corresponding position;
Step 5, the order line process in execution unit the first storage unit of reading and command-line data simultaneously execute.
In the above method, order line process is stored separately with command-line data, when executing order line process, passes through inquiry Unit inquires command-line data associated with order line process in the second storage unit, and is transferred in the first storage unit In the corresponding position of order line process for needing to be performed.Using the above method, Installed System Memory in order line operational process is reduced Consumption, used simultaneously for multiple users.
As further preferred embodiment, order line process is stored using tree mode.Further, such as Fig. 3 Shown, the logical construction of command-line data is stored using tree corresponding with order line process.
As further preferred embodiment, command-line data storage mode is defined as:
Create table CmdNode
(
CmdID nvarchar (15), -- as Primary Key, it is made 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 mode of order
CmdDescribe nvarchar (128), -- the description information of order line
CmdChild1nvarchar (15) stores the key assignments of subcommand 1
CmdChild2nvarchar (15) stores the key assignments of subcommand 2
CmdChildn nvarchar (15) stores the key assignments of subcommand n
)
Wherein, CmdID is the key assignments of tables of data.Order of the CmdLevel equal to 1 is top-level command, can be passed through CmdLevel inquires to obtain all top-level commands, can be owned by the key assignments for retrieving subcommand after obtaining top-level command Subcommand, this completes the storage of command-line data and read works.
As further preferred embodiment, before Yu Zhihang step 1, the second storage unit is initialized.
The above is only preferred embodiments of the present invention, are not intended to limit the implementation manners and the protection scope of the present invention, right For those skilled in the art, it should can appreciate that and all replace with being equal made by description of the invention and diagramatic content It changes and obviously changes obtained scheme, should all be included within the scope of the present invention.

Claims (6)

1. a kind of process management system is applied to switch device characterized by comprising
Input unit, receive user input instruction, each described instruction formed one without command-line data order line Process and independence and the command-line data for being associated with the order line process, the order line process are with logic function Code, the command-line data is the set with all instructions for inputting in interchanger;
First storage unit connects the input unit, to store the order line process;
Second storage unit stores the command-line data;
Query unit, is separately connected second storage unit, the first storage unit, and order line process is held according to current needs The capable order line process, inquires the matched command-line data in the second storage unit, and by the life Row data are enabled to be transferred in the corresponding position of order line process for needing to be performed described in first storage unit;
Execution unit connects first storage unit, to read the above-mentioned order being stored in the first storage unit Traveling journey and the matched command-line data simultaneously execute;
Second storage unit stores the command-line data using data structured.
2. process management system according to claim 1, it is characterised in that: first storage unit uses stacking-type knot Structure stores the order line process.
3. process management system according to claim 1, it is characterised in that: the data structure turns to SQLite data Library.
4. a kind of process management method, characterized by the following steps:
Step 1, input unit receive user input instruction, each described instruction formed one without command-line data life It enables traveling journey and an independence and is associated with the command-line data of the order line process, the order line process is with patrolling The code of function is collected, the command-line data is the set with all instructions for inputting in interchanger;
Step 2 stores the order line process to the first storage unit;
Step 3 stores the command-line data to the second storage unit;
Step 4, query unit receive the order line process, according to the order line process for currently needing to be performed in second The matched command-line data is inquired in storage unit and be transferred to described in first storage unit need by In the corresponding position of order line process of execution;
Step 5, the order line process in execution unit the first storage unit of reading and command-line data simultaneously execute.
5. a kind of process management method according to claim 4, it is characterised in that: the logical construction of the command-line data It is stored using tree.
6. process management method according to claim 4, it is characterised in that: before executing the step 1, initialize institute State the second storage unit.
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 CN104360899A (en) 2015-02-18
CN104360899B true 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)

Families Citing this family (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
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299194A (en) * 2008-06-26 2008-11-05 上海交通大学 Heterogeneous multi-core system thread-level dynamic dispatching method based on configurable processor
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1766544B1 (en) * 2004-06-30 2019-12-04 Coherent Logix Incorporated Execution of hardware description language (hdl) programs
CN101546264B (en) * 2009-04-27 2012-08-15 成都市华为赛门铁克科技有限公司 Command line processing method, device and communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299194A (en) * 2008-06-26 2008-11-05 上海交通大学 Heterogeneous multi-core system thread-level dynamic dispatching method based on configurable processor
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

Also Published As

Publication number Publication date
CN104360899A (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN103795804A (en) Storage resource scheduling method and storage calculation system
CN104331285A (en) Automatic code generation method and system
CN103064717B (en) A kind of apparatus and method of parallel installation of software for cluster system
CN107526645A (en) A kind of communication optimization method and system
US20160283479A1 (en) Method and system for manipulating data
CN104008012B (en) A kind of high-performance MapReduce implementation methods based on dynamic migration of virtual machine
CN105138281B (en) A kind of sharing method and device of physical disk
CN109815283A (en) A kind of heterogeneous data source visual inquiry method
CN107113341A (en) The system of the high-throughput processing of affairs in the Distributed Relation Database Management System divided for data
CN104360899B (en) A kind of process management system and management method
CN104657164B (en) Software upgrading treating method and apparatus
US10489356B1 (en) Truncate and append database operation
CN105095103A (en) Storage device management method and device used for cloud environment
JP2018526746A (en) Method and apparatus for optimizing database transactions
CN109388614A (en) A kind of method, system and the equipment of catalogue file number quota
US9594677B2 (en) Computer system, data management method, and recording medium for storing program
CN103064749B (en) Inter-process communication method
CN103049546B (en) The method and apparatus of a kind of management, access system daily record
CN104915376B (en) A kind of archival compression method of file in cloud storage
CN1331038C (en) Storage controler based on object and dispatching method used thereof
CN105843820B (en) Data migration method and device
US9588707B2 (en) Object storage power consumption optimization
CN104239520B (en) A kind of HDFS data block Placement Strategies based on historical information
CN109063210A (en) Resource object querying method, device, equipment and the storage medium of storage system
CN104486444A (en) Heterogeneous API conversion system for cloud management platforms

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