CN105357303B - file sharing system and method - Google Patents
file sharing system and method Download PDFInfo
- Publication number
- CN105357303B CN105357303B CN201510772531.7A CN201510772531A CN105357303B CN 105357303 B CN105357303 B CN 105357303B CN 201510772531 A CN201510772531 A CN 201510772531A CN 105357303 B CN105357303 B CN 105357303B
- Authority
- CN
- China
- Prior art keywords
- user
- memory space
- file
- sharing
- space
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Document Processing Apparatus (AREA)
Abstract
A kind of sharing files method, this method apply to data center, and this method includes:One or more communal spaces are created in the data center;When the file of user's sharing data central store, file is transferred to a communal space from the memory space of the user;When there are other users to share this document, the memory space each shared user's needs and undertaken is calculated according to the number of users and file size for sharing this document;According to it is each share user need undertake memory space adjustment each share the remaining memory space of user.The present invention also provides a kind of file sharing systems.The cost for purchasing server can be reduced to avoid repeating to store identical file in cloud service through the invention.
Description
Technical field
The present invention relates to a kind of file sharing system and methods, especially with respect to the sharing files system in a kind of data center
System and method.
Background technology
High in the clouds data space service is very popular, and service provider's (for example, providing the Microsoft of SkyDrive cloud services) carries
For the free memory space of user's certain capacity, if user needs more memory spaces, need to buy to service provider, however, working as
It may repeat to store identical file between different user, for example, sharing files are given user B, this document that will deposit respectively by user A
It is stored in memory space and user B memory spaces in cloud service of the user A in cloud service, thus, cause cloud service
Middle utilization rate is low, and increases the cost that service provider purchases server.
Invention content
In view of the foregoing, it is necessary to a kind of file sharing system is provided, can to avoid in cloud service repeat storage phase
Same file.
In view of the foregoing, it there is a need to and a kind of sharing files method be provided, can repeatedly be stored to avoid in cloud service
Identical file.
A kind of file sharing system, the system operation include in data center, the system:Creation module, in data
One or more communal spaces are created in center;Shift module is used for when the file of user's sharing data central store, will be literary
Part is transferred to a communal space from the memory space of the user;Judgment module shares this for judging whether there is other users
File;Computing module, for when there is other users to share this document, according to the number of users and file size for sharing this document
It calculates and each shares the memory space that user's needs undertake;Module is adjusted, each sharing user for basis needs what is undertaken to deposit
Storage space allocation each shares the remaining memory space of user.
A kind of sharing files method, this method apply to data center, and this method includes:One is created in the data center
Or multiple communal spaces;When the file of user's sharing data central store, file is transferred to from the memory space of the user
One communal space;It judges whether there is other users and shares this document;When there is other users to share this document, according to sharing this
The number of users and file size of file, which calculate, each shares the memory space that user's needs undertake;Share user's need according to each
The memory space to be undertaken adjustment each shares the remaining memory space of user.
Compared to the prior art, file sharing system provided by the invention and method can repeat to avoid in cloud service
Identical file is stored, the cost for purchasing server is reduced, and can be stored in the memory space that user is assigned to more
File improves the wish that user uses cloud service.
Description of the drawings
Fig. 1 is the applied environment figure of file sharing system preferred embodiment of the present invention.
Fig. 2 is the structural schematic diagram of monitoring server preferred embodiment of the present invention.
Fig. 3 is the flow chart of sharing files method preferred embodiment of the present invention.
Main element symbol description
Client | 10 |
Network | 20 |
Data center | 30 |
File sharing system | 300 |
Creation module | 301 |
Shift module | 302 |
Judgment module | 303 |
Computing module | 304 |
Adjust module | 305 |
Memory | 310 |
Processor | 320 |
Following specific implementation mode will be further illustrated the present invention in conjunction with above-mentioned attached drawing.
Specific implementation mode
As shown in fig.1, being the applied environment figure of 300 preferred embodiment of file sharing system of the present invention.This document is shared
System 300 is applied in data center (Data Center) 30.The data center 30 passes through network 20 and one or more clients
10 (being illustrated for three in Fig. 1) of end are communicatively coupled.
The network 20 can be internet, LAN or other communication networks.
The data center 30 includes multiple servers, and (one is indicated with the account registered in data center for user
A user) storage service is provided.Specifically, data center 30 distributes the memory space of certain capacity by way of virtual machine
(for example, 5G) gives each user.User can realize storage service in the 5G capacity that data center 30 is provided, for example, will
Data is stored from client 10 into data center 30.
Client 10 logs on data center 30 for providing an interactive interface to user convenient for user.The client
End 10 can be personal computer, laptop, mobile phone, tablet computer and other arbitrary can be connect with data center 30
Equipment.In the preferred embodiment, the convenience angle that client 10 is carried from user considers that the client 10 is mobile phone.
As shown in fig.2, being the structural schematic diagram of 30 preferred embodiment of data center of the present invention.The data center 30 in addition to
Further include memory 310 and processor 320 including file sharing system 300.This document share system 300 includes creation module
301, shift module 302, judgment module 303, computing module 304 and adjustment module 305.The programming code of module 301 to 305
It is stored in memory 310, processor 320 executes these programming codes, realizes following work(that file sharing system 300 provides
Energy.
Creation module 301 creates one or more communal spaces in data center 30.The communal space is in data
A storage region in the heart 30, for storing the file shared.
Shift module 302 is used for when the file that user needs sharing data center 30 to store, by file depositing from user
Space transfer is stored up to a communal space.Specifically, shift module 302 first determines whether the size of file and remaining for the communal space
File is transferred to the communal space by covolume amount when the communal space can store this document size from the memory space of user.
Judgment module 303 shares this document for judging whether there is other users.Specifically, being stored in the communal space
File can be shared with other users, and after user shares this document, other users can be checked and be downloaded from the communal space should
File.
Computing module 304 is used for when there is other users to share this document, according to the number of users and text for sharing this document
Part size, which calculates, each shares the memory space that user's needs undertake.Specifically, using calculation formula:Y=X/N is counted
It calculates, wherein Y is the memory space each shared user and need to undertake, and X is the size of file, and N is the number of users for sharing this document
Amount.Can be seen that from above-mentioned calculation formula share this document user it is more, each user needs the memory space undertaken to get over
It is small.
Adjustment module 305 be used for according to each share user need undertake memory space adjustment each share user residue
Memory space.Specifically, using calculation formula:S=S1-Y-M.Wherein S is that some shares the remaining storage sky of user
Between, S1 is that data center 30 distributes to the fixed memory space for sharing user (for example, 5G memory spaces), and Y shares for this
It is that this shares the memory space that user has used that user, which needs the memory space undertaken, M,.
As shown in figure 3, being the flow chart of sharing files method preferred embodiment of the present invention.
Step S10, creation module 301 create one or more communal spaces in data center 30.The communal space
For a storage region, for storing the file shared.
Step S20, when the file that user needs sharing data center 30 to store, shift module 302 is by file from user
Memory space be transferred to a communal space.Specifically, shift module 302 first determines whether the size and the communal space of file
Residual capacity file is transferred to shared sky from the memory space of user when the communal space can store this document size
Between.When the communal space can not store this document size, the communal space of this document can be stored by finding, later by file from
The memory space of user is transferred to the communal space.
Step S30, judgment module 303 judge whether there is other users and share this document.Specifically, being stored in shared sky
Between file can be shared with other users, after user shares this document, other users can be checked from the communal space and under
Carry this document.When there is other users to share this document, flow enters step S40.Otherwise, when no other users share this article
When part, step S30 is continued to execute.It should be noted that in other embodiments, when no other users share this document, and
(for example, 5 days) are continued for some time, judgment module 303 deletes this document from the communal space.
Step S40, when there is other users to share this document, computing module 304 is according to the number of users for sharing this document
And file size calculates and each shares the memory space that user's needs undertake.Specifically, using calculation formula:Y=X/N, into
Row calculates, wherein Y is the memory space each shared user and need to undertake, and X is the size of file, and N is the use for sharing this document
Amount amount.Can be seen that from above-mentioned calculation formula share this document user it is more, each user needs the memory space undertaken
With regard to smaller.
Step S50, adjustment module 305 need the memory space undertaken adjustment each to share user according to user is each shared
Remaining memory space.Specifically, using calculation formula:S=S1-Y-M.Wherein S is that some shares that user is remaining to deposit
Space is stored up, S1 is that data center 30 distributes to the fixed memory space for sharing user (for example, 5G memory spaces), and Y is should
It is that this shares the memory space that user has used to share user to need the memory space undertaken, M.
It should be noted last that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although ginseng
It is described the invention in detail according to the above preferred embodiment, it will be understood by those of ordinary skill in the art that, it can be to this
The technical solution of invention is modified or equivalent replacement, without departing from the spirit of the technical scheme of the invention and range.
Claims (8)
1. a kind of file sharing system, the system operation is in data center, which is characterized in that the system includes:
Creation module, for creating one or more communal spaces in the data center;
Shift module, for when the file of user's sharing data central store, size to be less than to the residual capacity of the communal space
File be transferred to a communal space from the memory space of the user;
Computing module, for when there is other users to be checked from the communal space and download this document, according to the use for sharing this document
Amount amount and file size calculate each user and need the memory space undertaken;And
Module is adjusted, each sharing user for basis needs the memory space undertaken adjustment each to share the remaining storage of user
Space.
2. file sharing system as described in claim 1, which is characterized in that the communal space is one in data center
Storage region, for storing the file shared.
3. file sharing system as described in claim 1, which is characterized in that each storage shared user's needs and undertaken
Space calculation is as follows:Y=X/N, wherein Y is the memory space each shared user and need to undertake, and X is the size of file,
N is the number of users for sharing this document.
4. file sharing system as described in claim 1, which is characterized in that described each to share the remaining memory space of user
Calculation is as follows:S=S1-Y-M, wherein S is that this shares the remaining memory space of user, and S1 is that data center distributes to this
Share the fixed memory space of user, Y is that this shares the memory space that user's needs undertake, and M shares user for this and used
Memory space.
5. a kind of sharing files method, this method apply to data center, which is characterized in that this method includes:
One or more communal spaces are created in the data center;
When the file of user's sharing data central store, size is less than to the file of the residual capacity of the communal space from the user
Memory space be transferred to a communal space;
It is big according to the number of users and file of sharing this document when there is other users to be checked from the communal space and download this document
The small memory space for calculating each user's needs and undertaking;And
According to it is each share user need undertake memory space adjustment each share the remaining memory space of user.
6. sharing files method as claimed in claim 5, which is characterized in that the communal space is one in data center
Storage region, for storing the file shared.
7. sharing files method as claimed in claim 5, which is characterized in that each storage shared user's needs and undertaken
Space calculation is as follows:Y=X/N, wherein Y is the memory space each shared the user of this document and need to undertake, and X is text
The size of part, N are the number of users for sharing this document.
8. sharing files method as claimed in claim 5, which is characterized in that described each to share the remaining memory space of user
Calculation is as follows:S=S1-Y-M, wherein S is that this shares the remaining memory space of user, and S1 is that data center distributes to this
Share the fixed memory space of user, Y is that this shares the memory space that user's needs undertake, and M shares user for this and used
Memory space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510772531.7A CN105357303B (en) | 2015-11-12 | 2015-11-12 | file sharing system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510772531.7A CN105357303B (en) | 2015-11-12 | 2015-11-12 | file sharing system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105357303A CN105357303A (en) | 2016-02-24 |
CN105357303B true CN105357303B (en) | 2018-08-31 |
Family
ID=55333162
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510772531.7A Expired - Fee Related CN105357303B (en) | 2015-11-12 | 2015-11-12 | file sharing system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357303B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102158468A (en) * | 2011-01-26 | 2011-08-17 | 清华大学 | Method for sharing and acquiring data in social network service (SNS) |
CN102307240A (en) * | 2011-09-20 | 2012-01-04 | 清华大学 | Method for sharing files on internet by utilizing computer equipment |
CN102480508A (en) * | 2010-11-26 | 2012-05-30 | 财团法人资讯工业策进会 | Multi-user shared network storage service system and method thereof |
CN103227818A (en) * | 2013-03-27 | 2013-07-31 | 福建伊时代信息科技股份有限公司 | Terminal, server, file transferring method, file storage management system and file storage management method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI447584B (en) * | 2010-11-01 | 2014-08-01 | Inst Information Industry | System for multi-user network storage service sharing and method thereof |
-
2015
- 2015-11-12 CN CN201510772531.7A patent/CN105357303B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102480508A (en) * | 2010-11-26 | 2012-05-30 | 财团法人资讯工业策进会 | Multi-user shared network storage service system and method thereof |
CN102158468A (en) * | 2011-01-26 | 2011-08-17 | 清华大学 | Method for sharing and acquiring data in social network service (SNS) |
CN102307240A (en) * | 2011-09-20 | 2012-01-04 | 清华大学 | Method for sharing files on internet by utilizing computer equipment |
CN103227818A (en) * | 2013-03-27 | 2013-07-31 | 福建伊时代信息科技股份有限公司 | Terminal, server, file transferring method, file storage management system and file storage management method |
Also Published As
Publication number | Publication date |
---|---|
CN105357303A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10680892B2 (en) | Managing servers with quality of service assurances | |
US8996647B2 (en) | Optimizing storage between mobile devices and cloud storage providers | |
US9444636B2 (en) | Message broadcasting in a clustered computing environment | |
CN103491143A (en) | File sharing method and device | |
US20120323821A1 (en) | Methods for billing for data storage in a tiered data storage system | |
CN103248666A (en) | System, method and device for offline resource download | |
CN106572146A (en) | Message sending method and message sending device | |
CN103281361A (en) | Personal cloud cooperation system and data management method | |
CN106998314B (en) | Account interaction method and device | |
CN109842652A (en) | A kind of method for uploading of file, terminal, Cloud Server and computer storage medium | |
CN106899564A (en) | A kind of login method and device | |
CN107547352A (en) | Document sending method, apparatus and system | |
CN108259568A (en) | Method for allocating tasks, device, computer readable storage medium and electronic equipment | |
CN111798167A (en) | Warehouse replenishment method and device | |
CN105357239A (en) | Method and device for providing service, and method and device for acquiring service | |
CN110517061A (en) | A kind of generation method of discount coupon, device and server | |
CN105357303B (en) | file sharing system and method | |
CN105656794B (en) | Data distributing method, device and computer readable storage medium | |
CN104092826A (en) | Method and device for sharing personal information on terminal | |
CN105025042B (en) | A kind of method and system of determining data information, proxy server | |
CN105335362B (en) | The processing method and system of real time data, instant disposal system for treating | |
WO2016173133A1 (en) | Load sharing implementation method, interface machine, service processor and system | |
CN104092602A (en) | Cloud computing gateway | |
CN111432357B (en) | Information processing method and system and computing equipment | |
CN103095706B (en) | A kind of processing method of terminal security and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20191113 Address after: 100012 unit 1103, floor 11, building 1, Chengying center, No. 5 yard, Laiguangying West Road, Chaoyang District, Beijing Patentee after: Beijing shengshang Education Technology Co.,Ltd. Address before: 312400 Zhejiang city of Shaoxing province Shengzhou city town Yao Village Patentee before: Yao Huangen |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180831 Termination date: 20211112 |
|
CF01 | Termination of patent right due to non-payment of annual fee |