CN107256240A - The response method and its system of a kind of distributed file server - Google Patents

The response method and its system of a kind of distributed file server Download PDF

Info

Publication number
CN107256240A
CN107256240A CN201710377785.8A CN201710377785A CN107256240A CN 107256240 A CN107256240 A CN 107256240A CN 201710377785 A CN201710377785 A CN 201710377785A CN 107256240 A CN107256240 A CN 107256240A
Authority
CN
China
Prior art keywords
file server
file
strange land
requests
service
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
CN201710377785.8A
Other languages
Chinese (zh)
Other versions
CN107256240B (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.)
Shenzhen Is Used In Conjunction Science And Technology Ltd
Original Assignee
Shenzhen Is Used In Conjunction Science And Technology 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 Shenzhen Is Used In Conjunction Science And Technology Ltd filed Critical Shenzhen Is Used In Conjunction Science And Technology Ltd
Priority to CN201710377785.8A priority Critical patent/CN107256240B/en
Publication of CN107256240A publication Critical patent/CN107256240A/en
Application granted granted Critical
Publication of CN107256240B publication Critical patent/CN107256240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/11File system administration, e.g. details of archiving or snapshots
    • 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

Abstract

The present invention is applied to web services technologies field there is provided a kind of response method of distributed file server and its system, including:Receive the file server requests that user terminal is sent;Whether according to the service type asked in file server requests, it is file-management services to judge service type;If so, then judging whether the file server asked in file server requests is local file server;If it is not, then file server requests are sent to strange land file server by communication interface.The embodiment of the present invention is by local file server according to the file server asked in this document service request, it is defined as local operation or strange land operation, then strange land file server is transferred to respond by communication interface for strange land operation, solve existing distributed file server technology, only respond local file service request, and for strange land file server requests, the problem of will be unable to perform.

Description

The response method and its system of a kind of distributed file server
Technical field
The invention belongs to web services technologies field, more particularly to a kind of distributed file server response method and its be System.
Background technology
With the development of enterprises and institutions, the quantity of its enterprise document is also more and more huger.For the ease of being carried out to file Manage and use, enterprises and institutions usually can be managed collectively the file in the range of local jurisdiction by File Serving System, and The file server requests of user are responded by this document service system.
But existing distributed file server technology, internal user is mainly directly accesses storage inside by LAN Equipment, to perform corresponding document manipulation.And for some large-scale enterprises and institutions' units, its enterprise object is in multiple areas Situation, when user needs to access the enterprise document in other regions, because data are simultaneously between the internal storage device between each area Not intercommunication, user can not be attached with the storage device in other regions, when initiating strange land document manipulation, will produce visit Ask exception.It can be seen that, existing distributed file server technology only responds local file service request, and for strange land file Service request, will be unable to perform.
The content of the invention
In view of this, the embodiments of the invention provide a kind of response method of distributed file server and its system, to solve Certainly existing distributed file server technology, only responds local file service request, and for strange land file server requests, will The problem of can not performing.
The first aspect of the embodiment of the present invention provides a kind of response method of distributed file server, applied to distribution File Serving System, the distributed File System includes:Local file server and at least one strange land file clothes Business device;
The response method of the distributed file server includes:
Receive the file server requests that user terminal is sent;
Whether according to the service type asked in the file server requests, it is file management to judge the service type Service;
If the service type is the file-management services, the file asked in the file server requests is judged Whether server is the local file server;
If the non-local file server of the file server asked in the file server requests, pass through communication Interface sends the file server requests to strange land file server, so that the strange land file server responds the file Service request;Wherein, the strange land server is by the file server asked in the file server requests.
The second aspect of the embodiment of the present invention provides a kind of distributed File System, the distributed file server System includes:Local file server and at least one strange land file server;
The local file server includes:
Service request reception unit, the file server requests for receiving user terminal transmission;
Service type identifying unit, for according to the service type asked in the file server requests, judging described Whether service type is file-management services;
Local service identifying unit, if being the file-management services for the service type, judges the file Whether the file server asked in service request is the local file server;
Strange land service execution unit, if the file server for being asked in the file server requests is non-described local File server, then sent the file server requests to strange land file server by communication interface, so that the strange land File server responds the file server requests;Wherein, the strange land server in the file server requests by asking File server.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, described in the computing device during computer program Realize following steps:
Whether according to the service type asked in the file server requests, it is file management to judge the service type Service;
If the service type is the file-management services, the file asked in the file server requests is judged Whether server is the local file server;
If the non-local file server of the file server asked in the file server requests, pass through communication Interface sends the file server requests to strange land file server, so that the strange land file server responds the file Service request;Wherein, the strange land server is by the file server asked in the file server requests.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
Whether according to the service type asked in the file server requests, it is file management to judge the service type Service;
If the service type is the file-management services, the file asked in the file server requests is judged Whether server is the local file server;
If the non-local file server of the file server asked in the file server requests, pass through communication Interface sends the file server requests to strange land file server, so that the strange land file server responds the file Service request;Wherein, the strange land server is by the file server asked in the file server requests.
Implement the response method and its system of a kind of distributed file server provided in an embodiment of the present invention and have following to have Beneficial effect:
Distributed File System of the embodiment of the present invention is by setting up local file server and strange land file service Device, is responded to Client-initiated service request, and user is no longer directly to locally depositing in distributed File System Storage equipment is operated, but file server requests are sent into local file server, and local file server is according to this article The file server asked in part service request, is defined as local operation or strange land operation, then passes through for strange land operation Communication interface transfers to strange land file server to be responded, it is achieved thereby that the purpose for being operated, being managed to strange land file.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of block architecture diagram for distributed File System that one embodiment of the invention is provided;
Fig. 2 is a kind of implementation process figure of the response method for distributed file server that one embodiment of the invention is provided;
Fig. 3 is a kind of implementing for the response method S203 for distributed file server that another embodiment of the present invention is provided Flow chart;
Fig. 4 is that a kind of response method for the distributed file server that another embodiment of the present invention is provided implements flow Figure;
Fig. 5 is a kind of implementing for the response method S204 for distributed file server that another embodiment of the present invention is provided Flow chart;
Fig. 6 is that a kind of response method for the distributed file server that another embodiment of the present invention is provided implements flow Figure;
Fig. 7 is a kind of structured flowchart for local file server that one embodiment of the invention is provided;
Fig. 8 is a kind of schematic diagram for terminal device that another embodiment of the present invention is provided.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Distributed File System of the embodiment of the present invention is by setting up local file server and strange land file service Device, is responded to Client-initiated service request, and user is no longer directly to locally depositing in distributed File System Storage equipment is operated, but file server requests are sent into local file server, and local file server is according to this article The file server asked in part service request, is defined as local operation or strange land operation, then passes through for strange land operation Communication interface transfers to strange land file server to be responded, and solves existing distributed file server technology, only responds this Ground file server requests, and for strange land file server requests, the problem of will be unable to perform.
Fig. 1 shows a kind of block architecture diagram of distributed File System provided in an embodiment of the present invention.Referring to Fig. 1 institutes Show, the distributed File System includes file server 1, file server 2, storage device 1 and storage device 2;Its In, the user file that the user in region 1 is sent in file server requests, region 1 to file server 1 will be stored in storage and set In standby 1;Correspondingly, the user in region 2 sends the user file in file server requests, region 2 to file server 2 and will deposited It is stored in storage device 2, file server 1 is communicated by its communication interface 10 with the communication interface 20 of file server 2 Connection.It should be noted that for the user in region 1, file server 1 is local file server, file clothes Business device 2 as strange land file server, i.e. local file server and strange land file server are relative to initiation request For user, for different regions user, its local file server is also by difference.
Illustratively, in the present embodiment, illustrated so that the user in region 1 carries out file server requests as an example.Area User in domain 1 sends file server requests by its terminal device to file server 1, and file server 1 is then according to this article The file server that part service request is asked, it is determined whether be local file service request, if so, then passing through file server 1 is responded;If the non-local file server requests of this document service request, by communication interface 10 by this document service request File server 2 is sent to, is responded by file server 2.
In embodiments of the present invention, the executive agent of flow is local file server.The local file server can be with For an independent server, it is deployed in a certain region in distributed File System, responds the file that the region is used for Service request;Can also be the service response module in storage device, please to storage device initiation file service for responding The user asked.The Fig. 2 shows the implementation process figure of the response method of distributed file server provided in an embodiment of the present invention, in detail State as follows:
In S201, the file server requests that user terminal is sent are received.
In the present embodiment, when user needs to operate the file in distributed File System, it will to Local file server sends file server requests.Wherein, this document service request includes but is not limited to following a kind of or at least Two kinds of combinations:File download service request, file upload services request, Document Editing service request, file delete service request Deng.
Alternatively, also include before S201:The log-on message that user sends is received, to judge whether the user is conjunction The log-on message of method user, wherein user include user name and user cipher.Due to the response system of the distributed file server System is generally used for managing the internal file of enterprise or mechanism, therefore its security and confidentiality requirement are higher, and user is being carried out , it is necessary to carry out register before file server requests, so that it is determined that whether the user is legal.
Alternatively, in the present embodiment, file server requests are sent to local file by internal lan and taken by user Business device.The response system of distributed file server will pass through internal office to improve the security of storage file between its equipment Domain net is communicated.In this case, if user needs to send file server requests to its home server in public network, The file server requests that public domain is sent can be received by the communication interface of local file server, and perform S202 correlation Operation.
In S202, according to the service type asked in the file server requests, whether the service type is judged For file-management services.
In the present embodiment, local file server will receive different classes of file server requests, illustratively, such as right File data carries out the service request of structuring operation and the service request of unstructured operation is carried out to file data;Its In, the service request of structuring operation includes but is not limited to:Newly-increased database request, partitions of database request, memory node are drawn The service request for dividing request etc. to operate database overall structure;And the service request of unstructured operation, i.e. this implementation Service type is the request of file-management services in example, by including as described in S201, such as file download request, file are uploaded The service request that request etc. is managed in itself to file.
In the present embodiment, structure is carried out to the storage device in the region due to only having the user of one's respective area just to possess authority Change operation, if therefore local file server judges what the service type of Client-initiated file server requests operated as structuring Service request, then responded by home server;If conversely, the service type of this document service request takes for file management Business, then its destination address might not point to local memory device, it would be desirable to further be judged.
In the present embodiment, if the service type for the file server requests that user sends is file-management services, perform S203 associative operation;It is necessarily this if the service type for the file server requests that user sends is not file-management services Ground file server requests, therefore the request will be responded by local file server.
In S203, if the service type is the file-management services, institute in the file server requests is judged Whether the file server of request is the local file server.
In the present embodiment, if its service type of a certain file server requests is file-management services, this document service By comprising the file server asked in request, carried out according to the file server of the request and local file server Match somebody with somebody, whether determine the service request is local file service request.Therefore, if local file server is judging a certain file clothes Business request is file-management services request, then extracts the file server specified in the service request, to determine that this document takes Business request is that local file is operated or strange land file is operated.
In the present embodiment, if the request object of file server requests is local file server, local file service Device is directly in response to this document service request;If the request object of file server requests not local file server, it is determined that should The strange land file server that file server requests are specified, and perform S204 associative operation.
Alternatively, in the present embodiment, the response system of distributed file server will be each file server distribution one Individual file area mark, i.e., local file server and strange land file server have its one-to-one file area mark Know, the coverage for characterizing each file server.Illustratively, this document area identification can be distributed document clothes The mark defined inside the response system of business, is such as named according to the geographical position of each file server, such as local file Server is used for the enterprise document for managing South China, then this document area identification can be:South China subregion;Now, a certain strange land File server is used for the enterprise document for managing East China, then this document area identification is accordingly:East China subregion.
Alternatively, in the present embodiment, memory node information, local file server will be included in this document service request It will be matched according to the memory node information and the nodal information being connected with local file server, it is true according to matching result Determine whether the file server that file server requests are asked is local file server.Correspondingly, in local file server The corresponding relation list of each file server and memory node will be included, home server can be according to right in file server requests The memory node information answered, inquires about the corresponding relation list, determines corresponding file server.
In S204, if the non-local file server of the file server asked in the file server requests, Then the file server requests are sent to strange land file server by communication interface, so that the strange land file server rings Answer the file server requests;Wherein, the strange land server is by the file server asked in the file server requests.
In the present embodiment, if the file server asked in file server requests not local file server, Perform the operation of strange land file server requests.The strange land file server requests, which are operated, is specially:Local file server will pass through it File server requests are sent to the corresponding file server of file server requests, the wherein communication interface is this by communication interface The communication interface of ground file server and public network.Due to distributed File System in order to improve the peace of file in system Quan Xing, will in system LAN set fire wall, therefore distributed File System in equipment will be unable to directly with Public network is communicated.And in order to realize each region in strange land file access and operation, distributed File System File server will be communicated by communication interface with the file server in other regions, it is achieved thereby that to other regions File is conducted interviews and operated.
In the present embodiment, if the distributed File System is only comprising two file servers, home server File server requests are forwarded directly to another file server;If the distributed File System is comprising more than two File server, then local file server corresponding strange land server will be determined according to this document service request, then again will This document service request is forwarded to the strange land server.
It should be noted that in the present embodiment, each file server in distributed File System passes through communication Interface is interconnected.Specifically, each file server is interconnected by communication interface with public network, is needing data interaction When, then corresponding connecting link is generated according to the corresponding network address.Wherein, distributed File System will be each file Server sets corresponding domain names and the network address, in order to be generated by the domain names and the network address to logical Letter link is simultaneously communicated.
Alternatively, in the present embodiment, in distributed File System the storage device of regional can be deployed in every From region (Demilitarized Zone, DMZ), the DMZ is specially the network area set between LAN and public network, That is meshwork buffering region.In this case, asked in the file server requests that home server can be sent according to user terminal File server, determine corresponding DMZ regions, thus home server directly in the DMZ regions storage device carry out Operation, without carrying out service response by strange land file server again.Illustratively, if user needs the storage to strange land region Transmitting file in equipment, then local file server directly will be deposited after this document service request is received with the strange land region DMZ where storage equipment is communicated, and user file to be uploaded is deposited in the storage device, and can not take this Business request is transmitted to strange land server, and the upload operation is performed by strange land server.
Illustratively, the distributed File System is file connection server system (LinkAPP File Service System, LFS system).User logs in LFS systems in its terminal device, and local to its by the LFS systems Server sends file server requests, and home server will perform S201 to S204 phase after this document service request is received Operation is closed, so as to respond the Client-initiated file server requests.It can be seen that, in the present embodiment, user passes through in software layer Log in LFS systems, the file in regional can will be operated, i.e., between regional for the angle of software layer, It is intercommunication.
Above as can be seen that a kind of response method of distributed file server provided in an embodiment of the present invention is by setting up this Ground file server and strange land file server, are responded to Client-initiated service request, and user is no longer directly right Local memory device in distributed File System is operated, but file server requests are sent into local file clothes Business device, local file server is defined as local operation still according to the file server asked in this document service request Strange land is operated, and then transfers to strange land file server to respond by communication interface for strange land operation, it is achieved thereby that to different The purpose that ground file is operated, managed.On the other hand, the storage device of bottom is not communicated directly with network, but Data access is carried out by corresponding local file server and strange land unit, distributed File System is improved Security.
Fig. 3 shows a kind of response method S203 for distributed file server that one embodiment of the invention is provided specific reality Existing flow chart.It is shown in Figure 3, a kind of distributed file server provided relative to the embodiment shown in Fig. 2, the present embodiment Response method S203 includes following multiple steps, and details are as follows:
Further, as another embodiment of the present invention, the file asked in the judgement file server requests Whether server is the local file server, including:
In S3011, if the file server requests are personal document's service request, the file server requests are obtained Comprising user mark.
In the present embodiment, local file server determines it by according to different service requests by corresponding mode Memory node, and determine whether the file server that the service request is asked is home server according to memory node.
In the present embodiment, if the service type of file server requests is file-management services, this document service request File destination be classified into two classifications, respectively personal document and public documents.Wherein, personal document is privately owned text Part, distributed File System can be managed for the privately owned file to each user and provide corresponding storage sky for it Between;Public documents are the data bank of the enterprise or unit.
In the present embodiment, local file server if it is determined that file server requests be personal document's service request, then hold Row S3011 associative operation;If it is determined that file server requests are public documents service request, then S3021 related behaviour is performed Make.
In the present embodiment, in order to determine the corresponding memory node of this document service request, file service can be obtained first The user's mark included in request, and perform S3012 associative operation.
In S3012, corresponding user's group is identified according to the user, depositing for the affiliated file of user's group is determined Store up node.
In the present embodiment, there is each user's mark other right with user's group record in the memory of local file server It should be related to, local file server inquires about the corresponding relation according to user's mark, determine user's group belonging to user mark.
In the present embodiment, in the distributed File System after user's registration, it will be determined according to its log-on message Its user's group, and according to user's group of the user, determine the memory node of its personal document.Wherein, distributed document takes Business system will determine its corresponding file server and memory node for each user's group.
Illustratively, distributed File System shown in Figure 1, distributed File System divides user For sales department and research and development department, and the corresponding file server of sales department is file server 1, and the user's of sales department is humane Part will be stored in storage device 1;The corresponding file server of research and development department is file server 2, the humanity of the user of research and development department Part will be stored in storage device 2.Therefore, local file server is after the user for obtaining file server requests identifies, by root Its corresponding group is determined according to user mark, so that it is determined that its corresponding memory node, then determines this document service request The server asked whether local file server.
In S3021, if the file server requests are public documents service request, it is determined that the file server requests Corresponding library mark.
In the present embodiment, then will bag in this document service request if file server requests public documents service request Containing library mark.Therefore, local file server will perform S3022 associative operation after this document storehouse mark is extracted.
In S3022, identified according to the library, determine that the library identifies corresponding memory node.
In the present embodiment, local file server uses the corresponding relation of be stored with library mark and storage region Family determines the storage region of this document service request by according to the corresponding relation and the library acquired mark.Then, Local file server will determine its corresponding memory node according to the storage region, so as to obtain corresponding to file server requests Memory node.
Alternatively, in the present embodiment, this document storehouse mark is corresponded with user's group, and corresponding library is identified Its memory node is identical with user's group.Illustratively, such as user's group is divided into sales department and research and development department, and library will also divide For sales department's library and research and development department's library, then the personal document of sales department and sales department's library can deposit in phase In same memory node, and the personal document and research and development department's library for research and development department can then deposit in another memory node In, consequently facilitating user is managed to the file of different departments.
In the present embodiment, local file server will determine this after S3012 or S3022 is performed according to memory node The file server of memory node association, and judge this document server whether as local file server.
In embodiments of the present invention, because distributed File System will include substantial amounts of user, each user also will Substantial amounts of file is produced, is that the file of each user is classified therefore, is divided into personal document and public documents, and will User divides into different user's groups, public documents is divided into different libraries, so as to easily facilitate distributed document Service system is managed and quickly determined storage location to file.
Fig. 4 shows a kind of implementing for the response method for distributed file server that another embodiment of the present invention is provided Flow chart.A kind of sound of the distributed file server shown in Fig. 4, provided relative to the embodiment shown in Fig. 3, the present embodiment is provided Induction method also comprises the steps of that details are as follows:
Further, as another embodiment of the present invention, before the file server requests that the reception user sends also Including:
In S401, the corresponding library mark of the home server is set, and sets up library and is saved with the storage The corresponding relation of point.
In the present embodiment, local file server is when needing adjustment library or user's group or distributed document takes When business system is built, S401 and S402 associative operation will be performed, so as to realize to distributed File System The extension and adjustment of framework.
In the present embodiment, user can be created or be changed library by local file server and identify, so that it is determined that should Library, which will identify corresponding library, to carry out service response by local file server.Set up in local file server After the mark of this document storehouse, it will be the corresponding memory space of this document storehouse mark distribution, that is, set up pair of library and memory node It should be related to.
Alternatively, in the present embodiment, if local file server deletes existing library mark, for this document storehouse All Files under mark sets new library mark.Illustratively, if user needs this mark of deletion research and development department's library Know, but and non-delete this document storehouse in the file that includes, now, then need to distribute one for the corresponding All Files in this document storehouse New library mark, such as sales department's library, so as to ensure that each file is respectively provided with corresponding library mark.
In S402, the corresponding user's group of the home server is set, and sets up user's group and is saved with the storage The corresponding relation of point.
In the present embodiment, because the method for the other setting of S402 user's group is similar to S401, therefore related illustrate can Discuss, will not be repeated here referring to S401 correlation.
In embodiments of the present invention, by being configured to library mark and group, and set up and memory node Corresponding relation, so that local file server can be according to the corresponding relation, it is determined that each file identification and user's group correspondence Memory node, then determine its corresponding file server, improve the corresponding file server of locating file service request Speed, then improve the efficiency of service response.
Fig. 5 shows that a kind of response method S204's for distributed file server that another embodiment of the present invention is provided is specific Implementation process figure.It is shown in Figure 5, embodiment corresponding relative to Fig. 2, a kind of distributed file server that the present embodiment is provided Response method S204 comprise the following steps, details are as follows:
Further, it is described to be sent the file server requests by communication interface as another embodiment of the present invention To strange land file server, so that the strange land file server responds the file server requests, including:
In S5011, if the file server requests are asked for file upload services, the to be uploaded of the user is obtained File.
In the present embodiment, local file server according to different service types, will perform corresponding strange land file clothes Business response operation.If file server requests are asked for file upload services, S5011 associative operation is performed;If file service Ask to ask for download service, then perform S5012 associative operation.
In the present embodiment, local file server will obtain the file to be uploaded of user.If being wrapped in file server requests Containing file to be uploaded, then corresponding data in this document service request are extracted as the file to be uploaded of user;If file service Do not include file to be uploaded in request, then local file server will return to a file uploading instructions to user terminal, so that User submits corresponding file to be uploaded according to this document uploading instructions.
It should be noted that in the present embodiment, the file to be uploaded of user can be one, or at least two It is individual, do not limit herein.
In S5012, the file to be uploaded is sent to the strange land file server by the communication interface, with Make the strange land file server that the file to be uploaded is stored in the corresponding storage device of the strange land file server.
In the present embodiment, file to be uploaded is sent to file server requests by local file server by communication interface In the strange land file server specified, the wherein file to be uploaded will include corresponding memory node.Strange land file server exists Receive after the file to be uploaded, this document is stored in corresponding storage device, extremely by the memory node that will be included according to it This completes the upload operation of strange land file.
In S5021, if the file server requests are file download service request, by the communication interface to institute State strange land file server and send file download request.
In the present embodiment, this document service request is sent to strange land file by local file server by communication interface Server, wherein this document service request are by memory node and file identification comprising file destination.Strange land file server Corresponding file will be extracted according to memory node and file identification.
In S5022, the strange land file server is received by the communication interface and asked according to the file download The file data of return.
In the present embodiment, strange land file server is after file destination is obtained, the data link that basis has been set up, The file data of the file destination is returned to, local file server will be received by communication interface.After receiving, locally File server returns to user terminal by this document data are sent.
Alternatively, in the present embodiment, if local file server does not receive strange land file clothes within the default time The file data that business device is returned, this document service request will be sent again, so that strange land file server re-starts number of files According to transmission.
In embodiments of the present invention, distributed File System can respond Client-initiated strange land file download service and ask Ask and the request of strange land file upload services, extend the service response scope of distributed file server system, improve use Family Experience Degree.
Fig. 6 shows a kind of implementing for the response method for distributed file server that another embodiment of the present invention is provided Flow chart.It is shown in Figure 6, a kind of sound of the distributed file server provided relative to the embodiment shown in Fig. 2, the present embodiment Induction method comprises the following steps, and details are as follows:
Because S601 is identical with S201, S602 is identical with S202, and S603 is identical with S203, S6041 with S204 is identical, therefore S601 to S603 and S6041 implements process reference can be made to S201 to S204 related elaboration, It will not be repeated here.
Further, whether the file server for judging to be asked in the file server requests is the local text Also include after part server:
In S6042, if the file server asked in the file server requests is the local file server, The file server requests are then responded by the home server.
In the present embodiment, for local file server requests, directly it will be responded by local file server, And corresponding response results are fed back into user terminal, it is achieved thereby that respectively to strange land file service and local file service Different means are taken to be responded.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention constitutes any limit with its function and internal logic It is fixed.
Fig. 7 shows a kind of structured flowchart for local file server that one embodiment of the invention is provided, the local file Server application includes in distributed File System, the distributed File System:Local file server and extremely A few strange land file server, each unit that the local file server includes is used to perform in the corresponding embodiments of Fig. 2 Each step.Associated description in the specific embodiment referred to corresponding to Fig. 2 and Fig. 2.For convenience of description, it illustrate only and this The related part of embodiment.
Referring to Fig. 7, the local file server includes:
Service request reception unit 71, the file server requests for receiving user terminal transmission;
Service type identifying unit 72, for according to the service type asked in the file server requests, judging institute Whether state service type is file-management services;
Local service identifying unit 73, if being the file-management services for the service type, judges the text Whether the file server asked in part service request is the local file server;
Strange land service execution unit 74, if non-described of the file server for being asked in the file server requests Ground file server, then sent the file server requests to strange land file server by communication interface, so that described different Ground file server responds the file server requests;Wherein, the strange land server in the file server requests by asking The file server asked.
Alternatively, the local service identifying unit 73, including:
Personal document's determining unit, if being personal document's service request for the file server requests, obtains described User's mark that file server requests are included, and corresponding user's group is identified according to the user, determine user's group The memory node of affiliated file;
Public documents determining unit, if being public documents service request for the file server requests, it is determined that described The corresponding library mark of file server requests, and identified according to the library, determine that the library mark is corresponding and deposit Store up node.
Alternatively, the strange land service execution unit 74, including:
Upload service execution unit, if being asked for the file server requests for file upload services, obtains described The file to be uploaded of user, and the file to be uploaded is sent to the strange land file server by the communication interface, So that the file to be uploaded is stored in the corresponding storage device of the strange land file server by the strange land file server In;
Download service execution unit, if being asked for the file server requests for file download service, by described Communication interface sends file download request to the strange land file server, and receives the strange land text by the communication interface The file data that part server asks to return according to the file download.
Therefore, distributed File System provided in an embodiment of the present invention again may be by setting up local file service Device and strange land file server, are responded to Client-initiated service request, and user is no longer directly to distributed document Local memory device in service system is operated, but file server requests are sent into local file server, locally File server is defined as local operation or strange land operation according to the file server asked in this document service request, Then strange land file server is transferred to respond by communication interface for strange land operation, it is achieved thereby that being carried out to strange land file Operation, the purpose of management.On the other hand, the storage device of bottom is not communicated directly with network, but by corresponding Local file server carries out data access with strange land unit, improves the security of distributed File System.
Fig. 8 is a kind of schematic diagram for terminal device that another embodiment of the present invention is provided.As shown in figure 8, the embodiment Terminal device 8 includes:Processor 80, memory 81 and it is stored in the memory 81 and can be transported on the processor 80 Capable computer program 82, the responder of such as distributed file server.The processor 80 performs the computer program The step in the response method embodiment of each above-mentioned distributed file server is realized when 82, such as the S201 shown in Fig. 2 is extremely S204.Or, the processor 80 realizes the work(of each unit in above-mentioned each device embodiment when performing the computer program 82 Can, such as the function of unit 71 to 74 shown in Fig. 7.
Exemplary, the computer program 82 can be divided into one or more units, one or more of Unit is stored in the memory 81, and is performed by the processor 80, to complete the present invention.One or more of lists Member can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used to describe the computer journey Implementation procedure of the sequence 82 in the terminal device 8.For example, the computer program 82 can be divided into service request reception Unit, service type identifying unit, local service identifying unit, strange land service execution unit, each unit concrete function are as follows:
Service request reception unit, the file server requests for receiving user terminal transmission;
Service type identifying unit, for according to the service type asked in the file server requests, judging described Whether service type is file-management services;
Local service identifying unit, if being the file-management services for the service type, judges the file Whether the file server asked in service request is the local file server;
Strange land service execution unit, if the file server for being asked in the file server requests is non-described local File server, then sent the file server requests to strange land file server by communication interface, so that the strange land File server responds the file server requests;Wherein, the strange land server in the file server requests by asking File server.
The terminal device 8 can be that the calculating such as desktop PC, notebook, palm PC and cloud server is set It is standby.The terminal device may include, but be not limited only to, processor 80, memory 81.It will be understood by those skilled in the art that Fig. 8 Only the example of terminal device 8, does not constitute the restriction to terminal device 8, can include than illustrating more or less portions Part, either combines some parts or different parts, such as described terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 80 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 81 can be the internal storage unit of the terminal device 8, such as hard disk of terminal device 8 or interior Deposit.The memory 81 can also be the External memory equipment of the terminal device 8, such as is equipped with described terminal device 8 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodges Deposit card (Flash Card) etc..Further, the memory 81 can also both include the storage inside list of the terminal device 8 Member also includes External memory equipment.The memory 81 is used for needed for storing the computer program and the terminal device Other programs and data.The memory 81 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that, for convenience of description and succinctly, only with above-mentioned each work( Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each function list Member, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
, can be with embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function there can be other dividing mode, for example when actually realizing Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately A bit, shown or discussed coupling or direct-coupling or communication connection each other can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated module/unit realized using in the form of SFU software functional unit and as independent production marketing or In use, can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct the hardware of correlation to complete, described meter by computer program Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or some intermediate forms etc..Computer-readable Jie Matter can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, mobile hard disk, Magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium is included can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as, in some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of response method of distributed file server, applied to distributed File System, it is characterised in that described point Cloth File Serving System includes:Local file server and at least one strange land file server;
The response method of the distributed file server includes:
Receive the file server requests that user terminal is sent;
Whether according to the service type asked in the file server requests, it is file management clothes to judge the service type Business;
If the service type is the file-management services, the file service asked in the file server requests is judged Whether device is the local file server;
If the non-local file server of the file server asked in the file server requests, passes through communication interface The file server requests are sent to strange land file server, so that the strange land file server responds the file service Request;Wherein, the strange land server is by the file server asked in the file server requests.
2. response method according to claim 1, it is characterised in that asked in the judgement file server requests File server whether be the local file server, including:
If the file server requests are personal document's service request, user's mark that the file server requests are included is obtained Know, and corresponding user's group is identified according to the user, determine the memory node of the affiliated file of user's group;
If the file server requests are public documents service request, it is determined that the corresponding library mark of the file server requests Know, and identified according to the library, determine that the library identifies corresponding memory node.
3. response method according to claim 2, it is characterised in that the file server requests that the reception user sends it It is preceding also to include:
The corresponding library mark of the home server is set, and sets up the corresponding relation of library and the memory node;
The corresponding user's group of the home server is set, and sets up the corresponding relation of user's group and the memory node.
4. the response method according to claim any one of 1-3, it is characterised in that it is described by communication interface by the text Part service request is sent to strange land file server, so that the strange land file server responds the file server requests, bag Include:
If the file server requests are asked for file upload services, the file to be uploaded of the user is obtained, and will be described File to be uploaded is sent to the strange land file server by the communication interface, so that the strange land file server is by institute File to be uploaded is stated to be stored in the corresponding storage device of the strange land file server;
If the file server requests are file download service request, by the communication interface to the strange land file service Device sends file download request, and please according to the file download by the communication interface reception strange land file server Seek the file data of return.
5. the method for response according to claim 1, it is characterised in that asked in the judgement file server requests Whether the file server asked is also to include after the local file server:
If the file server asked in the file server requests is the local file server, by described local Server responds the file server requests.
6. a kind of distributed File System, it is characterised in that the distributed File System includes:Local file takes Business device and at least one strange land file server;
The local file server includes:
Service request reception unit, the file server requests for receiving user terminal transmission;
Service type identifying unit, for according to the service type asked in the file server requests, judging the service Whether type is file-management services;
Local service identifying unit, if being the file-management services for the service type, judges the file service Whether the file server asked in request is the local file server;
Strange land service execution unit, if the non-local file of file server for being asked in the file server requests Server, then sent the file server requests to strange land file server by communication interface, so that the strange land file Server responds the file server requests;Wherein, the strange land server is by the text asked in the file server requests Part server.
7. service system according to claim 6, it is characterised in that the local service identifying unit, including:
Personal document's determining unit, if being personal document's service request for the file server requests, obtains the file User's mark that service request is included, and corresponding user's group is identified according to the user, determine belonging to user's group The memory node of file;
Public documents determining unit, if being public documents service request for the file server requests, it is determined that the file The corresponding library mark of service request, and identified according to the library, determine the corresponding storage section of the library mark Point.
8. the method for servicing according to claim 6 or 7, it is characterised in that the strange land service execution unit, including:
Upload service execution unit, if being asked for the file server requests for file upload services, obtains the user File to be uploaded, and the file to be uploaded is sent to the strange land file server by the communication interface so that The file to be uploaded is stored in the corresponding storage device of the strange land file server by the strange land file server;
Download service execution unit, if being asked for the file server requests for file download service, passes through the communication Interface sends file download request to the strange land file server, and receives the strange land file clothes by the communication interface The file data that business device asks to return according to the file download.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program The step of any one methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In the step of realizing such as any one of claim 1 to 5 methods described when the computer program is executed by processor.
CN201710377785.8A 2017-05-25 2017-05-25 Response method and system for distributed file service Active CN107256240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710377785.8A CN107256240B (en) 2017-05-25 2017-05-25 Response method and system for distributed file service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710377785.8A CN107256240B (en) 2017-05-25 2017-05-25 Response method and system for distributed file service

Publications (2)

Publication Number Publication Date
CN107256240A true CN107256240A (en) 2017-10-17
CN107256240B CN107256240B (en) 2020-06-23

Family

ID=60027982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710377785.8A Active CN107256240B (en) 2017-05-25 2017-05-25 Response method and system for distributed file service

Country Status (1)

Country Link
CN (1) CN107256240B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970875B1 (en) * 1999-12-03 2005-11-29 Synchronicity Software, Inc. IP library management system
CN101035138A (en) * 2006-01-17 2007-09-12 国际商业机器公司 Self-optimizing network attached storage method and system for multiple geographic locations
CN101236570A (en) * 2007-01-03 2008-08-06 国际商业机器公司 Method and system for coordinating access to locally and remotely exported file systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970875B1 (en) * 1999-12-03 2005-11-29 Synchronicity Software, Inc. IP library management system
CN101035138A (en) * 2006-01-17 2007-09-12 国际商业机器公司 Self-optimizing network attached storage method and system for multiple geographic locations
CN101236570A (en) * 2007-01-03 2008-08-06 国际商业机器公司 Method and system for coordinating access to locally and remotely exported file systems

Also Published As

Publication number Publication date
CN107256240B (en) 2020-06-23

Similar Documents

Publication Publication Date Title
US10944688B2 (en) Distributed catalog service for data processing platform
US11361097B2 (en) Dynamically generating sharing boundaries
US8612406B1 (en) Sharing business data across networked applications
US8862542B2 (en) Replicating data objects within a storage network
US9313281B1 (en) Method and system for creating and dynamically deploying resource specific discovery agents for determining the state of a cloud computing environment
JP2021534512A (en) DAG-based transaction processing methods and systems in distributed ledgers
US20140114822A1 (en) Method and system for creating tax configuration templates
KR20210133289A (en) Data extraction from blockchain networks
CN107003906A (en) The type of cloud computing technology part is to type analysis
US20130275229A1 (en) Apparatus and method for universal personal data portability
US20160132808A1 (en) Portfolios and portfolio sharing in a catalog service platform
US20220058285A1 (en) Systems and methods for computer-implemented data trusts
CN102985919B (en) For the system and method for serialized data service
CN111861140A (en) Service processing method, device, storage medium and electronic device
CN108491164A (en) A kind of mixed cloud storage architecture system
CN103238151A (en) Techniques for network replication
CN103095848B (en) The cloud folder arrangement of To enterprises client and the method for information interaction
US20190171620A1 (en) System and method for data acquisition, absorption and curation via a service and syndication platform
US20210152433A1 (en) Systems and methods for determining entry points for mapping a network
CN109462508A (en) Node deployment method, device and storage medium
CN105531711A (en) Context-aware network on a data exchange layer
US11922235B2 (en) Coordinating asynchronous communication among microservices
US10673973B2 (en) Multiple vendor services oriented architecture (SOA) service requesting proxy
US11645284B2 (en) Distributed join filters in a dynamic distributed data processing service
CN111181915B (en) Configuration method and device of sharing permission, storage medium and electronic device

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