CN103957252A - Method and system for obtaining log of cloud storage system - Google Patents
Method and system for obtaining log of cloud storage system Download PDFInfo
- Publication number
- CN103957252A CN103957252A CN201410175643.XA CN201410175643A CN103957252A CN 103957252 A CN103957252 A CN 103957252A CN 201410175643 A CN201410175643 A CN 201410175643A CN 103957252 A CN103957252 A CN 103957252A
- Authority
- CN
- China
- Prior art keywords
- cloud storage
- storage server
- user name
- cloud
- link
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method and system for obtaining a log of a cloud storage system. Effective linkage enabling an inquiry user name to have access to an IP address of an accessed cloud storage server is established through a preset linkage factory and is stored through a Concurrent Hash Map. When a user needs to inquire a log file stored in the cloud storage system, the IP address and the inquiry user name of the accessed cloud storage server are obtained, whether the corresponding effective linkage exists in the linkage factory or not is inquired, if yes, the user directly has access to the corresponding cloud storage server according to the effective linkage in the Concurrent Hash Map, and the corresponding cloud storage log file is directly obtained. High concurrent inquiry access can be conducted by each user side and the occurrence probability of data collision and data loss is greatly reduced. The success rate of concurrent access can be increased, log data of the cloud storage system are obtained, and the occurrence probability of data loss caused by data collision is effectively reduced.
Description
Technical field
The present invention relates to the technical field that cloud stores, particularly relate to a kind of journal obtaining method of cloud stocking system, and a kind of log acquisition system of cloud stocking system.
Background technology
Cloud storage is in cloud computing (cloud computing) conceptive extension and a derivative development new concept out.Cloud computing is the development of distributed treatment (Distributed Computing), parallel processing (Parallel Computing) and grid computing (Grid Computing), be to see through network huge computing program is split into numerous less subprogram automatically, then transfer to bulky systems that multi-section server forms result to be returned to user after analyzing as calculated.By cloud computing technology, Internet Service Provider can be within the several seconds, processes number in hundred million information necessarily even, reach and " supercomputer " same powerful network service.
Concept and the cloud computing of cloud storage are similar, it refers to by functions such as cluster application, grid or distributed file systems, a large amount of various dissimilar memory devices in network are gathered to collaborative work by application software, the common system that data storage and Operational Visit function are externally provided, guarantee the fail safe of data, and save memory space.
Yet, when cloud stocking system goes wrong, will need to inquire about the daily record of cloud storage server, and disperse due to the resource of cloud storing technology, just need to from the massive logs file of cloud stocking system, find out relevant daily record.Now how to keep the client of inquiry log and the communication efficiency of each cloud storage server and success rate just to become a difficult problem, characteristic due to cloud storage, therefore visit capacity is likely very large, and need to carry out Concurrency Access, will cause the conflict that connects difficulty and visit data, cause the log content of inquiry to be lost.
Summary of the invention
Daily record data inquiry difficulty for existing cloud stocking system is large, easily lose the problem of daily record data, the invention provides a kind of journal obtaining method of cloud stocking system, can improve the success rate of Concurrency Access, obtain the daily record data of cloud stocking system, effectively reduce the generation that data collision causes loss of data.
A journal obtaining method for cloud stocking system, comprises the following steps:
Obtain IP address and the inquiring user name of accessed cloud storage server;
According to described IP address and inquiring user name, search default link factory, wherein, the described factory that links preserves the effective link of each inquiring user name to the IP address access of each cloud storage server by ConcurrentHashMap;
If described, link in factory and have the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, by effective link of described ConcurrentHashMap, from described accessed cloud storage server, obtain accordingly;
Otherwise, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
The journal obtaining method of cloud stocking system of the present invention, creates the effective link of described inquiring user name to the IP address access of described accessed cloud storage server by default link factory, and preserves described effective link with ConcurrentHashMap.When user need to inquire about the journal file of cloud storage, obtain IP address and the inquiring user name of accessed cloud storage server, inquire about the described effective link that whether has correspondence in factory that links, if had, the direct cloud storage server corresponding according to the effective links and accesses in described ConcurrentHashMap, obtains corresponding cloud and stores journal file.ConcurrentHashMap supports in Java5 that height is concurrent, the thread-safe HashMap implementation of high-throughput, by preserving described effective link in described ConcurrentHashMap, during each user side access, can carry out high concurrent access mode, greatly reduce the probability of happening of data collision and loss of data.
Daily record data inquiry difficulty for existing cloud stocking system is large, easily lose the problem of daily record data, the invention provides a kind of log acquisition system of cloud stocking system, can improve the success rate of Concurrency Access, obtain the daily record data of cloud stocking system, effectively reduce the generation that data collision causes loss of data.
A log acquisition system for cloud stocking system, comprises the following steps:
Acquisition of information module, for obtaining IP address and the inquiring user name of accessed cloud storage server;
Enquiry module, for searching default link factory according to described IP address and inquiring user name, wherein, the described factory that links preserves the effective link of each inquiring user name to the IP address access of each cloud storage server by ConcurrentHashMap;
Log acquisition module, if have the effective link of described inquiring user name to the IP address access of described accessed cloud storage server for the described factory that links, obtain corresponding cloud by effective link of described ConcurrentHashMap from described accessed cloud storage server and store journal file; Otherwise, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
The log acquisition system of cloud stocking system of the present invention, creates the effective link of described inquiring user name to the IP address access of described accessed cloud storage server by default link factory, and preserves described effective link with ConcurrentHashMap.When user need to inquire about the journal file of cloud storage, obtain IP address and the inquiring user name of accessed cloud storage server, inquire about the described effective link that whether has correspondence in factory that links, if had, the direct cloud storage server corresponding according to the effective links and accesses in described ConcurrentHashMap, obtains corresponding cloud and stores journal file.ConcurrentHashMap supports in Java5 that height is concurrent, the thread-safe HashMap implementation of high-throughput, by preserving described effective link in described ConcurrentHashMap, during each user side access, can carry out high concurrent access mode, greatly reduce the probability of happening of data collision and loss of data.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the journal obtaining method of cloud stocking system of the present invention;
Fig. 2 is the schematic flow sheet of the log acquisition system of cloud stocking system of the present invention.
Embodiment
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the journal obtaining method of cloud stocking system of the present invention.
The journal obtaining method of described cloud stocking system, comprises the following steps:
S101, obtains IP address and the inquiring user name of accessed cloud storage server;
S102, searches default link factory according to described IP address and inquiring user name, and wherein, the described factory that links preserves the effective link of each inquiring user name to the IP address access of each cloud storage server by ConcurrentHashMap;
S103, if described, link in factory and have the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, by effective link of described ConcurrentHashMap, from described accessed cloud storage server, obtain corresponding cloud and store journal file;
S104, if described, link the effective link that does not have described inquiring user name to access the IP address of described accessed cloud storage server in factory, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
The journal obtaining method of cloud stocking system of the present invention, creates the effective link of described inquiring user name to the IP address access of described accessed cloud storage server by default link factory, and preserves described effective link with ConcurrentHashMap.When user need to inquire about the journal file of cloud storage, obtain IP address and the inquiring user name of accessed cloud storage server, inquire about the described effective link that whether has correspondence in factory that links, if had, the direct cloud storage server corresponding according to the effective links and accesses in described ConcurrentHashMap, obtains corresponding cloud and stores journal file.ConcurrentHashMap supports in Java5 that height is concurrent, the thread-safe HashMap implementation of high-throughput, by preserving described effective link in described ConcurrentHashMap, during each user side access, can carry out high concurrent access mode, greatly reduce the probability of happening of data collision and loss of data.
Wherein, step S101, obtains IP address and the inquiring user name of accessed cloud storage server.
The browser log that enters inquiry terminal as user pushes interface, input inquiry keyword, and click logs obtains button, after triggering log acquisition process.The inquiring user name of using when obtaining described user and logging in, the IP address that obtains corresponding cloud storage server according to the cloud storage server at the daily record place of inquiry.
Step S102, searches default link factory according to described IP address and inquiring user name.
Wherein, the described factory that links preserves the effective link of each inquiring user name to the IP address access of each cloud storage server by ConcurrentHashMap.ConcurrentHashMap supports in Java5 that height is concurrent, the thread-safe HashMap implementation of high-throughput.
The link factory of described default link links together all cloud storage servers that recorded, and the link having added before each link newly adding both can obtain, also will link others simultaneously, and the link adding before just can obtain many links.A large amount of links is mutually cross-linked, and has formed the network system of a link, forms a network structure.
In this step, inquire about described link factory, judge in described link factory whether have the effective link of described inquiring user name to the IP address access of described accessed cloud storage server.
In step S103, if existing corresponding effectively link in described link factory is directly obtained corresponding cloud by effective link of described ConcurrentHashMap from described accessed cloud storage server and stored journal file.
Preferably, if there is multiple queries user name to access corresponding cloud storage server simultaneously, and in described link factory, preserve the effective link of inquiring user name to the IP address access of corresponding cloud storage server described in each; , by corresponding effective link of described ConcurrentHashMap, connect concomitantly corresponding cloud storage server, obtain corresponding cloud and store journal file.
By preserving described effective link in described ConcurrentHashMap, when accessing corresponding cloud storage server, each user side can carry out high concurrent access mode, greatly reduced the probability of happening of data collision and loss of data.
In step S104, if do not there is corresponding effectively link in described link factory, first by described link factory, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server.
Described inquiring user name can be passed through the IP address of described inquiring client terminal and the IP address of described accessed cloud storage server to the link of the IP address access of described accessed cloud storage server, between the two, by various feasible communication protocol, establishes the link.
In a preferred embodiment, according to the IP address of described inquiring user name and described accessed cloud storage server, by SSH agreement, connect described accessed cloud storage server; At described accessed cloud storage server, described inquiring user name is carried out after the success of SSH protocol authentication, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server.
SSH is the shorthand of English Secure Shell, and Secure Shell Protocol safety shell protocol, is a kind of agreement that safety long-distance login and the service of other secure network are provided on insecure network.Use Secure shell protocol connection server, server has obtained after the instruction that browser transmits, by condition query to daily record in the mode of data flow, be pushed to browser and show.By using SSH agreement, the data of all transmission can be encrypted, " go-between " this attack pattern just can not have been realized like this, and can prevent DNS deception and IP spoofing, has greatly improved the fail safe of communicating by letter between inquiring client terminal and accessed cloud storage server.
After described link factory has created corresponding effectively link, by cloud storage server described in described effective links and accesses, obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
By described link factory, create new url, after creating successfully, all links of having preserved before all will obtain this new url, and this new url also links interconnection by what preserved with before all, form network structure, therefore by described link factory, can improve the convenience that the link of each cloud storage server is obtained.And after described effective link is kept in described ConcurrentHashMap, while again accessing, can directly by described ConcurrentHashMap execution concurrence, access.
The method of obtaining corresponding cloud storage journal file in step S103 and S104 can realize by following steps:
According to the address of journal file, obtain corresponding journal file stream;
According to the key word of the inquiry of input, by the mode of keyword match, in described journal file stream, obtain corresponding journal file.
Mode by keyword match can accurately obtain the journal file that inquiring user needs.
In one embodiment, in order to facilitate user to carry out real-time query to journal file, call, further comprising the steps of:
Obtaining after corresponding cloud stores journal file, with the time interval of presetting, regularly described cloud is being stored in the browser that journal file is pushed to inquiring client terminal and show.
By described cloud being stored to the active push of journal file, can be regularly for user pushes the daily record data needing, without user, all login inquiry, user can arrange and how long push at every turn, for example, within every ten seconds, push one inferior (definable pushes the time interval).
The process of described active push daily record data and the demonstration of client browser are asynchronous to be carried out, and at client browser, can not show data acquisition process, and only understands the daily record data that time display upgrades, very convenient.Can in browser, directly view the log information in server, quick and precisely locate the log information of each server, help cloud storage platform quick positioning question, reduce positioning time.
Preferably, after starting the active push of cloud storage journal file, also can comprise the following steps:
Detect whether receive the instruction that stops pushing daily record, if received, stop pushing cloud and store journal file.
Be that program judges whether to stop to push, for example, to click " stopping pushing " button, be as the criterion.As clicked stop button and push circulation and finish, as do not clicked and stop pushing button, be in daily record always and push state.
Further, in client browser, described journal file data can output to the page and show after typesetting optimization.Described typesetting optimization can be taked existing various page type-setting mode, so that user checks described daily record data.
By the present invention can be efficiently, accurately and rapidly bottom daily record is represented to foreground, the information of wanting to user according to the conditional search of user's input.Compared with prior art, also have the following advantages:
High-performance: adopt method of the present invention, adopt that asynchronous (browser is without redirect refresh technique, current thread starts another thread execution loading tasks, then do not wait for that it finishes, directly continuing down to carry out) mode inquires about backstage massive logs, and can quickly and accurately mass data be presented to user and to cloud storage administration platform, do not cause excessive communication load.
Described daily record data can be used bootstrap3.0 framework to show, functional configuration is flexible, can positive sequence, inverted order checks the daily record of backstage output, and can several row daily records of self-defined output.
Refer to Fig. 2, Fig. 2 is the structural representation of the log acquisition system of cloud stocking system of the present invention.
The log acquisition system of described cloud stocking system, comprising:
Acquisition of information module 11, for obtaining IP address and the inquiring user name of accessed cloud storage server;
Enquiry module 12, for searching default link factory according to described IP address and inquiring user name, wherein, the described factory that links preserves the effective link of each inquiring user name to the IP address access of each cloud storage server by ConcurrentHashMap;
Log acquisition module 13, if have the effective link of described inquiring user name to the IP address access of described accessed cloud storage server for the described factory that links, obtain corresponding cloud by effective link of described ConcurrentHashMap from described accessed cloud storage server and store journal file; Otherwise, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
In the log acquisition system of cloud stocking system of the present invention, by default link factory, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, and preserve described effective link with ConcurrentHashMap.When user need to inquire about the journal file of cloud storage, obtain IP address and the inquiring user name of accessed cloud storage server, inquire about the described effective link that whether has correspondence in factory that links, if had, the direct cloud storage server corresponding according to the effective links and accesses in described ConcurrentHashMap, obtains corresponding cloud and stores journal file.ConcurrentHashMap supports in Java5 that height is concurrent, the thread-safe HashMap implementation of high-throughput, by preserving described effective link in described ConcurrentHashMap, during each user side access, can carry out high concurrent access mode, greatly reduce the probability of happening of data collision and loss of data.
Described acquisition of information module 11 is obtained IP address and the inquiring user name of accessed cloud storage server.
The browser log that enters inquiry terminal as user pushes interface, input inquiry keyword, and click logs obtains button, after triggering log acquisition process.The inquiring user name of using when described acquisition of information module 11 is obtained described user and logged in, the IP address that obtains corresponding cloud storage server according to the cloud storage server at the daily record place of inquiry.
Described enquiry module 12 is searched default link factory according to described IP address and inquiring user name.
Wherein, the described factory that links preserves the effective link of each inquiring user name to the IP address access of each cloud storage server by ConcurrentHashMap.ConcurrentHashMap supports in Java5 that height is concurrent, the thread-safe HashMap implementation of high-throughput.
The link factory of described default link links together all cloud storage servers that recorded, and the link having added before each link newly adding both can obtain, also will link others simultaneously, and the link adding before just can obtain many links.A large amount of links is mutually cross-linked, and has formed the network system of a link, forms a network structure.
The described link of described enquiry module 12 inquiry factory, judges the described effective link that whether has described inquiring user name to access the IP address of described accessed cloud storage server in factory that links.
The mode that described log acquisition module 13 is obtained journal file has two kinds, the first is: if existing corresponding effectively link in described link factory is directly obtained corresponding cloud by effective link of described ConcurrentHashMap from described accessed cloud storage server and stored journal file.
Preferably, if there is multiple queries user name to access corresponding cloud storage server simultaneously, and in described link factory, preserve the effective link of inquiring user name to the IP address access of corresponding cloud storage server described in each; Described log acquisition module 13, by corresponding effective link of described ConcurrentHashMap, connects corresponding cloud storage server concomitantly, obtains corresponding cloud and stores journal file.
Described log acquisition module 13 is by preserving described effective link in described ConcurrentHashMap, when each user side is accessed corresponding cloud storage server, can carry out high concurrent access mode, greatly reduce the probability of happening of data collision and loss of data.
Another kind of mode is: if do not had in described link factory, effectively do not link accordingly, first described log acquisition module 13 creates the effective link of described inquiring user name to the IP address access of described accessed cloud storage server by the described factory that links, then obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
Described inquiring user name can be passed through the IP address of described inquiring client terminal and the IP address of described accessed cloud storage server to the link of the IP address access of described accessed cloud storage server, between the two, by various feasible communication protocol, establishes the link.
In a preferred embodiment, described log acquisition module 13, according to the IP address of described inquiring user name and described accessed cloud storage server, connects described accessed cloud storage server by SSH agreement; At described accessed cloud storage server, described inquiring user name is carried out after the success of SSH protocol authentication, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server.
SSH is the shorthand of English Secure Shell, and Secure Shell Protocol safety shell protocol, is a kind of agreement that safety long-distance login and the service of other secure network are provided on insecure network.Use Secure shell protocol connection server, server has obtained after the instruction that browser transmits, by condition query to daily record in the mode of data flow, be pushed to browser and show.By using SSH agreement, the data of all transmission can be encrypted, " go-between " this attack pattern just can not have been realized like this, and can prevent DNS deception and IP spoofing, has greatly improved the fail safe of communicating by letter between inquiring client terminal and accessed cloud storage server.
Described log acquisition module 13 is after described link factory has created corresponding effectively link, by cloud storage server described in described effective links and accesses, obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
By described link factory, create new url, after creating successfully, all links of having preserved before all will obtain this new url, and this new url also links interconnection by what preserved with before all, form network structure, therefore by described link factory, can improve the convenience that the link of each cloud storage server is obtained.And after described effective link is kept in described ConcurrentHashMap, while again accessing, can directly by described ConcurrentHashMap execution concurrence, access.
In one embodiment, described log acquisition module 13, according to the address of journal file, is obtained corresponding journal file stream; According to the key word of the inquiry of input, by the mode of keyword match, in described journal file stream, obtain corresponding journal file.
Mode by keyword match can accurately obtain the journal file that inquiring user needs.
In one embodiment, in order to facilitate user to carry out real-time query to journal file, call, the log acquisition system of cloud stocking system of the present invention also comprises:
Daily record pushing module, for obtaining after corresponding cloud stores journal file, regularly stores described cloud in the browser that journal file is pushed to inquiring client terminal and shows with the time interval of presetting.
By described cloud being stored to the active push of journal file, can be regularly for user pushes the daily record data needing, without user, all login inquiry, user can arrange and how long push at every turn, for example, within every ten seconds, push one inferior (definable pushes the time interval).
The process of described active push daily record data and the demonstration of client browser are asynchronous to be carried out, and at client browser, can not show data acquisition process, and only understands the daily record data that time display upgrades, very convenient.Can in browser, directly view the log information in server, quick and precisely locate the log information of each server, help cloud storage platform quick positioning question, reduce positioning time.
Preferably, after starting the active push of cloud storage journal file, whether the further detection of described daily record pushing module receives the instruction that stops pushing daily record, if received, stops pushing cloud and stores journal file.
Be that program judges whether to stop to push, for example, to click " stopping pushing " button, be as the criterion.As clicked stop button and push circulation and finish, as do not clicked and stop pushing button, be in daily record always and push state.
Further, in client browser, described journal file data can output to the page and show after typesetting optimization.Described typesetting optimization can be taked existing various page type-setting mode, so that user checks described daily record data.
One of ordinary skill in the art will appreciate that all or part of flow process and corresponding system, the described music player realized in above-mentioned execution mode, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise the flow process as the respective embodiments described above.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (10)
1. a journal obtaining method for cloud stocking system, is characterized in that, comprises the following steps:
Obtain IP address and the inquiring user name of accessed cloud storage server;
According to described IP address and inquiring user name, search default link factory, wherein, the described factory that links preserves the effective link of each inquiring user name to the IP address access of each cloud storage server by ConcurrentHashMap;
If described, link in factory and have the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, by effective link of described ConcurrentHashMap, from described accessed cloud storage server, obtain corresponding cloud and store journal file;
Otherwise, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
2. the journal obtaining method of cloud stocking system as claimed in claim 1, is characterized in that:
If there is multiple queries user name to access corresponding cloud storage server simultaneously, and in described link factory, preserve the effective link of inquiring user name to the IP address access of corresponding cloud storage server described in each;
, by corresponding effective link of described ConcurrentHashMap, connect concomitantly corresponding cloud storage server, obtain corresponding cloud and store journal file.
3. the journal obtaining method of the cloud stocking system as described in claim 1 or 2, is characterized in that, creates described inquiring user name the step of effective link of the IP address access of described accessed cloud storage server is comprised by described link factory:
According to the IP address of described inquiring user name and described accessed cloud storage server, by SSH agreement, connect described accessed cloud storage server;
At described accessed cloud storage server, described inquiring user name is carried out after the success of SSH protocol authentication, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server.
4. the journal obtaining method of the cloud stocking system as described in claim 1 or 2, is characterized in that, the step of obtaining corresponding cloud storage journal file comprises:
According to the address of journal file, obtain corresponding journal file stream;
According to the key word of the inquiry of input, by the mode of keyword match, in described journal file stream, obtain corresponding journal file.
5. the journal obtaining method of the cloud stocking system as described in claim 1 or 2, is characterized in that, further comprising the steps of:
Obtaining after corresponding cloud stores journal file, with the time interval of presetting, regularly described cloud is being stored in the browser that journal file is pushed to inquiring client terminal and show.
6. the journal obtaining method of cloud stocking system as claimed in claim 5, is characterized in that, further comprising the steps:
Detect whether receive the instruction that stops pushing daily record, if received, stop pushing cloud and store journal file.
7. a log acquisition system for cloud stocking system, is characterized in that, comprising:
Acquisition of information module, for obtaining IP address and the inquiring user name of accessed cloud storage server;
Enquiry module, for searching default link factory according to described IP address and inquiring user name, wherein, the described factory that links preserves the effective link of each inquiring user name to the IP address access of each cloud storage server by ConcurrentHashMap;
Log acquisition module, if have the effective link of described inquiring user name to the IP address access of described accessed cloud storage server for the described factory that links, obtain corresponding cloud by effective link of described ConcurrentHashMap from described accessed cloud storage server and store journal file; Otherwise, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server, obtain corresponding cloud and store journal file, and described effective link is kept in described ConcurrentHashMap.
8. the log acquisition system of cloud stocking system as claimed in claim 7, it is characterized in that, if there is multiple queries user name to access corresponding cloud storage server simultaneously, and in described link factory, preserve the effective link of inquiring user name to the IP address access of corresponding cloud storage server described in each; Described log acquisition module, for by corresponding effective link of described ConcurrentHashMap, connects corresponding cloud storage server concomitantly, obtains corresponding cloud and stores journal file.
9. the log acquisition system of the cloud stocking system as described in claim 7 or 8, it is characterized in that, if described, link the effective link that does not have described inquiring user name to access the IP address of described accessed cloud storage server in factory, described log acquisition module, according to the IP address of described inquiring user name and described accessed cloud storage server, connects described accessed cloud storage server by SSH agreement; At described accessed cloud storage server, described inquiring user name is carried out after the success of SSH protocol authentication, by the described factory that links, create the effective link of described inquiring user name to the IP address access of described accessed cloud storage server.
10. the log acquisition system of the cloud stocking system as described in claim 7 or 8, is characterized in that, described log acquisition module, according to the address of journal file, is obtained corresponding journal file stream; According to the key word of the inquiry of input, by the mode of keyword match, in described journal file stream, obtain corresponding journal file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410175643.XA CN103957252B (en) | 2014-04-28 | 2014-04-28 | The journal obtaining method and its system of cloud stocking system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410175643.XA CN103957252B (en) | 2014-04-28 | 2014-04-28 | The journal obtaining method and its system of cloud stocking system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103957252A true CN103957252A (en) | 2014-07-30 |
CN103957252B CN103957252B (en) | 2017-08-11 |
Family
ID=51334475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410175643.XA Active CN103957252B (en) | 2014-04-28 | 2014-04-28 | The journal obtaining method and its system of cloud stocking system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103957252B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105208081A (en) * | 2015-08-14 | 2015-12-30 | 深圳联友科技有限公司 | Method and system realizing network communication through subscription mode |
CN107395446A (en) * | 2017-09-18 | 2017-11-24 | 北京奇虎科技有限公司 | Daily record real time processing system |
CN108183966A (en) * | 2018-01-15 | 2018-06-19 | 江苏冠达通电子科技有限公司 | A kind of cloud stocking system |
CN111143791A (en) * | 2019-12-26 | 2020-05-12 | 福建天晴在线互动科技有限公司 | HashMap-based downloaded file tracing method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101997929A (en) * | 2010-11-29 | 2011-03-30 | 北京卓微天成科技咨询有限公司 | Data access method, device and system for cloud storage |
US20120166576A1 (en) * | 2010-08-12 | 2012-06-28 | Orsini Rick L | Systems and methods for secure remote storage |
CN102761521A (en) * | 2011-04-26 | 2012-10-31 | 上海格尔软件股份有限公司 | Cloud security storage and sharing service platform |
-
2014
- 2014-04-28 CN CN201410175643.XA patent/CN103957252B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120166576A1 (en) * | 2010-08-12 | 2012-06-28 | Orsini Rick L | Systems and methods for secure remote storage |
CN101997929A (en) * | 2010-11-29 | 2011-03-30 | 北京卓微天成科技咨询有限公司 | Data access method, device and system for cloud storage |
CN102761521A (en) * | 2011-04-26 | 2012-10-31 | 上海格尔软件股份有限公司 | Cloud security storage and sharing service platform |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105208081A (en) * | 2015-08-14 | 2015-12-30 | 深圳联友科技有限公司 | Method and system realizing network communication through subscription mode |
CN107395446A (en) * | 2017-09-18 | 2017-11-24 | 北京奇虎科技有限公司 | Daily record real time processing system |
CN107395446B (en) * | 2017-09-18 | 2021-07-23 | 北京奇虎科技有限公司 | Log real-time processing system |
CN108183966A (en) * | 2018-01-15 | 2018-06-19 | 江苏冠达通电子科技有限公司 | A kind of cloud stocking system |
CN111143791A (en) * | 2019-12-26 | 2020-05-12 | 福建天晴在线互动科技有限公司 | HashMap-based downloaded file tracing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103957252B (en) | 2017-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170185678A1 (en) | Crawler system and method | |
US8380855B2 (en) | HTTP header intermediary for enabling session-based dynamic site searches | |
EP3170091B1 (en) | Method and server of remote information query | |
CN105138592A (en) | Distributed framework-based log data storing and retrieving method | |
CN101335765B (en) | Storage service middleware based on mobile caching | |
CN101355587B (en) | Method and apparatus for obtaining URL information as well as method and system for implementing searching engine | |
US9843514B2 (en) | Packet processing method and background server | |
KR20160030381A (en) | Method, device and router for access webpage | |
CN105812351A (en) | Method and system for sharing session | |
CN104020961A (en) | Distributed data storage method, device and system | |
US11163499B2 (en) | Method, apparatus and system for controlling mounting of file system | |
CN109600385B (en) | Access control method and device | |
CN102035815A (en) | Data acquisition method, access node and data acquisition system | |
CN102082800A (en) | User request processing method and server | |
US20170171147A1 (en) | Method and electronic device for implementing domain name system | |
CN103957252A (en) | Method and system for obtaining log of cloud storage system | |
CN102790809A (en) | Domain name system resolution method, device and client | |
CN107135242B (en) | Mongodb cluster access method, device and system | |
CN111585786A (en) | Realization of secret-free building method of big data cluster | |
US9130938B2 (en) | Method, switch, and system for processing a message | |
CN104618388A (en) | Quick registration and login method and corresponding reset server and information server | |
CN107992340B (en) | System exit method for distributed cluster system and distributed cluster system | |
US20170064023A1 (en) | Page Push Method, Device, Server and System | |
CN105610917B (en) | Method and system for realizing synchronous data repair in system | |
US9648103B2 (en) | Non-uniform file access in a distributed file system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |