CN113656192A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN113656192A
CN113656192A CN202110841808.2A CN202110841808A CN113656192A CN 113656192 A CN113656192 A CN 113656192A CN 202110841808 A CN202110841808 A CN 202110841808A CN 113656192 A CN113656192 A CN 113656192A
Authority
CN
China
Prior art keywords
data
virtual machine
copied
server
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110841808.2A
Other languages
Chinese (zh)
Inventor
王知明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202110841808.2A priority Critical patent/CN113656192A/en
Publication of CN113656192A publication Critical patent/CN113656192A/en
Pending legal-status Critical Current

Links

Images

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/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a data processing method and device, relates to the internet technology, and can solve the problems that files are transmitted among multiple virtual machines by means of a shared disk and a USB flash disk, user operation is complex, and user experience is poor. The specific technical scheme is as follows: receiving a data replication instruction input by a user on terminal equipment, wherein a target virtual machine is any one of at least one virtual machine distributed by a server for the terminal equipment; if the data copying instruction indicates that the data to be copied is copied to other virtual machines, the data to be copied or first identification information of the data to be copied is sent to the server, so that the server can send the data to be copied to the appointed virtual machine when receiving the data pasting instruction sent by the appointed virtual machine, and the appointed virtual machine is any one of at least one virtual machine which is distributed by the server for the terminal equipment and is except for the target virtual machine. The invention is used for improving the user experience.

Description

