CN113360297A - Data sharing method and device - Google Patents

Data sharing method and device Download PDF

Info

Publication number
CN113360297A
CN113360297A CN202110704332.8A CN202110704332A CN113360297A CN 113360297 A CN113360297 A CN 113360297A CN 202110704332 A CN202110704332 A CN 202110704332A CN 113360297 A CN113360297 A CN 113360297A
Authority
CN
China
Prior art keywords
virtual machine
sharing
shared
clipboard
target
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
CN202110704332.8A
Other languages
Chinese (zh)
Inventor
龙科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202110704332.8A priority Critical patent/CN113360297A/en
Publication of CN113360297A publication Critical patent/CN113360297A/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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • 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/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • 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)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a data sharing method and device, relates to the technical field of data transmission, and can solve the problems that in the prior art, when a certain virtual machine user sends data to one or more other virtual machine users, the sending is inconvenient and unsafe. The specific technical scheme is as follows: firstly, a clipboard sharing request sent by a target user is received, wherein the clipboard sharing request comprises an identifier of the target user, and the clipboard sharing request is used for indicating to share target data; then, a sharing device list corresponding to the target user is obtained according to the identifier of the target user, wherein the sharing device list comprises at least one of an identification number, an MAC address and corresponding user information of at least one virtual machine in the server; receiving at least one virtual machine to be shared determined by a target user in a sharing device list according to the sharing device list corresponding to the target user; and finally writing the target data into at least one clipboard of the virtual machine to be shared. The data sharing method and the data sharing device are used for data sharing.

Description

Data sharing method and device
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a data sharing method and apparatus.
Background
As shown in fig. 1, the basic structure of an existing cloud office system is based on a universal image lossless transmission Protocol (VGTP), and mainly includes a zero terminal (a built-in VGTP-R terminal, referred to as an R terminal for short) and a cloud server terminal (a built-in VGTP-S terminal, referred to as an S terminal for short). The R end is used for receiving the image from the cloud desktop, transmitting the local mouse and keyboard information to the cloud in a reverse mode, and injecting the information into the cloud desktop corresponding to the current R end through the cloud. The cloud desktop is generated by a cloud server for virtual machines/physical machines (VM/PM) distributed by the current zero terminal; the S-side is an image acquisition and encoding module running in a cloud virtual operating system (OS for short), and is responsible for performing an injection function of user input data. The cloud server is generally based on an Infrastructure As A Service (IAAS) architecture, and is a server with a strong virtual host, which can provide management functions of multiple virtual machines through a hypervisor and provide a running hardware environment for the VM/PM.
In the cloud office scenario, when the user uses the virtual machine, the situation may be encountered: a certain virtual machine user in the cloud virtual machine wishes to send a certain file/content to one or more other virtual machine users. In the prior art, the distribution of files/contents can be generally completed through instant messaging software. This approach has several inconveniences: 1. the user receiving the file/content must be a contact in the corresponding instant messaging software with the user sending the file/content; 2. the user receiving the file/content must open or store the file/content locally after the file/content is received, which is slightly troublesome; 3. the transmission of files/content over the internet is not itself secure.
Disclosure of Invention
The embodiment of the disclosure provides a data sharing method and device, which can solve the problems that in the prior art, when a certain virtual machine user sends data to one or more other virtual machine users, the sending is inconvenient and unsafe. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a data sharing method is provided, which is applied to a management platform, and the method includes:
receiving a clipboard sharing request sent by a target user, wherein the clipboard sharing request comprises an identifier of the target user, and the clipboard sharing request is used for indicating to share target data;
acquiring a sharing equipment list corresponding to the target user according to the identifier of the target user, wherein the sharing equipment list comprises at least one of an identification number, an MAC (media access control) address and corresponding user information of at least one virtual machine in a server;
receiving at least one virtual machine to be shared determined by the target user in the sharing device list according to the sharing device list corresponding to the target user;
and writing the target data into the clipboard of the at least one virtual machine to be shared.
The data sharing method provided by the embodiment of the disclosure includes the steps of firstly receiving a clipboard sharing request sent by a target user, wherein the clipboard sharing request includes an identifier of the target user, and the clipboard sharing request is used for indicating to share target data; then, a sharing device list corresponding to the target user is obtained according to the identifier of the target user, wherein the sharing device list comprises at least one of an identification number of at least one virtual machine in the server, a Media Access Control Address (MAC for short) and corresponding user information; receiving at least one virtual machine to be shared determined by a target user in a sharing device list according to the sharing device list corresponding to the target user; and finally writing the target data into at least one clipboard of the virtual machine to be shared. According to the data sharing method, the user can share the file or the content in the clipboards of other virtual machines through the clipboard sharing function, and other users can obtain the file only by executing the pasting action.
In an embodiment, before the obtaining the sharing device list corresponding to the target user according to the identifier of the target user, the method further includes:
and pre-storing a sharing equipment list of a user corresponding to each virtual machine in the server.
In an embodiment, before the writing the target data into the clipboard of the at least one virtual machine to be shared, the method further includes:
and reading the target data written into the corresponding target virtual machine clipboard by the target user.
In an embodiment, before the writing the target data into the clipboard of the at least one virtual machine to be shared, the method further includes:
and receiving the target data sent by the target virtual machine corresponding to the target user.
In an embodiment, after the writing the target data to the clipboard of the at least one virtual machine to be shared, the method further includes:
sending a notification message to the at least one virtual machine to be shared, wherein the notification message is used for reminding at least one user corresponding to the at least one virtual machine to be shared to acquire the target data from a clipboard of the at least one virtual machine to be shared.
In one embodiment, receiving, according to a sharing device list corresponding to the target user, at least one virtual machine to be shared that is determined by the target user in the sharing device list includes:
according to the sharing device list corresponding to the target user, sending label information of each virtual machine in the sharing device list to a target virtual machine corresponding to the target user, so that the target virtual machine generates a sharing device label list according to the label information, wherein the label information at least comprises one of an identification number, an MAC address and corresponding user information of the virtual machine;
receiving label information of at least one virtual machine to be shared, which is determined by the target user in the sharing device label list;
the writing the target data into the clipboard of the at least one virtual machine to be shared comprises:
and writing target data into the clipboard of the at least one virtual machine to be shared according to the label information of the virtual machine to be shared.
In one embodiment, writing target data to a clipboard of the at least one virtual machine to be shared includes:
writing target data into a shared storage area in the clipboard of the at least one virtual machine to be shared, so that the at least one virtual machine to be shared acquires the target data from the shared storage area.
According to a second aspect of the embodiments of the present disclosure, there is provided a data sharing apparatus, including: the device comprises a first receiving module, an obtaining module, a second receiving module and a writing module;
the first receiving module is configured to receive a clipboard sharing request sent by a target user, where the clipboard sharing request includes an identifier of the target user, and the clipboard sharing request is used to indicate that target data is shared;
the acquisition module is configured to acquire a sharing device list corresponding to the target user according to the identifier of the target user, where the sharing device list includes at least one of an identification number, an MAC address, and corresponding user information of at least one virtual machine in a server;
the second receiving module is configured to receive, according to the sharing device list corresponding to the target user, at least one to-be-shared virtual machine determined by the target user in the sharing device list;
and the writing module is used for writing the target data into the clipboard of the at least one virtual machine to be shared.
The device provided by the embodiment of the disclosure comprises a first receiving module, an obtaining module, a second receiving module and a writing module; the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a clipboard sharing request sent by a target user, the clipboard sharing request comprises an identifier of the target user, and the clipboard sharing request is used for indicating to share target data; the acquisition module is used for acquiring a sharing equipment list corresponding to a target user according to an identifier of the target user, wherein the sharing equipment list comprises at least one of an identification number, an MAC (media access control) address and corresponding user information of at least one virtual machine in a server; the second receiving module is used for receiving at least one virtual machine to be shared, which is determined in the sharing device list by the target user, according to the sharing device list corresponding to the target user; and the writing module is used for writing the target data into at least one clipboard of the virtual machine to be shared. According to the data sharing device, a user can share files or contents in the clipboards of other virtual machines through the clipboard sharing function, and other users can obtain the files only by executing the pasting action.
In an embodiment, the apparatus further includes a storage module, configured to pre-store a sharing device list of a user corresponding to each virtual machine in the server.
In an embodiment, the apparatus further includes a sending module, configured to send a notification message to the at least one virtual machine to be shared, where the notification message is used to remind at least one user corresponding to the at least one virtual machine to be shared to obtain the target data from a clipboard of the at least one virtual machine to be shared.
According to a third aspect of the embodiments of the present disclosure, a data sharing device is provided, where the data sharing device includes a processor and a memory, where the memory stores at least one computer instruction, and the instruction is loaded and executed by the processor to implement the steps executed in any one of the data sharing methods.
According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which at least one computer instruction is stored, and the instruction is loaded and executed by a processor to implement the steps performed in the data sharing method described in any one of the above.
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 schematic structural diagram of a conventional cloud office system;
fig. 2 is a schematic structural diagram of a cloud office system provided by an embodiment of the present disclosure;
fig. 3 is a flowchart of a data sharing method according to an embodiment of the disclosure;
fig. 4 is a flowchart of a data sharing method according to an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of a data sharing 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.
The structural schematic diagram of the cloud office system provided by the disclosure is shown in fig. 2 and comprises a zero terminal and a cloud cluster server. The cluster server comprises a management platform Manager and at least one VM/PM, and the VM/PM corresponds to the zero terminal one by one. Based on this, an embodiment of the present disclosure provides a data sharing method, as shown in fig. 3, applied to a management platform, where the data sharing method includes the following steps:
step 101, receiving a clipboard sharing request sent by a target user, wherein the clipboard sharing request comprises an identifier of the target user, and the clipboard sharing request is used for indicating to share target data;
in practical implementation, a VM/PM user initiates a clipboard sharing request to a manager, the VM/PM user can add clipboard sharing options in a right mouse button option list, when the user needs to share target data, the target data can be selected, a right mouse button is clicked, and the clipboard sharing request is initiated by clicking the clipboard sharing options in a popped option list.
Specifically, the target data includes a file and content. Among these, files include, but are not limited to: documents of various types (such as word, excel), pictures, audio, video or other format files; content refers to content similar to text and/or images in a document or web page.
In use, the user may also set the clipboard sharing function on or off.
102, acquiring a sharing equipment list corresponding to a target user according to an identifier of the target user, wherein the sharing equipment list comprises at least one of an identification number, an MAC (media access control) address and corresponding user information of at least one virtual machine in a server;
in an embodiment, before obtaining the sharing device list corresponding to the target user according to the identifier of the target user, the method further includes:
and pre-storing a sharing device list of each virtual machine corresponding to the user in the server.
In the embodiment of the present disclosure, the management platform may preset a sharing device list corresponding to each user. All or a plurality of designated virtual machines on the current cluster server can be included in the sharing device list. Generally, only the user with high authority has the authority to share the clipboard of all devices, and other users can only share the virtual devices within the authority range.
Specifically, the sharing device list may include an identification number, a MAC address, and corresponding user information (including but not limited to a name, a department, and a job number) of each sharable virtual machine.
Step 103, receiving at least one virtual machine to be shared, which is determined by the target user in the sharing device list, according to the sharing device list corresponding to the target user.
In one embodiment, receiving, according to a sharing device list corresponding to a target user, at least one to-be-shared virtual machine determined by the target user in the sharing device list includes:
sending label information of each virtual machine in the sharing equipment list to a target virtual machine corresponding to a target user according to the sharing equipment list corresponding to the target user, so that the target virtual machine generates a sharing equipment label list according to the label information, wherein the label information at least comprises one of an identification number, an MAC (media access control) address and corresponding user information of the virtual machine;
receiving label information of at least one virtual machine to be shared, which is determined by a target user in a sharing device label list;
specifically, in order to facilitate the user to identify the device, the tag information may be a name of the user corresponding to each sharable virtual machine. After the user clicks the clipboard sharing tag, the virtual machine generates a sharing device tag option according to the sharing device tag information acquired from the manager and displays the sharing device tag option to the user, so that the user can select one or more devices for clipboard sharing from the popped sharing device tag list.
And 104, writing the target data into at least one clipboard of the virtual machine to be shared.
Further, writing the target data into a clipboard of at least one virtual machine to be shared includes:
and writing the target data into at least one clipboard of the virtual machine to be shared according to the label information of the virtual machine to be shared.
In one embodiment, before writing the target data into the clipboard of the at least one virtual machine to be shared, the method further includes:
and reading target data written into the corresponding target virtual machine clipboard by the target user.
Specifically, the VM/PM initiating the clipboard sharing writes the target data into the local clipboard, and then the manager reads the target data from the clipboard of the VM/PM after the user selects the virtual machine to be shared.
In one embodiment, before writing the target data into the clipboard of the at least one virtual machine to be shared, the method further includes:
and receiving target data sent by a target virtual machine corresponding to a target user.
Specifically, the target data does not need to be written into the local clipboard of the VM/PM initiating clipboard sharing, but is transmitted to the manager after the VM/PM determines the virtual machine to be shared, and then is distributed by the manager.
In one embodiment, after writing the target data into the clipboard of the at least one virtual machine to be shared, the method further includes:
and sending a notification message to the at least one virtual machine to be shared, wherein the notification message is used for reminding at least one user corresponding to the at least one virtual machine to be shared to acquire target data from a clipboard of the at least one virtual machine to be shared.
Specifically, the content of the notification message may specify the source of the target data and basic information of the target data, such as a file name.
After the notification message is received, the user of the corresponding virtual device can directly obtain the target data shared by other users from the clipboard in a right-key pasting mode.
In one embodiment, writing target data to a clipboard of at least one virtual machine to be shared comprises:
and writing the target data into a shared storage area in at least one to-be-shared virtual machine clipboard so that at least one to-be-shared virtual machine acquires the target data from the shared storage area.
In the present disclosure, regions may be logically divided for a memory space corresponding to a clipboard of a virtual machine, for example, a region for storing data of a locally copied file/content and a region for storing a shared file/content; in this way, when the user clicks the right mouse button to paste, if the written content exists in the current shared storage area, the user can be provided with a choice of copying the content of the local storage area or the content of the shared storage area.
The data sharing method provided by the embodiment of the disclosure includes the steps of firstly receiving a clipboard sharing request sent by a target user, wherein the clipboard sharing request includes an identifier of the target user; then, a sharing device list corresponding to the target user is obtained according to the identifier of the target user, wherein the sharing device list comprises at least one of an identification number of at least one virtual machine in the server, a Media Access Control Address (MAC for short) and corresponding user information; receiving at least one virtual machine to be shared determined by a target user in a sharing device list according to the sharing device list corresponding to the target user; and finally writing the target data into at least one clipboard of the virtual machine to be shared. According to the data sharing method, the user can share the file or the content in the clipboards of other virtual machines through the clipboard sharing function, and other users can obtain the file only by executing the pasting action.
Based on the data sharing method provided in the embodiment corresponding to fig. 3, another embodiment of the present disclosure provides a data sharing method, as shown in fig. 4.
Step 201, a VM/PM user initiates a clipboard sharing request to a manager in a specific mode;
in practical implementation, a clipboard sharing option can be added in the right mouse button option list, when a user needs to share files/contents, the user can select corresponding files/contents, click the right mouse button, and initiate a clipboard sharing request by clicking the clipboard sharing option in the popped option list. The clipboard sharing request carries the unique identifier of the current VM/PM user.
Such documents include, but are not limited to: documents of various types (such as word, excel), pictures, audio, video or other format files; the content refers to the content similar to characters and/or images in a document or a webpage.
Preferably, the user can turn on or off the clipboard sharing function by setting.
Step 202, after a manager receives a clipboard sharing request initiated by a user, searching a sharable device list of the current user according to a unique identifier of the current user;
in actual implementation, a sharable device list corresponding to each user may be preset. All or a plurality of designated virtual devices (i.e., virtual machines) on the current cluster server may be included in the sharable device list. Generally, only the user with high authority has the authority to share the clipboard of all devices, and other users can only share the virtual devices within the authority range.
The Manager prestores a sharable device list of each user and all virtual devices on the current cluster server. The sharable device list includes the identification number and MAC address of each sharable device and the user information (including but not limited to name, department, job number) corresponding to the device.
Step 203, the manager returns label information of corresponding sharable equipment to the virtual machine of the current user according to the inquired sharable equipment list of the current user;
specifically, in order to facilitate the user to identify the device, the tag information may be a name of the user corresponding to each sharable device.
Step 204, the virtual machine generates a sharable device label list in a current right mouse button list of the user according to label information of the sharable device returned by the manager;
specifically, after the user clicks the clipboard sharing tag, the virtual machine generates the sharable device tag option according to the sharable device tag information acquired from the manager and displays the sharable device tag option to the user, so that the user can select one or more devices for clipboard sharing from the popped sharable device tag list.
Step 205, after the user determines the tags of one or more virtual devices to be shared, the virtual machine sends the tag information determined by the user to the manager;
step 206, the manager writes the current file/content to be shared into one or more clipboards of the virtual equipment to be shared;
before sharing a file/content to be shared, acquiring the file/content; specifically, the file/content to be shared may be acquired in any one of the following manners:
the first mode is as follows: the VM/PM initiating the clipboard sharing writes the files/contents to be shared into a local clipboard, and then after a user selects virtual equipment to be shared, a manager reads the corresponding files/contents from the clipboard of the VM/PM;
the second mode is as follows: the file/content to be shared does not need to be written into the local clipboard of the VM/PM initiating clipboard sharing, but the file/content is transmitted to the manager after the VM/PM determines the virtual equipment to be shared, and then the manager distributes the file/content.
Step 207, after the manager writes the file/content to be shared into the clipboard of the corresponding virtual device, sending a notification message to the corresponding virtual machine, where the notification message is used to remind the user of the corresponding virtual device to obtain the corresponding file/content from the clipboard.
Specifically, the content of the notification message may include the source of the file/content and basic information of the file/content, such as a file name.
After the notification message is received, the user of the corresponding virtual device can directly obtain files/contents shared by other users from the clipboard in a right-key pasting mode.
In the prior art, a common clipboard only stores data of copied files or contents on a local machine, so that the data does not need to be stored in different areas according to the source of the files/contents; in the present invention, it is necessary to logically divide the region for the memory space corresponding to the clipboard, for example, a region for storing data of the local copy file/content, and a region for storing the shared file/content; in this way, when the user clicks the right mouse button to paste, if the written content exists in the current shared storage area, the user can be provided with a choice of copying the content of the local storage area or the content of the shared storage area.
The data sharing method provided by the embodiment of the disclosure includes the steps of firstly receiving a clipboard sharing request sent by a target user, wherein the clipboard sharing request includes an identifier of the target user; then, a sharing device list corresponding to the target user is obtained according to the identifier of the target user, wherein the sharing device list comprises at least one of an identification number, an MAC address and corresponding user information of at least one virtual machine in the server; receiving at least one virtual machine to be shared determined by a target user in a sharing device list according to the sharing device list corresponding to the target user; and finally writing the target data into at least one clipboard of the virtual machine to be shared. According to the data sharing method, the user can share the file or the content in the clipboards of other virtual machines through the clipboard sharing function, and other users can obtain the file only by executing the pasting action.
Based on the data sharing method described in the embodiments corresponding to fig. 3 and fig. 4, the following is an embodiment of the apparatus of the present disclosure, and may be used to execute the embodiment of the method of the present disclosure.
The embodiment of the present disclosure provides a data sharing apparatus, as shown in fig. 5, the apparatus includes a first receiving module 301, an obtaining module 302, a second receiving module 303, and a writing module 304;
a first receiving module 301, configured to receive a clipboard sharing request sent by a target user, where the clipboard sharing request includes an identifier of the target user;
an obtaining module 302, configured to obtain, according to an identifier of a target user, a sharing device list corresponding to the target user, where the sharing device list includes at least one of an identification number, an MAC address, and corresponding user information of at least one virtual machine in a server;
a second receiving module 303, configured to receive, according to a sharing device list corresponding to a target user, at least one to-be-shared virtual machine determined by the target user in the sharing device list;
and a writing module 304, configured to write the target data into a clipboard of at least one virtual machine to be shared.
The apparatus provided by the embodiment of the present disclosure includes a first receiving module 301, an obtaining module 302, a second receiving module 303, and a writing module 304; a first receiving module 301, configured to receive a clipboard sharing request sent by a target user, where the clipboard sharing request includes an identifier of the target user; an obtaining module 302, configured to obtain, according to an identifier of a target user, a sharing device list corresponding to the target user, where the sharing device list includes at least one of an identification number, an MAC address, and corresponding user information of at least one virtual machine in a server; a second receiving module 303, configured to receive, according to a sharing device list corresponding to a target user, at least one to-be-shared virtual machine determined by the target user in the sharing device list; and a writing module 304, configured to write the target data into a clipboard of at least one virtual machine to be shared. According to the data sharing device, a user can share files or contents in the clipboards of other virtual machines through the clipboard sharing function, and other users can obtain the files only by executing the pasting action.
In an embodiment, the apparatus further includes a storage module 305, configured to pre-store a list of shared devices of users corresponding to each virtual machine in the server.
In an embodiment, the apparatus further includes a sending module 306, configured to send a notification message to the at least one virtual machine to be shared, where the notification message is used to remind at least one user corresponding to the at least one virtual machine to be shared to obtain target data from a clipboard of the at least one virtual machine to be shared.
Based on the data sharing method described in the embodiment corresponding to fig. 3 and fig. 4, another embodiment of the present disclosure further provides a data sharing device, where the data sharing device includes a processor and a memory, and the memory stores at least one computer instruction, and the instruction is loaded and executed by the processor to implement the data sharing method described in the embodiment corresponding to fig. 3 and fig. 4.
Based on the data sharing method described in the embodiments corresponding to fig. 3 and fig. 4, embodiments of the present disclosure further provide a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores at least one computer instruction for executing the data sharing method described in the embodiment corresponding to fig. 3 and fig. 4, which is not described herein again.
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.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A data sharing method is applied to a management platform, and the method comprises the following steps:
receiving a clipboard sharing request sent by a target user, wherein the clipboard sharing request comprises an identifier of the target user, and the clipboard sharing request is used for indicating to share target data;
acquiring a sharing equipment list corresponding to the target user according to the identifier of the target user, wherein the sharing equipment list comprises at least one of an identification number, an MAC (media access control) address and corresponding user information of at least one virtual machine in a server;
receiving at least one virtual machine to be shared determined by the target user in the sharing device list according to the sharing device list corresponding to the target user;
and writing the target data into the clipboard of the at least one virtual machine to be shared.
2. The data sharing method according to claim 1, wherein before the obtaining of the sharing device list corresponding to the target user according to the identifier of the target user, the method further includes:
and pre-storing a sharing equipment list of a user corresponding to each virtual machine in the server.
3. The data sharing method according to claim 1, wherein before the writing the target data to the clipboard of the at least one virtual machine to be shared, the method further comprises:
and reading the target data written into the corresponding target virtual machine clipboard by the target user.
4. The data sharing method according to claim 1, wherein before the writing the target data to the clipboard of the at least one virtual machine to be shared, the method further comprises:
and receiving the target data sent by the target virtual machine corresponding to the target user.
5. The data sharing method according to claim 1, wherein after the writing of the target data to the clipboard of the at least one virtual machine to be shared, the method further comprises:
sending a notification message to the at least one virtual machine to be shared, wherein the notification message is used for reminding at least one user corresponding to the at least one virtual machine to be shared to acquire the target data from a clipboard of the at least one virtual machine to be shared.
6. The data sharing method according to claim 1, wherein the receiving, according to the sharing device list corresponding to the target user, the at least one virtual machine to be shared that is determined in the sharing device list by the target user comprises:
according to the sharing device list corresponding to the target user, sending label information of each virtual machine in the sharing device list to a target virtual machine corresponding to the target user, so that the target virtual machine generates a sharing device label list according to the label information, wherein the label information at least comprises one of an identification number, an MAC address and corresponding user information of the virtual machine;
receiving label information of at least one virtual machine to be shared, which is determined by the target user in the sharing device label list;
the writing the target data into the clipboard of the at least one virtual machine to be shared comprises:
and writing target data into the clipboard of the at least one virtual machine to be shared according to the label information of the virtual machine to be shared.
7. The data sharing method according to claim 1, wherein the writing of the target data to the clipboard of the at least one virtual machine to be shared comprises:
writing target data into a shared storage area in the clipboard of the at least one virtual machine to be shared, so that the at least one virtual machine to be shared acquires the target data from the shared storage area.
8. A data sharing apparatus, comprising: the device comprises a first receiving module, an obtaining module, a second receiving module and a writing module;
the first receiving module is configured to receive a clipboard sharing request sent by a target user, where the clipboard sharing request includes an identifier of the target user, and the clipboard sharing request is used to indicate that target data is shared;
the acquisition module is configured to acquire a sharing device list corresponding to the target user according to the identifier of the target user, where the sharing device list includes at least one of an identification number, an MAC address, and corresponding user information of at least one virtual machine in a server;
the second receiving module is configured to receive, according to the sharing device list corresponding to the target user, at least one to-be-shared virtual machine determined by the target user in the sharing device list;
and the writing module is used for writing the target data into the clipboard of the at least one virtual machine to be shared.
9. The data sharing apparatus according to claim 1, further comprising a storage module, configured to pre-store a sharing device list of a user corresponding to each virtual machine in the server.
10. The data sharing apparatus according to claim 1, further comprising a sending module, configured to send a notification message to the at least one virtual machine to be shared, where the notification message is used to remind at least one user corresponding to the at least one virtual machine to be shared to obtain the target data from a clipboard of the at least one virtual machine to be shared.
CN202110704332.8A 2021-06-24 2021-06-24 Data sharing method and device Pending CN113360297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110704332.8A CN113360297A (en) 2021-06-24 2021-06-24 Data sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110704332.8A CN113360297A (en) 2021-06-24 2021-06-24 Data sharing method and device

Publications (1)

Publication Number Publication Date
CN113360297A true CN113360297A (en) 2021-09-07

Family

ID=77536268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110704332.8A Pending CN113360297A (en) 2021-06-24 2021-06-24 Data sharing method and device

Country Status (1)

Country Link
CN (1) CN113360297A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138145A (en) * 2021-11-30 2022-03-04 武汉噢易云计算股份有限公司 Application virtualization file dragging method, device and equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138145A (en) * 2021-11-30 2022-03-04 武汉噢易云计算股份有限公司 Application virtualization file dragging method, device and equipment and readable storage medium
CN114138145B (en) * 2021-11-30 2024-05-28 武汉噢易云计算股份有限公司 File dragging method, device and equipment for application virtualization and readable storage medium

Similar Documents

Publication Publication Date Title
US11233851B2 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
US11314568B2 (en) Message processing method and apparatus, storage medium, and computer device
US9176953B2 (en) Method and system of web-based document service
US6343316B1 (en) Cooperative work support system
US20140258334A1 (en) Information processing apparatus, information processing system and information processing method
CN106874334B (en) Data processing method and device and information processing system
US9396277B2 (en) Access to supplemental data based on identifier derived from corresponding primary application data
US8896857B2 (en) Content receipt via email addresses
JP2010072865A (en) Data processing apparatus, data processing method, program, and recording medium
US20100228537A1 (en) Multiple language support system and method for application
CN110597773A (en) Method and apparatus for sharing files between computer device and virtual reality device
US20220350553A1 (en) Server system
CN113360297A (en) Data sharing method and device
US20140365430A1 (en) Information processing apparatus, system, and control method
CN111845143B (en) Method and device for printing by handheld device
US20210064569A1 (en) Information processing apparatus and non-transitory computer readable medium
US9612788B2 (en) Terminal apparatus, information processing system, and output method
CN115657903A (en) Document interaction method, device, equipment and storage medium
CN113726852A (en) Data transmission method and system, zero terminal and cloud server
US11625497B2 (en) File management system and non-transitory computer readable medium
US20140092435A1 (en) Applying individual preferences to printed documents
CN113676517A (en) Data transmission method, device and system
US11553031B2 (en) Method and apparatus for processing data
JP2010198444A (en) Printing data storage server, program, and storage medium
CN113704187B (en) Method, apparatus, server and computer readable medium for generating file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination