CN101452401A - Operation method for mapping configuration file to internal memory and system thereof - Google Patents
Operation method for mapping configuration file to internal memory and system thereof Download PDFInfo
- Publication number
- CN101452401A CN101452401A CNA2008102181966A CN200810218196A CN101452401A CN 101452401 A CN101452401 A CN 101452401A CN A2008102181966 A CNA2008102181966 A CN A2008102181966A CN 200810218196 A CN200810218196 A CN 200810218196A CN 101452401 A CN101452401 A CN 101452401A
- Authority
- CN
- China
- Prior art keywords
- data structure
- configuration file
- structure object
- application system
- information
- 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
Links
Images
Abstract
The invention discloses an operation method and a system for mapping a configuration file to a memory. The method comprises: matching a configuration file with a corresponding data structure object by an application system; writing information in the configuration file to the corresponding data structure object and operating the data structure object; and writing the operated data structure object information to the corresponding configuration file by the application system when logging out the application system. In addition, the system comprises a configuration file module, a data structure object module and a control module. The operation method realizes one-to-one correspondence between the configuration file and the data structure object, and ensures that the configuration file is completely independent of the operation state of the application system; thus, the operation method avoids frequent operation of the configuration file, so as to reduce the operation risk of the application system and further improve the operation performance of the application system.
Description
Technical field
The present invention relates to application system configuration file is carried out method of operating, relate in particular to a kind of method of operating and system thereof that configuration file is mapped to internal memory.
Background technology
At present, application system generally all can be used some parameters or the related data of preserving in the configuration file.For example when using the QQ chat tool, an option that can land is automatically arranged, why can it land automatically? because application system is written to user profile in the configuration file, application system can read this configuration file automatically when the user opens master routine then, thereby lands automatically according to information wherein.
But in the prior art, what it carried out configuration file when application system is moved is real-time operation, configuration file was relevant with the state of application system when therefore application system was moved, if configuration file is artificially deleted then and can be brought risk to the operation of system when application system is moved, especially to behind the configuration file frequent operation, the performance of application system will be reduced greatly.This shows that prior art awaits further developing.
Summary of the invention
The present invention provides a kind of method of operating and system thereof that configuration file is mapped to internal memory for solving above-mentioned defective of the prior art, configuration file and data structure object are handled, risk when moving to reduce application system, avoid frequent operation, improve the runnability of application system configuration file.
For solving the problems of the technologies described above, the present invention program comprises:
A kind of configuration file is mapped to the method for operating of internal memory, may further comprise the steps:
A, application system are that configuration file mates data structure object one to one;
B, the information in the configuration file is written on the corresponding data structure object, and this data structure object is operated;
C, when described application system withdraws from, this data structure object information after then described application system will be operated is written in the corresponding configuration file.
Described method of operating, wherein, the data structure object in the described steps A is kept in the internal memory of described application system.
Described method of operating, wherein, described step B is further comprising the steps of:
B1, when described application system starts, described application system is written to the information in the configuration file on the corresponding data structure object.
Described method of operating, wherein, described step B1 is further comprising the steps of:
B11, described application system be the data structure object initialization, and the default information of described system is written on this data structure object;
B12, described application system judge whether configuration file exists, and if yes, then described application system writes the information in the configuration file again and covers on the corresponding data structure object.
Described method of operating, wherein, described step B is further comprising the steps of:
B2, when the operation of described application system, described application system is operated this data structure object.
Described method of operating, wherein, application system described in the described step B2 comprises newly-increased operation, retouching operation and deletion action to the operation of this data structure object.
Described method of operating, wherein, described newly-increased being operating as increases a new data structure object and writes newly-added information.
Described method of operating, wherein, described retouching operation is for to be written to amended information on this data structure object of current operation.
Described method of operating, wherein, described deletion action is this data structure object of the current operation of deletion.
Described method of operating, wherein, described step C is further comprising the steps of:
C1, described application system judge whether configuration file exists, and if yes, then change step C2; If, then do not change step C3;
C2, described application system are deleted the information in the former configuration file, and the data structure object information after will operating is written in the corresponding configuration file;
C3, the newly-built configuration file of described application system, and the data structure object information after will operating is written in the newly-built configuration file.
A kind of system that realizes configuration file is mapped to the internal memory operation method, comprise profile module, wherein, described system also comprises data structure object module and control matching module, described control module is connected with described profile module, described data structure object module communication respectively, and described profile module is used for the storage configuration file; Described data structure object module is used for the storage data structure objects; Described control module is used to the corresponding data structure object of configuration file coupling and controls configuration file and the corresponding data structure objects carries out exchanges data, this data structure object is operated
The invention provides a kind of method of operating and system thereof that configuration file is mapped to internal memory, configuration file and data structure object are mapped one by one, make the running status of configuration file and application system irrelevant fully, avoided frequent operation to configuration file, thereby reduced the risk when application system is moved, further improved the runnability of application system.
Description of drawings
Fig. 1 among the present invention is mapped to configuration file the schematic flow sheet that internal memory is operated;
Fig. 2 is the system architecture synoptic diagram that configuration file is mapped to internal memory among the present invention.
Embodiment
Below with reference to accompanying drawing, comparatively detailed explanation is carried out in each preferred embodiment among the present invention.
Provided by the inventionly a kind of configuration file is mapped to the method for operating and the system thereof of internal memory, has avoided the frequent operation to configuration file, the risk when having reduced the application system operation has improved the runnability of application system.Method of the present invention mainly may further comprise the steps:
A, application system are mated data structure object one to one for configuration file in internal memory;
B, when described application system starts, described application system is the data structure object initialization, and the default information of described system is written on this data structure object; Described then application system starts the monitoring tools system and judges whether configuration file exists, and if yes, the information in the configuration file that then described application system will be mated in advance writes and cover on the corresponding data structure objects again; Be that described application system is written to the information in the configuration file on the corresponding data structure object;
C, when the operation of described application system, described application system is operated this data structure object, and described application system comprises newly-increased operation, retouching operation and deletion action to the operation of this data structure object, and described newly-increased being operating as increases a new data structure object and write newly-added information; Described retouching operation is for to be written to amended information on this data structure object of current operation; Described deletion action is this data structure object of the current operation of deletion;
D, when described application system withdraws from, described application system judges whether configuration file exists, and if yes, then changes step e; If, then do not change step f;
E, described application system are deleted the information in the former configuration file, and the data structure object information after will operating is written in the corresponding configuration file;
F, the newly-built configuration file of described application system, and the information of data structure object is written in the newly-built configuration file after will operating.By above description as can be known, the present invention makes the running status of configuration file and application system irrelevant fully, has avoided the frequent operation to configuration file, thereby has reduced the risk when application system is moved.
In order further to set forth the present invention, now log on as example automatically and describe with QQ.As shown in Figure 1, it mainly may further comprise the steps:
Step 101: the application system operation, application system is mated data structure object one to one for QQ user's configuration file in internal memory;
Step 102: described application system judges whether QQ user's configuration file exists, if not, then enter step 103; If yes, then enter step 104;
Step 103: change step 105 over to behind the described application system initialization data structure objects;
Step 104: described application system writes the information in QQ user's the configuration file in the corresponding data structure object;
Step 105: described application system is operated promptly newly-increased operation, retouching operation and deletion action to this data structure object;
Step 106: described application system obtains the data structure object after this data structure object operation, and promptly described application system is according to the data structure object auto login user QQ after operating;
Step 107: when described application system withdraws from when the user need withdraw from the QQ login,
Step 108: described application system judges whether the configuration file corresponding with data structure object exists, and if yes, then enters step 110; If, then do not enter step 109;
Step 109: the newly-built configuration file of described application system, and the data structure object after will operating is written in the newly-built configuration file in order to using during login automatically QQ user next time, enters step 111 then;
Step 110: described application system is deleted the information in the former configuration file, and the data structure object after will operating is written in the configuration file of correspondence use when logining automatically next time in order to QQ user;
Step 111: described application system withdraws from and finishes said procedure.By above-mentioned flow process as can be known, the present invention is mapped configuration file and data structure object one by one and carries out respective handling, thereby the risk when having reduced the application system operation has improved the runnability of application system.
In order better to realize configuration file is mapped to the method for operating of internal memory, the present invention has also disposed the system that configuration file is mapped to internal memory, as shown in Figure 2, this system comprises profile module 203, data structure object module 202 and control matching module 201, described control module 201 communicates to connect with described profile module 203, described data structure object module 202 respectively, and described profile module 203 is used for the storage configuration file; Described data structure object module 202 is used for the storage data structure objects; Described control module 201 is used to the corresponding data structure object of configuration file coupling and controls configuration file and the corresponding data structure objects carries out exchanges data, this data structure object is operated.By last description as can be known, the control module of increase is carried out science control to each module, has improved the runnability of application system greatly, the risk when having reduced the application system operation.
In sum, a kind of method of operating and system thereof that configuration file is mapped to internal memory provided by the invention, configuration file and data structure object are mapped one by one, make the running status of configuration file and application system irrelevant fully, thereby reduced the risk when application system is moved; And application system only to the operation of data structure objects, has been avoided the frequent operation to configuration file, has further improved the runnability of application system, has satisfied user's request, is that prior art is progressive greatly.
Should be understood that; above-mentioned description at preferred embodiment is comparatively detailed; can not therefore think restriction to scope of patent protection of the present invention; those of ordinary skill in the art is under enlightenment of the present invention; do not breaking away under the scope situation that claim of the present invention protects; can also make various deformation such as replacement, simple combination, these all fall within protection scope of the present invention, and the scope of asking for protection of the present invention should be as the criterion with claims.
Claims (10)
1, a kind of configuration file is mapped to the method for operating of internal memory, may further comprise the steps:
A, application system are that configuration file mates data structure object one to one;
B, the information in the configuration file is written on the corresponding data structure object, and this data structure object is operated;
C, when described application system withdraws from, this data structure object information after then described application system will be operated is written in the corresponding configuration file.
2, method of operating according to claim 1 is characterized in that, the data structure object in the described steps A is kept in the internal memory of described application system.
3, method of operating according to claim 2 is characterized in that, described step B is further comprising the steps of:
B1, when described application system starts, described application system is written to the information in the configuration file on the corresponding data structure object.
4, method of operating according to claim 3 is characterized in that, described step B1 is further comprising the steps of:
B11, described application system be the data structure object initialization, and the default information of described system is written on this data structure object;
B12, described application system judge whether configuration file exists, and if yes, then described application system writes the information in the configuration file again and covers on the corresponding data structure object.
5, method of operating according to claim 2 is characterized in that, described step B is further comprising the steps of:
B2, when the operation of described application system, described application system is operated this data structure object, its operation comprises newly-increased operation, retouching operation and deletion action.
6, method of operating according to claim 5 is characterized in that, described newly-increased being operating as increases a new data structure object and write newly-added information.
7, method of operating according to claim 5 is characterized in that, described retouching operation is for to be written to amended information on this data structure object of current operation.
8, method of operating according to claim 5 is characterized in that, described deletion action is this data structure object of the current operation of deletion.
9, method of operating according to claim 2 is characterized in that, described step C is further comprising the steps of:
C1, described application system judge whether configuration file exists, and if yes, then change step C2; If, then do not change step C3;
C2, described application system are deleted the information in the former configuration file, and the data structure object information after will operating is written in the corresponding configuration file;
C3, the newly-built configuration file of described application system, and the data structure object information after will operating is written in the newly-built configuration file.
10, a kind of system that realizes configuration file is mapped to the internal memory operation method, comprise profile module, it is characterized in that, described system also comprises data structure object module and control module, described control module is connected with described profile module, described data structure object module communication respectively, and described profile module is used for the storage configuration file; Described data structure object module is used for the storage data structure objects; Described control module is used to the corresponding data structure object of configuration file coupling and controls configuration file and the corresponding data structure objects carries out exchanges data, this data structure object is operated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102181966A CN101452401B (en) | 2008-12-10 | 2008-12-10 | Operation method for mapping configuration file to internal memory and system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102181966A CN101452401B (en) | 2008-12-10 | 2008-12-10 | Operation method for mapping configuration file to internal memory and system thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101452401A true CN101452401A (en) | 2009-06-10 |
CN101452401B CN101452401B (en) | 2011-06-22 |
Family
ID=40734648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102181966A Expired - Fee Related CN101452401B (en) | 2008-12-10 | 2008-12-10 | Operation method for mapping configuration file to internal memory and system thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101452401B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729443A (en) * | 2013-12-30 | 2014-04-16 | 北京首钢自动化信息技术有限公司 | Configurable type memory management method |
CN104360853A (en) * | 2014-11-03 | 2015-02-18 | 中国农业银行股份有限公司 | Method and device for configuration information management and information system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100352250C (en) * | 2002-12-18 | 2007-11-28 | 中国移动通信集团公司 | Method for accessing internet for wireless mobile communication apparatus |
CN100476729C (en) * | 2006-01-10 | 2009-04-08 | 英业达股份有限公司 | Method and system configuring data optimal sequential processing on auxiliary equipment of computer |
CN101183979B (en) * | 2007-11-27 | 2010-08-18 | 上海华为技术有限公司 | Method and device of configuration backup |
-
2008
- 2008-12-10 CN CN2008102181966A patent/CN101452401B/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729443A (en) * | 2013-12-30 | 2014-04-16 | 北京首钢自动化信息技术有限公司 | Configurable type memory management method |
CN104360853A (en) * | 2014-11-03 | 2015-02-18 | 中国农业银行股份有限公司 | Method and device for configuration information management and information system |
Also Published As
Publication number | Publication date |
---|---|
CN101452401B (en) | 2011-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4530059B2 (en) | Disk array device, firmware exchange method, and firmware exchange program | |
US20140181373A1 (en) | Persistent Storage Device with NVRAM for Staging Writes | |
CN103761159B (en) | Method and system for processing incremental snapshot | |
CN102346740B (en) | A kind of file synchronisation method, electronic equipment and synchronization system | |
US7631156B2 (en) | Storage system issuing optimum I/O command to allocation-on-use enabled volume and controlling method therefor | |
US9612948B2 (en) | Reads and writes between a contiguous data block and noncontiguous sets of logical address blocks in a persistent storage device | |
US20140189211A1 (en) | Remapping Blocks in a Storage Device | |
DE102019116546A1 (en) | METHOD FOR FAST BOAT READING | |
US20120005428A1 (en) | Computer system, storage area allocation method, and management computer | |
US20080320062A1 (en) | Method of transferring file system, file system transference program, and file system transference device | |
CN105487473B (en) | Plc data journal module with backup functionality | |
CN101452401B (en) | Operation method for mapping configuration file to internal memory and system thereof | |
CN102262562A (en) | Task processing method and system | |
US20120173837A1 (en) | Memory system | |
CN103064749B (en) | Inter-process communication method | |
US20080320212A1 (en) | Control device and control method of nonvolatile memory and storage device | |
CN107291507A (en) | The upgrade method and electronic equipment of a kind of virtual machine virtual hard disk | |
CN106254245A (en) | A kind of method and device managing list item | |
CN106844234B (en) | Data writing method and device and double-active system | |
CN101222358B (en) | Configuration emigration method and device | |
CN104965862A (en) | Main memory database cluster synchronization method and main memory database host | |
CN109634875A (en) | Order data method for caching and processing, device, computer equipment and storage medium | |
CN114706526A (en) | Automatic capacity expansion method, system and equipment for cloud native storage data volume | |
CN104883381A (en) | Data access method and system for distributed storage | |
CN107016054A (en) | A kind of method and device of log information storage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110622 Termination date: 20161210 |
|
CF01 | Termination of patent right due to non-payment of annual fee |