Method and system for storing synchronous data in distributive network equipment

2011 
The invention provides a method and a system for storing synchronous data in distributive network equipment. The storing method comprises the following steps of: (1) respectively building distributive databases of unified storage engine interfaces on a primary main control card, a standby main control card and a service line card; (2) storing the synchronous data by the distributive database of the main control card through invoking the unified storage engine interfaces after the unified storage interfaces provided for an application program module receive the synchronous data; (3) sending the synchronous data to the standby main control bard and the service line card after the distributive database of the primary main control card completes the storage of the synchronous data; and (4) storing the synchronous data through invoking the unified storage engine interfaces after the distributive database of the standby main control card or the service line card receives the synchronous data of the primary main control card. In the method provided by the invention, the invoking of the unified storage engine interfaces by the distributive databases on the main control cards and the line card in the distributive network equipment is realized, the unified storage of heterogeneous data is realized, the implementation details are shielded, the code redundancy is reduced, and the transportability of the codes is improved.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []