CN111813973A - License conversion method and system - Google Patents

License conversion method and system Download PDF

Info

Publication number
CN111813973A
CN111813973A CN202010418906.0A CN202010418906A CN111813973A CN 111813973 A CN111813973 A CN 111813973A CN 202010418906 A CN202010418906 A CN 202010418906A CN 111813973 A CN111813973 A CN 111813973A
Authority
CN
China
Prior art keywords
conversion
server
license
message queue
servers
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.)
Pending
Application number
CN202010418906.0A
Other languages
Chinese (zh)
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.)
Guanqun Information Technology Nanjing Co ltd
Original Assignee
Guanqun Information Technology Nanjing 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 Guanqun Information Technology Nanjing Co ltd filed Critical Guanqun Information Technology Nanjing Co ltd
Priority to CN202010418906.0A priority Critical patent/CN111813973A/en
Publication of CN111813973A publication Critical patent/CN111813973A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a license conversion method and a license conversion system. The method comprises the steps of receiving the license data in the database format to be converted, and storing the license data in the database format into a database of a storage server; acquiring an IP address of a conversion server, and establishing connection with the conversion server based on the IP address; randomly distributing the license data to a plurality of conversion servers through a RabbitMq message queue; processing the message queue by adopting multi-thread operation; and loading the C + + dynamic library file of the server through the static code block to call the C + + file to perform data conversion on the message queue one by one, and generating and storing the certificate ofd and the picture file corresponding to the message queue. The invention carries out data conversion on the certificates through a plurality of conversion servers, adopts multithreading operation processing on the message queues, and adopts C + + files to carry out data conversion on the message queues one by one, thereby greatly improving the conversion efficiency.

Description

License conversion method and system
Technical Field
The invention belongs to the technical field of license conversion, and particularly relates to a license conversion method and system.
Background
Nowadays, various certificates not only need to be real but also need to be electronic files on the network, so that departments such as a public security hall and the like can conveniently inquire related information. The symptom conversion is mostly realized by third-party technology conversion, and the conversion efficiency is low in the case of many data, so that improvement is needed.
Disclosure of Invention
The technical problems solved by the invention are as follows: a license conversion method and system are provided.
The technical scheme is as follows: in order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a license conversion method, including:
receiving the license data in the database format to be converted, and storing the license data in the database format into a database of a storage server;
acquiring an IP address of a conversion server, and establishing connection with the conversion server based on the IP address;
randomly distributing the license data to a plurality of conversion servers through a RabbitMq message queue;
processing the message queue by adopting multi-thread operation;
and loading the C + + dynamic library file of the server through the static code block to call the C + + file to perform data conversion on the message queue one by one, and generating and storing the certificate ofd and the picture file corresponding to the message queue.
Further, Tomcat cluster deployment is performed on each conversion server, so that one conversion server is a leading conversion server, and a master-slave relationship among the servers is established.
In a second aspect, the invention provides a license conversion system, which comprises a storage server and a plurality of conversion servers;
the storage server is used for receiving the certificate data in the database format to be converted and storing the certificate data in the database format, the storage server is connected with the conversion server by acquiring an IP address of the conversion server and randomly distributes the certificate data to a plurality of conversion servers through a RabbitMq message queue, the conversion servers perform multithreading operation processing on the received message queue, and load a server C + + dynamic library file through a static code block to call the C + + file to perform data conversion on the message queue one by one, generate and store the certificate ofd and the picture file corresponding to the message queue.
Further, Tomcat cluster deployment is performed on each conversion server, so that one conversion server is a leading conversion server, and a master-slave relationship among the servers is established.
Further, the certificate ofd and the picture file are stored in the conversion server and/or in the file server based on the IP address.
Has the advantages that: compared with the prior art, the invention has the following advantages:
the invention carries out data conversion on the certificates through a plurality of conversion servers, adopts multithreading operation processing on the message queues, and adopts C + + files to carry out data conversion on the message queues one by one, thereby greatly improving the conversion efficiency.
Drawings
FIG. 1 is a schematic flow chart of a license conversion method;
Detailed Description
The present invention will be further illustrated by the following specific examples, which are carried out on the premise of the technical scheme of the present invention, and it should be understood that these examples are only for illustrating the present invention and are not intended to limit the scope of the present invention.
As shown in fig. 1, a license conversion method includes:
and receiving the license data in the database format to be converted, and storing the license data in the database format into the database of the storage server. The license data is transmitted by a third party, such as a public security hall.
And acquiring the IP address of the conversion server, and establishing connection with the conversion server based on the IP address.
And randomly distributing the license data to a plurality of conversion servers through a RabbitMq message queue. For example, if there are 5 conversion servers and there are 100 ten thousand pieces of data in the message queue, 100 ten thousand pieces of data are randomly distributed to the 5 conversion servers over time.
And processing the message queue by adopting multi-thread operation. The multi-thread parallel operation can accelerate the operation efficiency of data.
And loading the C + + dynamic library file of the server through the static code block to call the C + + file to perform data conversion on the message queue one by one, and generating and storing the certificate ofd and the picture file corresponding to the message queue. The C + + file is the bottom layer conversion, and the bottom layer conversion efficiency is directly improved. And after the conversion is completed, closing the thread and enabling the RabbitMq queue to be in waiting. The ofd file refers to a file with a suffix name ofd, and is referred to by access calls for the converted license ofd and the picture file.
And performing Tomcat cluster deployment on each conversion server to enable one conversion server to be a leading conversion server and establish a master-slave relationship among the servers. Specifically, the Tomcat cluster deployment is to establish a master-slave relationship by modifying a Tomcat related configuration file, and if one of the conversion servers collapses, data can be freely switched to enter other conversion servers without affecting the operation of the data. And if the current master server collapses, determining a new master conversion server according to the established master-slave relationship.
Based on the above embodiments, those skilled in the art can understand that the present invention also provides a license conversion system, which includes a storage server and several conversion servers.
The storage server is used for receiving the license data in the database format to be converted and storing the license data in the database format into the database. The license data is transmitted by a third party, such as a public security hall. The storage server establishes connection with the conversion server by acquiring the IP address of the conversion server, randomly distributes the license data to a plurality of conversion servers through a RabbitMq message queue, and the conversion servers adopt multi-thread operation processing on the received message queue, so that the multi-thread parallel operation can accelerate the data operation efficiency. And loading the C + + dynamic library file of the server through the static code block to call the C + + file to perform data conversion on the message queue one by one, and generating and storing the certificate ofd and the picture file corresponding to the message queue. The C + + file is the bottom layer conversion, and the bottom layer conversion efficiency is directly improved. And after the conversion is finished, the conversion server closes the thread and enables the RabbitMq queue to be in waiting. The ofd file refers to a file with a suffix name ofd, and is referred to by access calls for the converted license ofd and the picture file.
And performing Tomcat cluster deployment on each conversion server to enable one conversion server to be a leading conversion server and establish a master-slave relationship among the servers. Specifically, the Tomcat cluster deployment is to establish a master-slave relationship by modifying a Tomcat related configuration file, and if one of the conversion servers collapses, data can be freely switched to enter other conversion servers without affecting the operation of the data. And if the current master server collapses, determining a new master conversion server according to the established master-slave relationship.
The generated certificate ofd and the picture file may be stored directly in the conversion server or may be stored in a file server having an IP address based on the IP address.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (5)

1. A license conversion method is characterized by comprising the following steps:
receiving the license data in the database format to be converted, and storing the license data in the database format into a database of a storage server;
acquiring an IP address of a conversion server, and establishing connection with the conversion server based on the IP address;
randomly distributing the license data to a plurality of conversion servers through a RabbitMq message queue;
processing the message queue by adopting multi-thread operation;
and loading the C + + dynamic library file of the server through the static code block to call the C + + file to perform data conversion on the message queue one by one, and generating and storing the certificate ofd and the picture file corresponding to the message queue.
2. The license translation method according to claim 1, wherein Tomcat cluster deployment is performed on each translation server, so that one of the translation servers is a master translation server, and a master-slave relationship between the servers is established.
3. A license conversion system is characterized by comprising a storage server and a plurality of conversion servers;
the storage server is used for receiving the certificate data in the database format to be converted and storing the certificate data in the database format, the storage server is connected with the conversion server by acquiring an IP address of the conversion server and randomly distributes the certificate data to a plurality of conversion servers through a RabbitMq message queue, the conversion servers perform multithreading operation processing on the received message queue, and load a server C + + dynamic library file through a static code block to call the C + + file to perform data conversion on the message queue one by one, generate and store the certificate ofd and the picture file corresponding to the message queue.
4. The license translation system of claim 1, wherein Tomcat cluster deployment is performed on each translation server, such that one of the translation servers is a master translation server, and a master-slave relationship between the servers is established.
5. The license conversion system of claim 1, wherein the license ofd and the picture file are stored in a conversion server and/or in a file server based on an IP address.
CN202010418906.0A 2020-05-18 2020-05-18 License conversion method and system Pending CN111813973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010418906.0A CN111813973A (en) 2020-05-18 2020-05-18 License conversion method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010418906.0A CN111813973A (en) 2020-05-18 2020-05-18 License conversion method and system

Publications (1)

Publication Number Publication Date
CN111813973A true CN111813973A (en) 2020-10-23

Family

ID=72848306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010418906.0A Pending CN111813973A (en) 2020-05-18 2020-05-18 License conversion method and system

Country Status (1)

Country Link
CN (1) CN111813973A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115422126A (en) * 2022-11-04 2022-12-02 浪潮软件股份有限公司 Method, system and device for rapidly transferring certificate OFD format file to picture

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307543A1 (en) * 2010-06-14 2011-12-15 Richard Allen Megginson Servicing database operations using a messaging server
CN106598930A (en) * 2016-12-29 2017-04-26 南威软件股份有限公司 Electronic certificate processing method based on layout file
CN106844453A (en) * 2016-12-20 2017-06-13 江苏瀚远科技股份有限公司 A kind of electronic document format conversion method
CN109471710A (en) * 2018-10-25 2019-03-15 网易(杭州)网络有限公司 Processing method, device, processor, terminal and the server of task requests
CN109491797A (en) * 2018-11-26 2019-03-19 深圳市斯博科技有限公司 Date storage method, system and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307543A1 (en) * 2010-06-14 2011-12-15 Richard Allen Megginson Servicing database operations using a messaging server
CN106844453A (en) * 2016-12-20 2017-06-13 江苏瀚远科技股份有限公司 A kind of electronic document format conversion method
CN106598930A (en) * 2016-12-29 2017-04-26 南威软件股份有限公司 Electronic certificate processing method based on layout file
CN109471710A (en) * 2018-10-25 2019-03-15 网易(杭州)网络有限公司 Processing method, device, processor, terminal and the server of task requests
CN109491797A (en) * 2018-11-26 2019-03-19 深圳市斯博科技有限公司 Date storage method, system and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115422126A (en) * 2022-11-04 2022-12-02 浪潮软件股份有限公司 Method, system and device for rapidly transferring certificate OFD format file to picture

Similar Documents

Publication Publication Date Title
CN109542865B (en) Method, device, system and medium for synchronizing configuration files of distributed cluster system
CN112114979B (en) Remote procedure call method and device
US8345832B2 (en) Enhanced voicemail usage through automatic voicemail preview
WO2020220535A1 (en) Data storage method, and related device
CN106648903B (en) The method and apparatus for calling distributed file system
US20200285508A1 (en) Method and Apparatus for Assigning Computing Task
US9106724B1 (en) Communication aggregation
CN110071965B (en) Data center management system based on cloud platform
WO2019047568A1 (en) User call processing method, apparatus, computer device, and storage medium
CN104144202B (en) Access method, system and the device of Hadoop distributed file system
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
CN109600240A (en) Group Communications method and device
CN111813973A (en) License conversion method and system
CN109167819A (en) Data synchronous system, method, apparatus and storage medium
CN105871960A (en) Method for calling data sharing, device and apparatus
CN111813529B (en) Data processing method, device, electronic equipment and storage medium
CN111131741B (en) Multi-party video call method, electronic equipment, device and computer readable storage medium
CN112054919A (en) Method, device, storage medium and system for generating ID (identity) of container cluster under stateless condition
US20170126883A1 (en) Method and system for logging and reporting call detail information
US6823524B1 (en) System and method for managing the distribution of events in a data processing system
CN104869172B (en) The data interactive method and data interaction system more applied under heterogeneous system
CN114443306A (en) Resource processing method and device, electronic equipment and computer readable storage medium
CN111506644B (en) Application data processing method and device and electronic equipment
CN112561264A (en) Service method, service system and storage medium for enterprise content
CN101419584A (en) Electronic secretary system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination