CN102663547B - Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID - Google Patents
Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID Download PDFInfo
- Publication number
- CN102663547B CN102663547B CN201210085252.XA CN201210085252A CN102663547B CN 102663547 B CN102663547 B CN 102663547B CN 201210085252 A CN201210085252 A CN 201210085252A CN 102663547 B CN102663547 B CN 102663547B
- Authority
- CN
- China
- Prior art keywords
- resource
- model
- storehouse
- real
- temporary pattern
- 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
Links
Abstract
The present invention relates to power dispatching automation field, particularly relate in a kind of power dispatching automation main preparation system full model synchronizing process and keep the indeclinable method of resource ID.The method by setting up temporary pattern storehouse in standby system, and stores next allowable resource ID, all distributes backward from this resource ID, in order to avoid repeat with existing resource ID if each mold sync process can be made need to distribute new resource ID.Simultaneously, before Resources allocation ID, Uri is first used to access real-time model storehouse, obtain existing resource ID, can ensure that the existing Uri repeated can not be reallocated resource ID and cause resource ID to change, prevent the problem that Uri identical in twice mold sync is mapped as different resource ID, ensure the uniqueness of resource ID.
Description
Technical field
the present invention relates to power dispatching automation field, particularly relate in a kind of power dispatching automation main preparation system full model synchronizing process and keep the indeclinable method of resource ID.
Background technology
Electric power scheduling automatization system is operation of power networks control axis, carries and organizes operation of power networks, vital task such as commander accident treatment and recovery etc.Improving the ability that all kinds of accident, disaster and social accident are resisted in dispatching of power netwoks at different levels, ensure that it runs without interruption, is the key that electrical network serves socio-economic development better.For meeting the reliability requirement of dispatch automated system (hereinafter referred to as main system), require the dispatching automation back-up system (hereinafter referred to as standby system) of building complete set, specifying information can see " State Grid Corporation of China's standby tune of ground County Power Grid builds Framework ".In the process for system and main system parallel running, require to accomplish that the full model information can completely of main system repeatably imports in standby system according to Utilities Electric Co., to meet the non-maintaining requirement of standby system model information, avoid the work repeating typing model information in standby system side.
Need the universal resource identifier of each model resource (Uniform Resource Identifier in mold sync process, be called for short " Uri ") be mapped as the resource ID used for internal system, to improve the convenience of the aspect such as resource access and storage, the resource ID and the Uri that map generation have unduplicated characteristic in uniqueness and system, with each model resource object of unique identification.Meanwhile, standby other application of internal system can directly use resource ID to carry out miscellaneous service process, and even in various forms of physical store, (as file, database) records resource ID.Existing disclosed mold sync process, the Uri of each mold sync process model resource object can redistribute a resource ID at random.The mapping relations of identical Uri and resource ID in twice mold sync process can be caused like this to change.After mold sync completes, standby system respectively applies all kinds of physical store (file, database) synchronously need carrying out upgrading record resource ID originally, must cause the workload that standby system is unnecessary in a large number.If do not carry out above-mentioned work, then can cause the operation exception applied, to such an extent as to standby system is unavailable.
Summary of the invention
For the above-mentioned problems in the prior art, the invention discloses one and can keep the indeclinable method of resource ID in main preparation system full model synchronizing process.
The technical solution used in the present invention is as follows:
A kind of power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID, comprises the steps:
(1), in standby system, temporary pattern storehouse and real-time model storehouse is set up, one is equipped with for storing the next allowable resource ID storage unit of this model bank assignable least resource ID next time in two model banies, two model banies connect independently physical store respectively, wherein temporary pattern storehouse is for storing the model information of this mold sync, and real-time model storehouse is for storing model information during standby system cloud gray model.
(2) mold sync is started, first empty the model information in temporary pattern storehouse, again from real-time model library inquiry next allowable resource ID storage unit, and the assignable resource ID of the next one inquired is write the next allowable resource ID storage unit in temporary pattern storehouse.
By recording next allowable resource ID, if this mold sync process can be made need to distribute new resource ID all distribute backward from this resource ID, to ensure that the resource ID before this resource ID can not be reallocated, effectively avoid repetition, ensure the uniqueness of resource ID.
(3), circulation reads main system model resource object, according to request for information by corresponding model information stored in temporary pattern storehouse: read the model resource object that main system provides one by one, by the Uri of this object to resource ID corresponding to real-time model library inquiry; If successful inquiring, then the mapping of this resource object and Uri and resource ID can be write temporary pattern storehouse; If inquire about unsuccessfully, then to the next assignable resource ID of temporary pattern storehouse application, then the mapping of resource object and Uri and this resource ID is write temporary pattern storehouse, need add up and upgrade next allowable resource ID in temporary pattern storehouse simultaneously.
The present invention is before Resources allocation ID, Uri is first used to access real-time model storehouse, obtain existing resource ID, can ensure that the existing Uri repeated can not be reallocated resource ID and cause resource ID to change, prevent the problem that Uri identical in twice mold sync is mapped as different resource ID, also can ensure do not have the most newly assigned resource ID of Uri of corresponding resource ID can not repeat with existing resource ID simultaneously.Meanwhile, when accessing real-time model storehouse Gains resources ID, have employed a batch mode for inquiry, the impact on runnability can not be carried out real-time model library tape.
(4), all model resource objects read after, the model information in temporary pattern storehouse derived and import real-time model storehouse, terminating this mold sync.When importing model information to real-time model storehouse, all replace the original model information in real-time model storehouse, upgrade real-time model storehouse.The model resource object recorded in temporary pattern storehouse is compared with real-time model storehouse, and the resource ID of its correspondence of resource object that Uri repeats is consistent.
Model information described in above-mentioned steps comprises the Uri of model resource object and this resource object and the mapping relations of resource ID in standby system.
The invention solves the problem that the model resource object resource ID when being mapped to resource ID in twice mold sync process with repetition Uri is inconsistent, compared with prior art, respectively being applied in of reading model Information application is needed again not to be loaded into before Uri and resource ID map under effectively avoiding standby system, the problem that cannot normally run, the physical store various in enormous quantities (as a large amount of record resource ID graphic file) reducing record resource ID need change the workload of a time again, other are avoided directly to record the configuration file of resource ID, cause applying the problem that cannot normally run before again not revising.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, specific embodiment of the invention step is described in detail:
A kind of power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID, the prerequisite that the method is implemented be main system by full model file transfer in standby system, first in standby system, temporary pattern storehouse and real-time model storehouse was set up before beginning mold sync, real-time model storehouse is in continuous running status, and temporary pattern storehouse is only mutual with real-time model storehouse in mold sync process.One is equipped with for storing the next allowable resource ID storage unit of this model bank assignable least resource ID next time in two model banies, wherein temporary pattern storehouse is for storing the model information of this mold sync, and real-time model storehouse is for storing model information during standby system cloud gray model.That model information new before mold sync process terminates can not be write direct real-time model storehouse in this object setting up temporary pattern storehouse, in order to avoid the normal operation of the standby system of impact (the standby each business unit of system all provides every business function based on real-time model storehouse), the real-time model Ku Shiyin that also can effectively avoid writing direct writes the system crash unsuccessfully caused.Set up temporary pattern storehouse and also can empty model bank when full model is synchronous.
Then start mold sync process, specifically can be divided into following steps:
S1, full model synchronously start;
S2, empty the model information in temporary pattern storehouse;
S3, from real-time model library inquiry next allowable resource ID storage unit, and the next allowable resource ID storage unit in the next one assignable resource ID write temporary pattern storehouse that will inquire;
The model resource object that S4, reading main system provide;
S5, by the Uri of this object to resource ID corresponding to real-time model library inquiry; If exist, then directly enter step S6; If do not exist, enter step S7;
S6, the mapping of resource object and Uri and resource ID is write temporary pattern storehouse, continue step S9;
S7, to temporary pattern storehouse application next assignable resource ID, continue step S8;
S8, the cumulative next allowable resource ID upgrading temporary pattern storehouse, then enter step S6;
S9, detect all model resource objects and whether read complete, if read complete, then continue step S10; If do not read complete, then return step S4;
S10, by temporary pattern storehouse model information derive;
S11, model information is imported real-time model storehouse, when importing model information to real-time model storehouse, all import, replace the original model information in real-time model storehouse.
S12, this mold sync terminate.
Wherein, described model information comprises the Uri of model resource object and this resource object and the mapping relations of resource ID in standby system.
Claims (3)
1. power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID, it is characterized in that, comprises the steps:
(1), in standby system, temporary pattern storehouse and real-time model storehouse is set up, one is equipped with for storing the next allowable resource ID storage unit of this model bank assignable least resource ID next time in two model banies, two model banies connect independently physical store respectively, wherein temporary pattern storehouse is for storing the model information of this mold sync, and real-time model storehouse is for storing model information during standby system cloud gray model; Real-time model storehouse is in continuous running status, and temporary pattern storehouse is only mutual with real-time model storehouse in mold sync process;
(2), mold sync is started, first empty the model information in temporary pattern storehouse, again from real-time model library inquiry next allowable resource ID storage unit, and the assignable resource ID of the next one inquired is write the next allowable resource ID storage unit in temporary pattern storehouse;
(3), circulation reads main system model resource object, according to request for information by corresponding model information stored in temporary pattern storehouse: read the model resource object that main system provides one by one, by the Uri of this object to resource ID corresponding to real-time model library inquiry; If successful inquiring, then the mapping of this resource object and Uri and resource ID can be write temporary pattern storehouse; If inquire about unsuccessfully, then to the next assignable resource ID of temporary pattern storehouse application, then the mapping of resource object and Uri and this resource ID is write temporary pattern storehouse, need add up and upgrade next allowable resource ID in temporary pattern storehouse simultaneously;
(4), all model resource objects read after, the model information in temporary pattern storehouse derived and import real-time model storehouse, terminating this mold sync.
2. power scheduling main preparation system full model according to claim 1 synchronously keeps the indeclinable method of resource ID, it is characterized in that: described model information comprises the Uri of model resource object and this resource object and the mapping relations of resource ID in standby system.
3. power scheduling main preparation system full model according to claim 1 synchronously keeps the indeclinable method of resource ID, it is characterized in that: in step (4), when importing model information to real-time model storehouse, all replaces the original model information in real-time model storehouse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210085252.XA CN102663547B (en) | 2012-03-28 | 2012-03-28 | Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210085252.XA CN102663547B (en) | 2012-03-28 | 2012-03-28 | Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102663547A CN102663547A (en) | 2012-09-12 |
CN102663547B true CN102663547B (en) | 2015-09-02 |
Family
ID=46773027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210085252.XA Active CN102663547B (en) | 2012-03-28 | 2012-03-28 | Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102663547B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229525A (en) * | 2017-04-27 | 2017-10-03 | 国电南瑞科技股份有限公司 | A kind of power system device model keyword generation method based on Zookeeper |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1477546A (en) * | 2002-08-19 | 2004-02-25 | 万达信息股份有限公司 | Method for duplicating data of identical data table between two data bases |
CN1811759A (en) * | 2005-01-26 | 2006-08-02 | 华为技术有限公司 | Method for building information increment index |
CN1846197A (en) * | 2003-09-25 | 2006-10-11 | 国际商业机器公司 | Method, system and program for data synchronization |
-
2012
- 2012-03-28 CN CN201210085252.XA patent/CN102663547B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1477546A (en) * | 2002-08-19 | 2004-02-25 | 万达信息股份有限公司 | Method for duplicating data of identical data table between two data bases |
CN1846197A (en) * | 2003-09-25 | 2006-10-11 | 国际商业机器公司 | Method, system and program for data synchronization |
CN1811759A (en) * | 2005-01-26 | 2006-08-02 | 华为技术有限公司 | Method for building information increment index |
Also Published As
Publication number | Publication date |
---|---|
CN102663547A (en) | 2012-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103970903B (en) | Large industrial system feedback data real-time processing method and system based on Web | |
CN101937435B (en) | Online synchronized method of distributed real-time database confronting power system | |
CN103744906A (en) | System, method and device for data synchronization | |
CN105635311A (en) | Method for synchronizing resource pool information in cloud management platform | |
CN108848132B (en) | Power distribution scheduling main station system based on cloud | |
CN110489407A (en) | Data filling mining method, apparatus, computer equipment and storage medium | |
CN104252485A (en) | Database management platform | |
CN105808342A (en) | Method used for allocating client requests and judgment apparatus and system | |
CN105608126A (en) | Method and apparatus for establishing secondary indexes for massive databases | |
CN109933557A (en) | A kind of generation method and device of I2C topological diagram | |
CN104317957A (en) | Open platform and system for processing reports and report processing method | |
CN107798120B (en) | Data conversion method and device | |
CN104298761A (en) | Implementation method for master data matching between heterogeneous software systems | |
CN113051050A (en) | Multithreading-based fusion terminal batch access method and system | |
CN109361777A (en) | Synchronous method, synchronization system and the relevant apparatus of distributed type assemblies node state | |
CN107403227A (en) | A kind of equipment O&M Synergistic method, apparatus and system across enterprise | |
CN102724301B (en) | Cloud database system and method and equipment for reading and writing cloud data | |
CN102663547B (en) | Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID | |
CN111209652B (en) | Method and device for constructing time sequence of static equipment model of power system | |
CN103403666B (en) | Distributed storage control method, Apparatus and system | |
CN103441988B (en) | Across GIS platform data migration method | |
CN105488139B (en) | The method of cross-platform storing data migration based on power information acquisition system | |
CN103136343A (en) | Shared resource real-time interaction method | |
CN112749147A (en) | Method and device for merging and migrating data tables in database | |
CN105245624A (en) | Cloud storage file 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |