CN103152327A - Configuration method, client and system for plug-in unit compressing and uncompressing - Google Patents
Configuration method, client and system for plug-in unit compressing and uncompressing Download PDFInfo
- Publication number
- CN103152327A CN103152327A CN2013100422329A CN201310042232A CN103152327A CN 103152327 A CN103152327 A CN 103152327A CN 2013100422329 A CN2013100422329 A CN 2013100422329A CN 201310042232 A CN201310042232 A CN 201310042232A CN 103152327 A CN103152327 A CN 103152327A
- Authority
- CN
- China
- Prior art keywords
- compression
- plug
- unit
- client
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000007906 compression Methods 0.000 claims abstract description 334
- 230000006835 compression Effects 0.000 claims abstract description 262
- 230000006837 decompression Effects 0.000 claims abstract description 187
- 238000012360 testing method Methods 0.000 claims description 50
- 230000003993 interaction Effects 0.000 claims description 37
- 238000012795 verification Methods 0.000 claims description 27
- 238000001514 detection method Methods 0.000 claims description 8
- 238000004321 preservation Methods 0.000 claims 4
- 230000005856 abnormality Effects 0.000 claims 2
- 230000015572 biosynthetic process Effects 0.000 claims 2
- 230000007613 environmental effect Effects 0.000 claims 1
- 238000011161 development Methods 0.000 abstract description 33
- 238000012423 maintenance Methods 0.000 abstract description 2
- 238000004891 communication Methods 0.000 abstract 1
- 238000004422 calculation algorithm Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种配置压缩/解压缩插件的方法、客户端及系统。配置方法包括:服务器向所述第一客户端发送所述服务器的环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口,根据所述数据和调用接口生成压缩/解压缩插件并保存;所述服务器向所述第二客户端发送所述压缩/解压缩插件。本发明的下述实施例中,由插件配置客户端将对应数据规范和数据接口的压缩/解压缩插件上传到服务器中,供获取插件的客户端进行下载,从而使开发者和使用者之间高效的完成各自所要去完成对插件的开发、维护、控制以及下载等任务。
The invention discloses a method, client and system for configuring compression/decompression plug-ins. The configuration method includes: the server sends to the first client the data specification supported by the environment of the server and the call interface used to load the compression/decompression engine configured in the server, and generates Compress/decompress the plug-in and save it; the server sends the compression/decompress plug-in to the second client. In the following embodiments of the present invention, the plug-in configuration client uploads the compression/decompression plug-in corresponding to the data specification and data interface to the server for downloading by the client that obtains the plug-in, so that the communication between developers and users Efficiently complete the tasks of development, maintenance, control and downloading of plug-ins that they need to complete.
Description
技术领域technical field
本发明属于数据压缩/解压领域,具体地说,涉及一种配置压缩/解压缩插件的方法、客户端及系统。The invention belongs to the field of data compression/decompression, and in particular relates to a method, client and system for configuring a compression/decompression plug-in.
背景技术Background technique
随着计算机软硬件的发展,特别是硬件的发展,使得在普通PC机上运行大量计算的算法变成了现实。一些高强度的,高安全性的压缩和解压缩算法变成可能。解压缩的算法的增加,使得压缩软件不断的去更新他的软件框架,使得压缩软件能够支持某种或某几种新的算法。这样对软件开发和测试都是一个很大的任务,因为每增加一种算法的支持,都有可能对原有支持的算法产生影响,这就需要大量的测试,修正工作。With the development of computer software and hardware, especially the development of hardware, it has become a reality to run a large number of calculation algorithms on ordinary PCs. Some high-strength, high-security compression and decompression algorithms become possible. The increase of decompression algorithm makes the compression software constantly update its software framework, so that the compression software can support one or several new algorithms. This is a big task for software development and testing, because each additional algorithm support may have an impact on the original supported algorithm, which requires a lot of testing and correction work.
现在市场上还没有压缩和解压缩的插件开放平台出现。通常情况下,插件的工作是需要依赖于平台环境,但针对压缩和解压缩的插件平台这并不完全正确。因为插件接口是开放的,并且压缩和解压缩的功能都是封装在插件中。所以很难做到完全的平台依赖。There is no plug-in open platform for compression and decompression in the market now. Normally, plugins work in a platform-dependent manner, but this is not entirely true for compression and decompression plugin platforms. Because the plug-in interface is open, and the compression and decompression functions are encapsulated in the plug-in. So it is difficult to achieve complete platform dependence.
同时,由于新的算法出现以及原有算法的升级,原有功能的扩展,使得插件平台不得不去升级。现有的插件平台升级过程中会遇到接口数量发生变化,参数发生变化,所以如何减少插件平台的升级次数,尽量保证平台的兼容性也很重要。At the same time, due to the emergence of new algorithms, the upgrade of original algorithms, and the expansion of original functions, the plug-in platform has to be upgraded. During the upgrade process of the existing plug-in platform, the number of interfaces and parameters will change. Therefore, it is also very important to reduce the number of upgrades of the plug-in platform and ensure the compatibility of the platform as much as possible.
另外,现在的插件平台无法支持上述遇到的变化情况,使开发者和使用者之间无法高效的完成各自所要去完成对插件的开发、维护、控制以及下载等任务。In addition, the current plug-in platform cannot support the above-mentioned changes, so that developers and users cannot efficiently complete their respective tasks of developing, maintaining, controlling, and downloading plug-ins.
因此,现有情况下,亟待需要一种能够为插件的开发、维护、控制以及下载提供便利的插件开发方式。Therefore, under the current circumstances, there is an urgent need for a plug-in development method that can provide convenience for plug-in development, maintenance, control and download.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决或者减缓上述问题的配置和获取压缩/解压缩插件的方法、客户端及系统。In view of the above problems, the present invention is proposed to provide a method, client and system for configuring and obtaining compression/decompression plug-ins that overcome the above problems or at least partially solve or alleviate the above problems.
根据本发明的一个方面,提供了一种配置压缩/解压缩插件的方法,其包括:According to one aspect of the present invention, a method of configuring a compression/decompression plug-in is provided, comprising:
服务器接收第一客户端发送的第一接入请求从而使所述第一客户端接入所述服务器,并向所述第一客户端发送所述服务器的环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口以使第一客户端根据所述数据规范和调用接口的相关信息生成开发页面,所述服务器接收所述第一客户端上传的请求者在所述开发页面中输入的与所述数据规范相适应的数据,并获取所述第一客户端通知的请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口,根据所述数据和所述调用接口生成压缩/解压缩插件并保存;The server receives the first access request sent by the first client to enable the first client to access the server, and sends to the first client a data specification supported by the server's environment and a data specification for loading the The call interface of the compression/decompression engine configured in the server enables the first client to generate a development page according to the data specification and the relevant information of the call interface, and the server receives the request uploaded by the first client in the The data input in the development page that is compatible with the data specification, and the call interface corresponding to the compression/decompression engine selected by the requester notified by the first client in the development page, according to The data and the call interface generate a compression/decompression plug-in and save it;
所述服务器接收第二客户端发送的第二接入请求从而使所述第二客户端接入所述服务器,向所述第二客户端发送压缩/解压缩插件以在所述第二客户端上生成下载页面,所述服务器接收所述第二客户端发来的根据请求者在所述下载页面中选定的压缩/解压缩插件生成的下载请求,并向所述第二客户端发送所述压缩/解压缩插件。The server receives the second access request sent by the second client so that the second client accesses the server, and sends a compression/decompression plug-in to the second client to be used on the second client. Generate a download page on the website, the server receives the download request generated from the second client according to the compression/decompression plug-in selected by the requester on the download page, and sends the downloaded request to the second client Compression/decompression plugin described above.
优选地,在本发明的一实施例中,所述调用接口,包括以下一种或多种的组合:初始化接口和反初始化接口、压缩/解压缩能力的查询接口、控制包括启动、停止、暂停和继续的作业控制接口、压缩/解压缩参数的设置接口、输入需要进行压缩/解压缩的目标文件的设置接口、输出文件的路径的设置接口、冲突检测接口、异常检测接口、分卷设置接口;Preferably, in an embodiment of the present invention, the calling interface includes one or more of the following combinations: initialization interface and deinitialization interface, compression/decompression capability query interface, control including start, stop, pause Interface for job control and continuation, interface for setting compression/decompression parameters, interface for setting the input target file to be compressed/decompressed, interface for setting the path of the output file, interface for conflict detection, interface for anomaly detection, and interface for setting volumes ;
所述调用接口的相关信息,包括以下一种或多种的组合:调用接口的数量、调用接口的名字、调用方式、调用接口参数的数量,调用接口参数的类型,调用的返回值类型。The relevant information of the call interface includes one or more of the following combinations: the number of call interfaces, the name of the call interface, the calling method, the number of call interface parameters, the type of call interface parameters, and the return value type of the call.
优选地,在本发明的一实施例中,所述服务器接收所述第一客户端上传的请求者在所述开发页面中输入的与所述数据规范相适应的数据,并获取所述第一客户端通知的请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口,根据所述数据和所述调用接口生成压缩/解压缩插件并保存,进一步包括:Preferably, in an embodiment of the present invention, the server receives the data that is uploaded by the first client and input by the requester in the development page and is compatible with the data specification, and obtains the first The call interface corresponding to the compression/decompression engine selected by the requester notified by the client on the development page, generating and saving the compression/decompression plug-in according to the data and the call interface, further including:
所述服务器根据所述数据和调用接口生成压缩/解压缩插件后,向所述第一客户端发送对所述压缩/解压缩插件基于虚拟运行环境进行测试和调试的验证工具以使所述第一客户端根据所述验证工具对所述服务器中生成并保存的所述压缩/解压缩插件进行基于虚拟运行环境的测试和调试,所述服务器接收所述第一客户端的通知,获知所述压缩/解压缩插件通过所述验证工具所进行的基于虚拟运行环境的测试和调试后保存所述压缩/解压缩插件。After the server generates the compression/decompression plug-in according to the data and the call interface, it sends to the first client a verification tool for testing and debugging the compression/decompression plug-in based on the virtual operating environment so that the first A client performs testing and debugging based on a virtual operating environment on the compression/decompression plug-in generated and stored in the server according to the verification tool, and the server receives a notification from the first client and learns that the compression The /decompression plug-in saves the compression/decompression plug-in after passing the test and debugging based on the virtual operating environment performed by the verification tool.
优选地,在本发明的一实施例中,所述服务器保存所述压缩/解压缩插件后,还接收第一客户端发出的请求,对所述压缩/解压缩插件进行基于真实运行环境的测试和调试,其中,通过所述基于真实运行环境的测试和调试的所述压缩/解压缩插件被设置验证标识。Preferably, in an embodiment of the present invention, after the server saves the compression/decompression plug-in, it also receives a request from the first client to test the compression/decompression plug-in based on a real operating environment and debugging, wherein the compression/decompression plug-in that passes the test and debugging based on the real operating environment is set with a verification flag.
优选地,在本发明的一实施例中,所述服务器接收所述第一客户端发送的第一接入请求从而使所述第一客户端接入所述服务器时,所述第一接入请求中携带所述第一客户端的账号信息;Preferably, in an embodiment of the present invention, when the server receives the first access request sent by the first client so that the first client accesses the server, the first access The request carries account information of the first client;
所述服务器根据所述数据和调用接口生成压缩/解压缩插件时,还接收所述第一客户端上传的账号信息并对应保存所述账号信息与所述压缩/解压缩插件;When the server generates the compression/decompression plug-in according to the data and the calling interface, it also receives the account information uploaded by the first client and correspondingly saves the account information and the compression/decompression plug-in;
所述服务器接收所述第一客户端发送的携带有所述账号信息的浏览请求,向所述第一客户端反馈所述帐户信息对应的所述压缩/解压缩插件及所述压缩/解压缩插件的相关信息并在第一客户端上生成浏览页面;所述相关信息,包括以下一个或多个的组合:下载次数、生成日期、当前版本信息。The server receives the browsing request carrying the account information sent by the first client, and feeds back the compression/decompression plug-in and the compression/decompression plug-in corresponding to the account information to the first client. Plug-in related information and generate a browsing page on the first client; the related information includes one or more of the following: download times, generation date, and current version information.
优选地,在本发明的一实施例中,所述服务器向所述第二客户端发送保存的压缩/解压缩插件所配置的插件标识以使所述第二客户端根据所述插件标识生成下载页面,所述服务器接收第二客户端根据请求者在所述下载页面中选定的插件标识生成的下载请求,并向所述第二客户端发送与所述插件标识对应的压缩/解压缩插件。Preferably, in an embodiment of the present invention, the server sends to the second client the saved plug-in ID configured by the compression/decompression plug-in so that the second client can generate a download file according to the plug-in ID. page, the server receives the download request generated by the second client according to the plug-in ID selected by the requester on the download page, and sends the compression/decompression plug-in corresponding to the plug-in ID to the second client .
优选地,在本发明的一实施例中,所述服务器向所述第二客户端发送压缩/解压缩插件以在所述第二客户端上生成下载页面时,还推送更新的压缩/解压缩插件的名称至所述第二客户端以在所述下载页面中进行提醒。Preferably, in an embodiment of the present invention, when the server sends a compression/decompression plug-in to the second client to generate a download page on the second client, it also pushes an updated compression/decompression The name of the plug-in is sent to the second client to be reminded on the download page.
优选地,在本发明的一实施例中,所述压缩/解压缩插件中封装有独立于操作环境的压缩/解压缩引擎,以及所述压缩/解压缩引擎用于下载或升级配置文件。Preferably, in an embodiment of the present invention, the compression/decompression plug-in is packaged with a compression/decompression engine independent of the operating environment, and the compression/decompression engine is used to download or upgrade configuration files.
根据本发明的另一方面,提供了一种配置压缩/解压缩插件的客户端,其特征在于,包括:数据交互接口、页面生成模块和用户接口,其中,According to another aspect of the present invention, a client for configuring a compression/decompression plug-in is provided, which is characterized in that it includes: a data interaction interface, a page generation module and a user interface, wherein,
所述数据交互接口,用于向服务器发送第一接入请求从而接入所述服务器,从所述服务器中获取所述服务器环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口并通知所述页面生成模块,将请求者在所述开发页面中输入的与所述数据规范相适应的数据以及请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口上传到所述服务器中生成压缩/解压缩插件并保存;The data interaction interface is configured to send a first access request to the server to access the server, obtain from the server the data specification supported by the server environment and load the compression/compression configured in the server. Decompress the calling interface of the engine and notify the page generation module to input the data adapted to the data specification entered by the requester on the development page and the compression/decompression selected by the requester on the development page The call interface corresponding to the engine is uploaded to the server to generate a compression/decompression plug-in and save it;
所述页面生成模块,用于根据所述数据规范和调用接口的相关信息生成开发页面;The page generating module is configured to generate a development page according to the data specification and related information of the call interface;
所述用户接口,用于接收请求者在所述开发页面中输入的与所述数据规范相适应的数据以及请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口并通知所述所述数据交互接口。The user interface is used to receive the data that is input by the requester on the development page and is compatible with the data specification and the call interface corresponding to the compression/decompression engine selected by the requester on the development page, and Notifying the data interaction interface.
优选地,在本发明的一实施例中,所述数据交互接口,还用于从所述服务器中获取对所述压缩/解压缩插件基于虚拟运行环境进行测试和调试的验证工具并发送给验证执行模块;Preferably, in an embodiment of the present invention, the data interaction interface is also used to obtain from the server a verification tool for testing and debugging the compression/decompression plug-in based on a virtual operating environment and send it to the verification tool. execution module;
所述验证执行模块,用于根据所述验证工具对所述服务器中生成并保存的所述压缩/解压缩插件进行基于虚拟运行环境的测试和调试。The verification execution module is used to test and debug the compression/decompression plug-in generated and stored in the server based on a virtual operating environment according to the verification tool.
优选地,在本发明的一实施例中,所述数据交互接口,还向所述服务器发出请求以对所述压缩/解压缩插件进行基于真实运行环境的测试和调试,其中,通过所述基于真实运行环境的测试和调试的所述压缩/解压缩插件被设置验证标识。Preferably, in an embodiment of the present invention, the data interaction interface also sends a request to the server to test and debug the compression/decompression plug-in based on the real operating environment, wherein, through the The compression/decompression plug-in for testing and debugging in the real operating environment is set with a verification flag.
优选地,在本发明的一实施例中,所述数据交互接口,向所述服务器发送第一接入请求从而接入所述服务器时,所述第一接入请求中携带账号信息;将所述数据和调用接口信息上传到所述服务器中生成压缩/解压缩插件时,还将所述账号信息也上传到所述服务器中与所述压缩/解压缩插件对应保存;还用于向所述服务器发送携带有所述账号信息的浏览请求,接收所述服务器反馈的所述帐户信息对应的所述压缩/解压缩插件及所述压缩/解压缩插件的相关信息;所述相关信息,包括以下一个或多个的组合:下载次数、生成日期、当前版本信息。Preferably, in an embodiment of the present invention, when the data interaction interface sends a first access request to the server to access the server, the first access request carries account information; When the above data and call interface information are uploaded to the server to generate a compression/decompression plug-in, the account information is also uploaded to the server and stored correspondingly to the compression/decompression plug-in; The server sends a browsing request carrying the account information, and receives the compression/decompression plug-in corresponding to the account information fed back by the server and related information of the compression/decompression plug-in; the relevant information includes the following Combination of one or more: download count, build date, current version information.
根据本发明的另一方面,提供了一种获取压缩/解压缩插件的客户端,其包括:数据交互接口、页面生成模块和用户接口,其中,According to another aspect of the present invention, a client for obtaining a compression/decompression plug-in is provided, which includes: a data interaction interface, a page generation module, and a user interface, wherein,
所述数据交互接口,用于向服务器发送第二接入请求从而接入所述服务器,获取所述服务器中保存的压缩/解压缩插件并通知所述页面生成模块;将下载请求发送给所述服务器以请求所述服务器发送所述压缩/解压缩插件;The data interaction interface is used to send a second access request to the server to access the server, obtain the compression/decompression plug-in stored in the server and notify the page generation module; send the download request to the The server requests the server to send the compression/decompression plug-in;
所述页面生成模块,用于根据所述服务器中保存的压缩/解压缩插件生成下载页面;The page generation module is configured to generate a download page according to the compression/decompression plug-in stored in the server;
所述用户接口,用于根据请求者在所述下载页面中选定的压缩/解压缩插件生成所述下载请求并发送给所述数据交互接口。The user interface is configured to generate the download request according to the compression/decompression plug-in selected by the requester on the download page and send it to the data interaction interface.
优选地,在本发明的一实施例中,所述数据交互接口,进一步用于从所述服务器接收所述服务器为其保存的压缩/解压缩插件所配置的插件标识并通知所述页面生成模块;将下载请求发送给所述服务器以请求所述服务器发送与所述插件标识对应的压缩/解压缩插件;Preferably, in an embodiment of the present invention, the data interaction interface is further configured to receive from the server the plug-in identifier configured by the server for the compression/decompression plug-in saved by the server and notify the page generation module ; Send a download request to the server to request the server to send the compression/decompression plug-in corresponding to the plug-in identifier;
所述页面生成模块,用于根据所述插件标识生成下载页面;The page generation module is configured to generate a download page according to the plug-in identification;
所述用户接口,用于根据请求者在所述下载页面中选定的插件标识生成下载请求并发送给所述数据交互接口。The user interface is configured to generate a download request according to the plug-in identifier selected by the requester on the download page and send it to the data interaction interface.
优选地,在本发明的一实施例中,所述数据交互接口,还用于接收所述服务器推送的更新的压缩/解压缩插件并通知所述页面生成模块;Preferably, in an embodiment of the present invention, the data interaction interface is also used to receive an updated compression/decompression plug-in pushed by the server and notify the page generation module;
所述页面生成模块,根据所述服务器中保存的压缩/解压缩插件生成下载页面时,还根据所述服务器推送的更新的压缩/解压缩插件的名称在所述下载页面中进行提醒。When the page generating module generates the download page according to the compression/decompression plug-in saved in the server, it also reminds on the download page according to the name of the updated compression/decompression plug-in pushed by the server.
优选地,在本发明的一实施例中,所述压缩/解压缩插件中封装有独立于操作环境的压缩/解压缩引擎,以及所述压缩/解压缩引擎用于下载或升级配置文件。Preferably, in an embodiment of the present invention, the compression/decompression plug-in is packaged with a compression/decompression engine independent of the operating environment, and the compression/decompression engine is used to download or upgrade configuration files.
根据本发明的一方面,提供了一种配置压缩/解压缩插件的系统,其包括:第一客户端、第二客户端和服务器,其中,According to an aspect of the present invention, a system for configuring compression/decompression plug-ins is provided, which includes: a first client, a second client and a server, wherein,
所述第一客户端,用于向服务器发送第一接入请求从而接入所述服务器,从所述服务器中获取所述服务器环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口,根据所述数据规范和调用接口的相关信息生成开发页面,接收请求者在所述开发页面中输入的与所述数据规范相适应的数据以及请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口,并将所述数据和调用接口上传到所述服务器中生成压缩/解压缩插件并保存;The first client is configured to send a first access request to the server to access the server, obtain from the server the data specification supported by the server environment and load the compression configured in the server / The calling interface of the decompression engine generates a development page according to the relevant information of the data specification and the calling interface, and receives the data that is input by the requester in the development page and is compatible with the data specification and the data that the requester enters in the development page The call interface corresponding to the selected compression/decompression engine on the page, and upload the data and call interface to the server to generate a compression/decompression plug-in and save it;
所述第二客户端,用于向所述服务器发送第二接入请求从而接入所述服务器,根据所述服务器中保存的压缩/解压缩插件生成下载页面,根据请求者在所述下载页面中选定的压缩/解压缩插件生成下载请求并发送给所述服务器以请求所述服务器发送所述压缩/解压缩插件;The second client is configured to send a second access request to the server to access the server, generate a download page according to the compression/decompression plug-in stored in the server, and generate a download page according to the requester's The selected compression/decompression plug-in generates a download request and sends it to the server to request the server to send the compression/decompression plug-in;
所述服务器,配置有所述服务器环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口;根据所述第一客户端发来的与所述数据规范相适应的数据以及选定的压缩/解压缩引擎所对应的调用接口生成压缩/解压缩插件并保存,根据所述第二客户端发来的下载请求向所述第二客户端发送其请求的所述压缩/解压缩插件。The server is configured with a data specification supported by the server environment and a call interface for loading a compression/decompression engine configured in the server; The adapted data and the call interface corresponding to the selected compression/decompression engine generate a compression/decompression plug-in and save it, and send all requested information to the second client according to the download request sent by the second client. Compression/decompression plugin described above.
本发明中,基于服务器所支持的数据规范以及服务器中所配置的压缩/解压缩引擎的调用接口由插件配置客户端将对应数据规范和数据接口的压缩/解压缩插件上传到服务器中,供获取插件的客户端进行下载,从而使开发者和使用者之间高效的完成各自所要去完成对插件的开发、维护、控制以及下载等任务。In the present invention, based on the data specification supported by the server and the call interface of the compression/decompression engine configured in the server, the plug-in configuration client uploads the compression/decompression plug-in corresponding to the data specification and data interface to the server for acquisition The client of the plug-in downloads, so that developers and users can efficiently complete the tasks of developing, maintaining, controlling and downloading the plug-in.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention, and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute improper limitations to the present invention. In the attached picture:
图1是本发明一个实施例所述的一种配置压缩/解压缩插件的方法流程图;Fig. 1 is a flow chart of a method for configuring a compression/decompression plug-in according to an embodiment of the present invention;
图2是本发明一个实施例所述的基于虚拟环境对配置压缩/解压缩插件进行测试和调试的流程图;Fig. 2 is a flow chart of testing and debugging configuration compression/decompression plug-ins based on a virtual environment according to an embodiment of the present invention;
图3是本发明一个实施例所述的基于真实环境对配置压缩/解压缩插件进行测试和调试的流程图;Fig. 3 is a flow chart of testing and debugging configuration compression/decompression plug-ins based on a real environment according to an embodiment of the present invention;
图4是本发明一个实施例所述的配置压缩/解压缩插件的客户端结构框图;Fig. 4 is a structural block diagram of the client side of the configuration compression/decompression plug-in described in one embodiment of the present invention;
图5是本发明一个实施例所述配置压缩/解压缩插件的客户端另一结构框图;Fig. 5 is another structural block diagram of the client configuring the compression/decompression plug-in according to an embodiment of the present invention;
图6是本发明一个实施例所述获取压缩/解压缩插件的客户端结构框图;FIG. 6 is a structural block diagram of a client for obtaining a compression/decompression plug-in according to an embodiment of the present invention;
图7是本发明一个实施例所述获配置压缩/解压缩插件的系统结构框图。Fig. 7 is a system structure diagram of a configured compression/decompression plug-in according to an embodiment of the present invention.
具体实施方式Detailed ways
以下将配合图式及实施例来详细说明本发明的实施方式,藉此对本发明如何应用技术手段来解决技术问题并达成技术功效的实现过程能充分理解并据以实施。The implementation of the present invention will be described in detail below in conjunction with the drawings and examples, so that the realization process of how to use technical means to solve technical problems and achieve technical effects in the present invention can be fully understood and implemented accordingly.
本发明的下述实施例中,基于服务器所支持的数据规范以及服务器中所配置的压缩/解压缩引擎的调用接口由插件配置客户端将对应数据规范和数据接口的压缩/解压缩插件上传到服务器中,供获取插件的客户端进行下载,从而使开发者和使用者之间高效的完成各自所要去完成对插件的开发、维护、控制以及下载等任务。In the following embodiments of the present invention, based on the data specification supported by the server and the call interface of the compression/decompression engine configured in the server, the plug-in configuration client uploads the compression/decompression plug-in corresponding to the data specification and data interface to the In the server, the client that obtains the plug-in can download it, so that developers and users can efficiently complete their respective tasks of developing, maintaining, controlling and downloading the plug-in.
如图1所示,是本发明一个实施例所述的一种配置压缩/解压缩插件的方法流程图,其可以包括:As shown in Figure 1, it is a flow chart of a method for configuring a compression/decompression plug-in according to an embodiment of the present invention, which may include:
步骤S11、服务器接收第一客户端发送的第一接入请求从而使所述第一客户端接入所述服务器,并向所述第一客户端发送所述服务器的环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口;Step S11, the server receives the first access request sent by the first client to enable the first client to access the server, and sends the first client the data specification supported by the server's environment and user loading the call interface of the compression/decompression engine configured in the server;
本实施例中,所谓的数据规范是在服务器中预先定义的语义(semantic),比如可以预先定义canunload=0或1等类似的语义,用来表示指定插件可以随时卸载。当然,本发明并不限于此。所述数据规范可以包括指导开发者撰写可被插件配置系统能识别的代码等面向开发者的所有数据,从而扩展配置系统的解压缩能力,使软件代码不用修改的前提下去适应更多的解压缩算法。In this embodiment, the so-called data specification is a semantic (semantic) predefined in the server. For example, semantics such as canunload=0 or 1 can be predefined to indicate that the specified plug-in can be uninstalled at any time. Of course, the present invention is not limited thereto. The data specification may include guiding developers to write codes that can be recognized by the plug-in configuration system, etc. All data for developers, so as to expand the decompression capability of the configuration system, so that the software code can adapt to more decompression without modification algorithm.
所述服务器的环境是指用于解释数据规范中预先定义的各种语义的环境,在所述环境中符合数据规范的语义可以被识别运行。The environment of the server refers to an environment for interpreting various semantics predefined in the data specification, in which the semantics conforming to the data specification can be identified and run.
本实施例中,所述调用接口可以但不限于:初始化接口和反初始化接口、压缩/解压缩能力的查询接口、控制包括启动、停止、暂停和继续的作业控制接口、压缩/解压缩参数的设置接口、输入需要进行压缩/解压缩的目标文件的设置接口、输出文件的路径的设置接口、冲突检测接口、异常检测接口、分卷设置接口等等。In this embodiment, the calling interface may be, but not limited to: initialization interface and deinitialization interface, compression/decompression capability query interface, job control interface including start, stop, pause and continuation, compression/decompression parameter Interface for setting, interface for setting the target file that needs to be compressed/decompressed, interface for setting the path of the output file, interface for conflict detection, interface for anomaly detection, interface for setting volumes, etc.
步骤S11中,为了能够实时统计被下载的压缩/解压缩插件所对应的开发者,所述服务器接收所述第一客户端发送的第一接入请求从而使所述第一客户端接入所述服务器时,所述第一接入请求中还可以携带所述第一客户端的账号信息,该账号信息可以为请求者的注册名、请求者的邮箱、请求者手机号等。In step S11, in order to be able to count the developers corresponding to the downloaded compression/decompression plug-ins in real time, the server receives the first access request sent by the first client so that the first client accesses the When using the server, the first access request may also carry the account information of the first client, which may be the requester's registered name, the requester's mailbox, the requester's mobile phone number, and the like.
步骤S12、第一客户端根据所述数据规范和调用接口的相关信息生成开发页面;Step S12, the first client generates a development page according to the relevant information of the data specification and the calling interface;
本实施例中,所述调用接口的相关信息可以但不限于:调用接口的数量、调用接口的名字、调用方式、调用接口参数的数量,调用接口参数的类型,调用的返回值类型。通过调用接口的相关信息,从而方便插件开发系统的兼容性,同时方便我们以后对插件配置系统的升级,比如说整性变量的名字,占几个字节,有没有符号等等。In this embodiment, the relevant information of the call interface may be, but not limited to: the number of call interfaces, the name of the call interface, the calling method, the number of call interface parameters, the type of call interface parameters, and the return value type of the call. By calling the relevant information of the interface, it is convenient for the compatibility of the plug-in development system, and at the same time, it is convenient for us to upgrade the plug-in configuration system in the future, such as the name of the integer variable, how many bytes it occupies, whether there are symbols, etc.
为了有效地定义调用接口,尽量的做到插件的向后兼容性,保证开发者不至于经修改插件以及保证插件系统的向后兼容性以及弹性,可扩展性,可以采用COM(对象组件模型)来构建配置系统与插件之间的关系,从而实现伸缩性强版本前向,后向兼容性良好,配置系统的跨开发语言,不限制开发者所使用的语言,只要附合com规范的任何语言都可以实现。In order to effectively define the call interface, try to achieve the backward compatibility of the plug-in, to ensure that developers will not modify the plug-in and ensure the backward compatibility, flexibility and scalability of the plug-in system, you can use COM (Object Component Model) To build the relationship between the configuration system and the plug-in, so as to achieve strong scalability and good backward compatibility. The cross-development language of the configuration system does not limit the language used by developers, as long as it conforms to any language of the com specification can be achieved.
步骤S13、所述服务器接收所述第一客户端上传的请求者在所述开发页面中输入的与所述数据规范相适应的数据,获取所述第一客户端通知的请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口;Step S13, the server receives the data that is uploaded by the first client and inputted by the requester on the development page and conforms to the data specification, and the requester that obtains the notification from the first client is in the development page. The call interface corresponding to the compression/decompression engine selected on the page;
步骤S14、所述服务器根据所述数据和调用接口生成压缩/解压缩插件并保存;Step S14, the server generates and saves the compression/decompression plug-in according to the data and the calling interface;
本实施例中,所述服务器所述数据和调用接口生成压缩/解压缩插件时,还可以接收所述第一客户端发来的账号信息,并对应保存所述账号信息与所述压缩/解压缩插件。In this embodiment, when the data and calling interface of the server generate the compression/decompression plug-in, it can also receive the account information sent by the first client, and store the account information and the compression/decompression plug-in correspondingly. Compression plugin.
步骤S14中,基于数据安全性的考虑,还可以对生成的压缩/解压缩插件进行安全性测试和排除故障性调试,比如为了不对服务器造成破坏,可以单独划分出一虚拟空间,在该虚拟空间的虚拟环境中进行测试和调试;或者直接在服务器上真实的环境中进行测试和调试,详见下述实施例二和三描述。In step S14, based on data security considerations, security testing and troubleshooting debugging can also be performed on the generated compression/decompression plug-ins. For example, in order not to cause damage to the server, a virtual space can be divided separately. In this virtual space Test and debug in a virtual environment; or directly test and debug in a real environment on the server, see the descriptions of Embodiments 2 and 3 below for details.
另外,所述压缩/解压缩插件中还可以封装有独立于操作环境的压缩/解压缩引擎,这样所述压缩/解压缩插件的运行依托于封装的引擎,可以脱离生成所述插件的平台环境运行;另外,所述压缩/解压缩插件中还封装有用于下载或升级的配置文件,所述压缩/解压缩插件脱离生成所述插件的平台环境后依然可以自主进行配置升级。通过上述两种方式还可以便于不同开发者的开发插件能在同一平台上工作,同时跨平台时可以配置一些接口抽象、类型简单、交互数据量少的问答类接口,比如使用com独特的存根代理模型,使插件和插件配置系统可以不运行在同一个计算机上,可以很容易的扩展到多计算机协同工作。In addition, the compression/decompression plug-in can also be packaged with a compression/decompression engine independent of the operating environment, so that the operation of the compression/decompression plug-in depends on the packaged engine and can be separated from the platform environment where the plug-in is generated. running; in addition, the compression/decompression plug-in is also packaged with a configuration file for downloading or upgrading, and the compression/decompression plug-in can still independently perform configuration upgrades after being separated from the platform environment where the plug-in is generated. Through the above two methods, it is also convenient for different developers to develop plug-ins to work on the same platform. At the same time, when cross-platform, you can configure some question-and-answer interfaces with abstract interfaces, simple types, and less interactive data, such as using com's unique stub proxy Model, so that plug-ins and plug-in configuration systems do not need to run on the same computer, and can be easily extended to work with multiple computers.
当然,本发明并不限于此,所述压缩/解压缩插件也可以不封装所述压缩/解压缩引擎和配置文件,但是此时所述压缩/解压缩插件的运行和升级需要依托于生成所述插件的平台环境。Certainly, the present invention is not limited thereto, and the compression/decompression plug-in may not encapsulate the compression/decompression engine and configuration file, but at this time, the running and upgrading of the compression/decompression plug-in needs to rely on the generated The platform environment of the above-mentioned plug-in.
步骤S15、所述服务器接收第二客户端发送的第二接入请求从而使所述第二客户端接入所述服务器;Step S15, the server receives the second access request sent by the second client, so that the second client accesses the server;
步骤S16、所述服务器发送压缩/解压缩插件至所述第二客户端以在所述第二客户端上生成下载页面;Step S16, the server sends a compression/decompression plug-in to the second client to generate a download page on the second client;
本实施例中,步骤S16中所述服务器还可以发送为其保存的压缩/解压缩插件所配置的插件标识至所述第二客户端,使所述第二客户端根据所述插件标识生成下载页面。In this embodiment, the server in step S16 may also send the plug-in ID configured for the compression/decompression plug-in saved by it to the second client, so that the second client generates a download file according to the plug-in ID. page.
需要说明的是,便于及时了解有关压缩/解压缩插件的属性信息,所述第二客户端根据发送的压缩/解压缩插件生成下载页面时,还可以根据所述服务器推送的更新的压缩/解压缩插件的名称在所述下载页面中进行提醒,从而提醒请求者压缩/解压缩插件有更新。It should be noted that, in order to know the attribute information of the compression/decompression plug-in in a timely manner, when the second client generates the download page according to the sent compression/decompression plug-in, it may also use the updated compression/decompression plug-in pushed by the server. The name of the compression plug-in is reminded in the download page, thereby reminding the requester that there is an update for the compression/decompression plug-in.
步骤S17、服务器接收所述第二客户端发来的根据请求者在所述下载页面中选定的压缩/解压缩插件生成的下载请求,并发送所述压缩/解压缩插件至所述第二客户端。Step S17, the server receives the download request generated from the second client based on the compression/decompression plug-in selected by the requester on the download page, and sends the compression/decompression plug-in to the second client.
本实施例中,步骤S17中,所述服务器可以接收第二客户端根据请求者在所述下载页面中选定的插件标识生成的下载请求,并向所述第二客户端发送与所述插件标识对应的压缩/解压缩插件。In this embodiment, in step S17, the server may receive a download request generated by the second client according to the plug-in identifier selected by the requester on the download page, and send a download request related to the plug-in to the second client. Identifies the corresponding compression/decompression plugin.
这个插件标识分配给对应的压缩/解压缩插件,用于标识插件的唯一性,比如用16个字节来表示,比如为全球唯一标识(global universal identification,简称guid)。This plug-in identifier is assigned to the corresponding compression/decompression plug-in, and is used to identify the uniqueness of the plug-in, for example, represented by 16 bytes, such as a global unique identification (global universal identification, GUID for short).
在本发明的另外一实施例中,在上述图1所示实施例的基础上,为了实时统计开发的压缩/解压缩插件被其他请求者访问并下载的数量,所述配置压缩/解压缩插件的方法还可以包括:所述服务器可以实时接收所述第一客户端发送的携带有所述账号信息的浏览请求,向所述第一客户端发送所述帐户信息对应的所述压缩/解压缩插件及所述压缩/解压缩插件的相关信息并在第一客户端上生成浏览页面;具体地,所述压缩/解压缩插件的相关信息可以但不限于:下载次数、生成日期、当前版本信息等等。In another embodiment of the present invention, on the basis of the above-mentioned embodiment shown in FIG. 1 , in order to count the number of developed compression/decompression plug-ins accessed and downloaded by other requesters in real time, the configuration compression/decompression plug-in The method may further include: the server may receive in real time the browsing request carrying the account information sent by the first client, and send the compression/decompression information corresponding to the account information to the first client. The relevant information of the plug-in and the compression/decompression plug-in and generate a browsing page on the first client; specifically, the relevant information of the compression/decompression plug-in can be but not limited to: download times, generation date, current version information etc.
对于任意帐户信息下记录的相关信息进行统计,可以获知具有该帐户信息的第一客户端上传的自行开发插件被使用第二客户端的其他请求者下载的情况,并针对统计结果进行进一步处理。例如根据插件被其他请求者下载的情况计算应该支付给开发插件的请求者的费用、收取其他请求者下载的费用等等,从而根据帐户信息及相关信息对于插件的分享行为进行规范的管理和引导。By making statistics on the relevant information recorded under any account information, it is possible to know that the self-developed plug-ins uploaded by the first client with the account information are downloaded by other requesters using the second client, and further process the statistical results. For example, calculate the fee that should be paid to the requester who develops the plug-in according to the situation that the plug-in is downloaded by other requesters, charge the downloading fee of other requesters, etc., so as to standardize the management and guidance of the plug-in sharing behavior according to the account information and related information .
如图2所示,是本发明一个实施例所述的基于虚拟环境对配置压缩/解压缩插件进行测试和调试的流程图,本实施例中,基于服务器安全性的考虑,单独隔离出一虚拟空间,便于插件的开发者自行对其开发的压缩/解压缩插件进行测试,其可以具体包括:As shown in Figure 2, it is a flow chart of testing and debugging the configuration compression/decompression plug-in based on the virtual environment according to an embodiment of the present invention. In this embodiment, based on the consideration of server security, a virtual This space is convenient for plug-in developers to test their own compression/decompression plug-ins, which may specifically include:
步骤S21、所述服务器发送对所述压缩/解压缩插件基于虚拟运行环境进行测试和调试的验证工具至第一客户端;Step S21, the server sends a verification tool for testing and debugging the compression/decompression plug-in based on the virtual operating environment to the first client;
步骤S22、所述第一客户端根据所述验证工具对所述服务器中生成并保存的所述压缩/解压缩插件进行基于虚拟运行环境的测试和调试;Step S22, the first client performs testing and debugging based on a virtual operating environment on the compression/decompression plug-in generated and saved in the server according to the verification tool;
步骤S23、所述服务器接收所述第一客户端的通知,获知所述压缩/解压缩插件通过所述验证工具所进行的基于虚拟运行环境的测试和调试后保存所述压缩/解压缩插件。Step S23 , the server receives the notification from the first client and saves the compression/decompression plug-in after learning that the compression/decompression plug-in has passed the verification tool's testing and debugging based on the virtual operating environment.
上述图2所示的实施例中,在虚拟环境中进行的测试和调试可以包括基本的功能测试、逻辑测试等,属于插件开发者自行测试的渠道。In the above-mentioned embodiment shown in FIG. 2 , the testing and debugging in the virtual environment may include basic functional testing, logic testing, etc., which belong to the channel for plug-in developers to test themselves.
如图3所示,是本发明一个实施例所述的基于真实环境对配置压缩/解压缩插件进行测试和调试的流程图,在插件通过了图2所示的基于虚拟环境的测试和调试后,在服务器的真实环境上进行实际测试和调试,其可以具体包括:As shown in Figure 3, it is a flow chart of testing and debugging the configuration compression/decompression plug-in based on the real environment according to an embodiment of the present invention, after the plug-in has passed the testing and debugging based on the virtual environment shown in Figure 2 , to perform actual testing and debugging on the real environment of the server, which may specifically include:
步骤S31、所述服务器接收所述第一客户端发出的请求,对所述压缩/解压缩插件进行基于真实运行环境的测试和调试;Step S31, the server receives the request from the first client, and tests and debugs the compression/decompression plug-in based on a real operating environment;
步骤S32、对通过所述基于真实运行环境的测试和调试的所述压缩/解压缩插件设置验证标识。Step S32, setting a verification flag for the compression/decompression plug-in that has passed the test and debugging based on the real operating environment.
该验证标识用于标示压缩/解压缩插件为通过测试和调试的合法插件。验证标识可以为MD5码(Message Digest Algorithm MD5,消息摘要算法第五版),从而提供消息的完整性保护,使息传输完整一致,需要说明的是,该验证标识码也不局限于MD5,其他可起到同样作用的标识码均可以实现本发明。The verification mark is used to mark the compression/decompression plug-in as a legitimate plug-in that has passed testing and debugging. The verification identifier can be an MD5 code (Message Digest Algorithm MD5, the fifth edition of the message digest algorithm), so as to provide message integrity protection and make the message transmission complete and consistent. It should be noted that the verification identifier code is not limited to MD5, other All identification codes that can play the same role can realize the present invention.
当通过图3所示的真实环境测试和调试,测试合格的插件及时在插件开发系统上发布,而对于测试不合格的插件,则将测试报告发给开发者进行相关修改。After passing the test and debugging in the real environment shown in Figure 3, the plug-ins that pass the test are released on the plug-in development system in time, and for the plug-ins that fail the test, the test report is sent to the developer for relevant modification.
如图4所示,是本发明一个实施例所述的配置压缩/解压缩插件的客户端结构框图,配置压缩/解压缩插件的客户端40可以具体包括:数据交互接口401、页面生成模块402和用户接口403,其中,As shown in FIG. 4 , it is a structural block diagram of a client for configuring a compression/decompression plug-in according to an embodiment of the present invention. The client 40 for configuring a compression/decompression plug-in can specifically include: a
所述数据交互接口401用于向服务器42发送第一接入请求从而接入所述服务器,从所述服务器中获取所述服务器42环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口并通知所述页面生成模块,将请求者在所述开发页面中输入的与所述数据规范相适应的数据以及请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口上传到所述服务器中生成压缩/解压缩插件并保存;The
如前所述,为了便于压缩/解压缩插件及其对应开发请求者的针对性统计,所述数据交互接口401向所述服务器发送第一接入请求从而接入所述服务器时,所述第一接入请求中可以携带账号信息;同时,所述数据交互接口401将所述数据和调用接口信息上传到所述服务器中生成压缩/解压缩插件时,还将所述账号信息也上传到所述服务器42中与所述压缩/解压缩插件对应保存;还用于向所述服务器42发送携带有所述账号信息的浏览请求,接收所述服务器42反馈的所述帐户信息对应的所述压缩/解压缩插件及所述压缩/解压缩插件的相关信息;该相关信息可以但不局限为:下载次数、生成日期、当前版本信息等等。As mentioned above, in order to facilitate targeted statistics of compression/decompression plug-ins and their corresponding development requesters, when the
为了使用插件的单一平台以及跨平台操作,所述压缩/解压缩插件中封装有独立于操作环境的压缩/解压缩引擎,这样所述压缩/解压缩插件的运行依托于封装的引擎,可以脱离生成所述插件的平台环境运行;另外,所述压缩/解压缩插件中还封装有用于下载或升级的配置文件,所述压缩/解压缩插件脱离生成所述插件的平台环境后依然可以自主进行配置升级。当然,本发明并不限于此,所述压缩/解压缩插件也可以不封装所述压缩/解压缩引擎和配置文件,但是此时所述压缩/解压缩插件的运行和升级需要依托于生成所述插件的平台环境。In order to use a single platform and cross-platform operation of the plug-in, the compression/decompression plug-in is packaged with a compression/decompression engine independent of the operating environment, so that the operation of the compression/decompression plug-in depends on the packaged engine and can be separated from the The platform environment that generates the plug-in runs; in addition, the configuration file for downloading or upgrading is also packaged in the compression/decompression plug-in, and the compression/decompression plug-in can still be performed independently after being separated from the platform environment that generates the plug-in Configuration upgrade. Certainly, the present invention is not limited thereto, and the compression/decompression plug-in may not encapsulate the compression/decompression engine and configuration file, but at this time, the running and upgrading of the compression/decompression plug-in needs to rely on the generated The platform environment of the above-mentioned plug-in.
所述页面生成模块402用于根据所述数据规范和调用接口的相关信息生成开发页面;The
所述用户接口403用于接收请求者在所述开发页面中输入的与所述数据规范相适应的数据以及请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口并通知所述所述数据交互接口401。The
如图5所示,是本发明一个实施例所述配置压缩/解压缩插件的客户端另一结构框图,配置压缩/解压缩插件的客户端50可以具体包括:数据交互接口501、页面生成模块502和用户接口503,不同的是,在上述图4所示实施例的基础上,所述数据交互接口501还可以用于从所述服务器52中获取对所述压缩/解压缩插件基于虚拟运行环境进行测试和调试的验证工具并发送给验证执行模块504;所述验证执行模块504用于根据所述验证工具对所述服务器52中生成并保存的所述压缩/解压缩插件进行基于虚拟运行环境的测试和调试。As shown in FIG. 5 , it is another structural block diagram of the client configuring the compression/decompression plug-in according to an embodiment of the present invention. The client 50 configuring the compression/decompression plug-in may specifically include: a
所述测试的验证工具用于检验压缩/解压缩插件是否有运行错误;所述调试的验证工具用于定位所述错误的位置,并分析出错误原因,提示修改从而修正所述错误,修正错误后继续回归测试。The verification tool of the test is used to check whether the compression/decompression plug-in has any operation errors; the verification tool of the debugging is used to locate the position of the error, analyze the cause of the error, and prompt modification to correct the error and correct the error Then continue the regression test.
在本发明的另一实施例中,即在上述图5基础上,在虚拟运行环境的测试和调试基础上,增加基于真实环境的测试和调试,此时,所述数据交互接口501还可以向所述服务器发出请求以对所述压缩/解压缩插件进行基于真实运行环境的测试和调试,其中,通过所述基于真实运行环境的测试和调试的所述压缩/解压缩插件被设置验证标识。In another embodiment of the present invention, on the basis of the above-mentioned Figure 5, on the basis of the testing and debugging of the virtual operating environment, the testing and debugging based on the real environment is added. At this time, the
如图6所示,是本发明一个实施例所述获取压缩/解压缩插件的客户端结构框图,获取压缩/解压缩插件的客户端60可以具体包括:数据交互接口601、页面生成模块602和用户接口603,其中,As shown in FIG. 6 , it is a structural block diagram of a client terminal for obtaining a compression/decompression plug-in according to an embodiment of the present invention. The client 60 for obtaining a compression/decompression plug-in may specifically include: a
所述数据交互接口601用于向服务器62发送第二接入请求从而接入所述服务器,获取所述服务器62中保存的压缩/解压缩插件并通知所述页面生成模块602;将下载请求发送给所述服务器62以请求所述服务器发送所述压缩/解压缩插件。The
所述页面生成模块602用于根据所述服务器62中保存的压缩/解压缩插件生成下载页面;The
所述用户接口603用于根据请求者在所述下载页面中选定的压缩/解压缩插件生成所述下载请求并发送给所述数据交互接口。The
在图6所示实施例的基础上,在本发明的另一实施例中,所述数据交互接口61进一步用于从所述服务器接收所述服务器为其保存的压缩/解压缩插件所配置的插件标识并通知所述页面生成模块;将下载请求发送给所述服务器以请求所述服务器发送与所述插件标识对应的压缩/解压缩插件;On the basis of the embodiment shown in FIG. 6 , in another embodiment of the present invention, the data interaction interface 61 is further used to receive from the server the information configured by the compression/decompression plug-in saved by the server. The plug-in identifies and notifies the page generation module; sends a download request to the server to request the server to send the compression/decompression plug-in corresponding to the plug-in identification;
所述页面生成模块62进一步用于根据所述插件标识生成下载页面;The
所述用户接口63进一步用于根据请求者在所述下载页面中选定的插件标识生成下载请求并发送给所述数据交互接口。The user interface 63 is further configured to generate a download request according to the plug-in identifier selected by the requester on the download page and send it to the data interaction interface.
在图6所示实施例的基础上,在本发明的另一实施例中,所述数据交互接口61还用于接收所述服务器推送的更新的压缩/解压缩插件并通知所述页面生成模块;所述页面生成模块62进一步用于根据所述服务器中保存的压缩/解压缩插件生成下载页面时,还根据所述服务器推送的发生更新的压缩/解压缩插件的更新提示信息在所述下载页面中进行提醒;所述更新提示信息,包括但不限于:为所述压缩/解压缩插件所配置的插件标识、和/或所述压缩/解压缩插件的名称、和/或所述压缩/解压缩插件的性能描述。On the basis of the embodiment shown in Figure 6, in another embodiment of the present invention, the data interaction interface 61 is also used to receive the updated compression/decompression plug-in pushed by the server and notify the page generation module ; When the
如图7所示,是本发明一个实施例所述获配置压缩/解压缩插件的系统结构框图,其可以包括:第一客户端71、第二客户端72和服务器73,其中,As shown in FIG. 7 , it is a system structural diagram of a configured compression/decompression plug-in according to an embodiment of the present invention, which may include: a
所述第一客户端71用于向服务器发送第一接入请求从而接入所述服务器,从所述服务器中获取所述服务器环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口,根据所述数据规范和调用接口的相关信息生成开发页面,接收请求者在所述开发页面中输入的与所述数据规范相适应的数据以及请求者在所述开发页面中选定的压缩/解压缩引擎所对应的调用接口,并将所述数据和调用接口上传到所述服务器中生成压缩/解压缩插件并保存;The
所述第二客户端72用于向所述服务器73发送第二接入请求从而接入所述服务器,根据所述服务器73中保存的压缩/解压缩插件生成下载页面,根据请求者在所述下载页面中选定的压缩/解压缩插件生成下载请求并发送给所述服务器以请求所述服务器73发送所述压缩/解压缩插件;The
所述服务器73配置有所述服务器环境支持的数据规范以及用于加载所述服务器中所配置的压缩/解压缩引擎的调用接口;根据所述第一客户端71发来的与所述数据规范相适应的数据以及选定的压缩/解压缩引擎所对应的调用接口生成压缩/解压缩插件并保存,根据所述第二客户端72发来的下载请求向所述第二客户端72发送其请求的所述压缩/解压缩插件。The
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明上述实施例的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components according to the above-mentioned embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Additionally, please note that examples of the word "in one embodiment" herein do not necessarily all refer to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。In addition, it should be noted that the language used in the specification has been chosen primarily for the purpose of readability and instruction rather than to explain or delimit the inventive subject matter. Accordingly, many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. With respect to the scope of the present invention, the disclosure of the present invention is intended to be illustrative rather than restrictive, and the scope of the present invention is defined by the appended claims.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310042232.9A CN103152327B (en) | 2013-02-01 | 2013-02-01 | A kind of method, client and system configuring compression/de-compression plug-in unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310042232.9A CN103152327B (en) | 2013-02-01 | 2013-02-01 | A kind of method, client and system configuring compression/de-compression plug-in unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103152327A true CN103152327A (en) | 2013-06-12 |
CN103152327B CN103152327B (en) | 2015-08-05 |
Family
ID=48550190
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310042232.9A Active CN103152327B (en) | 2013-02-01 | 2013-02-01 | A kind of method, client and system configuring compression/de-compression plug-in unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103152327B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607702A (en) * | 2013-11-15 | 2014-02-26 | 上海大汉三通通信股份有限公司 | A method and system for carrying out communication among different platforms in short message service |
CN103607468A (en) * | 2013-11-29 | 2014-02-26 | 深圳市金立通信设备有限公司 | Method and terminal for uploading files |
CN105260206A (en) * | 2015-10-10 | 2016-01-20 | 北京京东尚科信息技术有限公司 | Data source plug-in implementation method and server |
CN106790302A (en) * | 2017-03-22 | 2017-05-31 | 无锡紫光存储系统有限公司 | Data ciphering method, data decryption method and system |
CN108153779A (en) * | 2016-12-05 | 2018-06-12 | 阿里巴巴集团控股有限公司 | Page data impression information processing method and processing device |
CN108833355A (en) * | 2018-05-21 | 2018-11-16 | 深圳云之家网络有限公司 | Data processing method, device, computer equipment and computer readable storage medium |
CN113094419A (en) * | 2021-04-13 | 2021-07-09 | 上海携宁计算机科技股份有限公司 | Data analysis system, method, client and storage medium |
CN113835872A (en) * | 2020-06-24 | 2021-12-24 | 北京小米移动软件有限公司 | Data processing method and device for reducing memory overhead and storage medium |
CN114003486A (en) * | 2021-09-17 | 2022-02-01 | 西安震有信通科技有限公司 | Plug-in debugging method, client, server and storage medium |
CN114422637A (en) * | 2021-12-20 | 2022-04-29 | 阿里巴巴(中国)有限公司 | Media request processing method and cross-platform engine system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5557749A (en) * | 1992-10-15 | 1996-09-17 | Intel Corporation | System for automatically compressing and decompressing data for sender and receiver processes upon determination of a common compression/decompression method understood by both sender and receiver processes |
CN101755418A (en) * | 2007-07-17 | 2010-06-23 | 微软公司 | Optimizing encrypted wide area network traffic |
CN102428485A (en) * | 2009-03-23 | 2012-04-25 | 生命力有限公司 | Temporary Decoder Apparatus and Method |
-
2013
- 2013-02-01 CN CN201310042232.9A patent/CN103152327B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5557749A (en) * | 1992-10-15 | 1996-09-17 | Intel Corporation | System for automatically compressing and decompressing data for sender and receiver processes upon determination of a common compression/decompression method understood by both sender and receiver processes |
CN101755418A (en) * | 2007-07-17 | 2010-06-23 | 微软公司 | Optimizing encrypted wide area network traffic |
CN102428485A (en) * | 2009-03-23 | 2012-04-25 | 生命力有限公司 | Temporary Decoder Apparatus and Method |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607702B (en) * | 2013-11-15 | 2018-09-07 | 上海大汉三通通信股份有限公司 | A kind of method and system communicated between different platform in short message service |
CN103607702A (en) * | 2013-11-15 | 2014-02-26 | 上海大汉三通通信股份有限公司 | A method and system for carrying out communication among different platforms in short message service |
CN103607468A (en) * | 2013-11-29 | 2014-02-26 | 深圳市金立通信设备有限公司 | Method and terminal for uploading files |
CN105260206A (en) * | 2015-10-10 | 2016-01-20 | 北京京东尚科信息技术有限公司 | Data source plug-in implementation method and server |
CN108153779B (en) * | 2016-12-05 | 2022-04-05 | 阿里巴巴集团控股有限公司 | Page data delivery information processing method and device |
CN108153779A (en) * | 2016-12-05 | 2018-06-12 | 阿里巴巴集团控股有限公司 | Page data impression information processing method and processing device |
CN106790302A (en) * | 2017-03-22 | 2017-05-31 | 无锡紫光存储系统有限公司 | Data ciphering method, data decryption method and system |
CN106790302B (en) * | 2017-03-22 | 2019-08-20 | 无锡紫光存储系统有限公司 | Data ciphering method, data decryption method and system |
CN108833355A (en) * | 2018-05-21 | 2018-11-16 | 深圳云之家网络有限公司 | Data processing method, device, computer equipment and computer readable storage medium |
CN108833355B (en) * | 2018-05-21 | 2020-12-29 | 深圳云之家网络有限公司 | Data processing method, data processing device, computer equipment and computer readable storage medium |
CN113835872A (en) * | 2020-06-24 | 2021-12-24 | 北京小米移动软件有限公司 | Data processing method and device for reducing memory overhead and storage medium |
CN113094419A (en) * | 2021-04-13 | 2021-07-09 | 上海携宁计算机科技股份有限公司 | Data analysis system, method, client and storage medium |
CN114003486A (en) * | 2021-09-17 | 2022-02-01 | 西安震有信通科技有限公司 | Plug-in debugging method, client, server and storage medium |
CN114422637A (en) * | 2021-12-20 | 2022-04-29 | 阿里巴巴(中国)有限公司 | Media request processing method and cross-platform engine system |
CN114422637B (en) * | 2021-12-20 | 2023-12-29 | 阿里巴巴(中国)有限公司 | Media request processing method and cross-platform engine system |
Also Published As
Publication number | Publication date |
---|---|
CN103152327B (en) | 2015-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103152327B (en) | A kind of method, client and system configuring compression/de-compression plug-in unit | |
CN108566290B (en) | Service configuration management method, system, storage medium and server | |
CN107450941B (en) | Automatic packaging method, device, storage medium and computer equipment | |
CN104699616B (en) | The method of a kind of application test, Apparatus and system | |
US20200233790A1 (en) | Designer defined mocking service behavior | |
CN103646082B (en) | A kind of method and device of file verification | |
WO2019042311A1 (en) | Software project setup task configuration method and device using jenkins | |
US20120317561A1 (en) | Automatic recognition of web application | |
CN103763354B (en) | The method and device that a kind of data of upgrading are downloaded | |
CN110059001A (en) | The automatic upgrade control method of program, device, computer equipment and storage medium | |
CN109800005B (en) | Client hot update method and device | |
CN106293798B (en) | Self-repairing method and system of electronic device and server | |
US20160380816A1 (en) | System and method for configuring a data access system | |
JP2013545172A (en) | Device and method for providing a software program adapted to a computer system downloaded by a user | |
CN110532016B (en) | Version management method, version updating method and version management system | |
CN105512044A (en) | Method and system for updating object base used for keyword drive test | |
CN111045893B (en) | Method, device and system for executing monitoring task, storage medium and electronic device | |
CN103678506A (en) | Method and device for loading application program shortcuts in browser and browser | |
Tang et al. | Xdebloat: Towards automated feature-oriented app debloating | |
US20130125093A1 (en) | Generating object-oriented programming language code from a multi-domain dynamic simulation model | |
CN113495723B (en) | Method, device and storage medium for calling functional component | |
CN111090442A (en) | Application updating method and device and storage medium | |
US10055516B1 (en) | Testing open mobile alliance server payload on an open mobile alliance client simulator | |
CN104239112A (en) | Device driver installation method and device | |
CN102902564B (en) | Method and the device of patch are installed |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220725 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |