WO2023185765A1 - 基于云应用的文件处理方法、电子设备和存储介质 - Google Patents

基于云应用的文件处理方法、电子设备和存储介质 Download PDF

Info

Publication number
WO2023185765A1
WO2023185765A1 PCT/CN2023/084174 CN2023084174W WO2023185765A1 WO 2023185765 A1 WO2023185765 A1 WO 2023185765A1 CN 2023084174 W CN2023084174 W CN 2023084174W WO 2023185765 A1 WO2023185765 A1 WO 2023185765A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
file
target
processing
information
Prior art date
Application number
PCT/CN2023/084174
Other languages
English (en)
French (fr)
Inventor
刘勇
张献涛
任晋奎
Original Assignee
阿里巴巴(中国)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴(中国)有限公司 filed Critical 阿里巴巴(中国)有限公司
Publication of WO2023185765A1 publication Critical patent/WO2023185765A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present application relates to the field of computer technology, and in particular to a cloud application-based file processing method, a cloud application-based file processing device, an electronic device, and a storage medium.
  • PDF Portable Document Format
  • the existing way of determining the application for file processing is usually to bind a default application to the file type in advance so that the file of this file type can be opened by the default application.
  • a PDF type file can be connected to a PDF reader. (application) is bound so that when processing PDF type files, the PDF reader will be used to open the file by default.
  • the embodiment of the present application provides a file processing method based on cloud applications to process files more flexibly.
  • embodiments of the present application also provide a cloud application-based file processing device, an electronic device, and a storage medium to ensure the implementation and application of the above system.
  • inventions of the present application disclose a file processing method based on cloud applications.
  • the method includes:
  • the central service receives file processing requests from the operator
  • Read file and application associated data according to the file processing request, and select the target application of the target file.
  • the file and application associated data include priority information of the application, and the priority information is determined based on the user behavior data of the target user;
  • Generate application processing information based on the target application and target file send the application processing information to the corresponding unit service, so as to call the application resources of the target application through the unit service to process the target file, and generate an application
  • the processed video stream is fed back to the operator.
  • the file processing request includes: file parameters and user parameters;
  • the step of reading file and application associated data based on the file processing request and selecting a target application of the target file includes:
  • it also includes: determining unit ownership information based on the file processing request, where the unit ownership information is determined based on the user's geographical location and/or file storage location;
  • Cell services are selected based on the cell belonging information.
  • determining unit ownership information based on the file processing request includes at least one of the following steps:
  • the storage location of the target file is determined based on the file parameters, and the unit ownership information is determined based on the storage location.
  • the method further includes: receiving an application startup failure message, and reselecting the target application based on the application startup failure message.
  • the user behavior data includes at least one of the following data: applications that process files of the target type, frequency of processing files of the target type by applications, files of the target type by applications. processing time;
  • the file and application associated data are updated.
  • the embodiment of the present application also discloses a file processing method based on cloud applications.
  • the method includes:
  • the application processing message includes a target application and a target file.
  • the target application is determined based on the file processing request and the file and application associated data.
  • the target file is determined based on the file processing request.
  • the file Processing requests are issued by the operator;
  • the video stream is fed back to display the processing of the target file by the target application on the operating end.
  • the target file is processed by the target application and a video stream processed by the application is generated, including:
  • Render and obtain the video of the target application startup and target file opening process, and generate the corresponding video stream.
  • the unit service allocates application resources to the target application, it also includes:
  • an application startup failure message is generated, and the application startup failure message is sent to the central service so that the target application can be reselected.
  • it also includes: receiving operation information from the operation end, the operation information
  • Render and obtain the video of the target application responding to the operation information, generate the corresponding video stream and provide feedback.
  • the embodiment of the present application also discloses a file processing method based on cloud applications.
  • the method includes:
  • the method also includes: obtaining an operation event of the mouse, and generating operation information based on the operation event;
  • the operation information is sent to the unit service to respond to the operation information and generate a video stream through the target application.
  • the embodiment of the present application also discloses a file processing method based on cloud applications.
  • the method includes:
  • the operating terminal generates a file processing request in response to the operation on the target file; sends the file processing request to the central service;
  • the central service reads the file and application associated data according to the file processing request, and selects the target application of the target file.
  • the file and application associated data are determined based on the user behavior data of the target user; and generates an application based on the target application and the target file. Process information and send the application processing information to the corresponding unit service;
  • the unit service obtains the target file and allocates the application resources of the target application; processes the target file through the target application and generates a video stream processed by the application; feeds back the video stream;
  • the operation terminal renders and displays the video stream to display the processing of the target file by the target application.
  • the file processing request includes: file parameters and user parameters;
  • the step of reading file and application associated data based on the file processing request and selecting a target application of the target file includes:
  • it also includes: determining unit ownership information based on the file processing request, where the unit ownership information is determined based on the user's geographical location and/or file storage location;
  • Cell services are selected based on the cell belonging information.
  • determining unit ownership information based on the file processing request includes at least one of the following steps:
  • the storage location of the target file is determined based on the file parameters, and the unit ownership information is determined based on the storage location.
  • the method further includes: receiving an application startup failure message, and reselecting the target application based on the application startup failure message.
  • the user behavior data includes at least one of the following data: applications that process files of the target type, frequency of processing files of the target type by applications, files of the target type by applications. processing time;
  • the file and application associated data are updated.
  • the target file is processed by the target application and a video stream processed by the application is generated, including:
  • Render and obtain the video of the target application startup and target file opening process, and generate the corresponding video stream.
  • the unit service allocates application resources to the target application, it also includes:
  • an application startup failure message is generated, and the application startup failure message is sent to the central service so that the target application can be reselected.
  • it also includes: receiving operation information from the operation end, the operation information
  • Render and obtain the video of the target application responding to the operation information, generate the corresponding video stream and provide feedback.
  • the method also includes: obtaining an operation event of the mouse, and generating operation information based on the operation event;
  • the operation information is sent to the unit service to respond to the operation information and generate a video stream through the target application.
  • An embodiment of the present application also discloses an electronic device, including: a processor; and a memory on which executable code is stored. When the executable code is executed by the processor, the method described in the embodiment of the present application is executed. .
  • Embodiments of the present application also disclose one or more machine-readable media on which executable code is stored.
  • the executable code is executed by a processor, the method described in the embodiment of the present application is executed.
  • the embodiments of the present application include the following advantages:
  • the central service can receive the file processing request from the operation end, then read the data associated with the file and application, and select the target application of the target file. It can decide the application to process the file based on the user's behavior, and then generate the application processing The information is sent to the corresponding unit service, so that the application resources of the target application are called through the unit service to process the target file, and a video stream processed by the application is generated and fed back to the operation end, so as to realize the processing of the file by the cloud application.
  • the solution of the embodiment of the present application can process files more flexibly.
  • Figure 1 is a schematic diagram of an example of file processing under a cloud service system architecture according to an embodiment of the present application
  • Figure 2 is an interactive schematic diagram of an example of file processing under a cloud service system architecture according to an embodiment of the present application
  • Figure 3 is a flow chart of steps on the service side of the center according to an embodiment of a cloud application-based file processing method of the present application;
  • Figure 4 is a flow chart of steps on the service side of the unit of a cloud application-based file processing method embodiment of the present application
  • Figure 5 is a flow chart of steps on the operating side of an embodiment of a cloud application-based file processing method of the present application
  • Figure 6 is a schematic structural diagram of an embodiment of a cloud application-based file processing device of the present application.
  • Figure 7 is a schematic structural diagram of another embodiment of a file processing device based on cloud applications of the present application.
  • Figure 8 is a schematic structural diagram of another embodiment of a file processing device based on cloud applications of the present application.
  • Figure 9 is a schematic structural diagram of an exemplary device provided by an embodiment of the present application.
  • cloud application is a concept of cloud computing technology and is the embodiment of cloud computing technology at the application layer.
  • applications are deployed on the cloud server and can be used locally on the user's device without installing the application.
  • the files processed by cloud applications can also be deployed on the cloud server, such as in some edge nodes or edge storage devices, so that the application's processing of files is configured in the cloud.
  • Cloud application is an application form that migrates local application software to the cloud and provides services. Compared with local applications, cloud applications are not limited by local devices, operating systems, and computing power. They can provide a cross-system platform application ecosystem, as well as various heavy-duty software with high computing power requirements.
  • Embodiments of the present application can collect the user behavior of the user, so as to decide the application for file processing based on the user's behavior. When processing this type of file, the decision can be made based on the priority information, so as to use the decided application. Perform file processing. Compared with the solution of using a default application for file processing, the solution of the embodiment of the present application can process files more flexibly.
  • FIG. 1 is a schematic diagram of a cloud service system architecture.
  • the cloud service system includes: an operation end and a cloud server end.
  • the cloud server end can provide application decision-making service configuration services, management services and other services.
  • Different services Services can be deployed in the same or different regions (computer rooms).
  • Application decision-making services include central services, unit services, etc.
  • central services and unit services can be deployed in the same region (computer room) or in different regions (computer room).
  • the central service and the unit service serve as sub-services of the decision-making service, and they can both be set up in the center of the cloud server to provide services.
  • unit services can also be deployed in different regions (computer rooms) to provide services to users by region.
  • Configuration services and central services can be deployed in the same region (computer room).
  • Various services for cloud files and cloud applications can be provided through the cloud server.
  • the configuration service is responsible for maintaining the associated data between files and applications for use by application decision-making services.
  • This configuration service can provide a manual configuration interface for tenant administrators to use, and also has the ability to analyze user behavior data and automatically update related data.
  • the application decision service is responsible for reading data associated with files and applications, and making application decisions based on the user's request to open a file.
  • the application decision-making service is divided into two parts: the central service and the unit service.
  • the central service is responsible for deciding application information, and the unit service tries to allocate instance resources of the application for users.
  • the file and application associated data is the data that associates files and applications, which can determine the application that can process the file and provide information for decision-making on using the application.
  • the operating end is a user operating end, which can be carried by various terminal devices, such as mobile phones, tablets, computers and other devices. Users can issue file processing requests on the operating end, which can be processed by the cloud server, decide and allocate resources for cloud applications, and use cloud applications to process files, and then feed back the corresponding video streams to the operating end, thereby displaying the target application on the operating end
  • the process of processing the target file is consistent with the effect of the application installed locally on the operating terminal.
  • the cloud server can use the central service and the unit service to perform the following process: the central service reads the file and application associated data based on the file processing request, and selects the target application of the target file. Then send the application processing information to the unit service, such as unit service 2 in the figure.
  • the unit service calls the application resource to process the target file and feeds back the corresponding video stream to the operating end.
  • the specific executable is shown in Figure 2 Steps shown:
  • Step 202 The operating terminal generates a file processing request in response to the operation on the target file.
  • Step 204 The operating terminal sends the file processing request to the central service.
  • the operation terminal can receive operations performed by the user, such as performing a startup operation on the target file, or performing startup, editing, etc. in a set manner.
  • the operation terminal can determine the need to start the cloud application for processing based on the response to the operation on the target file.
  • This target file generates a file processing request, and then the cloud application interface can be called to send the file processing request to the device where the cloud server center service is located.
  • Step 206 Read the file and application associated data according to the file processing request, and select the target application of the target file.
  • the file-application association data includes priority information of the application, and the priority information is determined based on the user behavior data of the target user.
  • the file-application association data includes: an application set corresponding to the specified file type, priority information, tenant and user information of each application in the application set, etc.
  • each file type can correspond to an application collection.
  • a file and application association data can be configured for each file type, or application sets corresponding to various file types and corresponding priority information can be stored in the file and application association data.
  • Embodiments of the present application can divide files according to file types.
  • File types can also be called file formats.
  • File types refer to the encoding methods of information (pictures, text, audio, etc.), and different file types have different encoding methods.
  • the files can be processed by at least one application.
  • the embodiments of this application can automatically determine the applications required for files based on the central service and the unit service, and the configuration unit can provide the files and application associated data required for decision-making.
  • the configuration unit can collect file-related user behavior data when configuring file and application associated data, and divide it according to file types to form user behavior data corresponding to different file types.
  • the embodiments of this application are described by taking the analysis of user behavior related to files of a target type as an example.
  • Various types of files can be used as target types to analyze behavioral information respectively.
  • the user behavior data related to files of the target type may include at least one of the following data: applications that process files of the target type, frequency of processing files of the target type by the application, and duration of processing of files of the target type by the application.
  • the user behavior data can be analyzed to determine the priority information of the related applications of the target type, so that the target application for processing the file can be decided based on the priority information.
  • Embodiments of the present application can determine related applications for files of a target type, and determine target applications from the related applications, where the related applications refer to applications that provide processing of files of the target type.
  • embodiments of the present application can pre-analyze the priority information of the corresponding application and store it so that it can be called when making decisions; the priority information can be updated regularly or in response to the user's user behavior.
  • user behavior data is obtained, and the user behavior data includes at least the following data: One: an application that processes files of the target type, the frequency of processing the files of the target type by the application, and the processing time of the files of the target type by the application; updating the file and application associated data based on user behavior data.
  • the user behavior data of each user can be collected separately and analyzed to form priority information corresponding to the user, so as to match based on the user information, and match the priority information corresponding to the user information, so as to sort based on the priority information.
  • the priority information can be determined by the application selected by the user for file processing of the target type within the historical period, the frequency of use of the application, the duration of use, and other information.
  • the historical period can be a preset period of time before the time corresponding to the file processing request.
  • the period within three days before the time corresponding to the file processing request can be used as the historical period; in addition, the historical period can also be the period related to the file processing request.
  • the corresponding time periods are in the same time period. Specifically, a cycle (such as a day, a week, etc.) can be divided into multiple time periods, and the time period corresponding to the file processing request can be determined, and then the historical time period of the same period (such as in the previous cycle) can be obtained. time period corresponding to the time).
  • the application for file processing selected by the user within the historical period can be used as the application with the highest priority for decision-making.
  • Embodiments of the present application may also collect the frequency with which users use target applications to process target files, and sort the files according to the frequency with which the applications process the files.
  • Embodiments of the present application can also collect the user's usage time of the application, and then perform analysis based on the usage time. For example, the usage time after each application can be recorded. If the usage time is shorter than the preset time (such as two minutes), the usage time can be ignored. times of use; when the usage time exceeds the preset time, the priority of the application is increased.
  • embodiments of the present application can also record each usage time of an application to determine priority information based on the usage time and usage duration of the application.
  • the server can analyze the usage time and duration of the application, determine the user's switching behavior, and adjust the priority of application 2. Has a higher priority than application 1.
  • the file processing request includes: file parameters and user parameters; the file parameters are parameters of the required file, such as: file name, file type, file location and other parameters; the user parameters are parameters that determine the user's Parameters, such as user name, user ID, user's IP address, MAC address and other parameters.
  • the step of reading the file and application associated data according to the file processing request and selecting the target application of the target file includes: reading the file and application associated data; determining the file type of the target file according to the file parameters, and determining the corresponding file type. application set; determine priority information based on the user parameters; select a target application from the application set based on the priority information.
  • the file and application associated data can be read, and then the file type of the target file can be determined based on the file parameters.
  • the file and application associated data can then be queried based on the file type to determine the application set corresponding to the file type, and then the file type can be determined based on the user parameters.
  • the target user queries the file and application associated data to determine the priority information corresponding to the target user, and selects the target application from the application collection according to the priority information, such as selecting the application with the highest priority as the target application.
  • Step 208 Generate application processing information based on the target application and target file, and send the application processing information to the corresponding unit service.
  • the application processing information includes application parameters of the target application and file parameters of the target file, such as the name, identification, etc. of the application. File parameters such as file name, file location, etc. .
  • the application processing information can then be sent to the unit service so that the unit service provides application data to the user.
  • unit services are usually deployed in multiple locations, so that services can be provided to users based on location, resources, etc. Therefore, the central service also needs to select unit services that provide services to target users.
  • the unit belonging information is determined based on the file processing request, and the unit belonging information is determined based on the geographical location of the user and/or the file storage location; and the unit service is selected based on the unit belonging information.
  • Determining unit belonging information based on the file processing request includes at least one of the following steps: determining the user's geographical location based on user parameters, determining unit belonging information based on the geographical location; determining the storage location of the target file based on the file parameters. , determine unit ownership information based on the storage location.
  • the central service can obtain the user's IP address, MAC address and other geographical location, file location and other file storage location from the file processing request as the unit ownership information, and then select the unit service based on the unit ownership information, for example, select the unit closest to the user's geographical location. Services, such as selecting a unit service that stores the target file or is relatively nearby according to the file storage location, or selecting a unit service based on the geographical location and file storage location, etc. The selection of unit services can also be based on other methods, and the embodiments of this application do not limit this.
  • Step 210 Obtain the target file and allocate application resources of the target application.
  • Step 212 Process the target file through the target application and generate a video stream processed by the application.
  • the unit service can obtain the target file and application resources of the target application based on the application processing information.
  • Software applications and hardware resources can be allocated to start the target application.
  • the target file can be opened after the target application is started, and subsequent processing can also be performed based on operations on the operator side.
  • processing the target file through the target application and generating a video stream processed by the application includes: starting the target application using the application resources, and opening the target file through the target application; rendering And obtain the video of the target application startup and target file opening process, and generate the corresponding video stream.
  • the target application can be started based on the application resources, such as calling the application resources of the target application and instantiating them to start the target application, opening the target file through the target application, and during the target application starting the first-level target file opening process, the processing of the target application can be rendered process and generate the corresponding video stream.
  • an application startup failure message is generated, and the application startup failure message is sent to the central service in order to reselect the target application.
  • the central service has sent a suboptimal application, the suboptimal application can be used as the target application and the above process can be re-executed.
  • the central service After receiving the application startup failure message, the central service reselects the target application based on the application startup failure message. For example, a suboptimal application can be selected as the target application according to the priority information, and the application processing information can be generated to the processing unit, thereby re-executing the process of allocating resources to start the application. In other examples, the central service can also reselect the processing unit to use a new processing unit to perform the above process, which is not limited in the embodiment of the present application.
  • Step 214 Send the video stream to the operating terminal.
  • Step 216 Render and display the video stream to display the processing of the target file by the target application.
  • the operation terminal After the operation terminal receives the video stream, it can render and display it, so that the operation terminal shows the effect of opening the target application, opening the file in the target application, and processing it. Therefore, the user can perform target file processing, such as editing, for the target application.
  • the operation event of the mouse is also obtained, and operation information is generated based on the operation event; send
  • the operation information serves the unit to respond to the operation information and generate a video stream through the target application.
  • Users can issue operation events through mouse, touch, etc. for file processing.
  • operation information can be generated, including operation mode, operation location, etc.
  • the operation methods include single click, double click, long press, etc.
  • the operation position can be the coordinate information of the trigger point such as mouse or touch. Send the operation information to the unit service.
  • the unit service receives the operation information from the operation end; responds to the operation information through the target application; renders and obtains the video of the target application responding to the operation information, generates the corresponding video stream and provides feedback.
  • the unit service receives the operation information from the operation end and can respond to the operation information through the target application. That is, it determines the response that the target application needs to perform based on the location and method of the operation, such as triggering a certain function. It can render the process of the target application responding to the operation information and generate The corresponding video stream is sent to the operator.
  • the video stream can be generated as the processing is executed and sent to the operation terminal, so that the operation terminal displays the process as if it starts the application locally and executes the processing.
  • the central service can receive the file processing request from the operator, then read the data associated with the file and application, and select the target application of the target file. It can decide the application to process the file based on the user's behavior, then generate application processing information, and send Provide the corresponding unit service, thereby calling the application resources of the target application through the unit service to process the target file, and generate a video stream processed by the application and feed it back to the operating end to realize the processing of the file by the cloud application.
  • the file processing solution is applied by default.
  • the solution in the embodiment of this application can process files more flexibly.
  • a cloud application-based file processing method is provided, which is applied to the central service side of the cloud server and can decide on the application for processing files, thereby flexibly selecting the required application.
  • FIG. 3 a flow chart of steps on the center service side of an embodiment of a cloud application-based file processing method of the present application is shown.
  • Step 302 The central service receives the file processing request from the operator.
  • the file processing request includes: file parameters and user parameters.
  • Obtain user behavior data which includes at least one of the following data: applications that process files of the target type, frequency of processing files of the target type by applications, and processing duration of files of the target type by applications; based on user behavior Data, update the file and application associated data.
  • Step 304 Read file and application related data according to the file processing request, and select the target application of the target file.
  • the file and application related data are determined based on the user behavior data of the target user.
  • the step of reading the file and application associated data according to the file processing request and selecting the target application of the target file includes: reading the file and application associated data; determining the file type of the target file according to the file parameters, and determining the corresponding file type. application set; determine priority information based on the user parameters; select a target application from the application set based on the priority information.
  • Step 306 Generate application processing information based on the target application and target file, and send the application processing information to the corresponding unit service.
  • the target file is processed by calling application resources of the target application through the unit service, and a video stream processed by the application is generated and fed back to the operating terminal.
  • the unit ownership information is determined based on the file processing request, and the unit ownership information is based on the user's geographical location.
  • the location and/or file storage location is determined; unit services are selected based on the unit belonging information.
  • Determining unit belonging information based on the file processing request includes at least one of the following steps: determining the user's geographical location based on user parameters, determining unit belonging information based on the geographical location; determining the storage location of the target file based on the file parameters. , determine unit ownership information based on the storage location.
  • a file processing method based on cloud applications is provided, which is applied to the unit service side of the cloud server and can provide cloud application services based on the decided target application, thereby facilitating users to use cloud applications.
  • FIG. 4 a flowchart of steps on the service side of the unit service side of an embodiment of a cloud application-based file processing method of the present application is shown.
  • Step 402 Receive application processing information sent by the central service.
  • the application processing message includes a target application and a target file.
  • the target application is determined based on the file processing request and the data associated with the file and application.
  • the target file is determined based on the file processing request.
  • the file processing request is issued by the operating end.
  • Step 404 Obtain the target file and allocate application resources of the target application.
  • Step 406 Process the target file through the target application and generate a video stream processed by the application.
  • Processing the target file through the target application and generating a video stream processed by the application includes: using the application resource to start the target application and opening the target file through the target application; rendering and obtaining the target application startup and target Video of the file opening process, generating the corresponding video stream.
  • the unit service After the unit service allocates application resources to the target application, it also includes: if the application resource allocation fails, generate an application startup failure message, and send the application startup failure message to the central service so as to reselect the target application.
  • Step 408 Feed back the video stream to display the processing of the target file by the target application on the operating end.
  • It also includes: receiving operation information from the operation terminal, the operation information being generated based on the triggered operation event; responding to the operation information through the target application; rendering and obtaining the video of the target application responding to the operation information, generating a corresponding video stream and providing feedback.
  • a file processing method based on cloud application is provided, which is applied to the operation terminal such as the user device side.
  • the target application can be processed through the cloud application and the corresponding video data is displayed on the operation terminal.
  • FIG. 5 a step flow chart of the operation end of an embodiment of a cloud application-based file processing method of the present application is shown.
  • Step 502 In response to the operation on the target file, generate a file processing request.
  • Step 504 Send the file processing request to the central service, so that the central service reads the file and application associated data according to the file processing request, and selects the target application of the target file.
  • Step 506 Receive the video stream fed back by the unit service.
  • the unit service calls the application resource of the target application to process the target file and generates a video stream processed by the application.
  • Step 508 Render and display the video stream to display processing of the target file by the target application.
  • the triggered operation event can also be obtained, and operation information is generated according to the operation event; the operation information is sent to the unit service to respond to the operation information and generate a video stream through the target application.
  • users can use any terminal device to access application software under various platforms or systems provided on the cloud. It can automatically select the target application based on the target file to be processed and start the file. Users can conveniently use cloud applications to process files. There is no need for users to try between multiple applications themselves, improving processing efficiency.
  • the selected application may fail to open due to insufficient instance resources on the cloud, and it can also be automatically adjusted to other applications.
  • this embodiment also provides a cloud service system, including a central service, a unit service and an operation terminal, wherein the central service and the unit service can be deployed in the same region (machine room), or even in the same In a set of electronic equipment, central services and unit services can also be deployed in different regions (computer rooms).
  • a cloud service system including a central service, a unit service and an operation terminal, wherein the central service and the unit service can be deployed in the same region (machine room), or even in the same
  • central services and unit services can also be deployed in different regions (computer rooms).
  • This embodiment also provides a file processing device based on cloud applications, which is applied to electronic equipment on the service side of the cloud server center.
  • a file processing device based on cloud applications, which is applied to electronic equipment on the service side of the cloud server center.
  • it may specifically include the following modules:
  • the request receiving module 602 is used for the central service to receive file processing requests from the operating end.
  • the application selection module 604 is configured to read file and application associated data according to the file processing request, and select the target application of the target file.
  • the file and application associated data are determined based on the user behavior data of the target user.
  • the processing push module 606 is configured to generate application processing information based on the target application and target file, and send the application processing information to the corresponding unit service, so as to call the application resources of the target application to the target through the unit service.
  • the file is processed and a video stream processed by the application is generated and fed back to the operator.
  • the central service can receive the file processing request from the operator, then read the data associated with the file and application, and select the target application of the target file. It can decide the application to process the file based on the user's behavior, then generate application processing information, and send Provide the corresponding unit service, thereby calling the application resources of the target application through the unit service to process the target file, and generate a video stream processed by the application and feed it back to the operating end to realize the processing of the file by the cloud application.
  • the file processing solution is applied by default.
  • the solution in the embodiment of this application can process files more flexibly.
  • the file processing request includes: file parameters and user parameters; the application selection module 604 is used to read file and application associated data; determine the file type of the target file according to the file parameters, and determine the application corresponding to the file type. Set; determine priority information according to the user parameters; select a target application from the application set according to the priority information.
  • the processing push module 606 is also used to determine unit belonging information based on the file processing request, and the unit belonging information is determined based on the user's geographical location and/or file storage location; and select unit services based on the unit belonging information.
  • the processing push module 606 is used to determine the geographical location of the user based on the user parameters, and determine the unit belonging information based on the geographical location; determine the storage location of the target file based on the file parameters, and determine the storage location based on the storage location. Unit ownership information.
  • the application selection module 604 is also configured to receive an application startup failure message and reselect a target application based on the application startup failure message.
  • a configuration module for obtaining user behavior data includes at least one of the following data: an application that processes files of the target type, a frequency of processing files of the target type by the application, and a processing frequency of the file of the target type by the application.
  • the processing time of the file; based on the user behavior data, the file and application related data are updated.
  • this embodiment also provides a file processing device based on cloud application, which is applied to the electronic device on the service side of the cloud server unit.
  • a file processing device based on cloud application which is applied to the electronic device on the service side of the cloud server unit.
  • it may specifically include the following modules:
  • the receiving module 702 is used to receive application processing information sent by the central service.
  • the application processing message includes a target application and a target file.
  • the target application is determined based on the file processing request and the file and application associated data.
  • the target file is determined based on the file processing request.
  • the request is determined, and the file processing request is issued by the operation terminal.
  • the resource allocation module 704 is used to obtain the target file and allocate application resources of the target application.
  • the application processing module 706 is configured to process the target file through the target application and generate a video stream processed by the application.
  • the video stream push module 708 is used to feed back the video stream to display the processing of the target file by the target application on the operating end.
  • the application processing module 706 is configured to use the application resources to start the target application and open the target file through the target application; render and obtain the video of the target application startup and target file opening process, and generate a corresponding video stream.
  • the resource allocation module 704 is also configured to generate an application startup failure message if the application resource allocation fails, and send the application startup failure message to the central service in order to reselect the target application.
  • the application processing module 706 is also used to receive operation information from the operating end, which is generated based on the triggered operation event; respond to the operation information through the target application; render and obtain the video of the target application responding to the operation information, and generate a corresponding video stream and give feedback.
  • this embodiment also provides a file processing device based on cloud application, which is applied to the electronic device of the operating end.
  • a file processing device based on cloud application, which is applied to the electronic device of the operating end.
  • it may specifically include the following modules:
  • the request module 802 is configured to generate a file processing request in response to an operation on the target file.
  • the request sending module 804 is used to send the file processing request to the central service, so that the central service can read the file and application associated data according to the file processing request, and select the target application of the target file.
  • the video receiving module 806 is configured to receive the video stream fed back by the unit service.
  • the unit service calls the application resources of the target application to process the target file and generates a video stream processed by the application.
  • the display module 808 is used to render and display the video stream to display the processing of the target file by the target application.
  • It also includes: an operation module for obtaining triggered operation events and generating operation information according to the operation events; sending the operation information to the unit service to respond to the operation information and generate a video stream through the target application.
  • users can use any terminal device to access application software under various platforms or systems provided on the cloud. It can automatically select the target application based on the target file that needs to be processed and start the file. Users can use the cloud conveniently. Application to process files. There is no need for users to try between multiple applications themselves, improving processing efficiency. The selected application may fail to open due to insufficient instance resources on the cloud, and it can also be automatically adjusted to other applications.
  • Embodiments of the present application also provide a non-volatile readable storage medium.
  • One or more modules are stored in the storage medium. When the one or more modules are applied to a device, they can cause the device to execute Instructions for each method step in the embodiments of this application.
  • Embodiments of the present application provide one or more machine-readable media with instructions stored thereon that, when executed by one or more processors, cause the electronic device to perform the method described in one or more of the above embodiments.
  • the electronic equipment includes servers, terminal equipment and other equipment.
  • Embodiments of the present disclosure may be implemented as devices using any appropriate hardware, firmware, software, or any combination thereof to perform desired configurations, and the devices may include electronic devices such as servers (clusters) and terminals.
  • Figure 9 schematically illustrates an exemplary apparatus 900 that may be used to implement various embodiments described in this application.
  • FIG. 9 illustrates an exemplary apparatus 900 having one or more processors 902 , a control module (chipset) 904 coupled to at least one of the processor(s) 902 , memory 906 coupled to the control module 904 , a non-volatile memory (NVM)/storage device 908 coupled to the control module 904 , one or more input/output devices 910 coupled to the control module 904 , and Network interface 912 is coupled to control module 904 .
  • processors 902 a control module (chipset) 904 coupled to at least one of the processor(s) 902
  • memory 906 coupled to the control module 904
  • NVM non-volatile memory
  • Storage device 908 coupled to the control module 904
  • input/output devices 910 coupled to the control module 904
  • Network interface 912 is coupled to control module 904 .
  • Processor 902 may include one or more single-core or multi-core processors, and processor 902 may include any combination of general-purpose processors or special-purpose processors (eg, graphics processors, applications processors, baseband processors, etc.).
  • the device 900 can serve as a server, terminal and other equipment described in the embodiments of this application.
  • apparatus 900 may include one or more computer-readable media (eg, memory 906 or NVM/storage device 908) having instructions 914 and configured in combination with the one or more computer-readable media to One or more processors 902 execute instructions 914 to implement modules to perform the actions described in this disclosure.
  • processors 902 execute instructions 914 to implement modules to perform the actions described in this disclosure.
  • control module 904 may include any suitable interface controller to provide any suitable interface controller to at least one of the processor(s) 902 and/or any suitable device or component in communication with the control module 904 Interface.
  • Control module 904 may include a memory controller module to provide an interface to memory 906 .
  • the memory controller module may be a hardware module, a software module, and/or a firmware module.
  • Memory 906 may be used, for example, to load and store data and/or instructions 914 for device 900 .
  • memory 906 may include any suitable volatile memory, such as suitable DRAM.
  • memory 906 may include double data rate type quad synchronous dynamic random access memory (DDR4SDRAM).
  • control module 904 may include one or more input/output controllers to provide interfaces to NVM/storage device 908 and input/output device(s) 910 .
  • NVM/storage device 908 may be used to store data and/or instructions 914 .
  • NVM/storage device 908 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard drives (e.g., one or more hard drives) HDD), one or more compact disc (CD) drives and/or one or Multiple Digital Versatile Disc (DVD) drives).
  • suitable non-volatile memory e.g., flash memory
  • suitable non-volatile storage device(s) e.g., one or more hard drives (e.g., one or more hard drives) HDD
  • CD compact disc
  • DVD Digital Versatile Disc
  • NVM/storage device 908 may include storage resources that are part of the device on which apparatus 900 is installed, or may be accessible to the device without necessarily being part of the device. For example, NVM/storage device 908 may be accessed over the network via input/output device(s) 910 .
  • Input/output device(s) 910 may provide an interface for apparatus 900 to communicate with any other suitable device, which may include communication components, audio components, sensor components, and the like.
  • Network interface 912 may provide an interface for device 900 to communicate over one or more networks, and device 900 may communicate with one or more wireless networks in accordance with any of one or more wireless network standards and/or protocols.
  • Components perform wireless communication, such as accessing wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, etc., or their combination for wireless communication.
  • At least one of the processor(s) 902 may be packaged with the logic of one or more controllers (eg, a memory controller module) of the control module 904 .
  • at least one of the processor(s) 902 may be packaged together with the logic of one or more controllers of the control module 904 to form a system-in-package (SiP).
  • SiP system-in-package
  • at least one of the processor(s) 902 may be integrated on the same die as the logic of one or more controllers of the control module 904 .
  • at least one of the processor(s) 902 may be integrated on the same die with the logic of one or more controllers of the control module 904 to form a system on a chip (SoC).
  • SoC system on a chip
  • the apparatus 900 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (eg, a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.).
  • device 900 may have more or fewer components and/or a different architecture.
  • device 900 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including touch screen displays), a non-volatile memory port, a plurality of antennas, a graphics chip, an application specific integrated circuit ( ASIC) and speakers.
  • LCD liquid crystal display
  • ASIC application specific integrated circuit
  • the main control chip can be used as the processor or control module in the detection device, the sensor data, location information, etc. are stored in the memory or NVM/storage device, the sensor group can be used as an input/output device, and the communication interface can include a network interface.
  • An embodiment of the present application also provides an electronic device, including: a processor; and a memory on which executable code is stored.
  • the processor When the executable code is executed, the processor is caused to execute as in the embodiment of the present application. one or more of the methods described.
  • various data can be stored in the memory, such as target files, file and application associated data, and other data, and can also include user behavior data, etc., thereby providing a data basis for various processes.
  • Embodiments of the present application also provide one or more machine-readable media on which executable code is stored.
  • the processor executes one or more of the embodiments of the present application. Methods.
  • the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.
  • the embodiments of the present application refer to the methods, terminal equipment (systems), and computer program products according to the embodiments of the present application. described with flow charts and/or block diagrams. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine such that the instructions are executed by the processor of the computer or other programmable data processing terminal device. Means are generated for implementing the functions specified in the process or processes of the flowchart diagrams and/or the block or blocks of the block diagrams.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the The instruction means implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, so that a series of operating steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby causing the computer or other programmable terminal equipment to perform a computer-implemented process.
  • the instructions executed on provide steps for implementing the functions specified in a process or processes of the flow diagrams and/or a block or blocks of the block diagrams.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本申请实施例提供了一种基于云应用的文件处理方法、电子设备和存储介质。所述的方法包括:中心服务接收操作端的文件处理请求;依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,所述文件与应用关联数据包括应用的优先级信息,所述优先级信息依据目标用户的用户行为数据确定;依据所述目标应用和目标文件生成应用处理信息,发送所述应用处理信息给对应的单元服务,以通过所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流反馈给操作端。实现云应用对文件的处理,更加灵活的对文件进行处理。

Description

基于云应用的文件处理方法、电子设备和存储介质
本申请要求于2022年03月28日提交中国专利局、申请号为202210313350.8、申请名称为“基于云应用的文件处理方法、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及一种基于云应用的文件处理方法、一种基于云应用的文件处理装置、一种电子设备和一种存储介质。
背景技术
在打开文件对文件进行处理的过程中,通常需要通过应用程序来打开文件,例如,对于可携带文档格式(Portable Document Format,PDF)类型的文件来说,可以通过PDF阅读器、浏览器等应用程序来打开。
现有的确定对文件处理的应用的方式,通常是预先为文件类型绑定默认的应用程序,以通过默认的应用程序打开该文件类型的文件,例如,可以将PDF类型的文件与PDF阅读器(应用程序)进行绑定,以在对PDF类型的文件进行处理时,默认采用PDF阅读器打开文件。
但是,采用上述方式来打开文件,仅会采用默认的应用来打开文件,对文件的处理方式不够灵活。
发明内容
本申请实施例提供了一种基于云应用的文件处理方法,以更加灵活的对文件进行处理。
相应的,本申请实施例还提供了一种基于云应用的文件处理装置、一种电子设备和一种存储介质,用以保证上述系统的实现及应用。
为了解决上述问题,本申请实施例公开了一种基于云应用的文件处理方法,所述的方法包括:
中心服务接收操作端的文件处理请求;
依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,所述文件与应用关联数据包括应用的优先级信息,所述优先级信息依据目标用户的用户行为数据确定;
依据所述目标应用和目标文件生成应用处理信息,发送所述应用处理信息给对应的单元服务,以通过所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流反馈给操作端。
可选的,所述文件处理请求包括:文件参数和用户参数;
所述依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,包括:
读取文件与应用关联数据;
依据文件参数确定目标文件的文件类型,确定所述文件类型对应的应用集合;
依据所述用户参数,确定优先级信息;
依据所述优先级信息从所述应用集合中选择目标应用。
可选的,还包括:依据所述文件处理请求确定单元归属信息,所述单元归属信息依据用户的地理位置和/或文件存储位置确定;
依据所述单元归属信息选择单元服务。
可选的,所述依据所述文件处理请求确定单元归属信息,包括以下至少一种步骤:
依据用户参数确定用户的地理位置,依据所述地理位置确定单元归属信息;
依据所述文件参数确定目标文件的存储位置,依据所述存储位置确定单元归属信息。
可选的,还包括:接收应用启动失败消息,依据所述应用启动失败消息重新选择目标应用。
可选的,还包括:获取用户行为数据,所述用户行为数据包括以下数据中的至少一种:处理目标类型的文件的应用、应用对目标类型的文件的处理频率、应用对目标类型的文件的处理时长;
依据用户行为数据,更新所述文件与应用关联数据。
本申请实施例还公开了一种基于云应用的文件处理方法,所述方法包括:
接收中心服务发送的应用处理信息,所述应用处理消息包括目标应用和目标文件,所述目标应用依据文件处理请求和文件与应用关联数据确定,所述目标文件依据文件处理请求确定,所述文件处理请求由操作端发出;
获取目标文件并分配所述目标应用的应用资源;
通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流;
反馈所述视频流,以在操作端显示目标应用对目标文件的处理。
可选的,所述通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流,包括:
采用所述应用资源启动目标应用,并通过目标应用打开目标文件;
渲染并获取目标应用启动及目标文件打开过程的视频,生成相应的视频流。
可选的,单元服务为所述目标应用分配应用资源之后,还包括:
若应用资源失败,生成应用启动失败消息,发送所述应用启动失败消息给中心服务,以便重新选择目标应用。
可选的,还包括:接收操作端的操作信息,所述操作信息
通过目标应用响应操作信息;
渲染并获取目标应用响应操作信息的视频,生成相应的视频流并反馈。
本申请实施例还公开了一种基于云应用的文件处理方法,所述方法包括:
响应于对目标文件的操作,生成文件处理请求;
发送所述文件处理请求给中心服务,以便中心服务依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用;
接收单元服务反馈的视频流,所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流;
渲染并显示所述视频流,以显示目标应用对目标文件的处理。
可选的,还包括:获取鼠标的操作事件,并依据所述操作事件生成操作信息;
发送所述操作信息给单元服务,以通过目标应用响应操作信息并生成视频流。
本申请实施例还公开了一种基于云应用的文件处理方法,所述方法包括:
操作端响应于对目标文件的操作,生成文件处理请求;发送所述文件处理请求给中心服务;
中心服务依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,所述文件与应用关联数据依据目标用户的用户行为数据确定;依据所述目标应用和目标文件生成应用处理信息,发送所述应用处理信息给对应的单元服务;
单元服务获取目标文件并分配所述目标应用的应用资源;通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流;反馈所述视频流;
操作端渲染并显示所述视频流,以显示目标应用对目标文件的处理。
可选的,所述文件处理请求包括:文件参数和用户参数;
所述依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,包括:
读取文件与应用关联数据;
依据文件参数确定目标文件的文件类型,确定所述文件类型对应的应用集合;
依据所述用户参数,确定优先级信息;
依据所述优先级信息从所述应用集合中选择目标应用。
可选的,还包括:依据所述文件处理请求确定单元归属信息,所述单元归属信息依据用户的地理位置和/或文件存储位置确定;
依据所述单元归属信息选择单元服务。
可选的,所述依据所述文件处理请求确定单元归属信息,包括以下至少一种步骤:
依据用户参数确定用户的地理位置,依据所述地理位置确定单元归属信息;
依据所述文件参数确定目标文件的存储位置,依据所述存储位置确定单元归属信息。
可选的,还包括:接收应用启动失败消息,依据所述应用启动失败消息重新选择目标应用。
可选的,还包括:获取用户行为数据,所述用户行为数据包括以下数据中的至少一种:处理目标类型的文件的应用、应用对目标类型的文件的处理频率、应用对目标类型的文件 的处理时长;
依据用户行为数据,更新所述文件与应用关联数据。
可选的,所述通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流,包括:
采用所述应用资源启动目标应用,并通过目标应用打开目标文件;
渲染并获取目标应用启动及目标文件打开过程的视频,生成相应的视频流。
可选的,单元服务为所述目标应用分配应用资源之后,还包括:
若应用资源失败,生成应用启动失败消息,发送所述应用启动失败消息给中心服务,以便重新选择目标应用。
可选的,还包括:接收操作端的操作信息,所述操作信息
通过目标应用响应操作信息;
渲染并获取目标应用响应操作信息的视频,生成相应的视频流并反馈。
可选的,还包括:获取鼠标的操作事件,并依据所述操作事件生成操作信息;
发送所述操作信息给单元服务,以通过目标应用响应操作信息并生成视频流。
本申请实施例还公开了一种电子设备,包括:处理器;和存储器,其上存储有可执行代码,当所述可执行代码被处理器执行时,执行如本申请实施例所述的方法。
本申请实施例还公开了一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被处理器执行时,执行如本申请实施例所述的方法。
与现有技术相比,本申请实施例包括以下优点:
本申请实施例中,中心服务可接收操作端的文件处理请求,然后读取文件与应用关联数据,并选择目标文件的目标应用,能够根据用户的行为来决策出处理文件的应用,再生成应用处理信息,发送给对应的单元服务,从而通过单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流反馈给操作端,实现云应用对文件的处理,相比于采取默认应用进行文件处理的方案,本申请实施例的方案可以更加灵活的对文件进行处理。
附图说明
图1是本申请实施例的一种云服务系统架构下文件处理示例的示意图;
图2是本申请实施例的一种云服务系统架构下文件处理示例交互示意图;
图3是本申请一种基于云应用的文件处理方法实施例中心服务侧的步骤流程图;
图4是本申请一种基于云应用的文件处理方法实施例单元服务侧的步骤流程图;
图5是本申请一种基于云应用的文件处理方法实施例操作端侧的步骤流程图;
图6是本申请的一种基于云应用的文件处理装置实施例的结构示意图;
图7是本申请的另一种基于云应用的文件处理装置实施例的结构示意图;
图8是本申请的另一种基于云应用的文件处理装置实施例的结构示意图图;
图9是本申请一个实施例提供的示例性装置的结构示意图。
具体实施方式
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
本申请实施例可以应用于云应用领域,其中,云应用是云计算技术的一种概念,是云计算技术在应用层的体现。在云应用领域中,应用部署在云服务器端,用户设备的本地无需安装应用即可使用。并且云应用所处理的文件也可部署在云服务器端,如在某些边缘节点或边缘存储设备中,从而将应用对文件的处理均配置在云端实现。云应用是一种将本地应用软件迁移到云上并提供服务的应用形态。相比于本地应用,云应用不受本地设备、操作系统、以及算力的限制,可以提供跨系统平台的应用生态,以及各种有高算力要求的重型软件。同时通过云上分发,用户可以即点即用,无需安装。另外还可以实现数据不落地,具有很高的安全性。本申请实施例可以采集用户的用户行为,从而根据用户的行为来决策出对文件提供处理的应用,在对该类型的文件进行处理时,可以依据优先级信息进行决策,以通过决策出的应用进行文件处理。相比于采取默认应用进行文件处理的方案,本申请实施例的方案可以更加灵活的对文件进行处理。
如图1所示的一种云服务系统架构的示意图,该云服务系统包括:操作端和云服务器端,云服务器端可提供应用决策服务配置服务、管理服务等各种服务等服务,不同的服务可部署在相同或不同的地域(机房)上。应用决策服务包括中心服务、单元服务等,其中,中心服务和单元服务可部署在相同的地域(机房)中,也可部署在不同的地域(机房)。一些示例中,中心服务和单元服务作为决策服务的子服务,其可均设置在云服务端的中心来提供服务。另外一些示例中,也可在不同的地域(机房)部署单元服务,从而分地域来为用户提供服务。配置服务和中心服务可部署在同一地域(机房)中。通过云服务器端可提供针对云文件、云应用的各种服务。其中,配置服务负责维护文件与应用的关联数据,供应用决策服务使用。该配置服务能够提供手动配置接口给租户管理员使用,同时又具备分析用户行为数据并自动更新关联数据的能力。应用决策服务负责读取文件与应用关联数据,并以此作为依据对用户打开文件的请求进行应用决策。该应用决策服务又分为中心服务和单元服务两个部分,中心服务负责决策出应用信息,单元服务为用户尝试分配该应用的实例资源。其中,文件与应用关联数据是关联文件和应用的数据,可以确定能够处理文件的应用,并提供决策使用应用的信息。
操作端为用户操作端,其可由各种终端设备承载,如手机、平板电脑、计算机等各种设备。用户可在操作端发出文件处理请求,可由云服务端进行处理,决策并分配云应用的资源,并采用云应用处理文件,而后反馈相应的视频流给操作端,从而在操作端显示出目标应用处理目标文件的过程,与应用安装在操作端本地的效果一致。其中,云服务端可采用中心服务和单元服务来执行以下过程:中心服务基于发文件处理请求读取文件与应用关联数据,选择目标文件的目标应用。然后发送应用处理信息给单元服务,如图中单元服务2,单元服务调用应用资源处理目标文件,反馈相应的视频流给操作端。具体可执行如图2 所示的步骤:
步骤202,操作端响应于对目标文件的操作,生成文件处理请求。
步骤204,操作端发送所述文件处理请求给中心服务。
操作端可接收用户所执行的操作,例如在目标文件上执行启动操作,或执行通过设定方式启动、编辑等,操作端可以基于该响应于对目标文件的操作,确定需要启动云应用来处理该目标文件,从而生成文件处理请求,然后可调用云应用的接口,发送文件处理请求给云服务端中心服务所在的设备。
步骤206,依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用。所述文件与应用关联数据包括应用的优先级信息,所述优先级信息依据目标用户的用户行为数据确定。
在接收到该文件处理请求后,基于文件处理请求可以确定需要处理的目标文件,然后可以读取文件与应用关联数据,基于该文件与应用关联数据确定该目标文件的目标应用。其中,文件与应用关联数据包括:指定文件类型对应的应用集合,所述应用集合中各应用的优先级信息、所属租户与用户信息等。其中,每种文件类型可对应一个应用集合。相应的,可针对每种文件类型配置一文件与应用关联数据,或者在文件与应用关联数据中存储各种文件类型所对应的应用集合及相应的优先级信息。
本申请实施例可以按照文件类型来对文件进行划分,文件类型还可以称为文件格式,文件类型是指对信息(图片、文字、音频等信息)的编码方式,不同文件类型的编码方式不同。对于不同文件类型的文件来说,可以通过至少一个应用对文件进行处理。例如,对于目标类型的文件来说,可以对目标类型的文件进行处理的相关应用可能具有多个。本申请实施例可基于中心服务和单元服务自动决策文件所需的应用,配置单元可提供决策所需的文件与应用关联数据。其中,为了便于用户使用,配置单元在配置文件与应用关联数据时,可以采集文件相关的用户行为数据,并按照文件类型进行划分,形成对应不同文件类型的用户行为数据。
本申请实施例以对目标类型的文件相关的用户行为进行分析为例进行描述。可以各类型的文件作为目标类型,分别对行为信息进行分析。其中,目标类型的文件相关的用户行为数据可以包括以下数据中的至少一种:处理目标类型的文件的应用、应用对目标类型的文件的处理频率、应用对目标类型的文件的处理时长。获取到目标类型的文件相关的用户行为数据之后,可以对用户行为数据进行分析,确定目标类型的相关应用的优先级信息,以便依据优先级信息,决策出对文件进行处理的目标应用。本申请实施例可以确定目标类型的文件的相关应用,并从相关应用中决策出目标应用,其中,相关应用是指提供目标类型的文件的处理的应用。针对于不同的用户,本申请实施例可以预先分析出相应应用的优先级信息,并进行存储,以在决策时进行调用;优先级信息可以定期更新,也可以响应于用户的用户行为进行更新。
一个可选的实施例中,获取用户行为数据,所述用户行为数据包括以下数据中的至少 一种:处理目标类型的文件的应用、应用对目标类型的文件的处理频率、应用对目标类型的文件的处理时长;依据用户行为数据,更新所述文件与应用关联数据。可以分别采集各个用户的用户行为数据,并进行分析,形成与用户对应的优先级信息,以依据用户信息进行匹配,匹配到与用户信息对应的优先级信息,以依据优先级信息进行排序。其中,优先级信息可以通过用户在历史时段内选择的对目标类型的文件处理的应用、对应用的使用频率、使用时长等信息确定。其中,历史时段可以为文件处理请求对应的时间之前的预设时长的时段,例如,可以将文件处理请求对应的时间之前三天内的时长作为历史时段;另外,历史时段也可以为与文件处理请求对应的时间段处于同一时段,具体的,可以将一个周期(如一天、一周等)划分为多个时段,并判断文件处理请求对应的时段,进而获取同一时段的历史时间段(如上一周期中时间对应的时间段)。本申请实施例可以将用户在历史时段内选择的对文件处理的应用作为最高优先级的应用,以便进行决策。
本申请实施例也可以采集用户采用目标应用对目标文件进行处理的频率,并按照应用对文件的处理频率进行排序。本申请实施例也可以采集用户对应用的使用时长,进而依据使用时长进行分析,如可以记录每次开启应用后的使用时长,在使用时长短于预设时长(如两分钟),可以忽略该次使用;在使用时长超过预设时长时,提升该应用的优先级。并且,本申请实施例还可以记录应用的各次使用时间,以依据对应用的使用时间和使用时长来确定优先级信息。例如,用户在使用应用1开启文件a后,切换到使用应用2开启文件a,服务端可以依据对应用的使用时间和使用时长进行分析,确定用户的切换行为,并将应用2的优先级调整为高于应用1的优先级。
一个可选实施例中,所述文件处理请求包括:文件参数和用户参数;文件参数为所需文件的参数,如可包括:文件名称、文件类型、文件位置等参数;用户参数为确定用户的参数,如用户名称、用户标识、用户的IP地址、MAC地址等参数。
所述依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,包括:读取文件与应用关联数据;依据文件参数确定目标文件的文件类型,确定所述文件类型对应的应用集合;依据所述用户参数,确定优先级信息;依据所述优先级信息从所述应用集合中选择目标应用。可以读取该文件与应用关联数据,然后依据文件参数可以确定目标文件的文件类型,再基于该文件类型查询文件与应用关联数据,确定所述文件类型对应的应用集合,然后可以依据用户参数确定目标用户,查询文件与应用关联数据确定该目标用户对应的优先级信息,按照该优先级信息从所述应用集合中选择目标应用,如选取优先级最高的应用作为目标应用。
步骤208,依据所述目标应用和目标文件生成应用处理信息,发送所述应用处理信息给对应的单元服务。
在确定出目标应用和目标文件后,可生成应用处理信息,该应用处理信息包括目标应用的应用参数和目标文件的文件参数,例如应用的名称、标识等,文件参数如文件名称、文件位置等。然后可以发送应用处理信息给单元服务,以便单元服务给用户提供应用数据。
本申请实施例中,为了给用户提供更高效的服务,通常在多个位置部署单元服务,从而能够基于位置、资源等为用户提供服务。因此,中心服务还需选择为目标用户提供服务的单元服务。依据所述文件处理请求确定单元归属信息,所述单元归属信息依据用户的地理位置和/或文件存储位置确定;依据所述单元归属信息选择单元服务。所述依据所述文件处理请求确定单元归属信息,包括以下至少一种步骤:依据用户参数确定用户的地理位置,依据所述地理位置确定单元归属信息;依据所述文件参数确定目标文件的存储位置,依据所述存储位置确定单元归属信息。中心服务可从文件处理请求中获取用户的IP地址、MAC地址等地理位置、文件位置等文件存储位置作为单元归属信息,然后可依据单元归属信息选择单元服务,例如按照用户的地理位置就近选择单元服务,又如按照文件存储位置选择存储有目标文件或比较近的单元服务,或者结合地理位置和文件存储位置共同选择单元服务等。单元服务的选择还可依据其他方式,本申请实施例对此不做限制。
步骤210,获取目标文件并分配所述目标应用的应用资源。
步骤212,通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流。
单元服务在获取到应用处理信息后,可基于该应用处理信息获取目标文件和目标应用的应用资源。可以分配软件应用、硬件资源来启动该目标应用。在目标应用启动后可以打开该目标文件,后续也可基于操作端的操作来执行处理。
一个可选实施例中,所述通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流,包括:采用所述应用资源启动目标应用,并通过目标应用打开目标文件;渲染并获取目标应用启动及目标文件打开过程的视频,生成相应的视频流。可以基于应用资源启动目标应用,如调用目标应用的应用资源并进行实例化,从而启动目标应用,通过目标应用打开目标文件,在目标应用启动一级目标文件打开过程中,可以渲染目标应用的处理过程并生成相应的视频流。
本申请一个可选实施例中,若应用资源分配失败,生成应用启动失败消息,发送所述应用启动失败消息给中心服务,以便重新选择目标应用。在另外一些示例中,若中心服务已发送次优的应用,也可已该次优的应用作为目标应用,重新执行上述过程。
中心服务在接收到应用启动失败消息,依据所述应用启动失败消息重新选择目标应用。例如可按照优先级信息选择次优的应用作为目标应用,再生成应用处理信息给处理单元,从而重新执行分配资源启动应用的过程。在另外一些示例中,中心服务也可重新选择处理单元,从而采用新的处理单元执行上述过程,本申请实施例对此不做限制。
步骤214,发送所述视频流给操作端。
步骤216,渲染并显示所述视频流,以显示目标应用对目标文件的处理。
操作端接收到视频流之后可以渲染并显示,从而在操作端呈现出打开目标应用,在目标应用中打开文件以及处理的效果。因此用户可针对该目标应用执行目标文件的处理,如编辑等。
本申请实施例中,还获取鼠标的操作事件,并依据所述操作事件生成操作信息;发送 所述操作信息给单元服务,以通过目标应用响应操作信息并生成视频流。用户针对文件的处理可通过鼠标、触摸等发出操作事件,基于该操作事件可生成操作信息,包括操作方式、操作位置等。操作方式如单击、双击、长按等操作方式,操作位置可为鼠标或触摸等触发点的坐标信息。发送所述操作信息给单元服务。
单元服务接收操作端的操作信息;通过目标应用响应操作信息;渲染并获取目标应用响应操作信息的视频,生成相应的视频流并反馈。单元服务接收操作端的操作信息,可通过目标应用响应操作信息,即基于操作的位置和方式确定目标应用所需执行的相应,如触发某一功能等,可渲染目标应用响应操作信息的过程,生成相应的视频流,发送给操作端。
本申请实施例中该视频流可随着处理的执行生成并发送给操作端,从而操作端展示如同在本地启动应用并执行处理的过程。
综上,中心服务可接收操作端的文件处理请求,然后读取文件与应用关联数据,并选择目标文件的目标应用,能够根据用户的行为来决策出处理文件的应用,再生成应用处理信息,发送给对应的单元服务,从而通过单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流反馈给操作端,实现云应用对文件的处理,相比于采取默认应用进行文件处理的方案,本申请实施例的方案可以更加灵活的对文件进行处理。
在上述实施例的基础上,提供一种基于云应用的文件处理方法,应用于云服务端的中心服务侧,能够决策处理文件的应用,从而灵活的选择所需的应用。
参照图3,示出了本申请的一种基于云应用的文件处理方法实施例中心服务侧的步骤流程图。
步骤302,中心服务接收操作端的文件处理请求。
所述文件处理请求包括:文件参数和用户参数。获取用户行为数据,所述用户行为数据包括以下数据中的至少一种:处理目标类型的文件的应用、应用对目标类型的文件的处理频率、应用对目标类型的文件的处理时长;依据用户行为数据,更新所述文件与应用关联数据。
步骤304,依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用。所述文件与应用关联数据依据目标用户的用户行为数据确定。
所述依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,包括:读取文件与应用关联数据;依据文件参数确定目标文件的文件类型,确定所述文件类型对应的应用集合;依据所述用户参数,确定优先级信息;依据所述优先级信息从所述应用集合中选择目标应用。
步骤306,依据所述目标应用和目标文件生成应用处理信息,发送所述应用处理信息给对应的单元服务。以通过所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流反馈给操作端。
其中,依据所述文件处理请求确定单元归属信息,所述单元归属信息依据用户的地理 位置和/或文件存储位置确定;依据所述单元归属信息选择单元服务。所述依据所述文件处理请求确定单元归属信息,包括以下至少一种步骤:依据用户参数确定用户的地理位置,依据所述地理位置确定单元归属信息;依据所述文件参数确定目标文件的存储位置,依据所述存储位置确定单元归属信息。
接收应用启动失败消息,依据所述应用启动失败消息重新选择目标应用。
在上述实施例的基础上,提供一种基于云应用的文件处理方法,应用于云服务端的单元服务侧,能够基于决策出的目标应用,提供云应用的服务,从而便于用户使用云应用。
参照图4,示出了本申请的一种基于云应用的文件处理方法实施例单元服务侧的步骤流程图。
步骤402,接收中心服务发送的应用处理信息。
所述应用处理消息包括目标应用和目标文件,所述目标应用依据文件处理请求和文件与应用关联数据确定,所述目标文件依据文件处理请求确定,所述文件处理请求由操作端发出。
步骤404,获取目标文件并分配所述目标应用的应用资源。
步骤406,通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流。
所述通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流,包括:采用所述应用资源启动目标应用,并通过目标应用打开目标文件;渲染并获取目标应用启动及目标文件打开过程的视频,生成相应的视频流。
其中,单元服务为所述目标应用分配应用资源之后,还包括:若应用资源分配失败,生成应用启动失败消息,发送所述应用启动失败消息给中心服务,以便重新选择目标应用。
步骤408,反馈所述视频流,以在操作端显示目标应用对目标文件的处理。
还包括:接收操作端的操作信息,所述操作信息依据触发的操作事件生成;通过目标应用响应操作信息;渲染并获取目标应用响应操作信息的视频,生成相应的视频流并反馈。
在上述实施例的基础上,提供一种基于云应用的文件处理方法,应用于操作端如用户设备侧等,针对目标应用可通过云应用处理,在操作端显示相应的视频数据。
参照图5,示出了本申请的一种基于云应用的文件处理方法实施例操作端的步骤流程图。
步骤502,响应于对目标文件的操作,生成文件处理请求。
步骤504,发送所述文件处理请求给中心服务,以便中心服务依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用。
步骤506,接收单元服务反馈的视频流,所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流。
步骤508,渲染并显示所述视频流,以显示目标应用对目标文件的处理。
其中,还可获取触发的操作事件,并依据所述操作事件生成操作信息;发送所述操作信息给单元服务,以通过目标应用响应操作信息并生成视频流。
从而用户可以使用任意终端设备访问云上提供的各种不同平台或系统下的应用软件。能够自动基于所需处理的目标文件选择目标应用,并启动文件,从用户能够便捷的使用云应用来处理文件。无需用户自己在多个应用之间尝试,提高处理效率。对于选择的应用可能存在由于云上实例资源不足从而导致打开失败的情况,也可自动调整为其他应用。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。
在上述实施例的基础上,本实施例还提供了一种云服务系统,包括中心服务、单元服务和操作端,其中,中心服务和单元服务可部署在相同的地域(机房)中,甚至同一台电子设备中,中心服务和单元服务也可部署在不同的地域(机房)。
本实施例还提供了一种基于云应用的文件处理装置,应用于云服务器端中心服务侧的电子设备中,参照图6,具体可以包括如下模块:
请求接收模块602,用于中心服务接收操作端的文件处理请求。
应用选择模块604,用于依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,所述文件与应用关联数据依据目标用户的用户行为数据确定。
处理推送模块606,用于依据所述目标应用和目标文件生成应用处理信息,发送所述应用处理信息给对应的单元服务,以通过所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流反馈给操作端。
综上,中心服务可接收操作端的文件处理请求,然后读取文件与应用关联数据,并选择目标文件的目标应用,能够根据用户的行为来决策出处理文件的应用,再生成应用处理信息,发送给对应的单元服务,从而通过单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流反馈给操作端,实现云应用对文件的处理,相比于采取默认应用进行文件处理的方案,本申请实施例的方案可以更加灵活的对文件进行处理。
其中,所述文件处理请求包括:文件参数和用户参数;所述应用选择模块604,用于读取文件与应用关联数据;依据文件参数确定目标文件的文件类型,确定所述文件类型对应的应用集合;依据所述用户参数,确定优先级信息;依据所述优先级信息从所述应用集合中选择目标应用。
所述处理推送模块606,还用于依据所述文件处理请求确定单元归属信息,所述单元归属信息依据用户的地理位置和/或文件存储位置确定;依据所述单元归属信息选择单元服务。
所述处理推送模块606,用于依据用户参数确定用户的地理位置,依据所述地理位置确定单元归属信息;依据所述文件参数确定目标文件的存储位置,依据所述存储位置确定 单元归属信息。
所述应用选择模块604,还用于接收应用启动失败消息,依据所述应用启动失败消息重新选择目标应用。
还包括:配置模块,用于获取用户行为数据,所述用户行为数据包括以下数据中的至少一种:处理目标类型的文件的应用、应用对目标类型的文件的处理频率、应用对目标类型的文件的处理时长;依据用户行为数据,更新所述文件与应用关联数据。
在上述实施例的基础上,本实施例还提供了一种基于云应用的文件处理装置,应用于云服务器端单元服务侧的电子设备中,参照图7,具体可以包括如下模块:
接收模块702,用于接收中心服务发送的应用处理信息,所述应用处理消息包括目标应用和目标文件,所述目标应用依据文件处理请求和文件与应用关联数据确定,所述目标文件依据文件处理请求确定,所述文件处理请求由操作端发出。
资源分配模块704,用于获取目标文件并分配所述目标应用的应用资源。
应用处理模块706,用于通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流。
视频流推送模块708,用于反馈所述视频流,以在操作端显示目标应用对目标文件的处理。
所述应用处理模块706,用于采用所述应用资源启动目标应用,并通过目标应用打开目标文件;渲染并获取目标应用启动及目标文件打开过程的视频,生成相应的视频流。
所述资源分配模块704,还用于若应用资源分配失败,生成应用启动失败消息,发送所述应用启动失败消息给中心服务,以便重新选择目标应用。
所述应用处理模块706,还用于接收操作端的操作信息,所述操作信息依据触发的操作事件生成;通过目标应用响应操作信息;渲染并获取目标应用响应操作信息的视频,生成相应的视频流并反馈。
在上述实施例的基础上,本实施例还提供了一种基于云应用的文件处理装置,应用于操作端的电子设备中,参照图8,具体可以包括如下模块:
请求模块802,用于响应于对目标文件的操作,生成文件处理请求。
请求发送模块804,用于发送所述文件处理请求给中心服务,以便中心服务依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用。
视频接收模块806,用于接收单元服务反馈的视频流,所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流。
显示模块808,用于渲染并显示所述视频流,以显示目标应用对目标文件的处理。
还包括:操作模块,用于获取触发的操作事件,并依据所述操作事件生成操作信息;发送所述操作信息给单元服务,以通过目标应用响应操作信息并生成视频流。
从而用户可以使用任意终端设备访问云上提供的各种不同平台或系统下的应用软件。能够自动基于所需处理的目标文件选择目标应用,并启动文件,从用户能够便捷的使用云 应用来处理文件。无需用户自己在多个应用之间尝试,提高处理效率。对于选择的应用可能存在由于云上实例资源不足从而导致打开失败的情况,也可自动调整为其他应用。
本申请实施例还提供了一种非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在设备时,可以使得该设备执行本申请实施例中各方法步骤的指令(instructions)。
本申请实施例提供了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得电子设备执行如上述实施例中一个或多个所述的方法。本申请实施例中,所述电子设备包括服务器、终端设备等设备。
本公开的实施例可被实现为使用任意适当的硬件,固件,软件,或及其任意组合进行想要的配置的装置,该装置可包括服务器(集群)、终端等电子设备。图9示意性地示出了可被用于实现本申请中所述的各个实施例的示例性装置900。
对于一个实施例,图9示出了示例性装置900,该装置具有一个或多个处理器902、被耦合到(一个或多个)处理器902中的至少一个的控制模块(芯片组)904、被耦合到控制模块904的存储器906、被耦合到控制模块904的非易失性存储器(NVM)/存储设备908、被耦合到控制模块904的一个或多个输入/输出设备910,以及被耦合到控制模块904的网络接口912。
处理器902可包括一个或多个单核或多核处理器,处理器902可包括通用处理器或专用处理器(例如图形处理器、应用处理器、基频处理器等)的任意组合。在一些实施例中,装置900能够作为本申请实施例中所述服务端、终端等设备。
在一些实施例中,装置900可包括具有指令914的一个或多个计算机可读介质(例如,存储器906或NVM/存储设备908)以及与该一个或多个计算机可读介质相合并被配置为执行指令914以实现模块从而执行本公开中所述的动作的一个或多个处理器902。
对于一个实施例,控制模块904可包括任意适当的接口控制器,以向(一个或多个)处理器902中的至少一个和/或与控制模块904通信的任意适当的设备或组件提供任意适当的接口。
控制模块904可包括存储器控制器模块,以向存储器906提供接口。存储器控制器模块可以是硬件模块、软件模块和/或固件模块。
存储器906可被用于例如为装置900加载和存储数据和/或指令914。对于一个实施例,存储器906可包括任意适当的易失性存储器,例如,适当的DRAM。在一些实施例中,存储器906可包括双倍数据速率类型四同步动态随机存取存储器(DDR4SDRAM)。
对于一个实施例,控制模块904可包括一个或多个输入/输出控制器,以向NVM/存储设备908及(一个或多个)输入/输出设备910提供接口。
例如,NVM/存储设备908可被用于存储数据和/或指令914。NVM/存储设备908可包括任意适当的非易失性存储器(例如,闪存)和/或可包括任意适当的(一个或多个)非易失性存储设备(例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或 多个数字通用光盘(DVD)驱动器)。
NVM/存储设备908可包括作为装置900被安装在其上的设备的一部分的存储资源,或者其可被该设备访问可不必作为该设备的一部分。例如,NVM/存储设备908可通过网络经由(一个或多个)输入/输出设备910进行访问。
(一个或多个)输入/输出设备910可为装置900提供接口以与任意其他适当的设备通信,输入/输出设备910可以包括通信组件、音频组件、传感器组件等。网络接口912可为装置900提供接口以通过一个或多个网络通信,装置900可根据一个或多个无线网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信,例如接入基于通信标准的无线网络,如WiFi、2G、3G、4G、5G等,或它们的组合进行无线通信。
对于一个实施例,(一个或多个)处理器902中的至少一个可与控制模块904的一个或多个控制器(例如,存储器控制器模块)的逻辑封装在一起。对于一个实施例,(一个或多个)处理器902中的至少一个可与控制模块904的一个或多个控制器的逻辑封装在一起以形成系统级封装(SiP)。对于一个实施例,(一个或多个)处理器902中的至少一个可与控制模块904的一个或多个控制器的逻辑集成在同一模具上。对于一个实施例,(一个或多个)处理器902中的至少一个可与控制模块904的一个或多个控制器的逻辑集成在同一模具上以形成片上系统(SoC)。
在各个实施例中,装置900可以但不限于是:服务器、台式计算设备或移动计算设备(例如,膝上型计算设备、手持计算设备、平板电脑、上网本等)等终端设备。在各个实施例中,装置900可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,装置900包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。
其中,检测装置中可采用主控芯片作为处理器或控制模块,传感器数据、位置信息等存储到存储器或NVM/存储设备中,传感器组可作为输入/输出设备,通信接口可包括网络接口。
本申请实施例还提供了一种电子设备,包括:处理器;和存储器,其上存储有可执行代码,当所述可执行代码被执行时,使得所述处理器执行如本申请实施例中一个或多个所述的方法。本申请实施例中存储器中可存储各种数据,如目标文件、文件与应用关联数据等各种数据,还可包括用户行为数据等,从而为各种处理提供数据基础。
本申请实施例还提供了一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被执行时,使得处理器执行如本申请实施例中一个或多个所述的方法。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品 的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本申请所提供的一种基于云应用的文件处理方法、一种基于云应用的文件处理装置、一种电子设备和一种存储介质,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (14)

  1. 一种基于云应用的文件处理方法,其特征在于,所述方法包括:
    中心服务接收操作端的文件处理请求;
    依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,所述文件与应用关联数据依据目标用户的用户行为数据确定;
    依据所述目标应用和目标文件生成应用处理信息,发送所述应用处理信息给对应的单元服务,以通过所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流反馈给操作端。
  2. 根据权利要求1所述的方法,其特征在于,所述文件处理请求包括:文件参数和用户参数;
    所述依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,包括:
    读取文件与应用关联数据;
    依据文件参数确定目标文件的文件类型,确定所述文件类型对应的应用集合;
    依据所述用户参数,确定优先级信息;
    依据所述优先级信息从所述应用集合中选择目标应用。
  3. 根据权利要求1所述的方法,其特征在于,还包括:
    依据所述文件处理请求确定单元归属信息,所述单元归属信息依据用户的地理位置和/或文件存储位置确定;
    依据所述单元归属信息选择单元服务。
  4. 根据权利要求3所述的方法,其特征在于,所述依据所述文件处理请求确定单元归属信息,包括以下至少一种步骤:
    依据用户参数确定用户的地理位置,依据所述地理位置确定单元归属信息;
    依据所述文件参数确定目标文件的存储位置,依据所述存储位置确定单元归属信息。
  5. 根据权利要求1所述的方法,其特征在于,还包括:
    接收应用启动失败消息,依据所述应用启动失败消息重新选择目标应用。
  6. 根据权利要求1所述的方法,其特征在于,还包括:
    获取用户行为数据,所述用户行为数据包括以下数据中的至少一种:处理目标类型的文件的应用、应用对目标类型的文件的处理频率、应用对目标类型的文件的处理时长;
    依据用户行为数据,更新所述文件与应用关联数据。
  7. 一种基于云应用的文件处理方法,其特征在于,所述方法包括:
    接收中心服务发送的应用处理信息,所述应用处理消息包括目标应用和目标文件,所述目标应用依据文件处理请求和文件与应用关联数据确定,所述目标文件依据文件处理请求确定,所述文件处理请求由操作端发出;
    获取目标文件并分配所述目标应用的应用资源;
    通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流;
    反馈所述视频流,以在操作端显示目标应用对目标文件的处理。
  8. 根据权利要求7所述的方法,其特征在于,所述通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流,包括:
    采用所述应用资源启动目标应用,并通过目标应用打开目标文件;
    渲染并获取目标应用启动及目标文件打开过程的视频,生成相应的视频流。
  9. 根据权利要求7所述的方法,其特征在于,单元服务为所述目标应用分配应用资源之后,还包括:
    若应用资源分配失败,生成应用启动失败消息,发送所述应用启动失败消息给中心服务,以便重新选择目标应用。
  10. 根据权利要求7所述的方法,其特征在于,还包括:
    接收操作端的操作信息,所述操作信息依据触发的操作事件生成;
    通过目标应用响应操作信息;
    渲染并获取目标应用响应操作信息的视频,生成相应的视频流并反馈。
  11. 一种基于云应用的文件处理方法,其特征在于,所述方法包括:
    响应于对目标文件的操作,生成文件处理请求;
    发送所述文件处理请求给中心服务,以便中心服务依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用;
    接收单元服务反馈的视频流,所述单元服务调用所述目标应用的应用资源对所述目标文件进行处理,并生成应用处理的视频流;
    渲染并显示所述视频流,以显示目标应用对目标文件的处理。
  12. 根据权利要求11所述的方法,其特征在于,还包括:
    获取触发的操作事件,并依据所述操作事件生成操作信息;
    发送所述操作信息给单元服务,以通过目标应用响应操作信息并生成视频流。
  13. 一种基于云应用的文件处理方法,其特征在于,所述方法包括:
    操作端响应于对目标文件的操作,生成文件处理请求;发送所述文件处理请求给中心服务;
    中心服务依据所述文件处理请求读取文件与应用关联数据,并选择目标文件的目标应用,所述文件与应用关联数据依据目标用户的用户行为数据确定;依据所述目标应用和目标文件生成应用处理信息,发送所述应用处理信息给对应的单元服务;
    单元服务获取目标文件并分配所述目标应用的应用资源;通过所述目标应用对所述目标文件进行处理,并生成应用处理的视频流;反馈所述视频流;
    操作端渲染并显示所述视频流,以显示目标应用对目标文件的处理。
  14. 一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被处理器执行时,执行如权利要求1-13中任一项所述的方法。
PCT/CN2023/084174 2022-03-28 2023-03-27 基于云应用的文件处理方法、电子设备和存储介质 WO2023185765A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210313350.8A CN114816789A (zh) 2022-03-28 2022-03-28 基于云应用的文件处理方法、电子设备和存储介质
CN202210313350.8 2022-03-28

Publications (1)

Publication Number Publication Date
WO2023185765A1 true WO2023185765A1 (zh) 2023-10-05

Family

ID=82531693

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/084174 WO2023185765A1 (zh) 2022-03-28 2023-03-27 基于云应用的文件处理方法、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN114816789A (zh)
WO (1) WO2023185765A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816789A (zh) * 2022-03-28 2022-07-29 阿里巴巴(中国)有限公司 基于云应用的文件处理方法、电子设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727449A (zh) * 2008-10-28 2010-06-09 国际商业机器公司 利用远程应用处理本地文件的系统和方法
CN104471528A (zh) * 2012-04-23 2015-03-25 谷歌公司 将文件类型与网络存储服务中的应用相关联
JP2015222543A (ja) * 2014-05-23 2015-12-10 株式会社エニグモ ファイル作成閲覧プログラム、情報処理装置及び情報処理システム
CN110457270A (zh) * 2019-07-30 2019-11-15 惠州Tcl移动通信有限公司 一种文件加载的方法、装置和终端
CN114816789A (zh) * 2022-03-28 2022-07-29 阿里巴巴(中国)有限公司 基于云应用的文件处理方法、电子设备和存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547886B (zh) * 2016-11-03 2020-01-10 Oppo广东移动通信有限公司 应用程序推荐方法、装置、终端和服务器
CN108809683B (zh) * 2017-05-04 2022-07-15 中兴通讯股份有限公司 部署云应用系统的方法及装置
CN110809026B (zh) * 2019-09-29 2022-11-01 视联动力信息技术股份有限公司 一种文件处理方法、装置、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727449A (zh) * 2008-10-28 2010-06-09 国际商业机器公司 利用远程应用处理本地文件的系统和方法
CN104471528A (zh) * 2012-04-23 2015-03-25 谷歌公司 将文件类型与网络存储服务中的应用相关联
JP2015222543A (ja) * 2014-05-23 2015-12-10 株式会社エニグモ ファイル作成閲覧プログラム、情報処理装置及び情報処理システム
CN110457270A (zh) * 2019-07-30 2019-11-15 惠州Tcl移动通信有限公司 一种文件加载的方法、装置和终端
CN114816789A (zh) * 2022-03-28 2022-07-29 阿里巴巴(中国)有限公司 基于云应用的文件处理方法、电子设备和存储介质

Also Published As

Publication number Publication date
CN114816789A (zh) 2022-07-29

Similar Documents

Publication Publication Date Title
WO2020238751A1 (zh) 无服务器架构下的资源访问方法、设备、系统及存储介质
WO2018196541A1 (zh) 文档分享方法、服务器、终端和存储介质
CN108513657B (zh) 数据转换方法及备份服务器
KR101941336B1 (ko) 분산형 시스템용 파일 처리 방법 및 장치
CN106572139B (zh) 多终端控制方法、终端、服务器和系统
JP2017201791A (ja) ビデオエンコードシステムおよび方法
JP2018527683A (ja) 端末アプリケーションをロードする方法及び装置
CN113709200B (zh) 一种建立通信连接的方法及装置
CN112055072B (zh) 云端音频输入方法、装置、云系统、电子设备与存储介质
WO2023185765A1 (zh) 基于云应用的文件处理方法、电子设备和存储介质
CN106201216A (zh) 一种自定义桌面图标的显示方法及系统
CN105354195B (zh) 一种信息搜索方法及装置
WO2022242281A1 (zh) 文件保存方法、装置、电子设备以及存储介质
WO2023169272A1 (zh) 基于云应用的处理方法、电子设备和存储介质
CN110347546B (zh) 监控任务动态调整方法、装置、介质及电子设备
CN110891033B (zh) 网络资源处理方法、装置、网关、控制器及存储介质
CN111327875A (zh) 场景切换方法、装置及存储介质
WO2018201993A1 (zh) 图像绘制方法、终端及存储介质
WO2021129416A1 (zh) 移动终端帧率的控制方法、装置、计算机设备和存储介质
CN115061796A (zh) 子任务之间调用的执行方法、系统及电子设备
CN114629958A (zh) 资源分配方法、装置、电子设备及存储介质
CN110401652B (zh) 一种基于超融合存储的数字媒体数据处理方法
CN107621903B (zh) 一种双触摸屏设备及其响应控制方法
US20230156690A1 (en) Data processing method and apparatus, device, and storage medium
CN113138717B (zh) 节点部署方法、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23778130

Country of ref document: EP

Kind code of ref document: A1