Data processing method and device
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a data processing method and apparatus.
Background
The basic structure of the existing cloud office system is shown in fig. 1, and the cloud office system is based on a graph transmission protocol and mainly comprises a zero terminal 101 and a cloud server 102. The zero terminal 101 is configured to receive a desktop image from the cloud server 102, reversely transmit local mouse and keyboard information to the cloud server 102, and inject the local mouse and keyboard information into a cloud desktop corresponding to the current zero terminal by the cloud server 102, where the cloud desktop is generated by a virtual machine allocated by the cloud server to the current zero terminal.
In some special scenarios, a user can connect to and operate multiple virtual machines through one zero terminal. In this case, the user is likely to need to transfer the same file between multiple virtual machines. In the prior art, files are generally transmitted among multiple virtual machines by means of a shared disk and a U disk, so that user operation is complicated, and user experience is poor.
Disclosure of Invention
The embodiment of the disclosure provides a data processing method and device, and can solve the problems that in the prior art, files are generally transmitted between multiple virtual machines by means of a shared disk and a USB flash disk, user operation is complex, and user experience is poor. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a data processing method applied to a target virtual machine, the method including:
receiving a data replication instruction input by a user on terminal equipment, wherein the data replication instruction comprises data to be replicated, and the target virtual machine is any one of at least one virtual machine distributed by a server for the terminal equipment;
if the data copying instruction indicates that the data to be copied is copied to other virtual machines, sending the data to be copied or first identification information of the data to be copied to a server, so that the server sends the data to be copied to a specified virtual machine when receiving a data pasting instruction sent by the specified virtual machine, wherein the data pasting instruction comprises second identification information of the specified virtual machine to which the data to be copied is to be copied, and the specified virtual machine is any one of at least one virtual machine which is distributed by the server for the terminal equipment and is except for the target virtual machine.
According to the data processing method provided by the embodiment of the disclosure, a target virtual machine can receive a data replication instruction input by a user on a terminal device, the data replication instruction comprises data to be replicated, and the target virtual machine is any one of at least one virtual machine distributed by a server for the terminal device; if the target virtual machine determines that the data copying instruction indicates to copy the data to be copied to other virtual machines, the target virtual machine sends the data to be copied or first identification information of the data to be copied to a server, so that the server sends the data to be copied to a specified virtual machine when receiving a data pasting instruction sent by the specified virtual machine, the data pasting instruction comprises second identification information of the specified virtual machine to which the data to be copied is to be copied, the specified virtual machine is any one of at least one virtual machine which is distributed by the server for the terminal device and is except the target virtual machine, data transmission among different virtual machines can be achieved, a shared disk and a U disk are not needed, user operation is simple, and user experience is greatly improved.
In one embodiment, the sending the data to be copied or the first identification information of the data to be copied to a server includes:
judging the type of the data to be copied;
and if the data to be copied is the data of the non-file type, sending the data to be copied to a server, so that the server can send the data to be copied to the specified virtual machine when receiving the data pasting instruction sent by the specified virtual machine.
Because the non-file data occupies a small memory and has a high transmission speed, the data to be copied is sent to the server, the data transmission rate can be ensured, and the data transmission delay is reduced.
In one embodiment, the sending the data to be copied or the first identification information of the data to be copied to a service includes:
if the data of the type of the data file to be copied exists, the first identification information is sent to a server;
when a data acquisition instruction sent by a server is received, sending the data to be copied to the appointed virtual machine, wherein the data acquisition instruction is sent to the target virtual machine by the server after the server receives the paste instruction sent by the appointed virtual machine, and the data acquisition instruction comprises the second identification information.
The non-file data occupies a large memory and is low in transmission speed, so that the second identification information of the copied data is sent to the server, the data transmission rate can be ensured, and the data transmission delay is reduced.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing method applied to a server, including:
receiving data to be copied sent by a target virtual machine, wherein the target virtual machine is any one of at least one virtual machine distributed by a terminal device, the data to be copied is sent to the server after the target virtual machine receives a data copying instruction input by a user on the terminal device, and the data copying instruction comprises the data to be copied;
receiving a data pasting instruction sent by a designated virtual machine, wherein the data pasting instruction comprises first identification information of the designated virtual machine to which the data to be copied is to be copied;
and if the specified virtual machine is determined to be any one of the at least one virtual machine distributed by the terminal equipment of the server except the target virtual machine, sending the data to be copied to the specified virtual machine.
The data processing method provided by the embodiment of the disclosure can realize data transmission between different virtual machines allocated by a server for a terminal device, can ensure the security of data transmission, does not need to use a shared disk and a U disk, is simple for a user to operate, and greatly improves the user experience.
In one embodiment, the method further comprises:
receiving second identification information of the data to be copied, which is sent by the target virtual machine;
receiving a data pasting instruction sent by the appointed virtual machine, wherein the data pasting instruction comprises the first identification information;
if it is determined that the designated virtual machine is any one of the at least one virtual machine allocated by the terminal device of the server except the target virtual machine, sending the second identification information to the target virtual machine, so that the target virtual machine sends the data to be copied to the designated virtual machine according to the second identification information.
According to a third aspect of the embodiments of the present disclosure, there is provided a data processing apparatus applied to a target virtual machine, including:
the system comprises a replication instruction receiving module, a replication instruction receiving module and a replication instruction transmitting module, wherein the replication instruction receiving module is used for receiving a data replication instruction input by a user on a terminal device, the data replication instruction comprises data to be replicated, and a target virtual machine is any one of at least one virtual machine distributed by a server for the terminal device;
the data sending module is configured to send the data to be copied or first identification information of the data to be copied to a server if the data copying instruction indicates that the data to be copied is copied to other virtual machines, so that the server sends the data to be copied to a specified virtual machine when receiving a data pasting instruction sent by the specified virtual machine, where the data pasting instruction includes second identification information of the specified virtual machine to which the data to be copied is to be copied, and the specified virtual machine is any one of at least one virtual machine, which is allocated to the terminal device by the server, except for the target virtual machine.
In one embodiment, the data sending module is configured to:
judging the type of the data to be copied;
and if the data to be copied is the data of the non-file type, sending the data to be copied to a server, so that the server can send the data to be copied to the specified virtual machine when receiving the data pasting instruction sent by the specified virtual machine.
In one embodiment, the data sending module is configured to:
if the data of the type of the data file to be copied exists, the first identification information is sent to a server;
when a data acquisition instruction sent by a server is received, sending the data to be copied to the appointed virtual machine, wherein the data acquisition instruction is sent to the target virtual machine by the server after the server receives the paste instruction sent by the appointed virtual machine, and the data acquisition instruction comprises the second identification information.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a data processing apparatus applied to a server, including:
the data replication method comprises the steps that a data receiving module is used for receiving data to be replicated, wherein the data to be replicated is sent by a target virtual machine, the target virtual machine is any one of at least one virtual machine distributed by a terminal device, the data to be replicated is sent to a server after the target virtual machine receives a data replication instruction input by a user on the terminal device, and the data replication instruction comprises the data to be replicated;
the data pasting module is used for receiving a data pasting instruction sent by a designated virtual machine, wherein the data pasting instruction comprises first identification information of the designated virtual machine to which the data to be copied is to be copied;
and the data copying module is used for sending the data to be copied to the appointed virtual machine if the appointed virtual machine is determined to be any one of at least one virtual machine distributed by the terminal equipment of the server except the target virtual machine.
In one embodiment, the apparatus further comprises:
the identification information receiving module is used for receiving second identification information of the data to be copied, which is sent by the target virtual machine;
the paste instruction receiving module is used for receiving a data paste instruction sent by the specified virtual machine, wherein the data paste instruction comprises the first identification information;
the data replication module is configured to send the second identification information to the target virtual machine if it is determined that the designated virtual machine is any one of the at least one virtual machine allocated by the server and the terminal device, where the virtual machine is other than the target virtual machine, so that the target virtual machine sends the data to be replicated to the designated virtual machine according to the second identification information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a block diagram of a cloud office system provided in the prior art;
fig. 2 is a signaling interaction diagram of a data processing method according to an embodiment of the disclosure
Fig. 3 is a first flowchart of a data processing method provided by an embodiment of the present disclosure;
fig. 4 is a flowchart ii of a data processing method provided in the embodiment of the present disclosure;
fig. 5 is a first schematic structural diagram of a data processing method apparatus provided in an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a data processing method apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram three of a data processing method device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
An embodiment of the present disclosure provides a data processing method, as shown in fig. 2, the data processing method includes the following steps:
s201, a target virtual machine receives a data replication instruction input by a user on a terminal device, wherein the data replication instruction comprises data to be replicated, and the target virtual machine is any one of at least one virtual machine distributed by a server for the terminal device.
Illustratively, the server allocates at least one virtual machine to the terminal device, and the terminal device may be connected with the at least one virtual machine at the same time, such as connecting with virtual machine a and virtual machine B at the same time. Optionally, when initiating a connection to each virtual machine of at least one virtual machine allocated to the terminal device by the terminal device, the terminal device needs to send the identification information of the terminal device and the identification information of the virtual machine to be connected to the server, and the server records a connection state between the terminal device and the virtual machine. Data replication can only be performed between virtual machines connected to the terminal device. For example, when a user wants to copy data to be copied of the virtual machine a to the virtual machine B on the terminal device, a connection request with the virtual machine a and/or the virtual machine B needs to be initiated to the server through the terminal device, where the connection request includes identification information of the terminal device and identification information of the virtual machine a and/or the virtual machine B. After receiving the connection request, the server establishes connection between the terminal device and the virtual machine a and/or the virtual machine B and stores the connection state between the terminal device and the virtual machine a and/or the virtual machine B.
Further, after storing the connection state, the server returns a connection establishment indication message to the terminal device. In this case, data may be copied by operating the mouse on the terminal device, and data on the virtual machine connected to the terminal device may be copied, for example, when the user wants to copy data on the virtual machine a, a data copy instruction may be input when the terminal device is displayed as the desktop of the virtual machine a, and the virtual machine a may receive the data copy instruction.
S202, if it is determined that the data copy instruction indicates to copy the data to be copied to another virtual machine, the target virtual machine sends the data to be copied or first identification information of the data to be copied to a server, so that when receiving a data paste instruction sent by a designated virtual machine, the server sends the data to be copied to the designated virtual machine, where the data paste instruction includes second identification information of the designated virtual machine to which the data to be copied is to be copied, and the designated virtual machine is any one of at least one virtual machine allocated to the terminal device by the server, except for the target virtual machine.
In this embodiment, two data copy modes are provided for the user: one is a shared copy mode, and the other is a normal copy mode. The shared copying mode is to copy the data to be copied to other virtual machines, and the common copying mode is to copy the data to be copied to the target virtual machine. Optionally, a shared copy tag and a general copy tag may be set, so that the user may select a current copy mode as needed. It should be noted here that the data to be copied of the target virtual machine may be copied to other virtual machines connected to the terminal device, except for the target virtual machine, by using a shared copy method. For example, in this embodiment, the data to be copied of the virtual machine a may be copied to the virtual machine B connected to the terminal device.
And if the data replication instruction is determined to indicate that the data to be replicated is replicated to other virtual machines, sending the data to be replicated or the identification information of the data to be replicated to a server. In this embodiment, the identification information of the data to be copied may be a storage location of the data to be copied in the virtual machine a.
How to send data to be copied to the server is explained below.
The virtual machine A judges the type of the data to be copied; and if the data to be copied is the data of the non-file type, sending the data to be copied to a server, so that the server sends the data to be copied to a specified virtual machine when receiving a data pasting instruction sent by the specified virtual machine, wherein the specified virtual machine is any one of at least one virtual machine distributed by the terminal equipment of the server except the target virtual machine.
Illustratively, if the target virtual machine, for example, the virtual machine a, determines that the data to be copied is data of a non-file type, for example, the data to be copied is data such as text, picture, excel, and the like, the data to be copied is sent to the server. Because the non-file type data occupies a small memory and has high transmission speed, the data to be copied can be directly sent to the server.
Next, how to transmit the location information of the data to be copied to the server will be described.
If the data to be copied is the data of the file type, sending the storage position of the data to be copied in the target virtual machine to a server; and when a data acquisition instruction sent by the server is received, sending the data to be copied to the specified virtual machine, wherein the data acquisition instruction is sent to a target virtual machine by the server after receiving a paste instruction sent by the specified virtual machine, and the data acquisition instruction comprises identification information of the specified virtual machine. Because the file type data occupies a large memory and is low in transmission speed, the storage position of the data to be copied in the target virtual machine is sent to the server.
S203, the server receives the data to be copied sent by the target virtual machine.
S204, the server receives a data pasting instruction sent by the appointed virtual machine, wherein the data pasting instruction comprises first identification information of the appointed virtual machine to which the data to be copied are to be copied.
And S205, if the server determines that the specified virtual machine is any one of the at least one virtual machine distributed by the server terminal equipment except the target virtual machine, sending the data to be copied to the specified virtual machine.
In an embodiment, after receiving the data to be copied, the server sends the data to be copied to the virtual machine B if receiving a data paste instruction sent by a specified virtual machine, for example, the virtual machine B, so that the virtual machine B stores the data.
It should be noted here that, if the server receives the data pasting instruction sent by the virtual machine C, and the server queries that the virtual machine C is not a virtual machine allocated by the server for the terminal device and/or the virtual machine C is not connected to the terminal device, the data to be copied is not sent to the virtual machine C, but an instruction message for unauthorized copying is returned to the virtual machine C, so that data leakage can be avoided, and the security of data transmission is ensured.
S206, the server receives second identification information of the data to be copied, which is sent by the target virtual machine;
s207, the server receives a data pasting instruction sent by the appointed virtual machine, wherein the data pasting instruction comprises the first identification information;
and S208, if the server determines that the specified virtual machine is any one of the at least one virtual machine distributed by the terminal equipment of the server except the target virtual machine, sending the second identification information to the target virtual machine.
S209, the target virtual machine receives the second identification information sent by the server and sends the data to be copied to the specified virtual machine according to the second identification information.
In another embodiment, if the server receives a storage location of data to be copied in the virtual machine a sent by a target virtual machine, for example, the virtual machine a, when a data pasting instruction sent by a specified virtual machine, for example, the virtual machine B, is subsequently received, the storage location of the data to be copied in the virtual machine a and the identification information of the virtual machine B are sent to the virtual machine a, so that the virtual machine a obtains the data to be copied from the storage location and sends the data to be copied to the virtual machine B.
Optionally, the server receives a storage location of the data to be copied in the virtual machine a, and then sends the storage location of the data to be copied in the virtual machine a to the virtual machine a when subsequently receiving a data pasting instruction sent by a specified virtual machine, for example, the virtual machine B, the virtual machine a obtains the data to be copied from the storage location after receiving the storage location and sends the data to the server, and the server receives the data to be copied and sends the data to the virtual machine B.
It should be noted here that, if the server receives the data pasting instruction sent by the virtual machine C, and the server queries that the virtual machine C is not a virtual machine allocated by the server for the terminal device and/or the virtual machine C does not establish a connection with the terminal device, the storage address is not sent to the virtual machine C, but an instruction message for unauthorized copying is returned to the virtual machine C, so that data leakage can be avoided, and the security of data transmission is ensured.
According to the data processing method provided by the embodiment of the disclosure, a target virtual machine can receive a data replication instruction input by a user on a terminal device, the data replication instruction comprises data to be replicated, and the target virtual machine is any one of at least one virtual machine distributed by a server for the terminal device; if the target virtual machine determines that the data copying instruction indicates to copy the data to be copied to other virtual machines, the target virtual machine sends the data to be copied or first identification information of the data to be copied to a server, so that the server sends the data to be copied to a specified virtual machine when receiving a data pasting instruction sent by the specified virtual machine, the data pasting instruction comprises second identification information of the specified virtual machine to which the data to be copied is to be copied, the specified virtual machine is any one of at least one virtual machine which is distributed by the server for the terminal device and is except the target virtual machine, data transmission among different virtual machines can be achieved, a shared disk and a U disk are not needed, user operation is simple, and user experience is greatly improved.
The data processing method provided by the embodiment of the present disclosure is further described in detail below with reference to the embodiments of fig. 3 and 4.
S301, simultaneously connecting multiple virtual machine pictures to a zero terminal, such as simultaneously connecting a virtual machine A and a virtual machine B;
s302, copying data when a user operates an operation interface of the virtual machine A;
in actual implementation, two copying modes can be provided for users: one is shared copy and the other is ordinary copy. For example, a shared copy tag and a general copy tag may be set in a mouse of a user, so that the user may select a current copy mode as needed. The shared copy data can be synchronized to other related virtual machines, and the data copied by the ordinary copy mode is only stored in a local clipboard and is locally pasted in subsequent operations.
The associated virtual machine is a virtual machine connected to the same zero terminal device, and when the zero terminal initiates connection to the virtual machine in actual implementation, the zero terminal needs to report information of the current zero terminal, so that the end server can record the current connection state.
S303, when a user initiates a data copying request, the data copying request is sent to a server, the server judges whether the current data copying request is a shared copying request or a common copying request, and different processing is carried out on different types of copying requests;
specifically, if the request is a normal copy request, the copy processing agent directly writes the copy data into the current clipboard.
If the request is a shared copy request, the server writes the data to be copied into a local clipboard (used for pasting operation on the current virtual machine) on one hand, and generates data synchronization information based on the acquired data to be copied on the other hand;
specifically, the data synchronization information may be { user: 'user a'; clipbrd: 'data'; flag: 'virtual machine a', where user information and tag information are bound based on security considerations.
The meaning of the parameters is as follows:
a user: (user name);
clipbrd: (to-be-copied data content, if the content is the copy of the text or picture content, the stored data content is the text or picture, if the copy is the file, the stored data content is the storage path information of the file on the current machine);
flag: (virtual machine tag, which may be a virtual machine name, is to be unique).
S304, aiming at the shared copy request, after the server acquires the data synchronization information, writing the data to be copied (the content in clipbrd) in the data synchronization information into the clipboards of all the virtual machines related to the current virtual machine;
the writing of the data to be copied (content in clipbrd) in the data synchronization information into the clipboard of each virtual machine associated with the current virtual machine includes the following steps:
s401, the server acquires a current virtual machine label from the data synchronization information;
s402, the server determines information of other virtual machines related to the virtual machine;
specifically, the server needs to acquire information of other virtual machines associated with the current virtual machine, so as to write the current data to be copied into clipboards of the other associated virtual machines; for this reason, the server needs to query information of all other virtual machines connected to the same zero terminal as the current virtual machine.
S403, the server writes the data to be copied in the data synchronization information into the clipboards of all other virtual machines related to the current virtual machine.
Specifically, the server sends the data to be copied in the data synchronization information to each associated virtual machine, and writes the received data into the memory of the local clipboard through each associated virtual machine.
S305, after the server to-be-copied data are sent to each associated virtual machine, the user can paste the to-be-copied data to any position which is required by the user and can be pasted by executing a pasting operation on the corresponding virtual machine operation interface.
When the user performs a paste operation on the virtual machine B, there are two cases: (1) when the data in the clipbrd is the data such as text, picture, excel and the like, the source data is stored in the clipboard, so that the clipboard can be directly pasted; (2) when the data in the clipbrd is a file, the virtual machine B adds data acquisition position information in the synchronized information, then the virtual machine B sends a data acquisition request to the server according to the data acquisition position information, after receiving the data acquisition request, the server requests the virtual machine A for data to be copied at a corresponding position, sends the acquired data to the virtual machine B, and the virtual machine B copies the data to an appointed position;
the "data acquisition information" is mentioned above to tell the server which virtual machine (such as virtual machine a) the current shared data originated from.
Specifically, the data sharing processing platform acquires data from the virtual machine A, the virtual machine A searches for relevant files according to file positions in a self shear plate, then the files are directly transmitted to the virtual machine B through a transmission protocol or transmitted to the virtual machine B through a server, and after the virtual machine B takes the files, the files are controlled to be stored in a specified position.
Based on the data processing method described in the embodiments corresponding to fig. 2 to fig. 4, the following is an embodiment of the apparatus of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.
Fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure, where the apparatus is applied to a target virtual machine. As shown in fig. 5, the data transmission device 50 includes:
a replication instruction receiving module 501, configured to receive a data replication instruction input by a user on a terminal device, where the data replication instruction includes data to be replicated, and the target virtual machine is any one of at least one virtual machine allocated by a server to the terminal device;
a data sending module 502, configured to send the data to be copied or the first identification information of the data to be copied to a server if the data copying instruction indicates to copy the data to be copied to other virtual machines, so that the server sends the data to be copied to a specified virtual machine when receiving a data pasting instruction sent by the specified virtual machine, where the data pasting instruction includes the second identification information of the specified virtual machine to which the data to be copied is to be copied, and the specified virtual machine is any one of at least one virtual machine, which is allocated by the server to the terminal device, except for the target virtual machine.
Optionally, the data sending module 502 is configured to:
judging the type of the data to be copied;
and if the data to be copied is the data of the non-file type, sending the data to be copied to a server, so that the server can send the data to be copied to the specified virtual machine when receiving the data pasting instruction sent by the specified virtual machine.
Optionally, the data sending module 502 is configured to:
if the data of the type of the data file to be copied exists, the first identification information is sent to a server;
when a data acquisition instruction sent by a server is received, sending the data to be copied to the appointed virtual machine, wherein the data acquisition instruction is sent to the target virtual machine by the server after the server receives the paste instruction sent by the appointed virtual machine, and the data acquisition instruction comprises the second identification information.
For the data processing apparatus provided in the embodiment of the present disclosure, the implementation process and the technical effect thereof may refer to the embodiment of fig. 2, which are not described herein again.
Fig. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure, where the apparatus is applied to a server. As shown in fig. 6, the data transmission device 60 includes:
a data receiving module 601, configured to receive data to be copied sent by a target virtual machine, where the target virtual machine is any one of at least one virtual machine allocated by a terminal device, the data to be copied is sent to the server after the target virtual machine receives a data copying instruction input by a user on the terminal device, and the data copying instruction includes the data to be copied;
a paste instruction receiving module 602, configured to receive a data paste instruction sent by a specified virtual machine, where the data paste instruction includes first identification information of the specified virtual machine to which the data to be copied is to be copied;
a data copying module 603, configured to send the data to be copied to a specified virtual machine if it is determined that the specified virtual machine is any one of at least one virtual machine allocated to the terminal device of the server, except for the target virtual machine.
Optionally, as shown in fig. 7, the apparatus 60 further includes:
an identification information receiving module 604, configured to receive second identification information of the data to be copied, where the second identification information is sent by the target virtual machine;
the paste instruction receiving module 602 is configured to receive a data paste instruction sent by the specified virtual machine, where the data paste instruction includes the first identification information;
the data copying module 603 is configured to send the second identification information to the target virtual machine if it is determined that the designated virtual machine is any one of the at least one virtual machine allocated by the terminal device of the server, except for the target virtual machine, so that the target virtual machine sends the data to be copied to the designated virtual machine according to the second identification information.
For the data processing apparatus provided in the embodiment of the present disclosure, the implementation process and the technical effect thereof may refer to the embodiment of fig. 2, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A data processing method is applied to a target virtual machine, and the method comprises the following steps:
receiving a data replication instruction input by a user on terminal equipment, wherein the data replication instruction comprises data to be replicated, and the target virtual machine is any one of at least one virtual machine distributed by a server for the terminal equipment;
if the data copying instruction indicates that the data to be copied is copied to other virtual machines, sending the data to be copied or first identification information of the data to be copied to a server, so that the server sends the data to be copied to a specified virtual machine when receiving a data pasting instruction sent by the specified virtual machine, wherein the data pasting instruction comprises second identification information of the specified virtual machine to which the data to be copied is to be copied, and the specified virtual machine is any one of at least one virtual machine which is distributed by the server for the terminal equipment and is except for the target virtual machine.
2. The method of claim 1, wherein sending the data to be copied or the first identification information of the data to be copied to a server comprises:
judging the type of the data to be copied;
and if the data to be copied is the data of the non-file type, sending the data to be copied to a server, so that the server can send the data to be copied to the specified virtual machine when receiving the data pasting instruction sent by the specified virtual machine.
3. The method of claim 2, wherein sending the data to be copied or the first identification information of the data to be copied to a service comprises:
if the data of the type of the data file to be copied exists, the first identification information is sent to a server;
when a data acquisition instruction sent by a server is received, sending the data to be copied to the appointed virtual machine, wherein the data acquisition instruction is sent to the target virtual machine by the server after the server receives the paste instruction sent by the appointed virtual machine, and the data acquisition instruction comprises the second identification information.
4. A data processing method is applied to a server and comprises the following steps:
receiving data to be copied sent by a target virtual machine, wherein the target virtual machine is any one of at least one virtual machine distributed by a terminal device, the data to be copied is sent to the server after the target virtual machine receives a data copying instruction input by a user on the terminal device, and the data copying instruction comprises the data to be copied;
receiving a data pasting instruction sent by a designated virtual machine, wherein the data pasting instruction comprises first identification information of the designated virtual machine to which the data to be copied is to be copied;
and if the specified virtual machine is determined to be any one of the at least one virtual machine which is distributed by the server for the terminal equipment and is except the target virtual machine, sending the data to be copied to the specified virtual machine.
5. The method of claim 4, further comprising:
receiving second identification information of the data to be copied, which is sent by the target virtual machine;
receiving a data pasting instruction sent by the appointed virtual machine, wherein the data pasting instruction comprises the first identification information;
if it is determined that the designated virtual machine is any one of the at least one virtual machine allocated by the terminal device of the server except the target virtual machine, sending the second identification information to the target virtual machine, so that the target virtual machine sends the data to be copied to the designated virtual machine according to the second identification information.
6. A data processing apparatus, applied to a target virtual machine, includes:
the system comprises a replication instruction receiving module, a replication instruction receiving module and a replication instruction transmitting module, wherein the replication instruction receiving module is used for receiving a data replication instruction input by a user on a terminal device, the data replication instruction comprises data to be replicated, and a target virtual machine is any one of at least one virtual machine distributed by a server for the terminal device;
the data sending module is configured to send the data to be copied or first identification information of the data to be copied to a server if the data copying instruction indicates that the data to be copied is copied to other virtual machines, so that the server sends the data to be copied to a specified virtual machine when receiving a data pasting instruction sent by the specified virtual machine, where the data pasting instruction includes second identification information of the specified virtual machine to which the data to be copied is to be copied, and the specified virtual machine is any one of at least one virtual machine, which is allocated to the terminal device by the server, except for the target virtual machine.
7. The apparatus of claim 6, wherein the data sending module is configured to:
judging the type of the data to be copied;
and if the data to be copied is the data of the non-file type, sending the data to be copied to a server, so that the server can send the data to be copied to the specified virtual machine when receiving the data pasting instruction sent by the specified virtual machine.
8. The apparatus of claim 7, wherein the data sending module is configured to:
if the data of the type of the data file to be copied exists, the first identification information is sent to a server;
when a data acquisition instruction sent by a server is received, sending the data to be copied to the appointed virtual machine, wherein the data acquisition instruction is sent to the target virtual machine by the server after the server receives the paste instruction sent by the appointed virtual machine, and the data acquisition instruction comprises the second identification information.
9. A data processing apparatus, applied to a server, includes:
the data replication method comprises the steps that a data receiving module is used for receiving data to be replicated, wherein the data to be replicated is sent by a target virtual machine, the target virtual machine is any one of at least one virtual machine distributed by a terminal device, the data to be replicated is sent to a server after the target virtual machine receives a data replication instruction input by a user on the terminal device, and the data replication instruction comprises the data to be replicated;
the data pasting module is used for receiving a data pasting instruction sent by a designated virtual machine, wherein the data pasting instruction comprises first identification information of the designated virtual machine to which the data to be copied is to be copied;
and the data copying module is used for sending the data to be copied to the appointed virtual machine if the appointed virtual machine is determined to be any one of at least one virtual machine distributed by the terminal equipment of the server except the target virtual machine.
10. The apparatus of claim 9, further comprising:
the identification information receiving module is used for receiving second identification information of the data to be copied, which is sent by the target virtual machine;
the paste instruction receiving module is used for receiving a data paste instruction sent by the specified virtual machine, wherein the data paste instruction comprises the first identification information;
the data replication module is configured to send the second identification information to the target virtual machine if it is determined that the designated virtual machine is any one of the at least one virtual machine allocated by the server and the terminal device, where the virtual machine is other than the target virtual machine, so that the target virtual machine sends the data to be replicated to the designated virtual machine according to the second identification information.
CN202110841808.2A 2021-07-26 2021-07-26 Data processing method and device Pending CN113656192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110841808.2A CN113656192A (en) 2021-07-26 2021-07-26 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110841808.2A CN113656192A (en) 2021-07-26 2021-07-26 Data processing method and device

Publications (1)

Publication Number Publication Date
CN113656192A true CN113656192A (en) 2021-11-16

Family

ID=78478103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110841808.2A Pending CN113656192A (en) 2021-07-26 2021-07-26 Data processing method and device

Country Status (1)

Country Link
CN (1) CN113656192A (en)

Similar Documents

Publication Publication Date Title
CN110515572B (en) Screen projection method and device, storage medium and computer equipment
US20190007467A1 (en) Files automatically shared at conference initiation
CN108989432B (en) User-mode file sending method, user-mode file receiving method and user-mode file receiving and sending device
US20140379821A1 (en) Method and system for synchronizing duplicated contents in multiple terminals
WO2000073902A1 (en) Single logical clipboard for multiple computers
US20230017859A1 (en) Meeting control method and apparatus, device, and medium
KR20050114047A (en) Method and server for servicing remote clients
US20130132586A1 (en) Selective Connection Between Corresponding Communication Components Involved in a Teleconference
KR20130011130A (en) Memo synchronization system, mobile system and memo synchronization method for synchronizing memo data
CN102437925A (en) Data backup method, device and system in distributed system
JP4550604B2 (en) Setting information synchronization program
CN113973133A (en) USB equipment redirection method and device, electronic equipment and storage medium
CN113656192A (en) Data processing method and device
CN112395297A (en) Method, device and server for synchronizing work information
JP3239463B2 (en) Electronic conference system
CN111274176B (en) Information processing method, electronic equipment, system and storage medium
CN113778592A (en) Data processing method and device, electronic equipment and storage medium
CN113452948B (en) Conference terminal control method, device, equipment and storage medium
CN113973132A (en) USB device sharing method and device, electronic device and storage medium
CN114675929A (en) Data processing method, data processing device, storage medium and electronic equipment
CN113676517A (en) Data transmission method, device and system
CN109343928B (en) Virtual memory file redirection method and system for virtual machine in virtualization cluster
CN107145302B (en) Method and equipment for executing file writing in distributed storage system
JP6843415B1 (en) Data transmission method between devices and storage medium
US11553031B2 (en) Method and apparatus for processing data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication