CN112637303A - Personal cloud disk system based on NAS - Google Patents

Personal cloud disk system based on NAS Download PDF

Info

Publication number
CN112637303A
CN112637303A CN202011485270.8A CN202011485270A CN112637303A CN 112637303 A CN112637303 A CN 112637303A CN 202011485270 A CN202011485270 A CN 202011485270A CN 112637303 A CN112637303 A CN 112637303A
Authority
CN
China
Prior art keywords
cloud disk
personal cloud
nas
file
disk system
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.)
Granted
Application number
CN202011485270.8A
Other languages
Chinese (zh)
Other versions
CN112637303B (en
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.)
Guangzhou Institute of Technology
Original Assignee
Guangzhou Institute of Technology
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 Guangzhou Institute of Technology filed Critical Guangzhou Institute of Technology
Priority to CN202011485270.8A priority Critical patent/CN112637303B/en
Publication of CN112637303A publication Critical patent/CN112637303A/en
Application granted granted Critical
Publication of CN112637303B publication Critical patent/CN112637303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • 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/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a personal cloud disk system based on NAS, which comprises a client, a server and a personal cloud disk, wherein the client and the server are in communication connection with the personal cloud disk; the personal cloud disk is used for storing files and is constructed by an NAS; the client is used for managing the files on line; the server side is used for managing the files and is based on Socket communication. According to the embodiment of the invention, the personal cloud disk is constructed through the NAS and is respectively connected with the client side and the server side, the personal cloud disk is used for storing files, and the client side and the server side are used for managing the files, so that the safety of a cloud disk system is improved, and the files are prevented from being leaked or lost; the transmission speed is improved through the server side based on Socket communication, and the requirement on hardware configuration is low so as to save cost. The embodiment of the invention can be widely applied to the technical field of the Internet.

Description

Personal cloud disk system based on NAS
Technical Field
The invention relates to the technical field of internet, in particular to a personal cloud disk system based on NAS.
Background
With the rapid development of electronic devices, people increasingly like to record life drops by using lenses, so that a large amount of image data can be generated. However, the current network disk is generally a third-party network disk, and the third-party network disk has some problems, such as file leakage, file loss, transmission speed limit, and the like, that is, the third-party network disk has the problems of safety and transmission speed limitation.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a NAS-based personal cloud disk system, which is safer and faster in transmission speed.
The embodiment of the invention provides a personal cloud disk system based on NAS, which comprises a client, a server and a personal cloud disk, wherein the client and the server are communicated with the personal cloud disk;
the personal cloud disk is used for storing files and is constructed by an NAS;
the client is used for managing the files on line;
the server side is used for managing the files and is based on Socket communication.
Optionally, the client interface is constructed using JavaFX.
Optionally, the client comprises at least one of the following services: compression, decompression, text editing, picture preview, photo management, video playing, file proofreading, server state acquisition, uploading monitoring, downloading monitoring and AOP.
Optionally, the photo management is implemented by a photo manager, the photo manager including at least one of the following functions: time setting, filing setting, uploading, downloading, option setting, refreshing, moving and deleting.
Optionally, the text editing is implemented by a text editor, and the text editor includes at least one of the following functions: text editing, storage mode selection, text information display, storage prompt closing and multi-window display.
Optionally, the picture preview includes at least one of the following functions: and carrying out self-adaptive adjustment on the picture size and displaying the loading progress.
Optionally, the server side adopts Java core layer operation.
Optionally, the server side includes at least one of the following services: file list acquisition, file creation, file list movement, file list copying, file list deletion, compression, decompression, request monitoring and AOP.
Optionally, the file list is obtained through a public out-link folder.
Optionally, the file list acquisition is respectively acquired according to file objects.
The implementation of the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, the personal cloud disk is constructed through the NAS and is respectively connected with the client side and the server side, the personal cloud disk is used for storing files, and the client side and the server side are used for managing the files, so that the safety of a cloud disk system is improved, and the files are prevented from being leaked or lost; the transmission speed is improved through the server side based on Socket communication, and the requirement on hardware configuration is low so as to save cost.
Drawings
Fig. 1 is a block diagram of a personal cloud disk system based on NAS according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific embodiments. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides a personal cloud disk system based on an NAS, including a client, a server and a personal cloud disk, where the client and the server both establish communication with the personal cloud disk;
the personal cloud disk is used for storing files and is constructed by an NAS;
the client is used for managing the files on line;
the server side is used for managing the files and is based on Socket communication.
It should be noted that a Network Attached Storage (NAS) is a dedicated data Storage server, and is a device having a data Storage function and connected to a Network. The NAS takes data as a center, completely separates the storage device from the server, and centrally manages the data, thereby releasing bandwidth, improving performance, and reducing total cost of ownership.
The server side may be installed on the NAS, or may be installed on a computer or another server separately, and the client side may be installed on a computer or another server, and the server side and the client side communicate based on the Socket.
It should be noted that, the main service logic of the server is as follows:
(1) the basic logic of the project is constructed, and the main file structure is as the following table.
Figure BDA0002839176040000021
Figure BDA0002839176040000031
(2) File management core
Java is a file management core, file management is also a service core of the cloud disk, and a file management method is directly called by proxy java through facentry java.
The global static variable root of the entry type net, imyeyu, netdisk, server, main represents a cloud disk root directory, and most file operations cannot cross the directory except for sharing files to a specified folder.
The public external link folder is configured for a server side, a sharing action can copy files to the public external link folder in a client side, and the main implementation requirement is that the files are copied to an FTP/HTTP server, so that the external can quickly access the object.
The implementation of the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, the personal cloud disk is constructed through the NAS and is respectively connected with the client side and the server side, the personal cloud disk is used for storing files, and the client side and the server side are used for managing the files, so that the safety of a cloud disk system is improved, and the files are prevented from being leaked or lost; the transmission speed is improved through the server side based on Socket communication, and the requirement on hardware configuration is low so as to save cost.
Optionally, the server side adopts Java core layer operation. By utilizing the cross-platform property of Java, a server side can run in a system for installing a JVM virtual environment, and one-time development and repeated utilization are realized.
Optionally, the server side includes at least one of the following services: file list acquisition, file creation, file list movement, file list copying, file list deletion, compression, decompression, request monitoring and AOP.
Specifically, the file list acquisition is one of the most frequent and basic operations of cloud disk interaction; in the file list obtaining process, firstly, judging whether the file list is a public external link folder, and if so, directly going to the directory file; the file type determination does not depend on the file name, when the file list is obtained, the object can be accurately identified to be a folder or a file by using an isFile method, a prefix mark is added to the file name, such as a folder photo or a file png.
Specifically, the file new includes a new folder or document, new folder & newText: the parameters are the directory where the created file is located, the logic of the newFolder and the newText is very similar, the difference is only mkdir (created folder) or createNewFile, and both need to check whether the object needing to be newly created exists, if so, the latest serial number is added to the name.
Specifically, when the file list moves, moveFiles: the parameters are a moving source file list and a target path. The renameTo method is also used for operation, and when the object and the parameter object are the same directory, the renameTo method has the effect of renaming; when the object and the parameter object are not in the same directory, the effect is to move the file. The mobile file may be a folder and therefore needs to be traversed.
Specifically, when the file list is copied, copy: the parameters are a source file list and a target path. Copying the file requires an additional determination of the target path because the act of sharing the file is also copying the file, and copying the file does not move the entire directory, including both subfolders and files, as renameTo does.
Specifically, when compressed, zip: the static tool class of net, imyeyu, netdisk, server, util, zip utils is mainly used for the class of java, util, zip packets. The parameters are compression list, target path and compression package name, and correspond to parameters of a zip method in ZipUtils. When the client selects the compressed File, the server calls a zip method for compression after converting the transmitted list into a File object list, because much time may be consumed and the operation is allowed to be skipped at the client after the operation is executed.
Specifically, upon decompression, unZip: the static tool class of net, imyeyu, netdisk, server, util, zip utils is mainly used for the class of java, util, zip packets. The parameters are the compressed packet name and the decompressed target path and correspond to the parameters of the unzip method in ZipUtils. The operation is executed after the client selects the decompression target path, and the skipping is allowed.
Specifically, the content requested to be monitored comprises a public request, a server state, an uploading file and a downloading file.
It should be noted that AOP (Aspect organized Programming) is a technology for implementing unified maintenance of program functions through a pre-compiling manner and a dynamic proxy during running. The AOP is a continuation of the OOP, is a hot spot in software development, is also an important content in a Spring framework, and is a derivative paradigm of functional programming. By utilizing the AOP, all parts of the business logic can be isolated, so that the coupling degree between all parts of the business logic is reduced, the reusability of a program is improved, and the development efficiency is improved. In the embodiment of the present invention, the processing object of the AOP is a log.
It should be noted that the server also includes functions of photo compression and file proofreading.
Optionally, the file list is obtained through a public out-link folder.
Optionally, the file list acquisition is respectively acquired according to file objects. ArrayList < FileBean > does not go ahead and back because the added object is a folder, and in order to make the list not cluttered, the folder and the file are traversed separately.
Optionally, the client interface is constructed using JavaFX. The client side adopts JavaFX to construct a user interface to realize the on-line management of files of the personal cloud disk, and can run in a system for installing a JVM virtual environment by utilizing the cross-platform property of Java to realize one-time development and multiple utilization.
Optionally, the client comprises at least one of the following services: compression, decompression, text editing, picture preview, photo management, video playing, file proofreading, server state acquisition, uploading monitoring, downloading monitoring and AOP.
It should be noted that the client can be divided into a front-end window and a background thread. The front window body comprises a main window body, a setting window body, a text preview window body, a photo management window body, a photo preview window body, a file attribute window body, a transmission state window body, a video playing window body and the like, wherein the main window body comprises a menu, a navigation window body, a path operation window body, a file list, a server state window body and the like; the background thread comprises the steps of obtaining the state of the server, uploading monitoring, downloading monitoring and the like.
Optionally, the photo management is implemented by a photo manager, the photo manager including at least one of the following functions: time setting, filing setting, uploading, downloading, option setting, refreshing, moving and deleting.
Specifically, the time setting may set the year and/or month, etc., and the photo manager may obtain a list of the whole year or the whole month according to the year or month for uploading or downloading; the filing setting comprises automatic filing and manual filing, and files can be filed according to time; the option setting comprises full selection, reverse selection and the like. Refreshing, moving, and deleting are part of the operations on the photos, and may include other operations as well.
The layout of the photo manager can be divided into 3 parts: time list, photo display and operation list. The use of the AnchorPane nested ScrollPane is to remove the scrollbar blank location when there is no scrollbar, since the ScrollPane reserves the scrollbar location regardless of whether it can be scrolled or not.
Optionally, the text editing is implemented by a text editor, and the text editor includes at least one of the following functions: text editing, storage mode selection, text information display, storage prompt closing and multi-window display.
Specifically, the text editor is mainly completed by TextArea, is provided with a scroll bar, and can operate files, assist in editing and repairing text field styles by using a menu component at the top of Menubar. The left side also needs a TextArea because of the number of lines needed to display the text field, or the scroll bar is handled in the AnchorPane overflow hiding manner. There may be text contrast requirements so the window is allowed to be open.
The text editor is opened through the file list, text files in the cloud disk can be edited on line, and a storage mode can be operated in a menu, such as only storing the text files to the cloud disk, caching the text files to the local, simultaneously storing the text files to the local and the cloud disk, storing the text files to other local paths, reloading the cloud disk files and the like. The line number, the length or other prompts of the text can be displayed in real time under the editor; the left side of the editor can display the current line number; the editing operation tool can be displayed above the editor. And directly closing after previewing without prompting, and if the data is modified but not saved, exiting, and then, popping a window to warn whether the modified file is saved or not.
Optionally, the picture preview includes at least one of the following functions: and carrying out self-adaptive adjustment on the picture size and displaying the loading progress.
Specifically, in order to make the picture displayed in the simplest and most amazing manner, the window only displays ImageView, without any other elements, including the border, being cancelled. All events are for ImageView, such as click close, left button drag, scroll wheel resize display. However, the page is not simple and even more complex than a text file editor, because a picture size adaptive screen is considered, the data size of the picture is on average much larger than that of the text, if the bandwidth of the server is insufficient, it is unfriendly experience to display no window or a blank window, so the window also has a progress bar, and the progress bar is replaced into the picture after the picture is loaded.
Progress bar fillets are also removed using ancorpane and may be kept at a distance from borderpine at all times for shadow generation, avoiding picture content of ImageView from overlapping other program backgrounds. DropShadow renders shadows according to picture transparency, rather than window size.
The client also comprises a transmission list, wherein the transmission list mainly comprises 3 ListView list components which are uploaded, downloaded and completed, the emptying list is displayed when the completed list is switched, and NavButton is used as a switching button. The transmission list may refer to the following layout: the title bar is displayed above the window, the 3 list components which are uploaded, downloaded and completed are displayed on the left side, and the specific content corresponding to the list components is displayed in the middle position, such as 50% downloaded in the song 'biography'.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A personal cloud disk system based on NAS is characterized by comprising a client, a server and a personal cloud disk, wherein the client and the server are communicated with the personal cloud disk;
the personal cloud disk is used for storing files and is constructed by an NAS;
the client is used for managing the files on line;
the server side is used for managing the files and is based on Socket communication.
2. The NAS-based personal cloud disk system of claim 1, wherein said client interface is constructed using JavaFX.
3. The NAS-based personal cloud disk system of claim 1, wherein said client comprises at least one of: compression, decompression, text editing, picture preview, photo management, video playing, file proofreading, server state acquisition, uploading monitoring, downloading monitoring and AOP.
4. The NAS-based personal cloud disk system of claim 3, wherein said photo management is implemented by a photo manager, said photo manager comprising at least one of: time setting, filing setting, uploading, downloading, option setting, refreshing, moving and deleting.
5. The NAS-based personal cloud disk system of claim 3, wherein said text editing is implemented by a text editor, said text editor comprising at least one of: text editing, storage mode selection, text information display, storage prompt closing and multi-window display.
6. The NAS-based personal cloud disk system of claim 3, wherein said picture preview comprises at least one of: and carrying out self-adaptive adjustment on the picture size and displaying the loading progress.
7. The NAS-based personal cloud disk system of claim 1, wherein the server side operates with a Java core layer.
8. The NAS-based personal cloud disk system of claim 1, wherein said server side comprises at least one of: file list acquisition, file creation, file list movement, file list copying, file list deletion, compression, decompression, request monitoring and AOP.
9. The NAS-based personal cloud disk system of claim 8, wherein said file list is obtained via a public out-link folder.
10. The NAS-based personal cloud disk system of claim 8, wherein said file list retrieval is separately retrieved from file objects.
CN202011485270.8A 2020-12-16 2020-12-16 Personal cloud disk system based on NAS Active CN112637303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011485270.8A CN112637303B (en) 2020-12-16 2020-12-16 Personal cloud disk system based on NAS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011485270.8A CN112637303B (en) 2020-12-16 2020-12-16 Personal cloud disk system based on NAS

Publications (2)

Publication Number Publication Date
CN112637303A true CN112637303A (en) 2021-04-09
CN112637303B CN112637303B (en) 2023-04-18

Family

ID=75313774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011485270.8A Active CN112637303B (en) 2020-12-16 2020-12-16 Personal cloud disk system based on NAS

Country Status (1)

Country Link
CN (1) CN112637303B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270457A (en) * 2014-11-10 2015-01-07 东南大学 Family cloud center file sharing system based on mobile cross-platform architecture
US20180191732A1 (en) * 2017-01-02 2018-07-05 Monument Labs. Inc. Personal cloud device for digital media
CN108347575A (en) * 2018-02-25 2018-07-31 深圳市星航洋科技有限公司 A kind of a key video transmission method and system based on moving camera
CN111666584A (en) * 2020-04-16 2020-09-15 福建省万物智联科技有限公司 Private cloud disk deployment method and system
CN111782387A (en) * 2020-03-23 2020-10-16 韶鼎人工智能科技有限公司 Private cloud multi-terminal intelligent photo album management system and method integrating edge computing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270457A (en) * 2014-11-10 2015-01-07 东南大学 Family cloud center file sharing system based on mobile cross-platform architecture
US20180191732A1 (en) * 2017-01-02 2018-07-05 Monument Labs. Inc. Personal cloud device for digital media
CN108347575A (en) * 2018-02-25 2018-07-31 深圳市星航洋科技有限公司 A kind of a key video transmission method and system based on moving camera
CN111782387A (en) * 2020-03-23 2020-10-16 韶鼎人工智能科技有限公司 Private cloud multi-terminal intelligent photo album management system and method integrating edge computing
CN111666584A (en) * 2020-04-16 2020-09-15 福建省万物智联科技有限公司 Private cloud disk deployment method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴一鹏等: "基于家庭云存储的设计与实现", 《微型机与应用》 *
梁栋等: "基于NAS的私有云存储系统研究与设计", 《电子测试》 *

Also Published As

Publication number Publication date
CN112637303B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
JP6488265B2 (en) User interface for accessing documents from a computing device
US7665032B2 (en) Sidebar engine, object model and schema
JP4409852B2 (en) Extensible object previewer in shell browser
US7568165B2 (en) Sidebar engine, object model and schema
US9332063B2 (en) Versatile application configuration for deployable computing environments
US7644391B2 (en) Sidebar engine, object model and schema
US8577204B2 (en) System and methods for remote manipulation of video over a network
US8819571B2 (en) Manipulating preview panels in a user interface
US10110728B2 (en) Theme change system, portable communication device, server apparatus, and computer program
US10430047B2 (en) Managing content on an electronic device
US20070022117A1 (en) Accessing file system snapshots directly within a file system directory
US10929365B2 (en) Automatic generation of animated previews for presenting document differences in enterprise messaging
US20070198946A1 (en) Auxiliary display sidebar integration
US20080298697A1 (en) User Interface for Presenting a List of Thumbnail Items Associated With Media Items
US20030236836A1 (en) System and method for the design and sharing of rich media productions via a computer network
JP2007095090A (en) Method and device for menu item display
JP2005174283A (en) Programming interface for computer platform
KR20060061734A (en) File system shell
US8706778B2 (en) Methods and systems for an action-based interface for files and other assets
CN104704468A (en) Cross system installation of WEB applications
JP4338210B2 (en) Image management apparatus, image management method, and program
EP2275928A1 (en) Method for generating widget icon, client device, and widget engine
CN112637303B (en) Personal cloud disk system based on NAS
CN116028035A (en) Code processing method, front-end page development system and electronic equipment
JP4286310B2 (en) Client, document management system, and storage medium

Legal Events

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