CN116974984A - Private cloud product document processing method and device and computer equipment - Google Patents

Private cloud product document processing method and device and computer equipment Download PDF

Info

Publication number
CN116974984A
CN116974984A CN202310564114.8A CN202310564114A CN116974984A CN 116974984 A CN116974984 A CN 116974984A CN 202310564114 A CN202310564114 A CN 202310564114A CN 116974984 A CN116974984 A CN 116974984A
Authority
CN
China
Prior art keywords
product
data
document
target
private cloud
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
CN202310564114.8A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202310564114.8A priority Critical patent/CN116974984A/en
Publication of CN116974984A publication Critical patent/CN116974984A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems

Landscapes

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

Abstract

The application relates to a processing method and device of private cloud product documents and computer equipment. The method comprises the steps of responding to an instruction for exporting at least one private cloud product document, and obtaining target document data of each product document; creating a target compression packet, and creating a main data stream pipeline of the target compression packet and a target storage address; creating a compressed stream object of each product document based on document data of each product document, respectively generating a product compressed package of each product document, and transmitting the compressed stream of the product document to a corresponding product compressed package; respectively establishing a sub-data flow pipeline of each product compression packet and a target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline; and transmitting the compressed stream of the target compressed packet to a target storage address through a main data stream pipeline, wherein the private cloud product application side performs the importing operation of the product document by downloading the target compressed packet from the target storage address. The method improves the updating efficiency of the product document.

Description

Private cloud product document processing method and device and computer equipment
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for processing a private cloud product document.
Background
With the development of cloud computing technology, private cloud computing has been rapidly developed. A private cloud is a proprietary cloud computing system within which a cloud computing service provider builds for a particular organization.
In a private cloud scenario, the web of the cloud service provider may provide a product document of the private cloud product. In the process of product iteration, the update or new situation of the product and the product document can occur. When a product document needs to be updated, the traditional way is by manual processing. Taking a product document of a newly added product as an example, the method comprises the following steps: the product introduction information is recorded into the official network, a document is manually copied into the official network according to the current product information of the official network, the product introduction information is sent to a client, and the client is recorded into an official network system of the field environment again according to the document.
The method is complex in operation and low in updating efficiency of the product document.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, a computer readable storage medium, and a computer program product for processing a private cloud product document that are easy to operate and efficient.
In a first aspect, the application provides a method for processing private cloud product documents. The method comprises the following steps:
responding to an export instruction of at least one private cloud product document, and acquiring target document data of each product document;
creating a target compressed packet, and building a main data flow pipeline of the target compressed packet and a target storage address;
creating a compressed stream object of each product document based on document data of each product document, respectively generating a product compressed package of each product document, and transmitting the compressed stream of the product document to a corresponding product compressed package;
respectively establishing a sub-data flow pipeline of each product compression packet and each target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline;
and transmitting the compressed stream of the target compressed packet to the target storage address through the main data stream pipeline, wherein a private cloud product application party performs import operation of a product document by downloading the target compressed packet from the target storage address.
In a second aspect, the application provides a method for processing private cloud product documents. The method comprises the following steps:
Downloading a target compressed packet from the target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider;
determining a target private cloud product;
decompressing the product compression package of the target private cloud product in the target compression package to obtain document data of the target private cloud product;
and importing the document data of the target private cloud product into a database of the target private cloud product.
In a third aspect, the application further provides a processing device of the private cloud product document. The device comprises:
the data acquisition module is used for responding to an instruction for exporting at least one private cloud product document to acquire target document data of each product document;
the main data stream processing module is used for creating a target compressed packet and creating a main data stream pipeline of the target compressed packet and a target storage address;
the sub-data stream processing module is used for creating a compressed stream object of each product document based on document data of each product document, respectively generating a product compressed packet of each product document, and transmitting the compressed stream of each product document to a corresponding product compressed packet;
The transmission module is used for respectively establishing a sub-data flow pipeline of each product compression packet and each target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline; and transmitting the compressed stream of the target compressed packet to the target storage address through the main data stream pipeline, wherein a private cloud product application party performs import operation of a product document by downloading the target compressed packet from the target storage address.
In a fourth aspect, the application further provides a processing device of the private cloud product document. The device comprises:
the downloading module is used for downloading the target compressed packet from the target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider;
the target acquisition module is used for determining a target private cloud product;
the decompression module is used for decompressing the product compression package of the target private cloud product in the target compression package to obtain document data of the target private cloud product;
and the importing module is used for importing the document data of the target private cloud product into the database of the target private cloud product.
In a fifth aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
responding to an export instruction of at least one private cloud product document, and acquiring target document data of each product document;
creating a target compressed packet, and building a main data flow pipeline of the target compressed packet and a target storage address;
creating a compressed stream object of each product document based on document data of each product document, respectively generating a product compressed package of each product document, and transmitting the compressed stream of the product document to a corresponding product compressed package;
respectively establishing a sub-data flow pipeline of each product compression packet and each target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline;
and transmitting the compressed stream of the target compressed packet to the target storage address through the main data stream pipeline, wherein a private cloud product application party performs import operation of a product document by downloading the target compressed packet from the target storage address.
In a sixth aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
downloading a target compressed packet from the target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider;
determining a target private cloud product;
decompressing the product compression package of the target private cloud product in the target compression package to obtain document data of the target private cloud product;
and importing the document data of the target private cloud product into a database of the target private cloud product. In a seventh aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
responding to an export instruction of at least one private cloud product document, and acquiring target document data of each product document;
creating a target compressed packet, and building a main data flow pipeline of the target compressed packet and a target storage address;
Creating a compressed stream object of each product document based on document data of each product document, respectively generating a product compressed package of each product document, and transmitting the compressed stream of the product document to a corresponding product compressed package;
respectively establishing a sub-data flow pipeline of each product compression packet and each target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline;
and transmitting the compressed stream of the target compressed packet to the target storage address through the main data stream pipeline, wherein a private cloud product application party performs import operation of a product document by downloading the target compressed packet from the target storage address.
In an eighth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
downloading a target compressed packet from the target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider;
determining a target private cloud product;
Decompressing the product compression package of the target private cloud product in the target compression package to obtain document data of the target private cloud product;
and importing the document data of the target private cloud product into a database of the target private cloud product.
In a ninth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
responding to an export instruction of at least one private cloud product document, and acquiring target document data of each product document;
creating a target compressed packet, and building a main data flow pipeline of the target compressed packet and a target storage address;
creating a compressed stream object of each product document based on document data of each product document, respectively generating a product compressed package of each product document, and transmitting the compressed stream of the product document to a corresponding product compressed package;
respectively establishing a sub-data flow pipeline of each product compression packet and each target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline;
And transmitting the compressed stream of the target compressed packet to the target storage address through the main data stream pipeline, wherein a private cloud product application party performs import operation of a product document by downloading the target compressed packet from the target storage address.
In a tenth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
downloading a target compressed packet from the target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider;
determining a target private cloud product;
decompressing the product compression package of the target private cloud product in the target compression package to obtain document data of the target private cloud product;
and importing the document data of the target private cloud product into a database of the target private cloud product.
According to the processing method, the processing device, the computer equipment, the storage medium and the computer program product of the private cloud product documents, on one hand, document data of each product document are obtained through responding to an instruction for exporting at least one private cloud product document, a target compression packet, a product compression packet of the document data of the product document, a sub-data flow pipeline from the product compression packet to the target compression packet and a main data flow pipeline from the target compression packet to a target storage address are created, so that for each product compression packet, compressed flows of the product document are transmitted to the target compression packet through independent data flow pipelines, compressed flows of a plurality of product documents can be summarized into the target compression packet, and therefore batch export of the plurality of private cloud product compression packets is achieved. According to the method, manual input is not needed, and the updating efficiency of the product document is improved.
On the other hand, a target compression packet derived from a private cloud product service side is obtained from a target storage address, the target compression packet comprises a plurality of private cloud product compression packets, an importing operation is carried out according to the target compression packet, and a corresponding document is imported into a product database, so that updating of the product document in the private cloud product application side is realized. According to the method, manual input is not needed, and the updating efficiency of the product document is improved. Moreover, the target compressed package is stored in the middle service platform, and the package can be sent out to different private cloud product servers for multiple times, so that the condition that the data package is lost in manual transmission is prevented, and the transmission safety is improved.
Drawings
FIG. 1 is an application environment diagram of a method of processing private cloud product documents in one embodiment;
FIG. 2 is a flow diagram of a method of processing private cloud product documents in one embodiment;
FIG. 3 is a schematic diagram of a compressed stream data flow in one embodiment;
FIG. 4 is a schematic diagram of steps for obtaining target product data for a product document and target interface data for each product document in response to export instructions for at least one private cloud product document in one embodiment;
FIG. 5 is a schematic diagram of a step of integrating product data and interface data according to a preset processing rule to obtain document data of each product document in one embodiment;
FIG. 6 is a diagram of creating a compressed stream object for each product document based on document data for each product document, respectively generating a product compression package for each product document, in one embodiment;
FIG. 7 is a schematic data flow diagram of a compressed stream of product documents derived in one embodiment;
FIG. 8 is a flow chart of a method of processing a private cloud product document in another embodiment;
FIG. 9 is a schematic diagram of an import interface in one embodiment;
FIG. 10 is a schematic diagram of an import interface in another embodiment;
FIG. 11 is a schematic diagram of an introduction process in one embodiment;
FIG. 12 is a flow diagram of a method of processing private cloud product documents in one embodiment;
FIG. 13 is a schematic diagram of a processing device of a private cloud product document in one embodiment;
FIG. 14 is a schematic diagram of a processing device for private cloud product documentation in another embodiment;
fig. 15 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Cloud technology (Cloud technology) is based on the general terms of network technology, information technology, integration technology, management platform technology, application technology and the like applied by Cloud computing business models, and can form a resource pool, so that the Cloud computing business model is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
Cloud computing (clouding) is a computing model that distributes computing tasks across a large pool of computers, enabling various application systems to acquire computing power, storage space, and information services as needed. The network that provides the resources is referred to as the "cloud". Resources in the cloud are infinitely expandable in the sense of users, and can be acquired at any time, used as needed, expanded at any time and paid for use as needed.
As a basic capability provider of cloud computing, a cloud computing resource pool (cloud platform for short, generally referred to as IaaS (Infrastructure as a Service, infrastructure as a service) platform) is established, in which multiple types of virtual resources are deployed for external clients to select for use.
According to the logic function division, a PaaS (Platform as a Service ) layer can be deployed on an IaaS (Infrastructure as a Service ) layer, and a SaaS (Software as a Service, software as a service) layer can be deployed above the PaaS layer, or the SaaS can be directly deployed on the IaaS. PaaS is a platform on which software runs, such as a database, web container, etc. SaaS is a wide variety of business software such as web portals, sms mass senders, etc. Generally, saaS and PaaS are upper layers relative to IaaS.
The processing method of the private cloud product document provided by the embodiment of the application can be applied to an application environment shown in fig. 1. In the application environment, as shown in fig. 1, a cloud service provider server 101 is connected to a storage server 102 through a network, and the storage server 102 is connected to a private cloud application server 103 through a network. The cloud service provider server 101 performs compression processing on at least one private cloud product document process in response to the export instruction, and transmits the compressed data stream to the storage server 102 for storage. The private cloud application server 103 obtains at least one private cloud product document from the storage server 102 in response to the import instruction, and imports it into a database of the corresponding private cloud product.
By adopting the application environment, when the private cloud product document is updated, manual input is not needed, and the updating efficiency and accuracy are improved.
The application environment may further include a first operation terminal 104 connected to the cloud service provider server 101, where interaction may be achieved between the first operation terminal and the first operation terminal, and an import instruction for at least one private cloud product document is sent to the private cloud application server 103 through the first operation terminal. The application environment may further include a second operation terminal 105 connected to the private cloud application server 103, where interaction may be achieved between the two, and an import instruction for at least one private cloud product document is sent to the private cloud application server 103 through the second operation terminal.
Further, the cloud service provider server 101 synchronously transmits the compressed stream to the storage server in the compression process, so that the efficiency of data export is improved. And the exported target compressed packets are stored in a storage server, so that the packets can be sent out to different private cloud application parties for multiple times, and the loss of manual transmission of the data packets is prevented.
Further, the cloud service provider server 101 creates a target compression packet, creates a main data stream pipeline of the target compression packet and a target storage address, creates a compression stream object of each product document based on document data of each product document, generates a product compression packet of each product document, transmits a compression stream of each product document to a corresponding product compression packet, creates sub data stream pipelines of each product compression packet and the target compression packet, and transmits a compression stream of each product document to the target compression packet through the corresponding sub data stream pipeline. And respectively compressing each product document to generate a product compression packet corresponding to each product document, and storing the compression flow of each product document, so that for each product compression packet, the compression flow of the product document is transmitted to a target compression packet through an independent data flow pipeline, the compression flow of a plurality of product documents can be summarized into the target compression packet, and the batch export of a plurality of private cloud product documents can be realized.
The first terminal and the second terminal may be, but not limited to, various desktop computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be intelligent vehicle-mounted devices. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The cloud service provider server 101 and the private cloud application server 103 may be independent physical servers, may be a server cluster or a distributed system formed by a plurality of physical servers, and may also be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligence platforms, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein. .
In one embodiment, as shown in fig. 2, a method for processing a product document of a private cloud is provided, and the method is applied to a cloud service provider server in fig. 1 for illustration, and includes the following steps:
Step 202, in response to an instruction for exporting at least one private cloud product document, obtaining target document data of each product document.
The private cloud is a proprietary cloud computing system private cloud service built inside of the cloud service provider for a particular organization. The private cloud has the characteristics of safety, stable SLA, independent controllability and strong customization. The private cloud may mainly provide IaaS (Infrastructure as a Service ), paaS (Platform as a Service, platform as a service), and operational capabilities. The cloud service provider can provide an operation and maintenance platform, the private cloud application can directly provide private cloud products of the cloud service provider, and the cloud service provider can customize the operation and maintenance platform which is unique and closely related to the service according to the service characteristics of the cloud service provider and provides the private cloud products for clients.
To better provide private cloud services, cloud service providers typically provide product documentation of private cloud products. Wherein the content of the introduction document and the usage document may be collated into a product document. And after the product document is formed by the input of operation and maintenance personnel, the product document is synchronized to a private cloud product application party.
The private cloud product document is stored at a designated location of the cloud service provider server. One way is by monitoring information of the private cloud product document at the specified location. The method can adopt a real-time monitoring mode or a periodic monitoring mode. When the product document update is monitored, an export instruction of the product document is automatically triggered. Specifically, when a product document update is monitored, an export instruction for the product document is automatically triggered.
The update of the product document includes both the content update of the product document and the new addition of the product document. Wherein, whether the product document is updated can be judged according to the update time of the product document. For example, when the monitoring period occurs at the update time of the product document, the product document may be determined to be an update document of the monitoring period. Wherein, the update of the product document can be determined when the update operation of the product document at the specified position is detected in real time.
Alternatively, the export instructions may be obtained based on export operations in response to export operations performed manually by the operator on the updated product document from the update record. Specifically, after updating the product document, the operation and maintenance personnel of each private cloud product generate an update record. An operator can synchronize the product documents regularly to the private cloud application side of the corresponding product. Specifically, the system provides a export interface, when an operator triggers the update operation of the private cloud product document through the export interface, the operator can select to export all or part of the private cloud product document according to the name of the product document loaded and updated by the update record.
The document data of the product document comprises product data and interface data of the private cloud product. The product data may include product identification, product name, product status, and metadata. The interface data may include product identifications, document names, and document interface content corresponding to the documents. The document interface content comprises interface elements and layout parameters of the interface elements. The interface element may be multimedia content including, but not limited to, text, pictures, audio, video, and the like.
The product document can be preprocessed to obtain target document data meeting the synchronization requirement. The preprocessing may include personalized information identification processing, picture download processing, and structure processing of product document data.
In step 204, a target compressed packet is created, and a main data stream pipe of the target compressed packet and the target storage address is created.
Wherein the target storage address is a preconfigured storage address for storing the exported private cloud product document.
The target compression package is for storing a compressed file of at least one private cloud product document. Specifically, a data compression stream object adopting a preset compression algorithm is created, a target compression packet is generated, and a main data stream pipeline of the target compression packet and a target storage address is established. The compressed data of the target compressed packet is transmitted to the target storage address through the main data stream pipeline.
In this embodiment, the compression algorithm is preset as a data stream compression algorithm. The data stream compression algorithm has the advantages that the data stream directly starts to be transmitted forwards in the compression process, is a continuous process, is transmitted while being packed, and does not need to wait for the compression to be completed before starting to be transmitted, so that the export efficiency can be improved. The data stream compression algorithm may employ a deflate compression algorithm. Creating a zip data compression stream object adopting a DEFLATE algorithm, generating a target compression packet, and establishing a connection pipeline with a target storage address.
And 206, creating a compressed stream object of each product document based on the target document data of each product document, respectively generating a product compressed package of each product document, and transmitting the compressed stream of the product document to the corresponding product compressed package.
Specifically, each product document is compressed by adopting a preset compression algorithm, so that a product compression packet corresponding to each product document is generated, and the product compression packet is used for storing the compression flow of each product document. In this embodiment, the preset compression algorithm is a data stream compression algorithm, for example, a deflate compression algorithm. For the target document data of each product document, creating a zip data compression stream object adopting a DEFLATE algorithm, and generating a product compression package. For example, five private cloud product documents are exported once, and a zip data compression stream object which adopts a DEFLATE algorithm is created for each private cloud product document to generate product compression packages of the five private cloud product documents, and the product compression packages are used for storing compression data streams of the corresponding private cloud product documents, so that a compression stream of each product document can be formed.
In this embodiment, for each product document, a corresponding product compression packet is created, and by adopting a streaming compression manner, the data export efficiency can be improved.
Step 208, sub-data flow pipelines of each product compression packet and the target compression packet are respectively established, and the compressed flow of the product document is transmitted to the target compression packet through the corresponding sub-data flow pipeline.
Specifically, a sub-data flow pipeline of each product compression packet and a sub-data flow pipeline of the target compression packet are respectively established, and the sub-data flow pipeline is used for realizing data transmission from the compressed flow of the product compression packet to the target compression packet, so that for each product compression packet, the compressed flow of the product document is transmitted to the target compression packet through an independent data flow pipeline, and the compressed flows of a plurality of product documents can be summarized into the target compression packet, thereby realizing batch export of a plurality of private cloud product compression packets.
In one embodiment, as shown in fig. 3, since a batch export of a plurality of private cloud product documents is supported, the export operation needs to be able to process each product document in a loop, create a compressed stream object for document data of each product document, obtain a product compressed package for storing a compressed data stream of the product document, and create a sub-data stream pipeline for transmitting the product compressed package to a target compressed package, so that there are compressed streams of a plurality of product documents in parallel. The compressed stream of each product document flows from the product compressed packet to the target compressed packet, forming a pipeline transport process.
Considering that compression generally occupies more resources, in order to avoid the influence of compression on the main process, in this embodiment, the invoking sub-process transmits the compressed stream of the product document to the target compressed packet through the corresponding sub-data stream pipeline. Each sub-data flow pipeline can correspond to one sub-process, long links are established in the sub-process, continuous work of the transmission pipeline is facilitated, communication with the main process is continued in a heartbeat connection mode, and smoothness of the main process is guaranteed.
And step 210, transmitting the compressed stream of the target compressed packet to a target storage address through a main data stream pipeline, wherein the private cloud product application performs the importing operation of the product document by downloading the target compressed packet from the target storage address.
Specifically, the compressed stream of the target compressed packet is transmitted to the target storage address through the main data stream pipeline, so that the transmission is realized while the compression is performed.
The target storage address is used as an intermediate party, an application party of the private cloud product can acquire a target compression packet from the target storage address, and the synchronization of the product document is realized in an application party system.
After receiving the compressed stream of the target compressed packet, the target storage address creates a compressed object based on the binary stream, creates an html a tag, downloads the zip compressed packet generated by the blob, and completes transmission.
The target storage address can be pre-configured with a mapping relation table, and the mapping relation of private cloud products and product application side information is recorded. When the update of the target compression packet of the target storage address is detected, the information of the private cloud product is obtained by reading the target mapping table, and then the mapping relation is read, so that the information of the product application party is obtained. And sending an update prompt or a target compression packet to the product application party according to the product application party information. By the method, the product application side can timely acquire the updated dynamic or target compression package of the product document. The product application information may be product application contact information, including but not limited to a mailbox, a social application account, and the like.
For private cloud product application parties, a target compressed package of target storage address update can be obtained through a periodic detection mode. After the private cloud product application side acquires the target compression package, the private cloud product application side performs importing operation according to the target compression package, and imports the corresponding document into the product database to update the product document on the private cloud product application side.
According to the private cloud product document processing method, document data of each product document are obtained through responding to the export instruction of at least one private cloud product document, a target compression packet, a product compression packet of the document data of the product document, a sub-data flow pipeline from the product compression packet to the target compression packet and a main data flow pipeline from the target compression packet to a target storage address are created, so that for each product compression packet, compressed flows of the product document are transmitted to the target compression packet through independent data flow pipelines, compressed flows of a plurality of product documents can be summarized into the target compression packet, batch export of a plurality of private cloud product compression packets is achieved, meanwhile, transmission can be achieved in a streaming compression mode, export efficiency is improved, and a private cloud product application side performs import operation according to the target compression packet by downloading the target compression packet, and update of the product document on the private cloud product application side is achieved. According to the method, manual input is not needed, and the updating efficiency of the product document is improved.
In another embodiment, in response to an export instruction for at least one private cloud product document, obtaining document data for each product document includes: responding to an instruction for exporting at least one private cloud product document, and acquiring target product data of the product document and target interface data of the product document; and integrating the target product information and the target interface data according to a preset processing rule to obtain target document data of each product document.
Specifically, the export instruction of the private cloud product document can be automatically triggered when the update of the product document is detected, or can be manually triggered after the operation and maintenance personnel select the private cloud product document to be exported.
Wherein the product data table and the interface data table are obtained from a database of product documents. The data of the product document is stored in the database in two tables according to the product data and the interface data. The table structure of the product data includes information such as product identification, product name, metadata, product status, and the like. The table structure of the interface data includes information such as product identification (product identification field of the associated product information table), type, product name, and interface content.
Specifically, in response to an export instruction of at least one private cloud product document, a product identity of a private cloud product to be exported is obtained. And acquiring the product data through an API encryption transmission mode of https based on the product identifier, and filtering out the corresponding interface data from the interface data according to the product identifier.
In one embodiment, the product data obtained from the database may be used as target product data, and the interface data obtained from the database may be used as target interface data. In this way, the original information of the product document can be synchronized to the target storage address. The method has the advantages that complex processing is not needed during export, the export is convenient and quick, personalized information exists in the private cloud product during practical application, and the personalized information in the original information of the product document needs to be further modified according to the personalized information of the private cloud product application party before the private cloud product is imported.
In one embodiment, the product information obtained from the database may be processed to obtain the target product information, and the interface data obtained from the database may be processed to obtain the target interface data. The manner of processing may be based on actual requirements. As one example, the means of processing is to compare product information of a current version product document with product information of a history version document, determine updated product document information, and take the updated product document information and the update location as target product information. And comparing the interface data of the current version with the interface data of the history document, determining updated product interface data, and taking the updated product interface data and the updated position as target interface data. This approach has the advantage that only the update needs to be exported, reducing the exported packet size. As another example, the means of processing may also be to find the personalized information of the updated product document, to identify the personalized information, or to replace it with a preset character. This method reduces the amount of processing in the import operation by processing the personalized information in the original information of the product document at the time of the export operation.
Further, integrating the data structure of the target product data and the target interface data according to a preset processing rule to obtain the document processing of the product document. The data structure of the product document meeting the requirements can be obtained through processing of the preset processing rules.
Specifically, the preset processing rule is to integrate the content to be synchronized into one data object, so as to form the independent compressed package of the product document.
For example, a picture, video, or audio may be included in a product document. In the product document, multimedia information such as pictures, video or audio exists in the form of URL. The URL of the multimedia information is obtained by analyzing the product information and the interface data, and the URL is extracted and added into the data structure, so that the data structure comprising the URL of the product information, the interface data and the multimedia information can be formed.
In this embodiment, the data structure of the product document meeting the requirements can be obtained by integrating the data structure of the product data and the interface data according to the preset rule.
In another embodiment, as shown in fig. 4, in response to an export instruction of at least one private cloud product document, obtaining target product data of the product document and target interface data of each product document includes:
Step 402, in response to an export instruction for at least one private cloud product document, obtaining product data and interface data for a current version product document of at least one private cloud product.
Specifically, in response to an export instruction for at least one private cloud product document, a product identity of a private cloud product to be exported is obtained. And acquiring product information based on the product identifier in an encrypted transmission mode through an API of https, and filtering out corresponding interface data in the interface data according to the product identifier.
Step 404, comparing the product data of the current version product document with the product data of the historical version product document, determining the updated product data and the updated position, and obtaining the target product data according to the updated product data and the updated position.
The historical version document refers to a version of product document closest to the current time in the historical version document of the private cloud product document, namely a product document of the last version. By comparing the product data of the current version product document with the product data of the historical version document, updated product data and an updated position can be determined, and target product data can be obtained according to the updated product data and the updated position. Thus, the target product data includes only updated content of the current product document relative to the historical version of the product document. Such as the content newly added, modified or deleted at this time.
Step 406, comparing the interface data of the current version product document with the interface data of the historical version product document, determining the updated interface data and the updated position, and obtaining the target interface data according to the updated interface data and the updated position.
By comparing the interface data of the current version product document with the interface data of the historical version product document, updated interface data and an updated position can be determined, and target interface data can be obtained according to the updated interface data and the updated position. Thus, the target product data includes only updated content of the current version product document relative to the historical version interface data. Such as the content newly added, modified or deleted at this time.
In this embodiment, by comparing the product data of the current version and the historical version, updated product information and interface data are determined and used as target product information and target interface data, so that only the updated content of the product document is exported, the size of the exported data packet can be reduced, and the export efficiency and the transmission efficiency are improved.
In another embodiment, integrating the target product information and the target interface data according to a preset processing rule to obtain document data of each product document, including: identifying resource addresses of media resources in the product data and the interface data; and integrating the resource address of the media resource, the product data and the interface data into a data object to obtain the document data of each product document.
In particular, there may be certain media assets in the product data and interface data, such as pictures, video, audio, and the like. These media assets exist in the form of URLs. And when the product documents are synchronized, the media assets themselves can be synchronized. A better way is to synchronize the acquisition of media resources from the resource addresses at the time of data export. Based on this, in this embodiment, the integrated data object includes the resource address of the media resource, the product data, and the interface data, so that when compressing, the media resource is requested through the resource address of the media resource, and the compression is performed synchronously.
The form of the resource address of the media resource has some specific, such as format is generally svg, gif, png, jpeg, css, etc., and the resource address is generally https beginning. Based on the specific, a regular expression can be set, and the resource address of the media resource is resolved from the product data and the interface data in a regular expression matching mode. It is understood that one resource address corresponds to one media resource. The product data and the interface data may resolve resource addresses of a plurality of media resources.
Specifically, after the resource addresses of all media resources can be analyzed by the product data and the interface data through the regular expression, the product data, the interface data and the resource addresses of all media resources are integrally formed into a data object, and document data of the product document is obtained.
In this embodiment, the resource address of the media resource is resolved from the product data and the interface data, and the resource address of the media resource is added into the data structure of the document data, so that the media resource can be synchronously derived.
In another embodiment, integrating the product data and the interface data according to a preset processing rule to obtain document data of each product document, as shown in fig. 5, includes:
step 502, identifying personalized information in the product data and the interface data.
The personalized information is unique information of different private cloud product application parties, including but not limited to environment configuration information, customized information of the private cloud product application parties and the like. The environment configuration information such as domain name, environment name, host name, and the like. The customization information is the content of a product document customized by a private cloud product application.
The information table comprises product information of private cloud products, private cloud product application side information, the position of the customized content in the product document, the original content of the product document and customized content of an application side. And the personalized information in the product data and the interface data is determined by reading the information table and matching the information table with the product document, namely, the personalized information is determined according to the position of the customized content in the product document and/or the original content of the product document.
Step 504, the personalized information is replaced with the target character.
The personalized information can be replaced by a preset target character or customized content of an application party according to a customized information table.
Taking personalized information as environment configuration information as an example, the environment configuration information can be analyzed, and a corresponding regular expression is created according to the specific of the environment configuration information so as to extract the environment configuration information. And replacing the extracted environment configuration information with the target character. For example, a regular expression is created that identifies the primary domain name related information, and the extracted primary domain name information is replaced with the target character.
And step 506, integrating the processed product data and the interface data into a data object to obtain document data of each product document.
Specifically, the processed product data and interface data are integrated into a data object, and the data structure of the product document meeting the requirements is obtained. The data structure includes product data and interface data for the product document.
In this embodiment, in the export stage, personalized information in the product document is determined in advance for detection and identification, so that the processing flow in the import stage can be reduced.
In another embodiment, integrating the product data and the interface data according to a preset processing rule to obtain document data of each product document, including: identifying personalized information in the product data and the interface data; replacing the personalized information with the target character; identifying a resource address of a media resource in the product data and the interface data; and integrating the resource address of the media resource, the processed product data and the interface data into a data object to obtain document data of each product document.
The processing of this embodiment includes the processing of personalized information and the processing of media resources, which are already described in the previous embodiments and are not described here again. In the export stage, personalized information in the product document is determined in advance for detection and identification, so that the processing flow of the import stage can be reduced, and the media resources can be synchronously exported by analyzing the resource addresses of the media resources from the product data and the interface data and adding the resource addresses of the media resources into the data structure of the document data.
In another embodiment, creating a compressed stream object of each product document based on document data of each product document, respectively generating a product compression package of each product document, as shown in fig. 6, includes:
In step 602, compression processing is performed on the Chinese data in the document data of the product document through the first data stream pipeline, and the text data compression stream is transmitted to the compression packet of the corresponding product document.
Specifically, as shown in fig. 7, for the product document of each product, a text data stream object is created based on text data in document data of the product document, and the text data stream object compresses the text data through a first data stream pipe.
And step 604, obtaining the media resource from the resource address, compressing the media resource through the second data stream pipeline, and transmitting the media data compressed stream to the compressed package of the corresponding product document.
Because the media resources are stored on the resource server, the media resources need to be obtained from the resource address through the API encryption request, the request stream for requesting the media resources is transmitted in a pipeline, whether the media resources are obtained and transmitted is monitored in real time, and after the transmission is completed, the pipeline transmission is closed.
As can be seen from fig. 7, the data stream object of the product document stores the product data, the interface data and the media data, and when in compression, the first data stream pipeline is used for compressing the Chinese data in the document data of the product document, transmitting the text data compressed stream to the compressed package of the product document, acquiring the media resource from the resource address, and the second data stream pipeline is used for compressing the media resource, and transmitting the media data compressed stream to the compressed package of the product document, so that the compressed package of each product document can be formed. And respectively establishing a sub-data flow pipeline of each product compression packet and a sub-data flow pipeline of the target compression packet, transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline, and transmitting the compressed flow of the target compression packet to the target storage address through the main data flow pipeline. Therefore, batch export of a plurality of private cloud product compression packages is achieved, and in the method, transmission can be achieved while compression is achieved in a streaming compression mode, so that export efficiency is improved.
In one embodiment, a method for processing a private cloud product document is provided, and the method is applied to the private cloud application server in fig. 1, as shown in fig. 8, and includes the following steps:
step 802, downloading a target compressed packet from a target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider.
Specifically, the target storage address can be detected in real time to determine whether the product document is updated, and when the product document is updated, the target compression packet is downloaded from the target storage address, or the target storage address can actively send the product compression packet when the product compression packet is detected to be updated. Specifically, the target storage address may be preconfigured with a mapping relationship table, and a mapping relationship between the private cloud product and the product application party information is recorded. When the update of the target compression packet of the target storage address is detected, the information of the private cloud product is obtained by reading the target mapping table, and then the mapping relation is read, so that the information of the product application party is obtained. And sending an update prompt or a product compression package to the product application party according to the product application party information. By the method, the product application side can timely acquire the update dynamics of the product document. The product application information may be product application contact information, including but not limited to a mailbox, a social application account, and the like.
For private cloud product application parties, a target compressed package of target storage address update can be obtained through a periodic detection mode.
After the product document update message is obtained, the product document update instruction can be triggered automatically, or can be triggered manually.
And downloading the product document compression package from the target storage address to obtain the product compression package. The target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider. The product document compression package is obtained by processing a private cloud product document of the private cloud product server through a processing method, and details are not repeated here.
Step 804, determining a target private cloud product.
The private cloud product information of the target compression package can be compared with the private cloud product information of the private cloud product application party, and the target private cloud product is determined. And in the information of the private cloud product of the target compression package, the private cloud product is a product applied by an application party of the private cloud product.
The manner in which the target private cloud product is determined may also be by an import operation. Specifically, the private cloud product application side decompresses the data in the compressed package, reads the document data, obtains the product information, can determine the uniqueness of the product based on the product ID in the product information, can compare with all the product data applied by the private cloud product application side, is an applied private cloud product, and can determine whether all the product data are covered by operation and maintenance personnel. In one embodiment, an import interface is provided for a private cloud product application. The import interface in one embodiment, as shown in FIG. 9, prompts whether the product document already exists in the current environment, or not. The way of full coverage is to fully cover the new product document. As shown in fig. 10, the target resource package is uploaded to the backend through the import interface.
And step 806, decompressing the product compression package of the target private cloud product in the target compression package to obtain document data of the target private cloud product.
After products to be imported are selected, products which are not required to be covered in the compressed package are deleted through file names, the products are beaten into compressed packages corresponding to blobs again, and the compressed packages are uploaded to the back end in a binary mode through an API interface.
Step 808, importing the document data of the target private cloud product into a database of the target private cloud product.
Specifically, the back end checks the file type of the compressed package, judges whether the file is a zip type file, if not, the file is not processed, and if the file is in accordance with the condition, the compressed package is processed. Specifically, the temporary directory is obtained, the compressed package is stored in the temporary directory, and the compressed package can be automatically cleared after being used. After the large compression package is decompressed, the small product compression package of each product is also packaged, the small compression package is circularly decompressed, the names of the products are named, and the products are placed under the corresponding catalogues.
Specifically, the target document data is obtained in a data stream mode, and corresponding product data and interface data in the target document data are obtained.
And writing the document data of the target product into a database of the current operation product. The writing mode may be full overwrite writing or partial update writing. The full overlay write replaces the original product document in an overlay manner. The local update writing refers to determining the difference between the current version product document and the historical version product document, and only replacing the difference part.
Specifically, taking the whole coverage import as an example, a query statement is first required to query whether the current product identifier exists in the product information table during import. If the current product identifier exists in the product information table, covering the current product information, checking in the interface data table, and if the interface data imported by the current product exists, creating if the interface data table exists, and if the interface data does not exist, adding a piece of interface data. If the current product identification does not exist, creating a piece of product data, and then creating corresponding interface data in the interface data, and binding a product data table. And uploading the media resources to a resource server in an API (application program interface) mode, reading pictures in a streaming mode, establishing a connection between a data stream and a request stream, and reading the media resources while reading until all the media resources are finished.
In this embodiment, a target compression packet derived from a private cloud product service side is obtained from a target storage address, the target compression packet includes a plurality of private cloud product compression packets, and an import operation is performed according to the target compression packet, so that a corresponding document is imported into a product database, and update of the product document in the private cloud product application side is realized. According to the method, manual input is not needed, and the updating efficiency of the product document is improved. Moreover, the target compressed package is stored in the middle service platform, and the package can be sent out to different private cloud product servers for multiple times, so that the condition that the data package is lost in manual transmission is prevented, and the transmission safety is improved.
The import operation of one embodiment, as shown in FIG. 11, includes the steps of:
1. the method comprises the steps of obtaining a compressed package from a target storage address, analyzing data in the target compressed package, reading document data, obtaining a product ID of a current product, determining the uniqueness of the product, comparing the product ID with all product data applied by a private cloud product application party, determining whether existing products exist, and enabling the private cloud product application party to determine whether the private cloud product is covered.
2. After products to be imported are selected, products which are not required to be covered in the compressed package are deleted through file names, the products are beaten into compressed packages corresponding to blobs again, and the compressed packages are uploaded to the back end in a binary mode through an API interface.
3. And the back end checks the file type of the compressed package, judges whether the file is a zip type file, if not, the file is not processed, and if the file is in accordance with the condition, the compressed package is processed.
4. The temporary directory is obtained, the target compressed package is stored in the temporary directory, and the target compressed package can be automatically cleared after being used, and then file processing is started.
5. After the large target compression package is decompressed, the small product compression package of each product is also packaged, the small compression package is recycled for decompression, the names of the products are named, and the products are placed under the corresponding catalogues.
6. And obtaining the target document data in a data stream mode, and obtaining corresponding product data and interface data in the target document data.
7. And configuring the environment configuration information in the product data and the interface data as the environment information of the current environment through the replacement function of the character string.
8. Data is written to the database.
9. The media resource is uploaded to the resource server in an API mode, the pictures are read in a streaming mode, the connection between the data stream and the request stream is established, and the pictures are read and uploaded at the same time until all the pictures are finished.
The process of a private cloud product document, as shown in fig. 12, includes the steps of:
1. and after the private cloud product service side newly adds or updates the product document, judging whether the private cloud product service side needs to be updated to the private cloud product application side.
2. If a product to be exported needs to be selected on the front-end interface.
3. Target document data of the product document is acquired. Specifically, in response to an instruction for exporting at least one private cloud product document, acquiring target product data of the product document and target interface data of the product document; and integrating the target product information and the target interface data according to a preset processing rule to obtain target document data of each product document. The method comprises the steps of processing personalized information and processing media resources according to preset rules. Personalized information, such as information of the environment of the private cloud product service, including but not limited to domain name, environment name, etc., requires that such information in the data be replaced with placeholders.
4. And analyzing the media resources from the document data, wherein the media resources are stored in URL form, and the pictures downloaded through the URL are local.
5. The media asset, the product data, and the interface data are packaged together into a compressed package. In the compression process, batch compression of multiple product documents is supported. Specifically, creating a target compression packet, and creating a main data stream pipeline of the target compression packet and a target storage address; creating a compressed stream object of each product document based on target document data of each product document, respectively generating a product compressed package of each product document, and transmitting the compressed stream of the product document to a corresponding product compressed package; and respectively establishing a sub-data flow pipeline of each product compression packet and a sub-data flow pipeline of the target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline. Because the data stream is based on the export scheme, the compression is also a data stream, and the data stream is transmitted when the compression packet is packed, so that the data stream can be directly transmitted to the front end in the compression process, and the data stream is transmitted while being packed without waiting for completion.
6. The target storage address gets a compressed packet and sends the compressed packet to the private cloud product application party.
7. The private cloud product application downloads the target compression packet from the target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider; determining a target private cloud product; decompressing a product compression package of the target private cloud product in the target compression package to obtain document data of the target private cloud product; and importing the document data of the target private cloud product into a database of the target private cloud product.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a processing device for the private cloud product document for realizing the processing method of the private cloud product document. The implementation scheme of the solution to the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitation in the embodiments of the processing device for one or more private cloud product documents provided below may refer to the limitation of the processing method for the private cloud product document hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 13, there is provided a processing apparatus for a private cloud product document, including:
a data obtaining module 1301, configured to obtain target document data of each product document in response to an export instruction for at least one private cloud product document;
a main data stream processing module 1302, configured to create a target compressed packet, and create a main data stream pipe of the target compressed packet and the target storage address;
the sub-data stream processing module 1303 is configured to create a compressed stream object of each product document based on document data of each product document, respectively generate product compression packets of each product document, and transmit the compressed streams of the product documents to corresponding product compression packets;
The transmission module 1304 is configured to respectively establish a sub-data stream pipeline of each product compression packet and a sub-data stream pipeline of the target compression packet, and transmit the compressed stream of the product document to the target compression packet through the corresponding sub-data stream pipeline; and transmitting the compressed stream of the target compressed packet to a target storage address through a main data stream pipeline, wherein the private cloud product application side performs the importing operation of the product document by downloading the target compressed packet from the target storage address.
In one embodiment, a data acquisition module includes: the data processing module and the data integration module;
and the data processing module is used for responding to the export instruction of the at least one private cloud product document and acquiring target product data of the product document and target interface data of the product document.
And the data integration module is used for integrating the target product information and the target interface data according to a preset processing rule to obtain target document data of each product document.
The data processing module is used for responding to the export instruction of the at least one private cloud product document and acquiring product data and interface data of a current version product document of the at least one private cloud product; comparing the product data of the current version product document with the product data of the historical version product document, determining updated product data and updated positions, and obtaining target product data according to the updated product data and the updated positions; and comparing the interface data of the current version product document with the interface data of the historical version product document, determining updated interface data and updated positions, and obtaining target interface data according to the updated interface data and the updated positions.
In another embodiment, the data integration module is used for identifying personalized information in the product data and the interface data; replacing the personalized information with the target character; integrating the processed product data and interface data into a data object to obtain document data of each product document.
In another embodiment, the data integration module is configured to identify a resource address of a media resource in the product data and the interface data; and integrating the resource address of the media resource, the product data and the interface data into a data object to obtain the document data of each product document.
In another embodiment, the data integration module is used for identifying personalized information in the product data and the interface data; replacing the personalized information with the target character; identifying a resource address of a media resource in the product data and the interface data; and integrating the resource address of the media resource, the processed product data and the interface data into a data object to obtain document data of each product document.
In another embodiment, the sub data stream transmission module is configured to compress Chinese data in document data of a product document through a first data stream pipeline, and transmit a text data compressed stream to a compression packet of a corresponding product document; and acquiring the media resource from the resource address, compressing the media resource through a second data stream pipeline, and transmitting the media data compressed stream to a compressed packet of a corresponding product document.
In another embodiment, a processing device for private cloud product documents is also provided. The device comprises:
a downloading module 1401 for downloading the target compressed packet from the target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider;
a target acquisition module 1402 for determining a target private cloud product;
a decompression module 1403, configured to decompress a product compression package of a target private cloud product in the target compression package to obtain document data of the target private cloud product;
an importing module 1404 is configured to import the document data of the target private cloud product into a database of the target private cloud product.
The modules in the processing device of the private cloud product document can be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 15. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing document data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of processing a private cloud product document.
It will be appreciated by those skilled in the art that the structure shown in fig. 15 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements are applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor implementing the steps of the private cloud product document processing method of each of the above embodiments when the computer program is executed.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the steps of the private cloud product document processing method of the above embodiments.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the private cloud product document processing method of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for processing a private cloud product document, the method comprising:
responding to an export instruction of at least one private cloud product document, and acquiring target document data of each product document;
creating a target compressed packet, and building a main data flow pipeline of the target compressed packet and a target storage address;
creating a compressed stream object of each product document based on target document data of each product document, respectively generating a product compressed package of each product document, and transmitting the compressed stream of the product document to a corresponding product compressed package;
Respectively establishing a sub-data flow pipeline of each product compression packet and each target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline;
and transmitting the compressed stream of the target compressed packet to the target storage address through the main data stream pipeline, wherein a private cloud product application party performs import operation of a product document by downloading the target compressed packet from the target storage address.
2. The method of claim 1, wherein obtaining target document data for each private cloud product document in response to export instructions for the at least one product document comprises:
responding to an instruction for exporting at least one private cloud product document, and acquiring target product data of the product document and target interface data of the product document;
and integrating the target product information and the target interface data according to a preset processing rule to obtain target document data of each product document.
3. The method of claim 2, wherein the obtaining target product data for the product document and target interface data for the product document in response to export instructions for at least one private cloud product document comprises:
In response to an export instruction for at least one private cloud product document, obtaining product data and interface data of a current version product document of the at least one private cloud product;
comparing the product data of the current version product document with the product data of the historical version product document, determining updated product data and updated positions, and obtaining target product data according to the updated product data and the updated positions;
comparing the interface data of the current version product document with the interface data of the historical version product document, determining updated interface data and updated positions, and obtaining target interface data according to the updated interface data and the updated positions.
4. The method according to claim 2, wherein integrating the target product information and the target interface data according to a preset processing rule to obtain document data of each product document comprises:
identifying personalized information in the product data and the interface data;
replacing the personalized information with target characters;
integrating the processed product data and the interface data into a data object to obtain document data of each product document.
5. The method according to claim 2, wherein integrating the target product information and the target interface data according to a preset processing rule to obtain document data of each product document comprises:
identifying a resource address of a media resource in the product data and the interface data;
and integrating the resource address of the media resource, the product data and the interface data into a data object to obtain document data of each product document.
6. The method of claim 2, wherein integrating the product data and the interface data according to a preset processing rule results in document data for each of the product documents, comprising:
identifying personalized information in the product data and the interface data;
replacing the personalized information with target characters;
identifying a resource address of a media resource in the product data and the interface data;
and integrating the resource address of the media resource, the processed product data and the interface data into a data object to obtain document data of each product document.
7. The method of claim 5 or 6, wherein creating a compressed stream object for each of the product documents based on document data for each of the product documents, respectively generating a product compression package for each of the product documents;
Compressing Chinese data in document data of the product document through a first data stream pipeline, and transmitting a text data compression stream to a compression packet of the corresponding product document;
and acquiring the media resource from the resource address, compressing the media resource through a second data stream pipeline, and transmitting the media data compressed stream to a compressed packet of a corresponding product document.
8. A method for processing a private cloud product document, the method comprising:
downloading a target compressed packet from the target storage address; the target compression package includes compressed data of at least one private cloud product document derived from a private cloud product service provider;
determining a target private cloud product;
decompressing the product compression package of the target private cloud product in the target compression package to obtain document data of the target private cloud product;
and importing the document data of the target private cloud product into a database of the target private cloud product.
9. A processing apparatus for private cloud product documents, the apparatus comprising:
the data acquisition module is used for responding to an instruction for exporting at least one private cloud product document to acquire target document data of each product document;
The main data stream processing module is used for creating a target compressed packet and creating a main data stream pipeline of the target compressed packet and a target storage address;
the sub-data stream processing module is used for creating a compressed stream object of each product document based on document data of each product document, respectively generating a product compressed packet of each product document, and transmitting the compressed stream of each product document to a corresponding product compressed packet;
the transmission module is used for respectively establishing a sub-data flow pipeline of each product compression packet and each target compression packet, and transmitting the compressed flow of the product document to the target compression packet through the corresponding sub-data flow pipeline; and transmitting the compressed stream of the target compressed packet to the target storage address through the main data stream pipeline, wherein a private cloud product application party performs import operation of a product document by downloading the target compressed packet from the target storage address.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 8 when the computer program is executed.
CN202310564114.8A 2023-05-17 2023-05-17 Private cloud product document processing method and device and computer equipment Pending CN116974984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310564114.8A CN116974984A (en) 2023-05-17 2023-05-17 Private cloud product document processing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310564114.8A CN116974984A (en) 2023-05-17 2023-05-17 Private cloud product document processing method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN116974984A true CN116974984A (en) 2023-10-31

Family

ID=88478553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310564114.8A Pending CN116974984A (en) 2023-05-17 2023-05-17 Private cloud product document processing method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN116974984A (en)

Similar Documents

Publication Publication Date Title
US11200044B2 (en) Providing access to a hybrid application offline
US10664196B2 (en) Random access file management
CN102135892B (en) Application program running method, device and system
US10965732B2 (en) Streaming zip
CN108287758A (en) A kind of application resource management method, application method and device
CN102436441A (en) Synchronizing online document edits
CN110362338B (en) Game resource packaging and resource quick access method under mobile platform
CN103428525A (en) Online inquiry and play control method and system for network videos and television programs
US9928751B2 (en) Generic media covers
US20150163326A1 (en) Approaches for remotely unzipping content
CN114218156A (en) Data export method, data export device, computer equipment and storage medium
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
US10101801B2 (en) Method and apparatus for prefetching content in a data stream
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN106844763A (en) A kind of method represented to the Internet media file formula of modifying and its device
CN116974984A (en) Private cloud product document processing method and device and computer equipment
US20230334804A1 (en) Information processing device and method
CN117435215A (en) Development environment deployment method, system, computer device and storage medium
CN113473171A (en) Resource processing method and device
CN112287127B (en) Multimedia file storage and reading method
CN116257707B (en) Application release method and device, electronic equipment and storage medium
US11989200B2 (en) System and method for lambda buckets
CN113821507A (en) Data processing method and device
CN117041245A (en) Data exchange method, device, computer equipment and storage medium
CN117251195A (en) Application development resource processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication