Disclosure of Invention
The application aims to provide a storage method and a system thereof, which have the technical effects that through semi-cloud storage, data with large occupied space is transmitted by using a local area network, user information data is stored in a cloud sharing mode, the cost of a PC (personal computer) is effectively reduced, and the influence of a network environment on data use is avoided.
To achieve the above object, the present application provides a storage method, including: creating a plurality of child storage threads; presetting the transmission condition of each sub-storage thread; acquiring storage data and storing the storage data into corresponding sub-storage threads according to transmission conditions; and in response to the storage data calling instruction, calling the storage data for use through the child storage thread.
as above, wherein the sub-steps of creating a plurality of child storage threads are as follows: searching a storage node; establishing connection with the searched storage nodes; after the connection is completed, a child storage thread is created between the PC and the storage node.
as above, the number of the sub-storage threads is three, and the three sub-storage threads are respectively allocated to the cloud storage channel, the PC storage channel and the all-in-one machine storage channel; wherein, the high in the clouds memory channel is: a storage channel between the PC and the cloud platform; the PC storage channel is as follows: a storage channel between the PC and the all-in-one machine; the all-in-one machine storage channel is as follows: and the storage channel is arranged between the all-in-one machine and the cloud platform.
The method comprises the following steps of A, wherein the number of PC storage channels is multiple; the all-in-one machine storage channel is multiple.
The above, wherein the transmission condition includes at least a data type; the data types include at least: application type, VR type, user information type.
The sub-steps of obtaining the storage data and storing the storage data into the corresponding sub-storage thread according to the transmission condition are as follows: acquiring storage data; analyzing the acquired storage data to obtain an analysis result; and comparing the analysis result with the stored data, and storing the stored data into the child storage thread with the analysis result and the stored data comparison result being consistent.
As above, wherein the storage data includes at least application data, VR data, user information data.
the present application also provides a storage system, comprising: the system comprises a cloud platform, a PC (personal computer) and at least one all-in-one machine; the cloud-end platform is provided with a first storage medium, the PC is provided with a second storage medium, and each all-in-one machine is provided with a third storage medium; the PC is interacted with the cloud platform; the PC is connected with the integrated machine; the all-in-one machine and the cloud platform interaction PC machine are used for executing the storage method.
The above, wherein the first storage medium stores user information data; the second storage medium stores VR data; the third storage medium stores APP data.
as above, wherein the PC comprises: the device comprises a searching module, a connection establishing module, a second storage medium, a processing module, a comparison module and a calling module; a search module: for searching for storage nodes; a connection creation module: the system is used for establishing connection with the searched storage nodes; creating a sub-storage thread between the PC and the storage node; creating a sub-storage thread between the storage nodes; a second storage medium: for storing VR data; receiving an instruction of a calling module and calling according to the sub-storage thread; a processing module: analyzing the acquired storage data, extracting a data type mark of the storage data, and sending the data type mark as an analysis result to a comparison module for comparison; a comparison module: a comparison library is created in the comparison module, and the transmission conditions and the corresponding storage threads are stored in the comparison library; after the comparison module obtains the analysis result, the analysis result is compared with the transmission condition in the comparison library, and the storage data is stored in the sub-storage thread with the analysis result and the comparison result of the storage data being consistent; a calling module: and calling the stored data according to the sub-storage thread according to the calling instruction.
The beneficial effect that this application realized is as follows:
(1) According to the storage method and the system, the data with large occupied space is transmitted through the area network through the semi-cloud storage, the user information data is stored in the cloud for sharing, the cost of the PC is effectively reduced, and the influence of the network environment on the data use is avoided.
(2) The storage method and the system thereof store the data with large occupied space in the PC machine in advance or download while running, and the APP is stored in the all-in-one machine, so that the technical effect of ensuring low cost and not being influenced by network environment is achieved.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application provides a storage method and a system thereof, which have the technical effects that through semi-cloud storage, data with large occupied space is transmitted by using a local area network, user information data is stored in a cloud for sharing, the cost of a PC (personal computer) is effectively reduced, and the influence of a network environment on the use of the data is avoided.
as shown in fig. 1, the present application provides a storage system comprising: the system comprises a cloud platform 1, a PC (personal computer) 2 and at least one all-in-one machine 3; the cloud platform 1 is provided with a first storage medium, the PC 2 is provided with a second storage medium, and each all-in-one machine 3 is provided with a third storage medium; the PC 2 interacts with the cloud platform 1; the PC machine 2 is connected with the integrated machine 3; the all-in-one machine 3 interacts with the cloud platform 1; the PC 2 is used to execute a storage method described below.
Further, the first storage medium stores user information data; the second storage medium stores VR data; the third storage medium stores APP data.
Further, the PC 2 includes: the device comprises a searching module, a connection establishing module, a second storage medium, a processing module, a comparing module and a calling module.
wherein the search module: for searching for storage nodes.
A connection creation module: the system is used for establishing connection with the searched storage nodes; creating a sub-storage thread between the PC and the storage node; and creating a child storage thread between the storage nodes.
A second storage medium: for storing VR data; and receiving the instruction of the calling module to call according to the sub-storage thread.
A processing module: and analyzing the acquired storage data, extracting a data type mark of the storage data, and sending the data type mark as an analysis result to a comparison module for comparison.
A comparison module: a comparison library is created in the comparison module, and the transmission conditions and the corresponding storage threads are stored in the comparison library; and after the comparison module obtains the analysis result, comparing the analysis result with the transmission condition in the comparison library, and storing the storage data in the child storage thread with the analysis result and the storage data comparison result being consistent.
a calling module: and calling the stored data according to the sub-storage thread according to the calling instruction.
As shown in fig. 2, the present application provides a storage method, including:
s1: a plurality of child storage threads are created.
Specifically, the sub-steps of creating a plurality of child storage threads are as follows:
s110: the storage nodes are searched.
Specifically, the PC 2 searches for the storage node through the search module. The storage node comprises a cloud platform and a plurality of all-in-one machines.
s120: and establishing connection with the searched storage node.
Specifically, the PC 2 establishes a connection with the searched storage node through the connection creation module. As an example, the PC may be connected via a socket, Bluetooth, or a network connection.
S130: after the connection is completed, a child storage thread is created between the PC and the storage node.
Further, there are at least three child storage threads.
specifically, the three sub-storage threads are respectively allocated to a cloud storage channel, a PC storage channel and an all-in-one machine storage channel.
wherein, the high in the clouds memory channel is: and a storage channel between the PC 2 and the cloud platform 1.
The PC storage channel is as follows: and a storage channel between the PC machine 2 and the all-in-one machine 3.
The all-in-one machine storage channel is as follows: and a storage channel is arranged between the all-in-one machine 3 and the cloud platform 1.
Further, the PC machine has a plurality of storage channels.
Furthermore, the all-in-one machine has a plurality of storage channels.
s2: the transmission condition of each sub-storage thread is preset.
Further, the transmission condition includes at least a data type.
specifically, the data types at least include: application type, VR type, user information type.
Wherein, the application type is: data including application data; the application data includes data such as APP data.
VR type: including VR data; VR data includes video data and the like.
The user information type: data including user information data and the like; the user information data includes login duration, game score and the like.
Further, the transmission conditions of the cloud storage channel are as follows: the data type is user information data. Specifically, the user information data is stored in a first storage medium.
Further, the transmission conditions of the PC storage channel are as follows: the data type is VR data. Specifically, VR data occupies a large space and is stored in the second storage medium.
further, the transmission conditions of the storage channel of the all-in-one machine are as follows: the data type is application data. The specific application data is stored in a third storage medium. For example: APP, APP set up in all-in-one.
S3: and acquiring storage data and storing the storage data into the corresponding sub-storage thread according to the transmission condition.
Further, the sub-step of obtaining the storage data and storing the storage data into the corresponding sub-storage thread according to the transmission condition is as follows:
S310: and acquiring the stored data.
Specifically, the storage data at least includes application data, VR data, and user information data. And after the PC machine obtains the storage data, the storage data is sent to the processing module for analysis and processing.
The application data includes data such as APP data. The APP data can be obtained through websites, application markets, official platforms and the like.
VR data includes video data and the like. VR video data can be obtained through a database, manual import, cloud downloading and the like.
The user information data includes data such as a user name, a login time, a game time, and a game score. And user information data is acquired through an APP account and the like.
Further, the application data, the VR data and the user information data each have a corresponding data type flag. For example: the data type of the application data is marked as: the type of application. The data type of the VR data is marked as: and VR type. The data type of the user information data is marked as: the type of user information.
S320: and analyzing the acquired stored data to obtain an analysis result.
Specifically, the processing module analyzes the acquired storage data, extracts the data type mark of the storage data as an analysis result, and sends the analysis result to the comparison module.
S330: and comparing the analysis result with the stored data, and storing the stored data into the child storage thread with the analysis result and the stored data comparison result being consistent.
Specifically, after the comparison module obtains the analysis result, the analysis result is compared with the transmission condition in the comparison library, and the storage data is stored in the child storage thread with the analysis result and the storage data comparison result being consistent. For example: and if the analysis result is of the user information type, the analysis result is consistent with the transmission condition of the cloud storage channel in the comparison library, and the storage data is stored in the first storage medium through the cloud storage channel. And if the analysis result is of the VR type, the analysis result is consistent with the transmission condition of the PC storage channel in the comparison library, and the storage data is stored in a second storage medium through the PC storage channel. And if the analysis result is the application type, the analysis result is consistent with the transmission condition of the all-in-one machine storage channel, and the storage data is stored in a third storage medium through the all-in-one machine storage channel.
S4: and in response to the storage data calling instruction, calling the storage data for use through the child storage thread.
Specifically, when the integrated machine 3 and the PC 2 need to use the storage data, a call instruction is sent to a call module of the PC 2, and the call module calls the storage data according to the sub-storage thread.
Further, as an embodiment, the sub-step of calling the storage data by the child storage thread is as follows:
T1: and downloading the storage data in advance and storing the storage data in a second storage medium.
Specifically, as an embodiment, the PC 2 downloads the storage data in advance, where the storage data is VR video data, and stores the VR video data in the second storage medium of the PC 2. The PC 2 downloads the stored data in advance, transmits the data occupying large space through the area network in advance and stores the data, ensures that the all-in-one machine 3 and the like call the data in the game process without using the network again, is not influenced by the network environment in use, and effectively ensures the smoothness of use.
Specifically, as another embodiment, the PC 2 operates a part of the stored data and downloads another part of the stored data at the same time. The download is carried out while running, the use is not influenced by the network environment, and the blocking phenomenon is effectively avoided.
T2: and receiving a calling instruction, and calling the storage data from the second storage medium according to the calling instruction.
Specifically, after receiving the call instruction, the PC 2 call module calls the storage data required by the user from the second storage medium according to the call instruction.
the beneficial effect that this application realized is as follows:
(1) according to the storage method and the system, the data with large occupied space is transmitted through the area network through the semi-cloud storage, the user information data is stored in the cloud for sharing, the cost of the PC is effectively reduced, and the influence of the network environment on the data use is avoided.
(2) The storage method and the system thereof store the data with large occupied space in the PC machine in advance or download while running, and the APP is stored in the all-in-one machine, so that the technical effect of ensuring low cost and not being influenced by network environment is achieved.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, the scope of protection of the present application is intended to be interpreted to include the preferred embodiments and all variations and modifications that fall within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the present application and their equivalents, the present application is intended to include such modifications and variations as well.