CN109284265A - A kind of date storage method and system - Google Patents

A kind of date storage method and system Download PDF

Info

Publication number
CN109284265A
CN109284265A CN201811033305.7A CN201811033305A CN109284265A CN 109284265 A CN109284265 A CN 109284265A CN 201811033305 A CN201811033305 A CN 201811033305A CN 109284265 A CN109284265 A CN 109284265A
Authority
CN
China
Prior art keywords
data
stored
storage
server
store path
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
CN201811033305.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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201811033305.7A priority Critical patent/CN109284265A/en
Publication of CN109284265A publication Critical patent/CN109284265A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a kind of date storage method and systems, applied in view networking, it include client, storage server and database server depending on networking, which comprises client obtains data to be stored and be sent to storage server when detecting data storage events;Storage server receives data to be stored and stores data to be stored;It obtains the store path of data to be stored and is sent to database server;Database server storage store path is simultaneously sent to client.In the embodiment of the present invention, what is stored in database is the store path of data to be stored, data to be stored is stored in storage server, it can be to avoid appearance storage is wrong when storing the data to be stored such as picture, paragraph using informix database, storage is not consistent with reality or the abnormal problems such as messy code, so that depending on can store the big text data such as picture, paragraph in networking, and stored data in storage server can be read by the store path stored in database.

Description

