Data processing system and method
Patent Information
- Application Number
- CN202310088971.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-06
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-02-06
AI Technical Summary
现有技术中通常是通过网络进行信息传递,或者基于操作系统的进程间的通信实现信息传递,然而通过网络的方式实现信息传递中,为了实现信息传递不可避免的会对原有代码进行修改,这将破坏代码结构;基于操作系统的信息传递则依赖于进程间的通信,操作难度较高,信息传递的实现较为复杂,因此亟需一种数据处理系统以解决上述问题
[0039]本申请提供的数据处理系统包括:第一处理对象、第二处理对象和对象管理单元;所述第一处理对象,被配置为获取存储资源,针对所述存储资源向所述对象管理单元提交资源存储请求;所述对象管理单元,被配置为响应于所述资源存储请求,对所述存储资源进行资源转换处理,根据处理结果确定存储信息,并将所述存储信息存储至共享文件;所述第二处理对象,被配置为在所述共享文件中读取所述存储信息,并基于所述存储信息执行目标业务。在第一处理对象和第二处理对象之间进行信息传递时,对象管理单元先将与第一处理对象的存储资源对应的存储信息存储至共享文件中,再由第二处理对象从共享文件中读取存储信息进而执行目标业务,从而简化了信息传递的过程,无需破坏代码结构,也无需以进程间的通信为基础即可实现信息传递。
Smart Images

