CN108183943A - A kind of resource acquiring method - Google Patents

A kind of resource acquiring method Download PDF

Info

Publication number
CN108183943A
CN108183943A CN201711393097.7A CN201711393097A CN108183943A CN 108183943 A CN108183943 A CN 108183943A CN 201711393097 A CN201711393097 A CN 201711393097A CN 108183943 A CN108183943 A CN 108183943A
Authority
CN
China
Prior art keywords
resource
exterior chain
storage server
client
chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711393097.7A
Other languages
Chinese (zh)
Inventor
郭国庆
翟建强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NINGBO SHENGWEI INFORMATION TECHNOLOGY Co Ltd
Original Assignee
NINGBO SHENGWEI INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NINGBO SHENGWEI INFORMATION TECHNOLOGY Co Ltd filed Critical NINGBO SHENGWEI INFORMATION TECHNOLOGY Co Ltd
Priority to CN201711393097.7A priority Critical patent/CN108183943A/en
Publication of CN108183943A publication Critical patent/CN108183943A/en
Pending legal-status Critical Current

Links

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/90Details of database functions independent of the retrieved data types
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of resource acquiring method, storage server receives the resource checksum request that the first client is sent, the resource checksum request carries the resource information of the first client resource to be uploaded, the mark of exterior chain and the corresponding storage location information of the exterior chain that second client creates, the storage server is according to the mark, for storing the attribute for the corresponding exterior chain of mark that the exterior chain is searched in the database of outer chain information, the resource information is verified according to the value of the attribute found, if it verifies successfully, then the storage server is according to the storage location information, store the resource obtained or resource location information.The method provided through the embodiment of the present invention so that exterior chain founder can obtain resource by the exterior chain of its establishment.

Description

A kind of resource acquiring method
Technical field
The present invention relates to information technology (Information Technology, abbreviations:IT) field more particularly to a kind of money Source acquisition methods.
Background technology
The exterior chain that existing resource owner creates can towards all users, after each user obtains the exterior chain, The resource being stored on network hard disc can be downloaded by the exterior chain, therefore, can be realized in a wide range of by network hard disc Resource sharing, but there are the following problems:Disclosure of the prior art visitor can (i.e. gather around by exterior chain founder by the resource The person of having) exterior chain that creates, it downloads and is stored in resource in network hard disc, but the exterior chain cannot be passed through and upload resource to network hard disc It preserves, cannot resource be obtained by the exterior chain of its establishment so as to cause exterior chain founder.
Invention content
The embodiment of the present invention is designed to provide a kind of resource acquiring method, so that exterior chain founder can pass through its wound The exterior chain built obtains resource.
On the one hand, the embodiment of the present invention provides a kind of resource acquiring method, including:Storage server receives the first client The resource checksum request of transmission, the resource checksum request carry the resource letter of the first client resource to be uploaded The mark of exterior chain and the corresponding storage location information of the exterior chain that breath, the second client create;The storage server root According to the mark of the exterior chain, for storing the corresponding exterior chain of mark that the exterior chain is searched in the database of outer chain information Attribute, the resource information is verified according to the value of the attribute found;If verifying successfully, the storage server According to the storage location information, the resource or resource location information of acquisition are stored.
On the other hand, the embodiment of the present invention provides a kind of resource acquiring method, including:The acquisition of first client to be uploaded Resource resource information;First client sends resource checksum request, the resource checksum request to storage server The resource information, the mark of exterior chain that the second client creates and the corresponding storage location information of the exterior chain are carried, with Toilet states mark of the storage server according to the exterior chain, and the exterior chain is being searched in the database of outer chain information for storing Identify the attribute of the corresponding exterior chain, the resource information verified according to the value of the attribute found, verification into After work(, according to the storage location information, the resource of acquisition is stored.
A kind of resource acquiring method provided in an embodiment of the present invention, storage server are successfully wanting the first client After the resource information of the resource of upload is verified, according to the corresponding storage location information of exterior chain that the second client creates, deposit The resource obtained or resource location information are stored up, since exterior chain and exterior chain founder are bound so that exterior chain founder can pass through it The exterior chain of establishment obtains resource.
Description of the drawings
Fig. 1 is a kind of configuration diagram of resource acquisition system provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of resource acquiring method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of another resource acquiring method provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of another resource acquiring method provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of another resource acquiring method provided in an embodiment of the present invention;
Fig. 6 is the configuration diagram of another resource acquisition system provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of another resource acquiring method provided in an embodiment of the present invention;
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes.As shown in Figure 1, for a kind of configuration diagram of resource acquisition system provided in an embodiment of the present invention.Wherein, when outer Chain creation person need create exterior chain when, the second client to storage server send exterior chain request to create, storage server according to The exterior chain request to create creates exterior chain, and the exterior chain of establishment is sent to second client;When open visitor obtains The exterior chain that the exterior chain founder creates, and need to the exterior chain founder upload resource when, storage server receives first The resource information verification request that client is sent, obtains the first client resource to be uploaded, and the resource of acquisition is stored In the corresponding storage location of the exterior chain.
Wherein, in each embodiment below the present invention, term " storage server " specifically represents network hard disc, by more A memory node composition;The first client resource to be uploaded can be stored in the storage for receiving resource checksum request In node, it can also be stored in other memory nodes of server end, the embodiment of the present invention is defined not to this;It receives Resource checksum request of the memory node for the exterior chain request to create that second client is sent with receiving the transmission of the first client is deposited It can be same memory node to store up node, may not be same memory node, the embodiment of the present invention is defined not to this.
Wherein, non-limiting as example, the memory node can include mainframe, medium-sized machine, minicomputer and micro- Type machine;
Wherein, non-limiting as example, first client can include PC, tablet computer, intelligent hand Machine terminal, net book and other equipment that can be networked.
Wherein, non-limiting as example, second client can include PC, tablet computer, intelligent hand Machine terminal, net book and other equipment that can be networked.
Wherein, the exterior chain specifically refers to uniform resource locator (Uniform Resource Locator, abbreviation: URL), the exterior chain is bound with the exterior chain founder;After open visitor obtains the exterior chain, resource can be uploaded to institute The corresponding storage location of exterior chain is stated, the resource of the corresponding storage location storage of the exterior chain can also be loaded in down.
Wherein, it should be noted that the resource checksum request that first client is sent carries the second client and creates The corresponding storage location information of exterior chain, the storage location information can serve to indicate that storage the first client money to be uploaded The position in source or the position for being used to indicate the resource location information for storing the first client resource to be uploaded.
Based on system architecture diagram shown in FIG. 1, the embodiment of the present invention provides a kind of resource acquiring method, as shown in Fig. 2, should Method includes:
S201:Storage server receives the resource checksum request that the first client is sent, and the resource checksum request carries The mark and the exterior chain for the exterior chain that resource information, the second client of the first client resource to be uploaded create Corresponding storage location information;
Wherein, it should be noted that when exterior chain founder needs to create exterior chain, second client creates exterior chain; When open visitor obtains the exterior chain of exterior chain founder establishment, and needs to upload resource, first client is deposited to described It stores up server and sends the resource checksum request;
Wherein, non-limiting as example, the first client resource to be uploaded can include text file, sound Frequency file, video file and other resources that can be stored by the storage server, for example, first message;The resource Information is specifically used for the resource is described;
Wherein, it should be noted that resource identification can be used for uniquely identifying resource, and the mark of exterior chain is for uniquely Identify exterior chain;
Wherein, it should be noted that the storage location information in the present embodiment is used to indicate the first client of storage and wants The position of the resource of upload;
Wherein, it should be noted that the storage location information can be true when creating exterior chain by second client It is fixed;Specifically, routing information of the storage location information for exterior chain founder storage resource in network hard disc, the storage Location information can be specified by exterior chain founder, when outer chain creation person is not specified, can be given tacit consent to by the storage server It is specified;
Wherein, it is described to deposit before the resource checksum request for receiving that first client is sent in the storage server Storage server can receive the exterior chain request to create that second client is sent, and the exterior chain request to create carries the exterior chain Attribute value;The storage server audits the value of the attribute of the exterior chain;If audit passes through, the storage clothes Device of being engaged in generates the mark of the exterior chain, for store preserved in the database of outer chain information the mark of the exterior chain with it is described outer Correspondence between the value of the attribute of chain, and send outer chain creation success response, the exterior chain wound to second client Build the mark that success response carries the exterior chain;
Wherein, it should be noted that the value of the attribute for the exterior chain that the exterior chain request to create carries includes the exterior chain The content of title and the exterior chain describes;
Wherein, the attribute for the exterior chain that the exterior chain request to create carries can also include the lattice of the corresponding resource of the exterior chain The size threshold value of formula and the corresponding resource of the exterior chain;
Wherein, exterior chain founder can also update the value of the attribute of the exterior chain after the exterior chain is created;Specifically Ground, in the storage server after second client sends the outer chain creation success response, second client End can also send the update request of exterior chain attribute to the storage server, and the exterior chain attribute update request carries the exterior chain The value of updated attribute and the mark of the exterior chain;The storage server is according to the mark of the exterior chain, described For storing the attribute for the corresponding exterior chain of mark that the exterior chain is searched in the database of outer chain information, the category that will be found The value of property is updated to the value of the updated attribute;
Wherein, it should be noted that the value of the attribute found is updated to the value of the updated attribute, specifically Refer to the value that the value of the attribute found is replaced with to the updated attribute;S202:The storage server is according to described outer The mark of chain, for storing the attribute for the corresponding exterior chain of mark that the exterior chain is searched in the database of outer chain information, The resource information is verified according to the value of the attribute found;
Wherein, it should be noted that the storage server judges the resource information and the attribute found Whether value matches, if matching, the storage server determine to verify successfully, otherwise, the storage server determines that verification is lost It loses;
Wherein, it should be noted that the attribute that the storage server is found can include the corresponding money of the exterior chain The size threshold value of the form in source and the corresponding resource of the exterior chain;S203:If verifying successfully, the storage server according to The storage location information stores the resource or resource location information of acquisition;
Wherein, before the resource that the storage server storage obtains, the storage server can also obtain the money Source;The storage server obtains the mode of the resource, can include following either type:
Mode one, the resource are stored in server end:The resource information includes the resource identification of the resource, described Resource identification of the storage server in the resource information searches institute in the database for storage resource location information The corresponding resource location information of resource identification is stated, according to the resource location information found, obtains the institute for being stored in server end State resource;
Wherein, the storage server in advance it is described for the database of storage resource location information in preserve resource mark Know the correspondence between resource location information;
Wherein, it should be noted that resource location information is used to indicate the position of resource storage in the present embodiment;
Mode two, the resource are stored in first client:The storage server is sent out to first client Resource checksum success response is sent, receives the resource that first client is sent;
Wherein, after the resource obtained in storage server storage, when second client is needed described in download During the resource of storage server storage, the storage server can send the money of storage to second client Source;
Wherein, before the resource location information that the storage server storage obtains, the storage server can also obtain Take the resource location information;The storage server may be used in the following manner and obtain the resource location information:The money Source information includes the resource identification of the resource, resource identification of the storage server in the resource information, with The corresponding resource location information of the resource identification is searched in the database of storage resource location information;
Wherein, in the storage server according to the storage location information, after the resource location information for storing acquisition, When second client needs to download resource, the storage server can also be sent to second client according to institute State the resource of resource location information acquisition;
Wherein, the database for storage resource location information can with the database for being used to store outer chain information To be identical database or different databases, the embodiment of the present invention are defined not to this.
A kind of resource acquiring method provided in an embodiment of the present invention, storage server are successfully wanting the first client After the resource information of the resource of upload is verified, according to the corresponding storage location information of exterior chain that the second client creates, deposit The resource obtained or resource location information are stored up, since exterior chain and exterior chain founder are bound so that exterior chain founder can pass through it The exterior chain of establishment obtains resource;Secondly, which can provide according to the resource identification in resource information for storing The corresponding resource location information of resource identification resource is searched in the database of source location information, according to the resource location found Acquisition of information is stored in the resource of server end so that the storage server can make full use of open visitor to be stored in service The resource at device end saves first client and uploads resource to the expense of the storage server;In addition, first client terminates Receive the storage server transmission resource checksum success response after, to the storage server send first client will on The resource of biography so that the resource being locally stored can be uploaded to storage server by all open visitors;Again, this is deposited Storage server can search the money according to the resource identification in resource information in the database for storage resource location information Source identifies corresponding resource location information, and according to the corresponding storage location information of exterior chain, stores the resource location information, so as to Save the storage resource of the storage server;Finally, storage server receives the exterior chain attribute of the second client transmission more After new request, the value of the attribute of the exterior chain can be updated so that exterior chain founder still is able to the category to exterior chain after exterior chain is created The value of property is into edlin.
As shown in figure 3, for a kind of schematic diagram of resource acquiring method provided in an embodiment of the present invention, this method includes: S301:First client obtains the resource information for the resource to be uploaded;
Wherein, first client obtains the mode of the resource information for the resource to be uploaded, and can include following One mode:
Mode one, the resource are stored in first client:What open visitor determined to be uploaded is stored in institute After the resource for stating the first client, first client obtains the resource information of the resource of itself storage;
Mode two, the resource are stored in server end:First client logs in the storage server, receives institute The resource information list of storage server transmission is stated, the resource information list is stored in server comprising first client The resource information of the resource at end;Open visitor selects the resource information for the resource to be uploaded from the resource information list Afterwards, first client obtains the resource information that open visitor selects from the resource information list;S302:Described One client sends resource checksum request to storage server, and the resource checksum request carries the resource information, the second visitor The mark of exterior chain and the corresponding storage location information of the exterior chain that family end creates, so that the storage server is according to The mark of exterior chain, for storing the category for the corresponding exterior chain of mark that the exterior chain is searched in the database of outer chain information Property, the resource information is verified according to the value of the attribute found, after verifying successfully, is believed according to the storage location Breath stores the resource of acquisition;
Wherein, after the storage server verifies successfully, first client can receive the storage service The resource checksum success response that device is sent, and the first client resource to be uploaded is sent to the storage server, So that the storage server obtains the first client resource to be uploaded.
A kind of resource acquiring method provided in an embodiment of the present invention, storage server are successfully wanting the first client After the resource information of the resource of upload is verified, the first client resource to be uploaded can be obtained, and according to second The corresponding storage location information of exterior chain that client creates stores the resource of acquisition, since exterior chain and exterior chain founder are bound, makes Exterior chain acquisition resource of its establishment can be passed through by obtaining exterior chain founder;Secondly, which receives storage server hair After the resource checksum success response sent, the first client resource to be uploaded can be sent to the storage server, is made Storage server can be uploaded to by the resource being locally stored by obtaining all open visitors.
As shown in figure 4, for a kind of schematic diagram of resource acquiring method provided in an embodiment of the present invention, this method includes: S401:When exterior chain founder needs to create exterior chain, the second client logs on to storage server;S402:Second client It holds to the storage server and sends exterior chain request to create, the exterior chain request to create carries the value of the attribute of the exterior chain; S403:The storage server audits the value of the attribute of the exterior chain, if audit passes through, performs step S404, no Then, the storage server sends outer chain creation failure response to second client;Wherein, the value of the attribute of the exterior chain The content description of title and the exterior chain including the exterior chain, the storage server to the value of the attribute of the exterior chain into The mode of row audit, can include in the following manner:The storage server is in the title of the exterior chain and the exterior chain Hold description to be audited;If the description of the content of the title of the exterior chain and the exterior chain does not include sensitive words, the storage Server determines that audit passes through, and otherwise, the storage server determines that the audit fails;Wherein, it should be noted that can be pre- First sensitive words are stored in sensitive numerical data base;If the description of the content of the title of the exterior chain and the exterior chain does not include quick Feel any sensitive words in numerical data base, then the storage server determines that audit passes through, and otherwise, the storage server determines The audit fails wherein, and the attribute of the exterior chain can also include the form of the corresponding resource of the exterior chain and the exterior chain pair The size threshold value for the resource answered;S404:The storage server generates the mark of the exterior chain, for storing outer chain information The correspondence between the mark of the exterior chain and the value of the attribute of the exterior chain is preserved in database;For example, the storage clothes The value of the attribute of the exterior chain that receives of business device can be expressed as " title=' abstract Encryption Algorithm ', content description=' abstract The characteristics of Encryption Algorithm, is not needing to key, and encrypted data can not be decrypted when encrypting ', form=' .doc ', Size threshold value=' 5MB ' ", the storage server pass through the title of the exterior chain and the content description audit of the exterior chain Afterwards, the mark of exterior chain, such as c0079527dx are generated, it will be between the mark of the exterior chain of generation and the value of the attribute of the exterior chain Correspondence is stored in the tables of data for storing the database of outer chain information;Wherein, it is non-limiting as example, it is described to deposit The value of the attribute of the exterior chain can be stored in a row of tables of data by storage server, as shown in table 1:
Table 1:
The value of the attribute of the exterior chain can also be stored in respectively in each row of tables of data, as shown in table 2;
Table 2:
Optionally, the attribute of the exterior chain can also include the term of validity of the exterior chain, the password of the exterior chain and institute State the download permission of the corresponding resource of exterior chain;
Optionally, it is preserved in the database that the storage server can also store outer chain information described described outer Correspondence between the mark storage location information corresponding with the exterior chain of chain;
S405:The storage server sends outer chain creation success response, the outer chain creation to second client Success response carries the mark of the exterior chain, so that exterior chain founder knows its exterior chain created;
Wherein, in the storage server after second client sends outer chain creation success response, described the Two clients can also send the update request of exterior chain attribute to the storage server, and the exterior chain attribute update request carries institute State the value of the updated attribute of exterior chain and the mark of the exterior chain;The storage server according to the mark of the exterior chain, Described for store outer chain information database in search the exterior chain the corresponding exterior chain of mark attribute, will search To the value of attribute be updated to the value of the updated attribute;
S406:When open visitor needs to upload resource, the first client accesses resource by the exterior chain and uploads page Face, and log in the storage server;
Wherein, it should be noted that after exterior chain is created, exterior chain founder can obtain URL corresponding with exterior chain, described The URL can be informed other users or propagate the URL on the internet by exterior chain founder, be accessed so as to open Person can be accessed the corresponding resource of exterior chain by the URL and upload the page;S407:The storage server is to first client End sends resource information list, and the resource information list includes the money that first client is stored in the resource of server end Source information;For example, it is non-limiting as example, if open visitor stores 5 files, the resource letter in server end The fileinfo that breath list will show each file in 5 files;
S408:First client obtains the resource information that open visitor selects from the resource information list; For example, it is non-limiting as example, if open visitor stores 5 files in server end, need the text in 5 files Part A is uploaded to the storage region of server end China and foreign countries chain creation person, then the money received in open visitor from the first client In source information list after select file A, first client obtains open visitor and is selected from the resource information list Resource information;
S409:First client sends resource checksum request, the resource checksum request to the storage server Carry the resource information of the first client resource to be uploaded, the mark for the exterior chain that second client creates and The exterior chain corresponds to storage location information;
Wherein, it should be noted that the embodiment of the present invention does not limit the concrete form that the resource uploads the page, as Example and it is non-limiting, the resource upload the page can be by hypertext language (Hypertext Markup Language, Referred to as:HTML) the web document of description, the mark and the exterior chain that the exterior chain is included in the web document correspond to Storage location information, after first client accesses the web document, you can obtain mark and the institute of the exterior chain State the corresponding storage location of exterior chain;
Wherein, it should be noted that the storage location information in the present embodiment is used to indicate the first client of storage and wants The position of the resource of upload;
Wherein, it should be noted that the storage location information can be true when creating exterior chain by second client It is fixed;Specifically, routing information of the storage location information for exterior chain founder storage resource in network hard disc, the storage Location information can be specified by exterior chain founder, when outer chain creation person is not specified, can be given tacit consent to by storage server specified;
S410:The storage server is looked into according to the mark of the exterior chain for storing in the database of outer chain information The attribute of the corresponding exterior chain of mark of the exterior chain is looked for, school is carried out to the resource information according to the value of the attribute found It tests, if verifying successfully, performs step S411, otherwise, the storage server sends resource checksum to first client Failure response;
Wherein, the attribute that the storage server is found can include form and the institute of the corresponding resource of the exterior chain The size threshold value of the corresponding resource of exterior chain is stated, the resource information can include the first client resource to be uploaded Form and size;The mode that the storage server verifies the resource information according to the value of the attribute found, It can include:The storage server is corresponding according to the form of the corresponding resource of the exterior chain found and the exterior chain The size threshold value of resource, the size of resource carries out school in the form and the resource information to resource in the resource information It tests;If a kind of form of the form of resource resource corresponding with the exterior chain is identical in the resource information, and the resource is believed In breath the size of resource be not more than the corresponding resource of the exterior chain size threshold value, then the storage server determine verification into Work(, otherwise, the storage server determine verification failure;
Wherein, it should be noted that the form of the corresponding resource of the exterior chain can there are many, the first client institute The form for the resource to be uploaded need to only meet one of which;
S411:The resource allocation information can also include the resource identification of the resource, the storage server according to Resource identification in the resource information is searched and the resource identification pair in the database for storage resource location information The resource location information answered according to the resource location information found, obtains the resource for being stored in server end;
Wherein, it should be noted that for the resource identification for uniquely identifying the resource, the storage server can According to the resource identification, to find resource corresponding with the resource identification;For example, it is non-limiting as example, if public It opens visitor and stores 5 files in server end, need the file A in 5 files being uploaded to exterior chain wound in server end The storage region for the person of building then includes the resource identification of file A, the storage in the resource information of the storage server acquisition Server according to the resource identification of file A, it is described for the database of storage resource location information in find file A storages In the position of server end, storage server file A according to file A is stored in the position acquisition of server end;
Optionally, resource identification lookup of the storage server in the resource information is stored in server end Before resource, the storage server determines the idle storage space of the exterior chain founder still greater than the first client institute The size for the resource to be uploaded;
S412:The storage server stores the resource of acquisition according to the corresponding storage location information of the exterior chain;
S413:When second client need download storage server storage resource when, second client to The storage server sends resource download request;
Wherein, the resource download request downloads the resource of the first client upload for request;
S414:The storage server sends resource downloading response, the resource downloading response to second client Carry the resource of storage.
Wherein, in embodiments of the present invention, the storage server can also be in step S412 directly according to storage position Confidence ceases, and is stored in the resource location information found in step S411;When second client needs to download resource, institute State the resource that storage server is obtained to second client transmission according to the resource location information.
A kind of resource acquiring method provided in an embodiment of the present invention, storage server are successfully wanting the first client After the resource information of the resource of upload is verified, according to the corresponding storage location information of exterior chain that the second client creates, deposit Store up the resource obtained or resource location information so that exterior chain founder can obtain resource by the exterior chain of its establishment;Secondly, should Storage server can be according to the resource identification in resource information, and being searched in the database for storage resource location information should The corresponding resource location information of resource identification resource, according to the resource location information found, acquisition is stored in server end Resource so that the storage server can make full use of open visitor to be stored in the resource of server end, save this first Client uploads resource to the expense of the storage server;In addition, the storage server can be according to the resource in resource information Mark, searches the corresponding resource location information of the resource identification in the database for storage resource location information, and according to The corresponding storage location information of exterior chain, stores the resource location information, so as to save the storage resource of the storage server;Again Secondary, storage server after the exterior chain attribute update request of the second client transmission is received, can update the attribute of the exterior chain Value so that exterior chain founder still is able to the value of the attribute of exterior chain after exterior chain is created into edlin.
As shown in figure 5, for a kind of schematic diagram of resource acquiring method provided in an embodiment of the present invention, this method includes:
S501:When exterior chain founder needs to create exterior chain, the second client logs on to storage server;
S502:Second client sends exterior chain request to create, the exterior chain request to create to the storage server Carry the value of the attribute of the exterior chain;
S503:The storage server audits the value of the attribute of the exterior chain, if audit passes through, performs step S504, otherwise, the storage server send outer chain creation failure response to second client;
Wherein, it should be noted that step S403 can be referred to the detailed description of this step, details are not described herein;
S504:The storage server generates the mark of the exterior chain, is protected for storing in the database of outer chain information Deposit the correspondence between the mark of the exterior chain and the value of the attribute of the exterior chain;Wherein, it should be noted that this step Detailed description can refer to step S404, details are not described herein;
S505:The storage server sends outer chain creation success response, the outer chain creation to second client Success response carries the mark of the exterior chain, so that exterior chain founder knows its exterior chain created;Wherein, it should be noted that Step S405 can be referred to the detailed description of this step, details are not described herein;
S506:When open visitor needs to upload resource, the first client accesses resource by the exterior chain and uploads page Face;
S507:First client obtains the resource information for the resource to be uploaded;Wherein, it should be noted that public After that opens that visitor determines to need to upload is stored in the resource of first client, first client obtains open access Person selects the resource information of the resource being stored in first client uploaded;
S508:First client sends resource checksum request, the resource checksum request to the storage server Carry the resource information of the first client resource to be uploaded, the mark for the exterior chain that second client creates and The corresponding storage location information of the exterior chain;Wherein, it should be noted that step can be referred to the detailed description of this step S409, details are not described herein;
S509:The storage server is looked into according to the mark of the exterior chain for storing in the database of outer chain information The attribute of the exterior chain corresponding with the exterior chain is looked for, the resource information is verified according to the value of the attribute found, If verifying successfully, step S510 is performed, otherwise, the storage server sends resource checksum failure to first client Response, wherein, it should be noted that step S410 can be referred to the detailed description of this step, details are not described herein;
S510:The storage server sends resource checksum success response to first client;
S511:First client sends the first client resource to be uploaded to the storage server, So that the storage server obtains the first client resource to be uploaded;
S512:The storage server stores the resource of acquisition according to the corresponding storage location of the exterior chain;
S513:When second client needs to download resource, second client is sent out to the storage server Send resource download request;Wherein, the resource download request downloads the resource of the first client upload for request;
S514:The storage server sends resource downloading response, the resource downloading response to second client Carry the resource of storage.
A kind of resource acquiring method provided in an embodiment of the present invention, storage server are successfully wanting the first client After the resource information of the resource of upload is verified, according to the corresponding storage location information of exterior chain that the second client creates, deposit Store up the resource obtained so that exterior chain founder can obtain resource by the exterior chain of its establishment;Secondly, which receives After the resource checksum success response that the storage server is sent, send first client to be uploaded to the storage server Resource so that the resource being locally stored can be uploaded to storage server by all open visitors;Again, storage clothes After business device receives the exterior chain attribute update request of the second client transmission, the value of the attribute of the exterior chain is updated so that exterior chain is created The person of building still is able to the value of the attribute of exterior chain after exterior chain is created into edlin.Wherein, the storage service in the embodiment of the present invention Device is made of several memory nodes, as shown in Figure 6.For ease of understanding, the embodiment of the present invention provides another resource acquiring method Schematic diagram, as shown in fig. 7, this method includes:
S701:When exterior chain founder needs to create exterior chain, the second client logs on to the memory node for creating exterior chain;
S702:Second client sends exterior chain request to create, the exterior chain to the memory node for creating exterior chain Request to create carries the value of the attribute of the exterior chain;
S703:The memory node for creating exterior chain audits the value of the attribute of the exterior chain, if audit passes through, Perform step;
S704, otherwise, the memory node for creating exterior chain send outer chain creation failure response to second client; Wherein, the memory node for creating exterior chain can audit the value of the attribute of the exterior chain with reference to step S403, herein It repeats no more;
S704:The memory node for creating exterior chain generates the mark of the exterior chain, for storing the number of outer chain information According to the correspondence between the value of the attribute for the mark and the exterior chain that the exterior chain is preserved in library;
Optionally, the attribute of the exterior chain can also include the term of validity of the exterior chain, the password of the exterior chain and institute State the download permission of the corresponding resource of exterior chain;
Optionally, it is protected in the database that the memory node for creating exterior chain can also store outer chain information described Deposit the correspondence between the mark storage location information corresponding with the exterior chain of the exterior chain;
S705:The memory node for creating exterior chain sends outer chain creation success response to second client, described Outer chain creation success response carries the mark of the exterior chain, so that exterior chain founder knows its exterior chain created;Wherein, described The memory node of exterior chain is created after second client sends outer chain creation success response, second client may be used also The update request of exterior chain attribute is sent with the memory node to update exterior chain, the exterior chain attribute update request carries the exterior chain The mark of the value of updated attribute and the exterior chain;The memory node of the update exterior chain according to the mark of the exterior chain, Described for store outer chain information database in search the exterior chain the corresponding exterior chain of mark attribute, will search To the value of attribute be updated to the value of the updated attribute;
S706:When open visitor needs to upload resource, the first client accesses resource by the exterior chain and uploads page Face, and log in the memory node for obtaining resource related information;
S707:The memory node for obtaining resource related information sends resource information list to first client, The resource information list includes the resource information that first client is stored in the resource of server end;For example, open visit The person of asking is stored with 2 files on memory node A, and 3 files are stored on memory node B, obtain resource related information Memory node is constructed after the file that the disclosure visitor is stored on memory node A and memory node B is found to first The resource information list that client is sent, the resource information list include 5 texts that the disclosure visitor is stored in server end The fileinfo of part;
S708:First client obtains the resource information that open visitor selects from the resource information list; For example, it is non-limiting as example, if open visitor stores 5 files in server end, need the text in 5 files Part A is uploaded to the storage region of server end China and foreign countries chain creation person, then the money received in open visitor from the first client In source information list after select file A, first client obtains open visitor and is selected from the resource information list Resource information;
S709:First client sends resource checksum request to the memory node for obtaining resource related information, The resource checksum request carries the resource information of the first client resource to be uploaded, second client creates Exterior chain mark and the exterior chain correspond to storage location information;
Wherein, step S409 can be referred to the detailed description of this step, details are not described herein;
S710:The memory node for obtaining resource related information is according to the mark of the exterior chain, for storing exterior chain The attribute of the corresponding exterior chain of mark of the exterior chain is searched in the database of information, according to the value of the attribute found to institute It states resource information to be verified, if verifying successfully, performs step S711, otherwise, the storage for obtaining resource related information Node sends resource checksum failure response to first client;
Wherein, the memory node for obtaining resource related information can refer to step S410 and the resource information is carried out Verification, details are not described herein;
S711:The resource identification of the memory node in the resource information for obtaining resource related information, with The corresponding resource location information of the resource identification is searched in the database of storage resource location information, according to the storage position Confidence ceases, and stores the resource location information found;
S712:When second client needs to download the resource of storage, second client is to downloading resource Memory node sends resource download request;Wherein, the resource download request uploads for asking to download first client Resource, the resource download request can carry resource identification;
S713:The memory node for downloading resource obtains according to the resource location information of storage and is stored in service The resource at device end;Wherein it is possible to the correspondence between resource identification and resource location information is prestored, the download resource The resource identification that is carried according to resource download request of memory node, obtain the corresponding resource location information of the resource identification;
S714:The memory node for downloading resource is sent to second client downloads response, described to download response Carry the resource obtained.Wherein, it should be noted that the memory node for creating exterior chain, the storage section for updating exterior chain Any two or multiple storages in the memory node of point, the memory node for obtaining resource related information and download resource Node can be identical memory node or different memory nodes, the embodiment of the present invention are defined not to this.
A kind of resource acquiring method provided in an embodiment of the present invention obtains the memory node of resource related information successfully It is corresponding according to the exterior chain that the second client creates after being verified to the resource information of the first client resource to be uploaded Storage location information stores the resource location information of acquisition, since the memory node for obtaining resource related information can direct root Resource is obtained according to the resource location information so that exterior chain founder can obtain resource by the exterior chain of its establishment;Secondly, this is obtained Take the memory node of resource related information can be according to the resource identification in resource information, for storage resource location information The corresponding resource location information of resource identification resource is searched in database, and stores the resource location information found, so as to It saves first client and uploads resource to the expense of the memory node of the acquisition resource related information;In addition, the acquisition provides The memory node of source relevant information only stores the resource location information that the first client is stored in the resource of server end, second When client needs to download resource, the memory node of the acquisition resource related information is directly obtained according to the resource location information of storage Resource is taken, so as to improve the storage efficiency of server end, the storage resource of server end is saved, again, updates exterior chain After memory node receives the exterior chain attribute update request of the second client transmission, the value of the attribute of the exterior chain can be updated, is made Exterior chain founder after exterior chain is created, still be able to the value of the attribute of exterior chain into edlin.

Claims (10)

1. a kind of resource acquiring method, which is characterized in that including:Storage server receives the resource checksum that the first client is sent Request, the resource checksum request carry the resource information of the first client resource to be uploaded, the second client wound The mark for the exterior chain built and the corresponding storage location information of the exterior chain;The storage server is according to the mark of the exterior chain Know, for storing the attribute for the corresponding exterior chain of mark that the exterior chain is searched in the database of outer chain information, according to looking into The value of the attribute found verifies the resource information;If verifying successfully, the storage server is according to the storage Location information stores the resource or resource location information of acquisition.
2. the method as described in claim 1, which is characterized in that the storage server is deposited according to the storage location information Before storing up the resource obtained, the method further includes:Resource identification of the storage server in the resource information, The corresponding resource location information of the resource identification is searched in database for storage resource location information, according to what is found Resource location information obtains the resource for being stored in server end.
3. the method as described in claim 1, which is characterized in that the storage server is deposited according to the storage location information Before storing up the resource location information obtained, the method further includes:Money of the storage server in the resource information Source identifies, and the corresponding resource location information of the resource identification is searched in the database for storage resource location information.
4. method as claimed in claim 3, which is characterized in that the storage server is deposited according to the storage location information After storing up the resource location information obtained, the method further includes:It is described to deposit when second client needs to download resource The resource that storage server is obtained to second client transmission according to the resource location information.
5. the method as described in claim 2 or 4, which is characterized in that the storage server receives the first client hair Before the resource checksum request sent, the method further includes:Storage server described in the first client Successful login it Afterwards, the storage server sends resource information list to first client, and the resource information list includes described the One client is stored in the resource information of the resource of the server end, so that first client obtains the money to be uploaded The resource information in source.
6. the method as described in claim 1, which is characterized in that the storage server is deposited according to the storage location information Before storing up the resource obtained, the method further includes:The storage server to first client send resource checksum into Work(responds;The storage server receives the resource that first client is sent.
7. the method as described in any in claim 1-6, which is characterized in that the storage server receives first client Before the resource checksum request that end is sent, the method further includes:The storage server receives second client and sends Exterior chain request to create, the exterior chain request to create carries the value of the attribute of the exterior chain;The storage server is to described outer The value of the attribute of chain is audited;If audit passes through, the storage server generates the mark of the exterior chain, is used for described The correspondence between the mark of the exterior chain and the value of the attribute of the exterior chain is preserved in the database of the outer chain information of storage, and Outer chain creation success response is sent to second client, the outer chain creation success response carries the mark of the exterior chain.
8. the method for claim 7, which is characterized in that the storage server carries out the value of the attribute of the exterior chain Audit, including:The storage server audits the title of the exterior chain and the content description of the exterior chain;It is if described The description of the content of the title of exterior chain and the exterior chain does not include sensitive words, then the storage server determines that audit passes through, no Then, the storage server determines that the audit fails.
9. method as claimed in claim 7 or 8, which is characterized in that it is described to second client send outer chain creation into After work(response, the method further includes:The storage server receives the exterior chain attribute update that second client is sent Request, the exterior chain attribute update request carry the value of updated attribute and the mark of the exterior chain of the exterior chain;Institute State mark of the storage server according to the exterior chain, described for store outer chain information database in search the exterior chain The attribute of the corresponding exterior chain is identified, the value of the attribute found is updated to the value of the updated attribute.
10. the method as described in any in claim 1-6, which is characterized in that the value for the attribute that the basis is found is to institute Resource information is stated to be verified, including:The storage server according to the form of the corresponding resource of the exterior chain found with And the size threshold value of the corresponding resource of the exterior chain, it provides in the form and the resource information to resource in the resource information The size in source is verified;If a kind of form phase of the form of resource resource corresponding with the exterior chain in the resource information Together, and in the resource information size of resource is not more than the size threshold value of the corresponding resource of the exterior chain, then the storage clothes Business device determines to verify successfully, and otherwise, the storage server determines verification failure.
CN201711393097.7A 2017-12-14 2017-12-14 A kind of resource acquiring method Pending CN108183943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711393097.7A CN108183943A (en) 2017-12-14 2017-12-14 A kind of resource acquiring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711393097.7A CN108183943A (en) 2017-12-14 2017-12-14 A kind of resource acquiring method

Publications (1)

Publication Number Publication Date
CN108183943A true CN108183943A (en) 2018-06-19

Family

ID=62546884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711393097.7A Pending CN108183943A (en) 2017-12-14 2017-12-14 A kind of resource acquiring method

Country Status (1)

Country Link
CN (1) CN108183943A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807210A (en) * 2019-11-04 2020-02-18 北京联想协同科技有限公司 Information processing method, platform, system and computer storage medium
CN110865984A (en) * 2019-11-15 2020-03-06 天津联想协同科技有限公司 Data access method, equipment and readable storage medium
CN117171794A (en) * 2023-09-08 2023-12-05 之江实验室 Mixed cloud data secure storage system and method based on resource classification

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102884775A (en) * 2012-06-25 2013-01-16 华为技术有限公司 Method and apparatus for accessing resources

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102884775A (en) * 2012-06-25 2013-01-16 华为技术有限公司 Method and apparatus for accessing resources

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807210A (en) * 2019-11-04 2020-02-18 北京联想协同科技有限公司 Information processing method, platform, system and computer storage medium
CN110865984A (en) * 2019-11-15 2020-03-06 天津联想协同科技有限公司 Data access method, equipment and readable storage medium
CN117171794A (en) * 2023-09-08 2023-12-05 之江实验室 Mixed cloud data secure storage system and method based on resource classification

Similar Documents

Publication Publication Date Title
CN102884775B (en) Method and apparatus for accessing resources
US10958725B2 (en) Systems and methods for distributing partial data to subnetworks
JP4958246B2 (en) Method, apparatus and system for fast searchable encryption
US7543145B2 (en) System and method for protecting configuration settings in distributed text-based configuration files
US10693947B2 (en) Interchangeable retrieval of sensitive content via private content distribution networks
EP3491808B1 (en) Interchangeable retrieval of content
US10491475B2 (en) Proxy automatic configuration file manager
US20120166518A1 (en) Providing state service for online application users
CN108183943A (en) A kind of resource acquiring method
US20080155388A1 (en) Publication service using web pages and web search engines
JP2012527670A (en) Data backup system
US9467291B2 (en) Information processing system, information processing method, and non-transitory computer readable medium for processing requests using an authority object
US20050086213A1 (en) Server apparatus, information providing method and program product therefor
KR101666064B1 (en) Apparatus for managing data by using url information in a distributed file system and method thereof
JP4965420B2 (en) Content server system
JP6756207B2 (en) Information processing equipment and programs
JP5682181B2 (en) COMMUNICATION DEVICE, METHOD, AND PROGRAM HAVING COMMUNICATION CONTROL FUNCTION
KR20150119668A (en) File sharing method and system using a e-mail message
JP5345577B2 (en) Name resolution device, name resolution method, and name resolution program
JP2009260846A (en) Network operation monitoring system, manager device, and network operation monitoring method
US10515225B2 (en) Method for mutual verifying of data ownership
JP2005018217A (en) Retrieval server device and retrival method
JP2010277487A (en) Information processor, information processing method, and program
JP2010160659A (en) System and method for data retrieval, terminal device, retrieval server device, file server device and program
JP2016213801A (en) Communication system, gateway server, and program

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180619