A kind of date storage method and system
Technical field
The present invention relates to view networking technology fields, more particularly to a kind of date storage method and system.
Background technique
It is a real-time network depending on networking, can be realized the whole network HD video real-time Transmission, numerous Internet applications are pushed away To HD video, realize that high definition is face-to-face.
In view networking, data include the multiple types such as text, picture and video, in order to meet the storage demand of user, Depending on networking in be provided with informix database, the informix database for store CLOB (character blob, Character Large Object) field type data, user can store big text data to informix database.
However, more application scenarios need to save picture, the various types data such as paragraph, video in view networking, and When informix database stores CLOB field type data, when the data such as picture, paragraph, video are converted to CLOB field type Appearance storage mistake, storage are not consistent with reality or the exceptions such as messy code, can only store number using the field of Lvarchar type According to, and the memory length of the field of Lvarchar type is limited, and it is abnormal to also result in data storage.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind A kind of date storage method to solve the above problems and a kind of data-storage system.
According to one aspect of the present invention, a kind of date storage method is provided, is applied in view networking, the view networking Including client, storage server and database server, which comprises
The client obtains data to be stored when detecting data storage events;
The data to be stored is sent to the storage server by the client;
The storage server receives the data to be stored and stores the data to be stored;
The storage server obtains the store path of the data to be stored;
The store path is sent to the database server by the storage server;
The database server stores the store path and the store path is sent to the client.
Optionally, the method also includes:
The client shows the store path.
Optionally, the storage event be screenshot event, the client when detecting data storage events, obtain to Storing data, comprising:
When detecting screenshot event, the screenshot data that the screenshot event generates are obtained;
The screenshot data are determined as data to be stored.
Optionally, the data to be stored is sent to the storage server by the client, comprising:
Obtain the load information of multiple storage servers;
Target storage server is determined according to the load information;
The data to be stored is sent to the target storage server.
Optionally, the storage server receives the data to be stored and stores the data to be stored, comprising:
The data to be stored received according to the first default store path storage.
Optionally, the storage server receives the data to be stored and stores the data to be stored, comprising:
When receiving edited data to be stored, the editor that is received according to the second default store path storage Data to be stored afterwards.
According to another aspect of the present invention, a kind of data-storage system is provided, is applied in view networking, the system packet Include client, storage server and database server:
The client includes:
Data to be stored obtains module, when for detecting data storage events, obtains data to be stored;
Data to be stored sending module, for the data to be stored to be sent to the storage server;
The storage server includes:
Data to be stored memory module, for receiving the data to be stored and storing the data to be stored;
Store path obtains module, for obtaining the store path of the data to be stored;
Store path sending module, for the store path to be sent to the database server;
The database server includes:
Store path memory module, for storing the store path and the store path being sent to the client End.
Optionally, the client further include:
Display module, for showing the store path.
Optionally, the storage event is screenshot event, and the data to be stored obtains module and includes:
Screenshot data acquisition submodule, the screenshot generated for when detecting screenshot event, obtaining the screenshot event Data;
Data to be stored determines submodule, for the screenshot data to be determined as data to be stored.
Optionally, the data to be stored sending module includes:
Load information acquisition submodule, for obtaining the load information of multiple storage servers;
Target storage server determines submodule, for determining target storage server according to the load information;
Data to be stored sending submodule, for the data to be stored to be sent to the target storage server.
Optionally, the data to be stored memory module includes:
First data to be stored sub-module stored, for described in being received according to the first default store path storage wait deposit Store up data.
Optionally, the data to be stored memory module includes:
Second data to be stored sub-module stored, it is pre- according to second for when receiving edited data to be stored If the edited data to be stored that store path storage receives.
The embodiment of the present invention includes following advantages:
The date storage method of the embodiment of the present invention is applied in view networking, and the view networking includes client, storage clothes Business device and database server when the client detects data storage events, obtain data to be stored and are simultaneously sent to storage Server;Storage server receives data to be stored and stores data to be stored;Storage server obtains depositing for data to be stored Storage is sent to database server behind path;Store path is simultaneously sent to client by database server storage store path. In the embodiment of the present invention, what is stored in database is the store path of data to be stored, and data to be stored is stored in storage service In device, mistake can be stored to avoid appearance when directlying adopt the data to be stored such as informix database storage picture, paragraph, deposited Storage is not consistent with reality or the abnormal problems such as messy code, so that depending on can store the big text data such as picture, paragraph in networking, And stored data in storage server can be read by the store path stored in database.
The date storage method of the embodiment of the present invention obtains the screenshot that screenshot event generates when detecting screenshot event Data;Screenshot data are determined as data to be stored and are sent to storage server;Storage server stores data to be stored, and Store path is sent to database server;Store path is simultaneously sent to client by database server storage store path End.In the embodiment of the present invention, the screenshot data that screenshot event generates are stored in storage server, and what is stored in database is to cut The store path of diagram data can store mistake to avoid appearance when directlying adopt informix database storage screenshot data, deposit Storage is not consistent with reality or the abnormal problems such as messy code, meets the conference management platform preservation screenshot for being currently based on view networking Function.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of one embodiment of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of one embodiment of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of one embodiment of the invention;
Fig. 4 is that a kind of Ethernet association of one embodiment of the invention turns the hardware structural diagram of gateway;
Fig. 5 is a kind of step flow chart of date storage method of one embodiment of the invention;
Fig. 6 is a kind of step flow chart of date storage method of another embodiment of the present invention;
Fig. 7 is a kind of structural block diagram of data-storage system of one embodiment of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 accessing network data package definition
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Referring to Fig. 5, a kind of step flow chart of date storage method of one embodiment of the invention is shown, the present invention is real A kind of date storage method of example is applied, is applied in view networking, the view networking includes client, storage server and database Server, which comprises
Step 501, when the client detects data storage events, data to be stored is obtained.
In the embodiment of the present invention, client can be Web client, and user can install Web visitor in view networked terminals Family end browses the webpage in view networking by Web client.Store button can be set in the Web client, upper user needs When saving the content on current page, storage operation can be triggered by store button, obtains corresponding data to be stored.Example Such as, user makes comments in discussion bar, and after having edited comment, clicking publication, then client detects data storage events, will use The comment at family is determined as data to be stored, and data to be stored can be text data, image data or video data etc..Storage Event can also be the screenshot event of user, trigger the time etc. of the save button in Web client.
Step 502, the data to be stored is sent to the storage server by the client.
Storage server can be the Resource Server depending on being used to store various resource datas in networking, such as can be and deposit It stores up the image storage server of image, store video storage server etc. of video data, naturally it is also possible to be storage figure simultaneously Picture and video deposit storage server.Storage server can be deployed in a distributed manner in view networking.Client can will be wait deposit Storage data are sent to the storage server being attached thereto, or will be sent in view networking to storage server and specify storage clothes Business device.
As shown in Figure 1, metropolitan area server is the node for playing centralized control functions in Metropolitan Area Network (MAN), can control node switch and Node server, storage server can be a storage terminal, and storage server can be taken by access switch and node Business device connection, perhaps being connect by node switch with metropolitan area server then can by metropolitan area server or node server Think that Web client distributes storage server, and determines the view connected network communication link from client to storage server, client End can by depending in connected network communication link associate uplink equipment and port be addressed to storage server, and by data to be stored It is sent to storage server.
Step 503, the storage server receives the data to be stored and stores the data to be stored.
Storage server can receive the data to be stored of client uplink by the communication link connecting with client, to Storing data can be text data, image data or video data etc..Storage server can be according to preset storage plan The data to be stored received is slightly stored, such as saves data to be stored according to pre-assigned store path.
Step 504, the storage server obtains the store path of the data to be stored.
In the embodiment of the present invention, store path may include storage server depending in networking address and number to be stored According to the file path in storage server, by storage server depending on the address in networking can be found in view is networked to The storage server can search stored data by file path in the storage server.
Step 505, the store path is sent to the database server by the storage server.
After storage server obtains store path, store path can be sent to the database server being associated, Informix database has can be set in the database server, can store a large amount of CLOB word by informix database Segment type data.
Step 506, the database server stores the store path and the store path is sent to the visitor Family end.
After database server stores store path, such as store path is converted into CLOB field type data and is stored Afterwards, store path can be sent to client, the storage result of data to be stored can be known by client user.
In embodiments of the present invention, it when client detects data storage events, obtains data to be stored and is sent to and deposit Store up server;Storage server receives data to be stored and stores data to be stored;Storage server obtains data to be stored Database server is sent to after store path;Store path is simultaneously sent to client by database server storage store path End.In the embodiment of the present invention, what is stored in database is the store path of data to be stored, and data to be stored is stored in storage clothes Be engaged in device, can to avoid directly adopt when informix database storage picture, the data to be stored such as paragraph occur storage mistake, Storage is not consistent with reality or the abnormal problems such as messy code, so that depending on can store the big textual data such as picture, paragraph in networking According to.
Referring to Fig. 2, a kind of step flow chart of date storage method of one embodiment of the invention is shown, the present invention is real A kind of date storage method of example is applied, is applied in view networking, the view networking includes client, storage server and database Server, which comprises
Step 601, when detecting screenshot event, the screenshot data that the screenshot event generates are obtained.
In the embodiment of the present invention, client can be set a key and save screenshot button, for example, in videoconferencing platform In, setting saves screenshot button.After user logs in view networking account number, data in available videoconferencing platform, when needing When recording current and subsequent data and comparing, current conferencing data can be cut by saving screenshot button Figure.
Step 602, the screenshot data are determined as data to be stored.
After user generates screenshot data by the triggering of screenshot event, which is data to be stored, should be wait deposit Storage data can be saved to the terminal where client, i.e., first carry out local preservation.
Step 603, the load information of multiple storage servers is obtained.
In the embodiment of the present invention, client can be connect by the heartbeat with storage server obtains the negative of storage server The node server or metropolitan area server in information carrying breath, or view networking with centralized management permission obtain each storage service The load information of device, for example, metropolitan area server or node server obtain the load information for the storage server being attached thereto. Load information can be the information such as memory space, amount of access, the processor service condition of storage server.
Step 604, target storage server is determined according to the load information.
Client or the load depending on having the server of centralized management permission to obtain multiple storage servers in networking are believed After breath, target storage server can be determined according to load information, be deposited for example, determining and loading lower storage server for target Store up server.
Step 605, the data to be stored is sent to the target storage server.
In the embodiment of the present invention, after client determines target storage server, data to be stored can be sent to target Storage server can be by target after depending on having the server of centralized management permission to determine destination server in networking The information of server is sent to client, and data to be stored can be sent to target according to the information of destination server by client Storage server, for example, destination server information may include destination server view networking address, client can pass through Destination server depending on networking address generate connection request after be sent to node server, deposited by node server linking objective Server is stored up, generates data transfer request after successful connection, the transmission of data is carried out after verifying by target storage server.
Step 606, the data to be stored received according to the first default store path storage.
In the embodiment of the present invention, storage server is provided with storage strategy, for the data to be stored distribution each received Store path, the preset store path of the storage server can be the file storing path in storage server, such as file Root, subdirectory of preservation etc..Storage server can store data to be stored according to preset store path.
In practical applications, when storage server receives edited data to be stored, according to the second default storage road The edited data to be stored that diameter storage receives.Specifically, sending data to be stored from client and storing After storage server, data can be edited in client user, for example, user issues one and comments in discussion bar After information, which is saved to storage server, when user is after client edits comment information, the comment Information is also saved to storage server, and storage server receives edited comment information, then default deposits road according to first The second different default store path of diameter stores edited comment information, and the comment information before avoiding is capped, completely Ground remains the historical record of comment.
Step 607, the storage server obtains the store path of the data to be stored.
In the embodiment of the present invention, store path may include storage server depending in networking address and number to be stored According to the file path in storage server, for example, store path can be address of the storage server in view networking and the The combination of one default store path.
Step 608, the store path is sent to the database server by the storage server.
After storage server obtains store path, store path can be sent to the database server being associated, Informix database has can be set in the database server, can store a large amount of data by informix database.
Step 609, the database server stores the store path and the store path is sent to the visitor Family end.
After database server stores store path, store path can be sent to client, pass through client user It can know the storage result of data to be stored.
Step 610, the client shows the store path.
After client receives store path, storage result can be shown in the form of a list, and by list, user can be with Arbitrary store path is selected, instruction client reads the data stored in storage server according to store path.
In embodiments of the present invention, it when client detects data storage events, obtains data to be stored and is sent to and deposit Store up server;Storage server receives data to be stored and stores data to be stored;Storage server obtains data to be stored Database server is sent to after store path;Store path is simultaneously sent to client by database server storage store path End.In the embodiment of the present invention, what is stored in database is the store path of data to be stored, and data to be stored is stored in storage clothes Be engaged in device, can to avoid directly adopt when informix database storage picture, the data to be stored such as paragraph occur storage mistake, Storage is not consistent with reality or the abnormal problems such as messy code, so that depending on can store the big textual data such as picture, paragraph in networking According to.
In the embodiment of the present invention, target storage server, Ke Yiyou can be determined according to the load information of storage server Effect looks horizontally storing and accessing for networking storage resource.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 3, a kind of structural block diagram of data-storage system of one embodiment of the invention, the system packet are shown Include client 100, storage server 200 and database server 300:
The client 100 includes:
Data to be stored obtains module 1001, when for detecting data storage events, obtains data to be stored;
Data to be stored sending module 1002, for the data to be stored to be sent to the storage server;
The storage server 200 includes:
Data to be stored memory module 2001, for receiving the data to be stored and storing the data to be stored;
Store path obtains module 2002, for obtaining the store path of the data to be stored;
Store path sending module 2003, for the store path to be sent to the database server;
The database server 300 includes:
Store path memory module 3001, for storing the store path and the store path being sent to the visitor Family end.
Optionally, the client 100 further include:
Display module, for showing the store path.
Optionally, the storage event is screenshot event, and the data to be stored obtains module 1001 and includes:
Screenshot data acquisition submodule, the screenshot generated for when detecting screenshot event, obtaining the screenshot event Data;
Data to be stored determines submodule, for the screenshot data to be determined as data to be stored.
Optionally, the data to be stored sending module 1002 includes:
Load information acquisition submodule, for obtaining the load information of multiple storage servers;
Target storage server determines submodule, for determining target storage server according to the load information;
Data to be stored sending submodule, for the data to be stored to be sent to the target storage server.
Optionally, the data to be stored memory module 2001 includes:
First data to be stored sub-module stored, for described in being received according to the first default store path storage wait deposit Store up data.
Optionally, the data to be stored memory module 2002 includes:
Second data to be stored sub-module stored, it is pre- according to second for when receiving edited data to be stored If the edited data to be stored that store path storage receives.
For system embodiments, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of date storage method provided by the present invention and a kind of data-storage system, detailed Jie has been carried out It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (12)

1. a kind of date storage method, which is characterized in that be applied in view networking, the view networking includes client, storage clothes Business device and database server, which comprises
The client obtains data to be stored when detecting data storage events;
The data to be stored is sent to the storage server by the client;
The storage server receives the data to be stored and stores the data to be stored;
The storage server obtains the store path of the data to be stored;
The store path is sent to the database server by the storage server;
The database server stores the store path and the store path is sent to the client.
2. the method as described in claim 1, which is characterized in that the method also includes:
The client shows the store path.
3. the method as described in claim 1, which is characterized in that the storage event is screenshot event, and the client is being examined When measuring data storage events, data to be stored is obtained, comprising:
When detecting screenshot event, the screenshot data that the screenshot event generates are obtained;
The screenshot data are determined as data to be stored.
4. the method as described in claim 1, which is characterized in that the data to be stored is sent to described deposit by the client Store up server, comprising:
Obtain the load information of multiple storage servers;
Target storage server is determined according to the load information;
The data to be stored is sent to the target storage server.
5. method as claimed in claim 4, which is characterized in that the storage server receives the data to be stored and stores The data to be stored, comprising:
The data to be stored received according to the first default store path storage.
6. method as claimed in claim 5, which is characterized in that the storage server receives the data to be stored and stores The data to be stored, comprising:
When receiving edited data to be stored, received according to the second default store path storage described edited Data to be stored.
7. a kind of data-storage system, which is characterized in that be applied in view networking, the system comprises clients, storage service Device and database server:
The client includes:
Data to be stored obtains module, when for detecting data storage events, obtains data to be stored;
Data to be stored sending module, for the data to be stored to be sent to the storage server;
The storage server includes:
Data to be stored memory module, for receiving the data to be stored and storing the data to be stored;
Store path obtains module, for obtaining the store path of the data to be stored;
Store path sending module, for the store path to be sent to the database server;
The database server includes:
Store path memory module, for storing the store path and the store path being sent to the client.
8. system as claimed in claim 7, which is characterized in that the client further include:
Display module, for showing the store path.
9. system as claimed in claim 7, which is characterized in that the storage event is screenshot event, the data to be stored Obtaining module includes:
Screenshot data acquisition submodule, the screenshot data generated for when detecting screenshot event, obtaining the screenshot event;
Data to be stored determines submodule, for the screenshot data to be determined as data to be stored.
10. system as claimed in claim 7, which is characterized in that the data to be stored sending module includes:
Load information acquisition submodule, for obtaining the load information of multiple storage servers;
Target storage server determines submodule, for determining target storage server according to the load information;
Data to be stored sending submodule, for the data to be stored to be sent to the target storage server.
11. system as claimed in claim 10, which is characterized in that the data to be stored memory module includes:
First data to be stored sub-module stored, for number to be stored described in being received according to the first default store path storage According to.
12. system as claimed in claim 11, which is characterized in that the data to be stored memory module includes:
Second data to be stored sub-module stored, for presetting and depositing according to second when receiving edited data to be stored Storage path stores the edited data to be stored received.
CN201811033305.7A 2018-09-05 2018-09-05 A kind of date storage method and system Pending CN109284265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811033305.7A CN109284265A (en) 2018-09-05 2018-09-05 A kind of date storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811033305.7A CN109284265A (en) 2018-09-05 2018-09-05 A kind of date storage method and system

Publications (1)

Publication Number Publication Date
CN109284265A true CN109284265A (en) 2019-01-29

Family

ID=65184513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811033305.7A Pending CN109284265A (en) 2018-09-05 2018-09-05 A kind of date storage method and system

Country Status (1)

Country Link
CN (1) CN109284265A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162250A (en) * 2019-04-30 2019-08-23 广州微算互联信息技术有限公司 A kind of screenshot method, system and storage medium
CN110224988A (en) * 2019-05-10 2019-09-10 视联动力信息技术股份有限公司 A kind of processing method of image data, system and device and storage medium
CN110489484A (en) * 2019-07-11 2019-11-22 视联动力信息技术股份有限公司 Method of data synchronization, device, readable storage medium storing program for executing and electronic equipment
CN112035579A (en) * 2019-06-03 2020-12-04 杭州海康威视数字技术股份有限公司 Graph management method, data storage method, data query method, device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293527A (en) * 2016-08-05 2017-01-04 成都佳荣科技有限公司 Data-storage system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293527A (en) * 2016-08-05 2017-01-04 成都佳荣科技有限公司 Data-storage system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162250A (en) * 2019-04-30 2019-08-23 广州微算互联信息技术有限公司 A kind of screenshot method, system and storage medium
CN110224988A (en) * 2019-05-10 2019-09-10 视联动力信息技术股份有限公司 A kind of processing method of image data, system and device and storage medium
CN112035579A (en) * 2019-06-03 2020-12-04 杭州海康威视数字技术股份有限公司 Graph management method, data storage method, data query method, device and storage medium
CN112035579B (en) * 2019-06-03 2024-02-20 杭州海康威视数字技术股份有限公司 Graph management, data storage and data query methods, devices and storage medium
CN110489484A (en) * 2019-07-11 2019-11-22 视联动力信息技术股份有限公司 Method of data synchronization, device, readable storage medium storing program for executing and electronic equipment