Figure CN116069524B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to data processing systems. This application also relates to data processing methods, data processing apparatus, a computing device, and a computer-readable storage medium. Background Technology
[0002] With the development of internet technology, the demand for information transmission is constantly increasing. Information transmission is needed between clients on a local area network, between multiple applications installed on a client, and between different pages of the same application. Current technologies typically achieve information transmission through networks or inter-process communication based on the operating system. However, network-based information transmission inevitably requires modification of the original code, which disrupts the code structure. Operating system-based information transmission relies on inter-process communication, which is more difficult to operate and more complex to implement. Therefore, a data processing system is urgently needed to solve these problems. Summary of the Invention
[0003] In view of this, embodiments of this application provide a data processing system to address the technical deficiencies existing in the prior art. This application also relates to a data processing method, a data processing apparatus, a computing device, and a computer-readable storage medium.
[0004] According to a first aspect of the embodiments of this application, a first data processing system is provided, comprising: a first processing object, a second processing object, and an object management unit;
[0005] The first processing object is configured to acquire storage resources and submit a resource storage request to the object management unit for the storage resources;
[0006] The object management unit is configured to respond to the resource storage request, perform resource conversion processing on the storage resource, determine storage information based on the processing result, and store the storage information in a shared file;
[0007] The second processing object is configured to read the stored information from the shared file and execute the target service based on the stored information.
[0008] According to a second aspect of the embodiments of this application, a first data processing method is provided, comprising:
[0009] Obtain the storage resources corresponding to the first object;
[0010] The storage resources are subjected to resource conversion processing, storage information is determined based on the processing result, and the storage information is stored in a shared file;
[0011] In response to a data retrieval request submitted by a second object for the shared file, storage information is determined, and the target service corresponding to the second object is executed based on the storage information.
[0012] According to a third aspect of the embodiments of this application, a second data processing system is provided, comprising: a main client, a secondary client, and a server, wherein the main client is equipped with a main program, and the secondary client is equipped with a secondary program;
[0013] The main client is configured to acquire storage resources, call the main program, and submit a resource storage request to the server for the storage resources.
[0014] The server is configured to respond to the resource storage request, perform resource conversion processing on the storage resource, determine storage information based on the processing result, and store the storage information in a shared file;
[0015] The secondary client is configured to read the storage information from the shared file, allocate the storage information to the secondary program, and run the secondary program that allocated the storage information to perform the target business.
[0016] Optionally, the main client is further configured to acquire storage resources, invoke the main program, create a resource storage request containing the storage resources for the sub-program, and send it to the server;
[0017] The server is further configured to determine the storage identifier corresponding to the sub-client based on the resource storage request, establish an association between the storage information and the storage identifier, and store the storage information and the storage identifier in the shared file based on the association.
[0018] The secondary client is further configured to read the storage information from the shared file based on the pre-stored storage identifier.
[0019] Optionally, the server is further configured to determine the storage format corresponding to the storage information based on the resource storage request, and store the storage information to the shared file according to the storage format;
[0020] In the case where the storage format corresponds to a sub-program of the sub-client, the sub-client is further configured to read storage information corresponding to the storage format from the shared file.
[0021] Optionally, the secondary client is further configured to run a secondary program that allocates the storage information, render the program page of the secondary program based on the storage information, and display the target program page according to the rendering result, wherein the target program page contains the storage resources corresponding to the storage information.
[0022] Optionally, the secondary client is further configured to feed back the business execution result corresponding to the target business to the server, wherein the business execution result is used to indicate the execution status of the target business;
[0023] The server is also configured to send the results of the business execution to the main client.
[0024] Optionally, the secondary client is further configured to generate an information query request based on a preset detection time interval and send the information query request to the server;
[0025] The server is further configured to, in response to the information query request, query stored information in the shared file and send the stored information to the secondary client; or, in response to the information query request, perform an information query in the shared file and send the information query result to the secondary client.
[0026] According to a fourth aspect of the embodiments of this application, a third data processing system is provided, including: a main client, a secondary client, and a server;
[0027] The main client is configured to acquire storage resources and submit resource storage requests to the server for those storage resources.
[0028] The server is configured to respond to the resource storage request, perform resource conversion processing on the storage resource, determine storage information based on the processing result, and store the storage information in a shared file;
[0029] The secondary client is configured to read the stored information from the shared file and execute the target service based on the stored information.
[0030] According to a fifth aspect of the embodiments of this application, a second data processing method is provided, including:
[0031] Receive resource storage requests submitted by the main client for storage resources;
[0032] The storage resources are subjected to resource conversion processing, storage information is determined based on the processing result, and the storage information is stored in a shared file;
[0033] The system receives a data read request submitted by the secondary client, determines the storage information in the shared file based on the data read request, and sends the storage information to the secondary client.
[0034] According to a sixth aspect of the embodiments of this application, a computing device is provided, comprising:
[0035] Memory and processor;
[0036] The memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions to implement the steps of the data processing system.
[0037] According to a seventh aspect of the present application, a computer-readable storage medium is provided that stores computer-executable instructions that, when executed by a processor, implement the steps of the data processing system.
[0038] According to a ninth aspect of the present application, a chip is provided that stores a computer program, which, when executed by the chip, implements the steps of the data processing system.
[0039] The data processing system provided in this application includes: a first processing object, a second processing object, and an object management unit. The first processing object is configured to acquire storage resources and submit a resource storage request to the object management unit for the storage resources. The object management unit is configured to respond to the resource storage request, perform resource conversion processing on the storage resources, determine storage information based on the processing result, and store the storage information in a shared file. The second processing object is configured to read the storage information from the shared file and execute a target business based on the storage information. When information is transferred between the first and second processing objects, the object management unit first stores the storage information corresponding to the storage resources of the first processing object in the shared file, and then the second processing object reads the storage information from the shared file to execute the target business. This simplifies the information transfer process, eliminates the need to disrupt the code structure, and avoids the need for inter-process communication to achieve information transfer. Attached Figure Description
[0040] Figure 1 This is a schematic diagram of a first data processing system provided in an embodiment of this application;
[0041] Figure 2 This is a schematic diagram of the structure of a first data processing system provided in an embodiment of this application;
[0042] Figure 3 This is an interactive schematic diagram of a data processing system for information transmission between applications, provided in an embodiment of this application.
[0043] Figure 4 This is a flowchart of a first data processing method provided in an embodiment of this application;
[0044] Figure 5 This is a schematic diagram of the structure of a second data processing system provided in an embodiment of this application;
[0045] Figure 6 This is an interactive schematic diagram of a data processing system for information transmission between clients, provided in an embodiment of this application.
[0046] Figure 7 This is a flowchart of a second data processing method provided in an embodiment of this application;
[0047] Figure 8 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;
[0048] Figure 9 This is a schematic diagram of the structure of a third data processing system provided in an embodiment of this application;
[0049] Figure 10 This is a flowchart of a third data processing method provided in an embodiment of this application;
[0050] Figure 11 This is a structural block diagram of a computing device provided in one embodiment of this application. Detailed Implementation
[0051] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.
[0052] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.
[0053] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first.
[0054] This application provides a data processing system. This application also relates to a data processing method, a data processing apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.
[0055] Figure 1 This is a schematic diagram of a first data processing system provided in an embodiment of this application, as shown below. Figure 1 As shown, the data processing system includes a first processing object, a second processing object, and an object management unit. The first processing object acquires storage resources and submits a resource storage request to the object management unit. Upon receiving the resource storage request, the object management unit responds by performing resource conversion processing on the storage resources, determines the storage information based on the processing result, and stores the storage information in a shared file. The second processing object reads the storage information from the shared file and uses it to execute target business operations based on the stored information.
[0056] When transferring information between the first and second processing objects, the object management unit first stores the storage information corresponding to the storage resources of the first processing object in a shared file. Then, the second processing object reads the stored information from the shared file and executes the target business, thus simplifying the information transfer process. This eliminates the need to disrupt the code structure or rely on inter-process communication. Transferring information between different programs and pages requires various processing methods, including referencing, event handling, and network transmission, all of which are complex and result in messy code. Pages that reference each other need to disrupt their code structure to transfer information. An embodiment of this application provides a data processing system that allows for flexible configuration of files, read / write methods, read / write formats, and shared file types, based on requirements. Compared to network or operating system-based inter-process communication, this is much simpler, requiring only read / write processing.
[0057] Figure 2This is a schematic diagram of the structure of a first data processing system provided in an embodiment of this application. The data processing system 200 includes: an object management unit 210, a first processing object 220, and a second processing object 230; the first processing object is configured to acquire storage resources and submit a resource storage request to the object management unit for the storage resources; the object management unit is configured to respond to the resource storage request, perform resource conversion processing on the storage resources, determine storage information based on the processing result, and store the storage information in a shared file; the second processing object is configured to read the storage information from the shared file and execute target business based on the storage information.
[0058] Specifically, the first processing object 220 and the second processing object 230 include devices such as mobile phones, tablets, and computers, as well as applications and application pages within those applications. The first processing object 220 and the second processing object 230 can be clients within the same local area network, clients outside the same local area network, two different applications, or different application pages within the same application. Storage resources refer to the storage resources obtained by the first processing object 220 for transfer to the second processing object 230. Storage resources include, but are not limited to, images, text, files, videos, and audio resources. The object management unit 210 is used to receive and process storage resources. And storage; resource storage request refers to the computer instruction submitted by the first processing object to the object management unit 210 for the purpose of implementing resource storage. After receiving the resource storage request, the object management unit 210 parses the resource storage request to obtain the storage resource. In order to save storage space, the storage resource is converted into storage information that is easy to store. Correspondingly, shared file refers to the storage space used to store resources and information. The size of the shared file can be set according to actual needs. Target business refers to the business executed by the second processing object based on the read storage information. Target business includes but is not limited to page rendering, information transmission, information storage and other businesses.
[0059] Based on this, the data processing system includes a first processing object 220, a second processing object 230, and an object management unit 210. After acquiring storage resources, the first processing object 220 generates a resource storage request and submits it to the object management unit 210 to transfer the storage resources. Upon receiving the resource storage request, the object management unit 210 responds by performing resource conversion processing on the storage resources carried in the request. Based on the processing result, it determines the storage information corresponding to the storage resources and stores the storage information in a shared file. The second processing object 230 checks the shared file at fixed intervals to detect the existence of storage information corresponding to itself. If storage information corresponding to itself is detected in the shared file, it reads the corresponding storage information from the shared file to execute the target business, thereby realizing information transfer between the first processing object 220 and the second processing object 230.
[0060] For example, in scenarios involving information transfer between applications installed on multiple clients, different applications installed on the same client, and different application pages of the same application installed on the same client, the information sender can store the information to be sent in a pre-defined shared file, and the information receiver can then read the information stored in the shared file to achieve information transfer. In a scenario involving information transfer between two different application pages within the same application, the first processing object 220 can be page A in the application, and the corresponding second processing object is page B in the application. Information transfer between page A and page B can be achieved through shared files corresponding to page A and page B. Page A sends the image to be transferred to the object management unit 210. After receiving the image, the object management unit 210 converts the image into a link and stores it in the shared file. Link 1 can be generated based on the image's storage address and stored as storage information in the shared file. Page B can detect the information stored in the shared file based on a pre-set detection period, and detect whether there is any new information corresponding to Page B in the shared file. When link 1 is detected, link 1 is read and parsed to obtain the image corresponding to link 1. After obtaining the image, page B can perform page rendering and other business based on the image, thereby realizing the information transfer between page A and page B.
[0061] In summary, when information is transferred between the first processing object and the second processing object, the object management unit first stores the storage information corresponding to the storage resources of the first processing object in a shared file, and then the second processing object reads the stored information from the shared file to execute the target business. This simplifies the information transfer process, and information transfer can be achieved without destroying the code structure or relying on inter-process communication.
[0062] Furthermore, considering that there can be at least two second processing objects, and the first processing object 220 can submit resource storage requests for each second processing object, when the first processing object 220 submits a resource storage request to the object management unit 210, a resource storage request containing storage resources can be created for each second processing object. In this embodiment, the first processing object is further configured to acquire storage resources, create a resource storage request containing the storage resources, and send it to the object management unit; the object management unit is further configured to determine the storage identifier corresponding to the second processing object based on the resource storage request, establish an association between the storage information and the storage identifier, and store the storage information and the storage identifier in the shared file based on the association; the second processing object is further configured to read the storage information in the shared file based on the pre-stored storage identifier.
[0063] Specifically, the storage identifier can be an identifier representing the object ID of the second processing object 230, or it can be an object version number, object version ID, etc. The association between storage information and storage identifier refers to the correspondence between storage information and storage identifier. When the storage information is stored in a shared file for the second processing object, there is a correspondence between storage information and storage identifier. The second processing object 230 can determine the storage information corresponding to the second processing object 230 based on the storage identifier. Thus, after the second processing object 230 reads the storage information, it executes the target business based on the storage information.
[0064] Based on this, after the first processing object 220 acquires the storage resources, it creates a resource storage request containing the storage resources for the second processing object and sends the resource storage request to the object management unit 210. Upon receiving the resource storage request, the object management unit 210 determines the storage identifier corresponding to the second processing object 230 based on the resource storage request, establishes an association between the storage information and the storage identifier, and stores the storage information and storage identifier in a shared file based on the association. The second processing object 230 reads the storage information from the shared file based on the pre-stored storage identifier. Before the second processing object 230 reads the storage information, it can periodically check the shared file, and read the storage information only when the corresponding storage information is detected; alternatively, after the object management unit 210 stores the storage information in the shared file, it can send an information read instruction to the second processing object 230 based on the storage information, thereby informing the second processing object 230 that it needs to read the storage information from the shared file.
[0065] Continuing with the previous example, the second processing object can be page 1, page 2, and page 3. The first processing object 220 can determine the resource recipient corresponding to the storage resource upon acquiring it. If the storage resource is image 1, and image 1 needs to be transferred to page 2, a resource storage request is created for page 2 and sent to the object management unit. After the object management unit stores the link corresponding to image 1, page 2 reads the link corresponding to image 1 and parses it to obtain image 1.
[0066] In summary, by creating a resource storage request containing storage resources for the second processing object, and storing the storage resources in a shared file in a targeted manner, information transmission to a designated recipient can be achieved, thereby improving the efficiency and accuracy of information transmission.
[0067] Furthermore, considering that the second processing object 230 can be a page of an application, after the second processing object 230 reads the storage information, in order to improve the diversity of the page of the second processing object 230, page rendering can be performed on the page corresponding to the second processing object based on the storage information. In this embodiment, the second processing object is further configured to perform page rendering on the initial object page of the second processing object based on the storage information, and display the target object page according to the rendering result, wherein the target object page contains the storage resources corresponding to the storage information.
[0068] Specifically, the initial object page refers to the page corresponding to the second processing object 230. Correspondingly, the target object page is the object page obtained by the second processing object after rendering the page based on the received stored information. The stored information includes, but is not limited to, images, text, and audio / video. Accordingly, when the second processing object obtains images, text, and audio / video, it can render the program page based on the images, text, and audio / video.
[0069] Based on this, the second processing object 230 renders the initial object page based on the storage information, thereby adding the storage information to the initial object page of the second processing object in a rendering manner, and displaying the target object page containing the storage resources corresponding to the storage information according to the rendering result.
[0070] Using the previous example, if the stored information received by page 2 is image 1, then image 1 can be used to render a specified page element on page 2 or page 2 itself, adding image 1 to a specified position on page 2, thereby completing the page rendering.
[0071] In summary, by rendering the initial object page of the second processing object based on the stored information and displaying the target object page according to the rendering results, the storage resources are visualized at the second processing object, thereby improving page rendering efficiency.
[0072] Furthermore, considering that storage information from the first processing object 220 will be continuously stored in the shared file, and the sub-programs in the second processing object 230 corresponding to each piece of storage information may be different, in order to avoid the accumulation of a large amount of unread storage information in the shared file, the shared file can be periodically detected by a preset detection time to obtain the storage information corresponding to the sub-programs. In this embodiment, the second processing object is further configured to generate an information query request based on a preset detection time interval and send the information query request to the object management unit; the object management unit is further configured to, in response to the information query request, query the storage information in the shared file and send the storage information to the second processing object; or, in response to the information query request, perform an information query in the shared file and send the information query result to the second processing object.
[0073] Specifically, the preset detection time interval can be a time interval pre-set according to detection needs (including but not limited to the urgency of information transmission), used to periodically detect the shared file to check whether there is any newly added stored information in the shared file; the information query request refers to the computer instruction submitted by the second processing object 230 for the shared file, used to query the information stored in the shared file, thereby determining whether there is any unread stored information in the shared file corresponding to the second processing object 230; correspondingly, the information query result is the query result obtained by the second processing object 230 after querying the stored information stored in the shared file. The query result can be that there is unread stored information in the shared file corresponding to the second processing object 230, or it can be that there is no unread stored information in the shared file corresponding to the second processing object 230. If unread stored information corresponding to the second processing object 230 is found in the shared file, the object management unit 210 can directly send the stored information to the second processing object 230.
[0074] Based on this, the second processing object 230 generates an information query request based on a preset detection time interval and sends the information query request to the object management unit 210. The preset detection time interval can be used to perform periodic detection on the shared file. In response to the information query request, the object management unit 210 queries the stored information in the shared file. If it finds unread stored information in the shared file corresponding to the second processing object 230, it sends the stored information to the second processing object 230. Alternatively, in response to the information query request, it performs an information query in the shared file. If it finds no unread stored information in the shared file corresponding to the second processing object 230, it sends the information query result to the second processing object 230.
[0075] Using the previous example, when detecting the storage information stored in the shared file, the detection period can be set to 30 minutes, 1 hour, 2 hours, etc., according to actual needs. If a link 2 corresponding to page 1 is detected in the shared file, the object management unit directly sends link 2 to page 1; if no information corresponding to page 1 is detected in the shared file, the detection result "no information detected" is fed back to page 1.
[0076] By periodically detecting shared files based on preset detection intervals, a large amount of unread information is avoided in shared files, thus enabling timely reading of the stored information in shared files.
[0077] In summary, the data processing system provided in this application includes: a first processing object, a second processing object, and an object management unit. The first processing object is configured to acquire storage resources and submit a resource storage request to the object management unit for the storage resources. The object management unit is configured to respond to the resource storage request, perform resource conversion processing on the storage resources, determine storage information based on the processing result, and store the storage information in a shared file. The second processing object is configured to read the storage information from the shared file and execute a target business based on the storage information. When information is transferred between the first and second processing objects, the object management unit first stores the storage information corresponding to the storage resources of the first processing object in the shared file, and then the second processing object reads the storage information from the shared file to execute the target business. This simplifies the information transfer process, eliminates the need to disrupt the code structure, and eliminates the need for inter-process communication to achieve information transfer.
[0078] The following is in conjunction with the appendix Figure 3 Taking the data processing system provided in this application for information transfer between applications as an example, the data processing system will be further described. Among other things, Figure 3 This is an interactive schematic diagram of a data processing system for information transfer between applications, provided by an embodiment of this application. The system specifically includes the following steps:
[0079] Step S302: Application 1 obtains storage resources and submits a resource storage request to the application management unit for the storage resources.
[0080] When handling information transfer between different applications, this can be achieved by setting up shared files. In the case of information transfer between different applications, after the application obtains or pre-prepares the storage resources such as images, text, files, audio, and video to be transferred, it submits a resource storage request to the application management unit to store the storage resources in a shared file.
[0081] Step S304: In response to the resource storage request, the application management unit performs resource conversion processing on the storage resources, determines the storage information based on the processing result, and stores the storage information in the shared file.
[0082] After receiving a resource storage request, the application management unit performs resource conversion processing on the storage resources such as images, text, files, audio, and video carried in the resource storage request to obtain the processing result. Specifically, when the storage resource is text, the text content can be directly stored as a storage resource in the shared file; when the storage resource is images, text, files, audio, or video, a link can be generated based on the storage address corresponding to the image, text, file, audio, or video resource, and the link can be stored in the shared file.
[0083] Step S306: Application 2 reads the stored information from the shared file and executes the target business based on the stored information.
[0084] The detection cycle can be set according to actual needs. Application 2 detects shared files based on the detection cycle. When it detects that there are stored information such as links or text corresponding to Application 2 in the shared files, it reads the stored information and parses the stored information in the form of links to obtain the corresponding images, files, audio and video resources. At the same time, it records the number of transmissions. The number of transmissions can be recorded in an incremental manner, such as recording the number of transmissions as msgCount:1, msgCount:2, etc. It is also possible to record the information transmission by modifying the transmission parameters, so as to avoid Application 2 reading or responding multiple times. For example, add the parameter msgApplicationVersion to identify the version number of Application 2; set the receiving status msAcceptState to indicate the current status of Application 2 receiving information. The receiving status can be true or false to indicate whether the reception or response was successful; set the information type msgType to indicate the type of information transmitted; set the control information msgTypeButton to indicate button information, and you can also set control types such as drag, close the program, and key undo.
[0085] Step S308: Application 2 sends the task execution information back to the application management unit.
[0086] After application 2 reads the stored information such as links, and obtains resources such as images, files, and audio / video based on the link parsing, it can send feedback information to the application management unit as a response to application 1. For example, it can send a successful reception message to the application management unit. If the target business executed by application 2 is to render a page based on the obtained stored information, it can send the page rendering result back to the application management unit after the page rendering is completed.
[0087] Step S310: The application management unit sends task execution information to application 1.
[0088] The application management unit feeds back the page rendering result (success, failure, or rendered page) to application 1.
[0089] In summary, the data processing system provided in one embodiment of this application allows for flexible configuration of files, read / write methods, selection of read / write formats, and selection of shared file types for information transmission, based on specific needs. Compared to network or operating system-based inter-process communication, it is less complex and more efficient.
[0090] Corresponding to the above system embodiments, this application also provides data processing method embodiments. Figure 4 This is a flowchart of a first data processing method provided in an embodiment of this application. For example... Figure 4 As shown, the method includes the following steps:
[0091] Step S402: Obtain the storage resources corresponding to the first object;
[0092] Step S404: Perform resource conversion processing on the storage resources, determine the storage information based on the processing result, and store the storage information in a shared file;
[0093] Step S406: In response to the data acquisition request submitted by the second object for the shared file, determine the storage information and execute the target service corresponding to the second object based on the storage information.
[0094] When transmitting information, the object management unit first stores the storage information corresponding to the storage resources of the first processing object into a shared file, and then the second processing object reads the storage information from the shared file and executes the target business. This simplifies the information transmission process, and information transmission can be achieved without destroying the code structure or relying on inter-process communication.
[0095] Figure 5 This is a schematic diagram of the structure of a second data processing system provided in an embodiment of this application. The data processing system 500 includes: a server 510, a main client 520, and a secondary client 530. The main client 520 is equipped with a main program, and the secondary client 530 is equipped with a secondary program. The main client 520 is configured to acquire storage resources, call the main program, and submit a resource storage request to the server 510 for the storage resources. The server 510 is configured to respond to the resource storage request, perform resource conversion processing on the storage resources, determine storage information based on the processing result, and store the storage information in a shared file. The secondary client 530 is configured to read the storage information from the shared file, allocate the storage information to the secondary program, and run the secondary program that allocated the storage information to execute target business.
[0096] Specifically, the main client 520 and the secondary client 530 include, but are not limited to, devices such as mobile phones, tablets, and computers. The main client 520 and the secondary client 530 can be clients within the same local area network (LAN) or clients outside the same LAN. Correspondingly, the main program is the application installed on the main client 520, and the secondary program is the application installed on the secondary client 530. Both the main client 520 and the secondary client 530 can have at least one application installed. Storage resources refer to the storage resources obtained from the main client 520 for transfer to the secondary client 530. Storage resources include, but are not limited to, images, text, files, videos, and audio resources. The server 510 is used to implement storage... The process involves receiving, processing, and storing storage resources. A resource storage request refers to a computer instruction submitted by the main program to the server 510 to implement resource storage. After receiving the resource storage request, the server 510 parses the request to obtain the storage resources. To save storage space, the storage resources are converted into easily storable storage information. Correspondingly, a shared file refers to the storage space used to store resources and information. The size of the shared file can be set according to actual needs. The target business refers to the business executed by the sub-program based on the read storage information. The target business includes, but is not limited to, page rendering, information transmission, and information storage.
[0097] Based on this, the data processing system includes a main client 520, a secondary client 530, and a server 510. The main client 520 has a main program installed, and the secondary client 530 has a secondary program installed. After acquiring storage resources, the main client 520 calls the main program installed on the main client 520 to generate a resource storage request for the storage resources and submits the resource storage request to the server 510 to realize the transfer of storage resources. After receiving the resource storage request, the server 510 responds to the resource storage request by performing resource conversion processing on the storage resources carried in the resource storage request. Based on the processing result obtained from the resource conversion processing, it determines the storage information corresponding to the storage resources and stores the storage information in a shared file. The secondary client 530 checks the shared file at fixed intervals to see if there is any storage information corresponding to the secondary program installed in the secondary client 530. If storage information corresponding to the secondary client 530 is detected in the shared file, the corresponding storage information is read from the shared file and allocated to the corresponding secondary program in the secondary client 530. The secondary program with allocated storage information is run to execute the target business corresponding to the secondary program, thereby realizing the information transfer between the primary client 520 and the secondary client 530.
[0098] For example, in scenarios involving information transfer between applications installed on multiple clients, different applications installed on the same client, and different application pages of the same application installed on the same client, the sender can store the information to be sent in a pre-defined shared file, and the receiver can then read the information stored in the shared file to achieve information transfer. In scenarios involving information transfer between two clients on the same local area network, the primary client 520 can be the host, and the corresponding secondary client is the slave. Information transfer between the host and slave can be achieved through shared files corresponding to the host and slave. The host sends an image to be transferred to the server 510. After receiving the image, the server 510 converts the image into a link and stores it in the shared file. Link 1 can be generated based on the image's storage address and stored as storage information in the shared file. The slave machine can detect the information stored in the shared file based on a pre-set detection cycle, and detect whether there is any new information in the shared file corresponding to the slave machine. When link 1 is detected, link 1 is read and parsed to obtain the image corresponding to link 1. After obtaining the image, the slave machine can perform page rendering and other business operations based on the image through the application installed on the slave machine, thereby realizing the information transfer between the host and the slave machine.
[0099] In summary, when transmitting information between the main client and the secondary client, the server first stores the storage information corresponding to the main client's storage resources in a shared file. Then, the secondary client reads the stored information from the shared file and executes the target business. This simplifies the information transmission process, eliminates the need to disrupt the code structure, and does not require inter-process communication to transmit information.
[0100] Furthermore, considering that there can be at least two secondary clients 530, and each secondary client 530 can contain at least two secondary programs, and the main client 520 can submit resource storage requests for each secondary program, when the main client 520 submits a resource storage request to the server 510, it can create a resource storage request containing storage resources for the secondary program. In this embodiment, the main client 520 is further configured to obtain storage resources, call the main program, create a resource storage request containing the storage resources for the secondary program, and send it to the server 510; the server 510 is further configured to determine the storage identifier corresponding to the secondary client 530 according to the resource storage request, establish an association between the storage information and the storage identifier, and store the storage information and the storage identifier in the shared file based on the association; the secondary client 530 is further configured to read the storage information in the shared file based on the pre-stored storage identifier.
[0101] Specifically, the storage identifier can be an identifier used to represent the program ID of the sub-program in the sub-client 530, including but not limited to program ID, program version number, program version ID, etc.; the association between storage information and storage identifier refers to the correspondence between storage information and storage identifier. When the storage information is stored in a shared file for the sub-program, there is a correspondence between storage information and storage identifier. The sub-client 530 can determine the storage information corresponding to the sub-program in the sub-client 530 based on the storage identifier, and then allocate the storage information to the corresponding sub-program after the sub-client 530 reads the storage information.
[0102] Based on this, after the main client 520 obtains the storage resources, it calls the main program at the main client 520 to create a resource storage request containing the storage resources for the sub-program, and sends the resource storage request to the server 510. Upon receiving the resource storage request, the server 510 determines the storage identifier corresponding to the sub-client 530 based on the resource storage request, establishes an association between the storage information and the storage identifier, and stores the storage information and storage identifier in the shared file based on the association. The sub-client 530 reads the storage information from the shared file based on the pre-stored storage identifier. Before the sub-client 530 reads the storage information, it can periodically check the shared file, and only read the storage information when it detects storage information corresponding to the sub-program; alternatively, after the server 510 stores the storage information in the shared file, it can send an information read instruction to the sub-client 530 based on the storage information, thereby informing the sub-client 530 that it needs to read the storage information from the shared file.
[0103] Continuing with the previous example, if three sub-programs (sub-program 1, sub-program 2, and sub-program 3) are installed on the secondary client, the primary client 520 can determine the resource recipient corresponding to the storage resource upon acquiring it. If the storage resource is image 1, and image 1 needs to be transferred to sub-program 2, a resource storage request is created for sub-program 2 and sent to the server. After the server stores the link corresponding to image 1, the secondary client can read the link corresponding to image 1 from the sub-program 2 installed on the secondary client and parse it to obtain image 1.
[0104] In summary, by creating resource storage requests containing storage resources for subprograms and storing these resources in shared files in a targeted manner, information transmission to designated recipients can be achieved, thereby improving the efficiency and accuracy of information transmission.
[0105] Furthermore, when storing storage information to a shared file, considering that there are many sub-programs in the secondary client 530 corresponding to the primary client 520, and that the storage resources carried in the resource storage request by the primary client 520 correspond to different secondary programs, in order to facilitate the differentiation of the secondary programs corresponding to the storage resources, the storage information corresponding to the storage resources can be stored in a specific storage format when storing it to the shared file. In this embodiment, the server 510 is further configured to determine the storage format corresponding to the storage information according to the resource storage request, and store the storage information to the shared file according to the storage format; when the storage format corresponds to the secondary program of the secondary client 530, the secondary client 530 is further configured to read the storage information corresponding to the storage format from the shared file.
[0106] Specifically, the storage format can be the storage form of the stored information, which is preset for different sub-programs. It can also be determined according to the type of stored information received by the sub-program and the corresponding storage format for the sub-program. When the stored information received by the sub-program is mainly files, the files can be stored in a specific format. For example, when generating stored information based on files, the stored information contains characters or other identifiers at fixed positions. Special characters can also be added to the stored information to determine the storage format. The stored information can also be grouped according to the number of bits occupied by the stored information, and each group of stored information is separated by a different number of spaces or other character identifiers. It should be noted that the storage format can be set according to actual needs. Any format that can serve as an identifier for the sub-program is acceptable. This embodiment does not impose any limitations on this.
[0107] Based on this, server 510 determines the storage format corresponding to the storage information according to the resource storage request created for the sub-program, and stores the storage information to the shared file according to the storage format. When the storage format corresponds to the sub-program of sub-client 530, sub-client 530 can read the storage information of the corresponding storage format from the shared file.
[0108] Continuing with the previous example, if the storage information stored on the server in the shared file is a link corresponding to image 1, the link can be split according to the number of characters to determine the storage format. In the case where the link corresponding to image 1 is abcdef.com, the "abcdef" in the link can be grouped and converted to "ab_cd_ef.com". Therefore, when the secondary client reads the link, it can determine that the storage information with the underscore ("_") in the link is the storage information corresponding to the secondary program and read it.
[0109] In summary, by determining the storage format corresponding to the storage information based on the resource storage request and storing the storage information in the shared file according to the storage format, the secondary client can read the storage information in the shared file with the corresponding storage format when reading the storage information, thereby improving the accuracy of information reading.
[0110] Furthermore, considering that a secondary program is installed in the secondary client 530, after the secondary client 530 reads the storage information, in order to improve the diversity of the secondary client 530's pages, the secondary program can be rendered based on the storage information. In this embodiment, the secondary client 530 is further configured to run the secondary program that allocates the storage information, render the program page of the secondary program based on the storage information, and display the target program page according to the rendering result, wherein the target program page contains the storage resources corresponding to the storage information.
[0111] Specifically, the program page refers to the page corresponding to the secondary program installed in the secondary client 530. Correspondingly, the target program page is the program page obtained by the secondary program after rendering the program page based on the received stored information. The stored information includes, but is not limited to, images, text, and audio / video. Accordingly, when the secondary program obtains images, text, and audio / video, it renders the program page based on the images, text, and audio / video.
[0112] Based on this, the secondary client 530 runs a secondary program that allocates storage information. Based on the storage information, the program page of the secondary program is rendered, so as to add the storage information to the program page in a rendering manner, and then display the target program page containing the storage resources corresponding to the storage information according to the rendering result.
[0113] Using the previous example, if the stored information received by subprogram 2 is image 1, then the specified program page in program 2 can be rendered based on image 1, and image 1 can be added to the specified position on the program page, thereby completing the page rendering.
[0114] In summary, by rendering the program page of the sub-program based on the storage information and displaying the target program page according to the rendering results, the storage resources can be visualized at the sub-client, thereby improving the page rendering efficiency.
[0115] Furthermore, considering that the shared file contains a large amount of storage information, and that the storage information can be used for different sub-programs in the sub-client 530, in order to avoid the sub-programs repeatedly reading the storage information, the reading parameters corresponding to the sub-programs can be updated after the sub-client 530 reads the storage information. In this embodiment, the server 510 is also configured to update the reading parameters corresponding to the sub-programs in response to the information confirmation request submitted by the sub-client 530 for the storage information.
[0116] Specifically, the information confirmation request refers to the computer instruction sent by the secondary client 530 to the server 510 after receiving the stored information, indicating that the secondary client 530 has successfully read the stored information. Correspondingly, the reading parameters are the parameters that indicate the information reading status and the information reading result; the reading parameters include, but are not limited to, the number of information transmissions, the secondary program version number, the secondary program version ID, and the information receiving status.
[0117] Based on this, in response to the information confirmation request submitted by the secondary client 530 for the stored information, the server 510 updates the reading parameters corresponding to the secondary program to indicate that the secondary client 530 has successfully read the stored information or responded to the stored information.
[0118] Continuing with the previous example, once the secondary program 2 receives image 1, it indicates that the secondary program 2 has successfully received the stored information. At this point, the server can record the number of transmissions. The transmission count can be recorded in an incremental manner, for example, as `msgCount:1`. Alternatively, the transmission parameters can be modified to record the information transmission, thus avoiding multiple responses from the secondary client. Add the parameter `msgApplicationVersion` to represent the program version number of the secondary program; set the receiving state `msAcceptState` to indicate the current status of the secondary program receiving information; the receiving state can be `true` or `false` to indicate whether the reception was successful; set the information type `msgType` to indicate the type of information transmitted; and set the control information `msgTypeButton` to represent the button information in the secondary program. Additionally, drag-and-drop, close the program, and key retraction control types can also be set.
[0119] In summary, after the secondary client completes reading the stored information from the shared file, it submits an information confirmation request to the server to indicate that the secondary client has successfully read the stored information. This update updates the corresponding reading parameters of the secondary program, thus recording the number of times the secondary client reads the information and preventing the secondary client from repeatedly reading the same stored information.
[0120] Furthermore, considering that the secondary program can execute the target service based on the storage information after receiving it, in order to facilitate the monitoring of the execution status and results of the target service, after the secondary client 530 completes the execution of the target service, it can send the execution result of the target service to the server 510, and then the server 510 sends it to the primary client 520 as feedback on the corresponding storage resources. In this embodiment, the secondary client 530 is also configured to feed back the execution result of the target service to the server 510, wherein the execution result is used to indicate the execution status of the target service; the server 510 is also configured to send the execution result to the primary client 520.
[0121] Specifically, the business execution result refers to the execution result determined after the secondary client 530 receives the stored information and executes the target business based on the stored information. In the case that the target business is the interface rendering business, the business execution result is the page rendering result of the secondary program. Correspondingly, the execution status can represent the execution status of the target business, including execution success, execution failure, or execution in progress.
[0122] Based on this, the secondary client 530 feeds back the execution result of the target service to the server 510, whereby the execution result indicates the execution status of the target service. The server 510 then sends the execution result to the primary client 520.
[0123] Following the previous example, after the secondary program 2 completes the rendering of the program page based on image 1, that is, after the page rendering task is completed, it can send a message of successful rendering or successful execution to the server. The server will then send the message of successful rendering or successful execution back to the main client. At the same time, it can also update the read status of the stored information in the shared file to indicate that the stored information in the shared file has been read by the secondary client and executed by the secondary program.
[0124] In summary, after the secondary program completes the target business, it sends the business execution result to the server, which then sends it to the main client, thereby enabling the monitoring and recording of the execution status of the target business.
[0125] Furthermore, considering that storage information from the main client 520 will be continuously added to the shared file, and the sub-programs in the sub-client 530 corresponding to each piece of storage information may be different, in order to avoid the accumulation of a large amount of unread storage information in the shared file, the shared file can be periodically detected by a preset detection time to obtain the storage information corresponding to the sub-program. In this embodiment, the sub-client 530 is further configured to generate an information query request based on a preset detection time interval and send the information query request to the server 510; the server 510 is further configured to respond to the information query request, query the storage information in the shared file, and send the storage information to the sub-client 530; or, respond to the information query request, perform an information query in the shared file, and send the information query result to the sub-client 530.
[0126] Specifically, the preset detection time interval can be a time interval pre-set according to detection needs (including but not limited to the urgency of information transmission), used to periodically detect shared files to check whether there is any newly added stored information in the shared files; the information query request refers to the computer instruction submitted by the secondary client 530 for the shared file, used to query the information stored in the shared file, thereby determining whether there is any unread stored information in the shared file corresponding to the secondary program installed in the secondary client 530; correspondingly, the information query result is the query result obtained by the secondary client 530 after querying the stored information stored in the shared file. The query result can be that there is unread stored information in the shared file corresponding to the secondary program installed in the secondary client 530, or it can be that there is no unread stored information in the shared file corresponding to the secondary program installed in the secondary client 530. If unread stored information corresponding to the secondary program installed in the secondary client 530 is found in the shared file, the server 510 can directly send the stored information to the secondary client 530.
[0127] Based on this, the secondary client 530 generates an information query request based on a preset detection time interval and sends the request to the server 510. The preset detection time interval can be used to perform periodic checks on the shared files. In response to the information query request, the server 510 queries the shared files for stored information. If it finds unread stored information in the shared files corresponding to the secondary program installed in the secondary client 530, it sends the stored information to the secondary client 530. Alternatively, in response to the information query request, it performs an information query in the shared files. If it finds no unread stored information corresponding to the secondary program installed in the secondary client 530, it sends the query result to the secondary client 530.
[0128] Using the previous example, when detecting the stored information in the shared file, the detection period can be set to 30 minutes, 1 hour, 2 hours, etc., according to actual needs. If a link 2 in the shared file is detected that corresponds to sub-program 1 in the sub-client, the server will directly send link 2 to the sub-program. If no information corresponding to the sub-client is detected in the shared file, the detection result "no information detected" will be fed back to the sub-client.
[0129] By periodically detecting shared files based on preset detection intervals, a large amount of unread information is avoided in shared files, thus enabling timely reading of the stored information in shared files.
[0130] In summary, the data processing system provided in this application includes a main client, a secondary client, and a server. The main client has a main program installed, and the secondary client has a secondary program installed. The main client is configured to acquire storage resources, call the main program, and submit a resource storage request to the server. The server is configured to respond to the resource storage request, perform resource conversion processing on the storage resources, determine the storage information based on the processing result, and store the storage information in a shared file. The secondary client is configured to read the storage information from the shared file, allocate the storage information to the secondary program, and run the secondary program that allocated the storage information to execute the target business. When information is transferred between the main client and the secondary client, the server first stores the storage information corresponding to the storage resources of the main client in the shared file, and then the secondary client reads the storage information from the shared file to execute the target business. This simplifies the information transfer process, eliminates the need to disrupt the code structure, and avoids the need for inter-process communication.
[0131] The following is in conjunction with the appendix Figure 6 Taking the application of the data processing system provided in this application for information transmission between clients as an example, the data processing system will be further described. Among other things, Figure 6 This is an interactive diagram of a data processing system for information transmission between clients, provided in an embodiment of this application. The system specifically includes the following steps:
[0132] Step S602: The main client obtains storage resources and submits a resource storage request to the server for the storage resources.
[0133] When handling information transfer between different applications or different pages of the same application within a local area network (LAN), shared files can be configured. In the case of information transfer between a host and a client machine within a LAN, the host acts as the primary client. After the host acquires or pre-prepares the storage resources (images, text, files, audio, video, etc.) to be transferred, it submits a resource storage request to the server to store the resources in a shared file.
[0134] Step S604: In response to the resource storage request, the server performs resource conversion processing on the storage resources, determines the storage information based on the processing result, and stores the storage information in the shared file.
[0135] After receiving a resource storage request, the server performs resource conversion processing on the storage resources such as images, text, files, audio, and video carried in the request to obtain the processing result. Specifically, if the storage resource is text, the text content can be directly stored as a storage resource in the shared file. If the storage resource is an image, text, file, audio, or video resource, a link can be generated based on the storage address of the image, text, file, audio, or video resource, and the link can be stored in the shared file.
[0136] Step S606: The secondary client reads the stored information from the shared file and executes the target business based on the stored information.
[0137] The secondary client can be a slave device within the local area network used to receive information. A detection period can be set according to actual needs. The slave device detects shared files based on this period. If it detects the presence of links, text, or other stored information corresponding to the slave device within a shared file, it reads the stored information and parses the links to obtain the corresponding images, files, audio, and video resources. Simultaneously, it records the number of transmissions, which can be incremented, for example, recorded as `msgCount:1`, `msgCount:2`, etc. Information transmission can also be recorded by modifying transmission parameters to avoid multiple reads or responses from the slave device. For example, the parameter `msgApplicationVersion` can be added to identify the slave device's version number; the receiving status `msAcceptState` can be set to indicate the current status of the slave device receiving information, which can be `true` or `false` to indicate whether reception or response was successful; the information type `msgType` can be set to indicate the type of information transmitted; and control information `msgTypeButton` can be set to represent button information, and drag-and-drop, close program, and key retraction controls can also be set.
[0138] Step S608: The secondary client sends the task execution information back to the server.
[0139] After the secondary client reads the stored information such as links and obtains resources such as images, files, and audio / video files based on the link parsing, it can send feedback information to the server as a response to the host. For example, it can send a success message to the server. If the target business executed by the secondary machine is to render a page based on the obtained stored information, it can send the page rendering result back to the server after the page rendering is completed, and then the server will send it to the host.
[0140] Step S610: The server sends the task execution information to the main client.
[0141] Furthermore, in practical applications, information transfer between applications, and between different pages of the same application, can be achieved through file sharing. The main program represents the information sender, and the target program represents the information receiver. The main program sends the images and text information to be transferred to the server. After receiving the images and text information, the server converts them into links and stores them in the shared file. During the rendering thread's lifecycle, the target application reads the corresponding links from the shared file, parses the links to obtain the images and text information, and updates parameters such as the receiving status and the number of transfers. The target application then renders its page based on the images and text information, thus achieving information transfer between the main program and the target application. Transferring information between different programs and pages requires various processing methods; whether it's referencing, event handling, or network transmission, it's quite complex, and the code writing is rather messy. Some mutually referencing pages may require disrupting the code structure to achieve information transfer. An embodiment of this application provides a data processing system that allows for flexible configuration of files, read / write methods, selection of read / write formats, and selection of shared file types, according to requirements. Compared to network or operating system-based inter-process communication, it is much simpler, requiring only read / write processing.
[0142] In summary, in the data processing system provided in this application, the main client acquires storage resources and submits a resource storage request to the server. The server responds to the resource storage request, performs resource conversion processing on the storage resources, determines the storage information based on the processing result, and stores the storage information in a shared file. The secondary client reads the storage information from the shared file and executes the target business based on the storage information. When transferring information between the main and secondary clients, the server first stores the storage information corresponding to the main client's storage resources in the shared file, and then the secondary client reads the storage information from the shared file to execute the target business. This simplifies the information transfer process, eliminates the need to disrupt the code structure, and avoids relying on inter-process communication for information transfer.
[0143] Corresponding to the above system embodiments, this application also provides data processing method embodiments. Figure 7 This is a flowchart of a second data processing method provided in an embodiment of this application. For example... Figure 7 As shown, the method includes the following steps:
[0144] Step S702: The main client obtains storage resources, calls the main program, and submits a resource storage request to the server for the storage resources.
[0145] Step S704: In response to the resource storage request, the server performs resource conversion processing on the storage resource, determines the storage information based on the processing result, and stores the storage information in a shared file;
[0146] Step S706: The secondary client reads the storage information from the shared file, allocates the storage information to the secondary program, and runs the secondary program that allocated the storage information to perform the target business.
[0147] The data processing method provided in this application involves a main client acquiring storage resources, invoking the main program, and submitting a resource storage request to the server. The server responds to the storage request, performs resource conversion processing on the storage resources, determines the storage information based on the processing result, and stores the storage information in a shared file. A secondary client reads the storage information from the shared file, allocates the storage information to a secondary program, and runs the secondary program that allocated the storage information to execute the target business logic.
[0148] In summary, when transmitting information between the main client and the secondary client, the server first stores the storage information corresponding to the main client's storage resources in a shared file, and then the secondary client reads the stored information from the shared file to execute the target business. This simplifies the information transmission process, does not require disrupting the code structure, and does not require inter-process communication to achieve information transmission.
[0149] The above is an illustrative scheme of a data processing method according to this embodiment. It should be noted that the technical solution of this data processing method and the technical solution of the data processing system described above belong to the same concept. For details not described in detail in the technical solution of the data processing method, please refer to the description of the technical solution of the data processing system described above.
[0150] Corresponding to the above system embodiments, this application also provides data processing device embodiments. Figure 8 This is a schematic diagram of the structure of a data processing device provided in one embodiment of this application. Figure 8 As shown, the device includes:
[0151] The acquisition module 802 is configured to be the main client to acquire storage resources, call the main program, and submit a resource storage request to the server for the storage resources.
[0152] Processing module 804 is configured to, in response to the resource storage request, perform resource conversion processing on the storage resource, determine storage information based on the processing result, and store the storage information in a shared file;
[0153] The execution module 806 is configured as a secondary client to read the storage information from the shared file, allocate the storage information to the secondary program, and run the secondary program that allocated the storage information to perform the target business.
[0154] In an optional embodiment, the acquisition module 802 is further configured to acquire storage resources, call the main program, create a resource storage request containing the storage resources for the sub-program, and send it to the server; the server is further configured to determine the storage identifier corresponding to the sub-client based on the resource storage request, establish an association between the storage information and the storage identifier, and store the storage information and the storage identifier in the shared file based on the association; the sub-client is further configured to read the storage information in the shared file based on the pre-stored storage identifier.
[0155] In an optional embodiment, the acquisition module 802 is further configured to determine the storage format corresponding to the storage information according to the resource storage request, and store the storage information to the shared file according to the storage format; if the storage format corresponds to the sub-program of the sub-client, the sub-client is further configured to read the storage information corresponding to the storage format from the shared file.
[0156] In an optional embodiment, the execution module 806 is further configured to run a sub-program that allocates the storage information, render the program page of the sub-program based on the storage information, and display the target program page according to the rendering result, wherein the target program page contains storage resources corresponding to the storage information.
[0157] In an optional embodiment, the execution module 806 is further configured to feed back the execution result of the target service to the server, wherein the execution result is used to indicate the execution status of the target service; the server is further configured to send the execution result to the main client.
[0158] In an optional embodiment, the execution module 806 is further configured to generate an information query request based on a preset detection time interval and send the information query request to the server; the server is further configured to, in response to the information query request, query stored information in the shared file and send the stored information to the sub-client; or, in response to the information query request, perform an information query in the shared file and send the information query result to the sub-client.
[0159] In summary, when transmitting information between the main client and the secondary client, the server first stores the storage information corresponding to the main client's storage resources in a shared file. Then, the secondary client reads the stored information from the shared file and executes the target business. This simplifies the information transmission process, eliminates the need to disrupt the code structure, and does not require inter-process communication to transmit information.
[0160] The above is an illustrative scheme of a data processing apparatus according to this embodiment. It should be noted that the technical solution of this data processing apparatus and the technical solution of the aforementioned data processing method belong to the same concept. Details not described in detail in the technical solution of the data processing apparatus can be found in the description of the technical solution of the aforementioned data processing method. Furthermore, the components in the apparatus embodiment should be understood as functional modules necessary to implement each step of the program flow or each step of the method; these functional modules are not actual functional divisions or separations. An apparatus claim defined by such a set of functional modules should be understood as a functional module architecture that primarily implements the solution through the computer program described in the specification, and not as a physical device that primarily implements the solution through hardware.
[0161] Figure 9 This is a schematic diagram of a third data processing system 900 according to an embodiment of this application. The data processing system 900 includes: a server 910, a main client 920, and a secondary client 930. The main client 920 is configured to acquire storage resources and submit resource storage requests to the server 910 for the storage resources. The server 910 is configured to respond to the resource storage requests, perform resource conversion processing on the storage resources, determine storage information based on the processing results, and store the storage information in a shared file. The secondary client 930 is configured to read the storage information from the shared file and execute target services based on the storage information.
[0162] In summary, when transmitting information between the main client and the secondary client, the server first stores the storage information corresponding to the main client's storage resources in a shared file. Then, the secondary client reads the stored information from the shared file and executes the target business. This simplifies the information transmission process, eliminates the need to disrupt the code structure, and does not require inter-process communication to transmit information.
[0163] Corresponding to the above system embodiments, this application also provides data processing method embodiments. Figure 10 This is a flowchart of a third data processing method provided in an embodiment of this application. For example... Figure 10 As shown, the method includes the following steps:
[0164] Step S1002: Receive the resource storage request submitted by the main client for the storage resource;
[0165] Step S1004: Perform resource conversion processing on the storage resources, determine the storage information based on the processing result, and store the storage information in a shared file;
[0166] Step S1006: Receive the data read request submitted by the secondary client, determine the storage information in the shared file based on the data read request, and send the storage information to the secondary client.
[0167] The system receives resource storage requests submitted by the main client for storage resources; performs resource conversion processing on the storage resources; determines storage information based on the processing results; and stores the storage information in a shared file; it also receives data read requests submitted by the secondary client, determines storage information in the shared file based on the data read requests, and sends the storage information to the secondary client.
[0168] When both the main client and the secondary client are applications, information transfer between applications can also be achieved. In the scenario of information transfer between a chat application and a shopping application, the storage resource is the address information in the chat application. The address information is stored in a shared file, and then after the shopping application is launched, the address information can be directly read from the shared file. The address in the shopping application can be edited based on the address information, and the program page can also be rendered based on the address information.
[0169] The data processing method provided in one embodiment of this application can also be applied to information transfer between different program pages within the same application. In a shopping application scenario where goods are purchased, after a specific item is purchased on the shopping cart page, the item information is stored as a storage resource in a shared file. The "Pending Shipment" interface retrieves the item information and renders the "Pending Shipment" interface based on this information.
[0170] When transmitting information between the main client and the secondary client, the server first stores the storage information corresponding to the storage resources of the main client in a shared file. Then, the secondary client reads the stored information from the shared file and executes the target business. This simplifies the information transmission process, and information transmission can be achieved without destroying the code structure or relying on inter-process communication.
[0171] The above is an illustrative scheme of another data processing method in this embodiment. It should be noted that the technical solution of this data processing method and the technical solution of the data processing system described above belong to the same concept. For details not described in detail in the technical solution of the data processing method, please refer to the description of the technical solution of the data processing system described above.
[0172] Figure 11 This is a structural block diagram of a computing device 1100 according to an embodiment of this application. The components of the computing device 1100 include, but are not limited to, a memory 1110 and a processor 1120. The processor 1120 is connected to the memory 1110 via a bus 1130, and a database 1150 is used to store data.
[0173] The computing device 1100 also includes an access device 1140, which enables the computing device 1100 to communicate via one or more networks 1160. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 1140 may include one or more of any type of wired or wireless network interface (e.g., a Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) interface, a Wi-MAX interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.
[0174] In one embodiment of this application, the aforementioned components of the computing device 1100 and Figure 11 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 11 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.
[0175] The computing device 1100 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 1100 can also be a mobile or stationary server.
[0176] The processor 1120 is used to execute computer-executable instructions of the data processing system.
[0177] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the data processing system described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the data processing system described above.
[0178] One embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are used in a data processing system.
[0179] The above is an illustrative embodiment of a computer-readable storage medium. It should be noted that the technical solution of this storage medium belongs to the same concept as the technical solution of the data processing system described above. Details not described in detail in the technical solution of the storage medium can be found in the description of the technical solution of the data processing system described above.
[0180] One embodiment of this application also provides a chip that stores a computer program, which, when executed by the chip, implements the steps of the data processing system.
[0181] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0182] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.
[0183] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0184] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0185] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.
Claims
1. A data processing system, characterized in that, include: First processing object, second processing object, and object management unit; The first processing object is configured to acquire storage resources and submit a resource storage request to the object management unit for the storage resources. The first processing object includes the main client or the main program installed on the main client, and the resource storage request includes the storage resources. The object management unit is configured to respond to the resource storage request, determine the storage identifier corresponding to the second processing object according to the resource storage request, perform resource conversion processing on the storage resource, determine storage information according to the processing result, establish an association relationship between the storage information and the storage identifier, and store the storage information and the storage identifier in a shared file based on the association relationship. The shared file is a storage space used to store the storage resource and the storage information, and the storage identifier is an identifier representing the second processing object. When the storage information is stored in the shared file for the second processing object, there is an association relationship between the storage information and the storage identifier, and the second processing object determines the storage information corresponding to the second processing object based on the storage identifier. The second processing object is configured to read the storage information in the shared file based on the pre-stored storage identifier, and execute the target service based on the storage information, wherein the second processing object includes a secondary client or a secondary program installed on the secondary client.
2. The system according to claim 1, characterized in that, The second processing object is further configured to render the initial object page of the second processing object based on the storage information, and display the target object page according to the rendering result, wherein the target object page contains the storage resources corresponding to the storage information.
3. The system according to claim 1, characterized in that, The second processing object is further configured to generate an information query request based on a preset detection time interval, and send the information query request to the object management unit; The object management unit is further configured to, in response to the information query request, query stored information in the shared file and send the stored information to the second processing object; or, in response to the information query request, perform an information query in the shared file and send the information query result to the second processing object.
4. A data processing method, characterized in that, Applied to the object management unit, including: Obtain the storage resources corresponding to the first processing object, wherein the first processing object includes the main client or the main program installed on the main client, and the storage resources are obtained by parsing the resource storage request; Based on the resource storage request, a storage identifier corresponding to the second processing object is determined. The storage resource is then converted. Storage information is determined based on the processing result, and an association is established between the storage information and the storage identifier. Based on the association, the storage information and the storage identifier are stored in a shared file. The shared file is a storage space used to store the storage resource and the storage information. The storage identifier is an identifier representing the second processing object. When the storage information is stored in the shared file for the second processing object, there is an association between the storage information and the storage identifier. The second processing object determines the storage information corresponding to the second processing object based on the storage identifier. In response to a data acquisition request submitted by a second processing object for the shared file, storage information is determined, and the target business corresponding to the second processing object is executed based on the storage information, wherein the second processing object includes a secondary client or a secondary program installed on the secondary client.
5. A data processing system, characterized in that, include: The system comprises a main client, a secondary client, and a server, wherein the main client has the main program installed, and the secondary client has the secondary program installed. The main client is configured to acquire storage resources, call the main program, and submit a resource storage request to the server for the storage resources, wherein the resource storage request includes the storage resources; The server is configured to respond to the resource storage request, determine the storage identifier corresponding to the secondary client based on the resource storage request, perform resource conversion processing on the storage resource, determine storage information based on the processing result, establish an association between the storage information and the storage identifier, and store the storage information and the storage identifier in a shared file based on the association. The shared file is a storage space used to store the storage resource and the storage information, and the storage identifier is an identifier representing the secondary client. When the storage information is stored in the shared file for the secondary client, there is an association between the storage information and the storage identifier, and the secondary client determines the storage information corresponding to the secondary client based on the storage identifier. The secondary client is configured to read the storage information from the shared file based on the pre-stored storage identifier, allocate the storage information to the secondary program, and run the secondary program that allocated the storage information to perform the target business.
6. The system according to claim 5, characterized in that, The server is further configured to determine the storage format corresponding to the storage information based on the resource storage request, and store the storage information to the shared file according to the storage format; In the case where the storage format corresponds to a sub-program of the sub-client, the sub-client is further configured to read storage information corresponding to the storage format from the shared file.
7. The system according to claim 5, characterized in that, The secondary client is further configured to run a secondary program that allocates the storage information, render the program page of the secondary program based on the storage information, and display the target program page according to the rendering result, wherein the target program page contains the storage resources corresponding to the storage information.
8. The system according to claim 5, characterized in that, The secondary client is further configured to feed back the execution result of the target service to the server, wherein the execution result is used to indicate the execution status of the target service; The server is also configured to send the results of the business execution to the main client.
9. The system according to claim 5, characterized in that, The secondary client is further configured to generate an information query request based on a preset detection time interval, and send the information query request to the server; The server is further configured to, in response to the information query request, query stored information in the shared file and send the stored information to the secondary client; Alternatively, in response to the information query request, an information query is performed in the shared file, and the information query result is sent to the secondary client.
10. A data processing system, characterized in that, include: Main client, secondary client, and server; The main client is configured to acquire storage resources and submit resource storage requests to the server for the storage resources, wherein the resource storage requests include the storage resources; The server is configured to respond to the resource storage request, determine the storage identifier corresponding to the secondary client based on the resource storage request, perform resource conversion processing on the storage resource, determine storage information based on the processing result, establish an association between the storage information and the storage identifier, and store the storage information and the storage identifier in a shared file based on the association. The shared file is a storage space used to store the storage resource and the storage information, and the storage identifier is an identifier representing the secondary client. When the storage information is stored in the shared file for the secondary client, there is an association between the storage information and the storage identifier, and the secondary client determines the storage information corresponding to the secondary client based on the storage identifier. The secondary client is configured to read the storage information from the shared file based on the pre-stored storage identifier, and execute the target service based on the storage information.
11. A data processing method, characterized in that, Applied to servers, including: Receive resource storage requests submitted by the main client for storage resources, wherein the storage resources are obtained by parsing the resource storage requests; Based on the resource storage request, a storage identifier corresponding to the secondary client is determined. The storage resource is then converted. Based on the processing result, storage information is determined, and an association is established between the storage information and the storage identifier. Based on the association, the storage information and the storage identifier are stored in a shared file. The shared file is a storage space used to store the storage resource and the storage information. The storage identifier is an identifier representing the secondary client. When the storage information is stored in the shared file for the secondary client, there is an association between the storage information and the storage identifier. The secondary client determines the storage information corresponding to the secondary client based on the storage identifier. The system receives a data read request submitted by the secondary client, determines the storage information in the shared file based on the data read request, and sends the storage information to the secondary client.
12. A computing device, characterized in that, include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the data processing method of claim 4 or 11.
13. A computer-readable storage medium storing computer instructions, characterized in that, When executed by the processor, this instruction implements the steps of the data processing method of claim 4 or 11.
Citation Information
Patent Citations
Data storage, reading, transmission method and management server and network node
CN101047610A
Picture decoding method and device, computer equipment and storage medium
CN112925654A
File processing method and device, equipment and storage medium thereof
CN114329283A