Similar Documents

Publication Publication Date Title
CN108023910B (en) A kind of terminal monitoring method and system based on view networking
CN109617956A (en) A kind of data processing method and device
CN110049274A (en) Video conference recording system
CN109547728A (en) A kind of method and system of recorded broadcast source membership and recorded broadcast of session
CN109284265A (en) A kind of date storage method and system
CN109889420A (en) Method and device for business processing
CN109889779A (en) A kind for the treatment of method and apparatus of packet out-ordering
CN109218093A (en) A kind of method and system obtaining alarm
CN109743550A (en) A kind of method and apparatus of monitoring data tune stream
CN108234178A (en) A kind of method and apparatus for being managed collectively menu file
CN108307212A (en) A kind of file order method and device
CN110048903A (en) A kind of association turns gateway status monitoring method and device
CN108206927A (en) A kind of meeting synchronous method and device
CN110139124A (en) A kind for the treatment of method and apparatus that monitoring is recorded
CN109151061A (en) A kind of date storage method and device
CN109151519A (en) A kind of configuration distribution method and system based on view networking
CN110505107A (en) A kind of monitoring method and view networking management system
CN110287248A (en) A kind of data read-write method and system
CN110134892A (en) A kind of loading method and system monitoring the Resources list
CN110035249A (en) A kind of video gets method and apparatus ready
CN110022500A (en) A kind of loss treating method and device
CN110035307A (en) A kind of fragment storage method and device
CN109698859A (en) A kind of date storage method and device based on view networking
CN110049069A (en) A kind of data capture method and device
CN108965219A (en) A kind of data processing method and device based on view networking

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190129