Specific embodiment
The present invention is described in detail combined with specific embodiments below.Following embodiment will be helpful to the technology of this fieldPersonnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this fieldFor personnel, without departing from the inventive concept of the premise, several changes and improvements can also be made.These belong to the present inventionProtection scope.
A kind of more equipment messages of the support provided according to the present invention distribute storage system, including device management module, messageMemory module, state index module;Device management module: the reception for managing the user information of user and receiving message for user is setIt is standby;Message storage module: message unique number is established to message has been issued, message has been issued described in distributed storage, will send outOutbound message is issued to state index module;State index module: reception has issued message, to having issued message establishing message ropeDraw, stores message index, receiving device is sent to for message has been issued according to message index.
Specifically, the state index module includes state index creation module, receives message control module;State indexCreation module: reception has issued message, according to the corresponding reception user of information query has been issued, according to the reception user queryCorresponding accepting device is that receiving device creates message index according to the message ownership place for receiving user;It receives message and controls mouldBlock: receiving the reception application that receiving device is sent, and will issue message according to message index and has been sent to receiving device, has receivedThe reception confirmation that equipment is sent.
Specifically, the device management module includes user management module, receiving device management module;User management mouldBlock: managing the user information of user, and the user information mainly includes that user message ownership place, user possess number of devices, disappearBreath transmitting-receiving rule;Receiving device management module: facility registration, the equipment note are carried out to newly-increased receiving device by registration interfaceVolume needs registering apparatus ownership place, and the equipment ownership place is for creating message index;Receiving device is carried out by nullifying interfaceIt nullifies.
Specifically, the reception message control module: the equipment ownership place of receiving device is verified, setting for receiving device is updatedStandby ownership place.
A kind of more equipment messages of the support provided according to the present invention distribute storage method, including equipment management step, messageStoring step, state index step;Equipment management step: the reception for managing the user information of user and receiving message for user is setIt is standby;Message storing step: message unique number is established to message has been issued, message has been issued described in distributed storage, will send outOutbound message is issued to state index step;State index step: reception has issued message, to having issued message establishing message ropeDraw, stores message index, receiving device is sent to for message has been issued according to message index.
Specifically, the state index step includes state index foundation step, receives message rate-determining steps;State indexFoundation step: reception has issued message, according to the corresponding reception user of information query has been issued, according to the reception user queryCorresponding accepting device is that receiving device creates message index according to the message ownership place for receiving user;Receive message control stepIt is rapid: to receive the reception application that receiving device is sent, message will have been issued according to message index and be sent to receiving device, receivedThe reception confirmation that equipment is sent, verifies the equipment ownership place of receiving device, updates the equipment ownership place of receiving device.
Specifically, the device management module includes user management module, receiving device management module;User management mouldBlock: managing the user information of user, and the user information mainly includes that user message ownership place, user possess number of devices, disappearBreath transmitting-receiving rule;Receiving device management module: facility registration, the equipment note are carried out to newly-increased receiving device by registration interfaceVolume needs registering apparatus ownership place, and the equipment ownership place is for creating message index;Receiving device is carried out by nullifying interfaceIt nullifies.
Specifically, the reception message control module: the equipment ownership place of receiving device is verified, setting for receiving device is updatedStandby ownership place.
Specifically, the message unique number is used for message retrieval, and the message retrieval is searched according to message unique numberMessage is issued.
A kind of computer readable storage medium for being stored with computer program provided according to the present invention, which is characterized in thatThe step of above method is realized when the computer program is executed by processor.
A kind of more equipment messages of the support provided according to the present invention distribute storage system, including device management module, messageMemory module, state index module;Device management module: the reception for managing the user information of user and receiving message for user is setIt is standby;Message storage module: message unique number is established to message has been issued, message has been issued described in distributed storage, will send outOutbound message is issued to state index module;Preferably, message storage module is used to send the distributed storage of message, sends out in userIt after sending message, is verified by sending, message storage module is established message unique number according to user ascription area, is then distributedFormula storage, while message is handed down to the foundation of state index module and receives user index for receiving, in addition, in retrieval messageWhen, it is retrieved according to message unique number;State index module: reception has issued message, to having issued message establishing messageIndex stores message index, is sent to receiving device for message has been issued according to message index.
Specifically, the state index module includes state index creation module, receives message control module;State indexCreation module: reception has issued message, according to the corresponding reception user of information query has been issued, according to the reception user queryCorresponding accepting device is that receiving device creates message index according to the message ownership place for receiving user;It receives message and controls mouldBlock: receiving the reception application that receiving device is sent, and will issue message according to message index and has been sent to receiving device, has receivedThe reception confirmation that equipment is sent.
Specifically, the device management module includes user management module, receiving device management module;User management mouldBlock: managing the user information of user, and the user information mainly includes that user message ownership place, user possess number of devices, disappearBreath transmitting-receiving rule;Receiving device management module: facility registration, the equipment note are carried out to newly-increased receiving device by registration interfaceVolume needs registering apparatus ownership place, and the equipment ownership place is for creating message index;Receiving device is carried out by nullifying interfaceIt nullifies.
Specifically, the reception message control module: the equipment ownership place of receiving device is verified, setting for receiving device is updatedStandby ownership place.
Preferably, state index creation module is received as needed after receiving the new information that message storage module issuesUser, then inquire user receiving equipment, establish each equipment message index respectively according to user ascription area, only needed in indexInclude device numbering, message numbering, Receive sequence number;Receiving control module can be after user equipment issues and receives message application, rootThere is sequence to send messages to equipment in batches according to Receive sequence number, after equipment confirmation receives, continues to send next batch until hairCompletion is sent, while can be also responsible for after the completion of message sink, discovering device ownership place determines with when ownership place is inconsistent when registeringUser equipment is migrated, at this time can more exchange device ownership place.Preferably, distribution is dynamically adjusted with receiving according to equipmentStorage, which refers to, can obtain equipment connection server institute possession when equipment receives message, if with previously received inconsistent Shi HuidongState adjustment, improves equipment receiving efficiency
It is provided by the invention that more equipment messages is supported to distribute storage system, it can be by supporting more equipment message distribution storagesThe step process of method is realized.Those skilled in the art can will support more equipment message distribution storage methods to be interpreted as the branchHold the preference of more equipment message distribution storage systems.
It is transmitted message after verifying as shown in Fig. 2, first verifying that message sending permission after user sends messageMessage unique number is created according to user ascription area, distributed storage is carried out to transmitted message, and issues index creation instruction.The present invention supports the storage of message distribution formula, and separately distributed formula establishes message received state index, reduces memory space, togetherShi Tigao equipment message receiving efficiency.
One skilled in the art will appreciate that in addition to realizing system provided by the invention in a manner of pure computer readable program codeIt, completely can be by the way that method and step be carried out programming in logic come so that provided by the invention other than system, device and its modulesSystem, device and its modules are declined with logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertionThe form of controller etc. realizes identical program.So system provided by the invention, device and its modules may be considered thatIt is a kind of hardware component, and the knot that the module for realizing various programs for including in it can also be considered as in hardware componentStructure;It can also will be considered as realizing the module of various functions either the software program of implementation method can be Hardware Subdivision againStructure in part.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited to above-mentionedParticular implementation, those skilled in the art can make a variety of changes or modify within the scope of the claims, this not shadowRing substantive content of the invention.In the absence of conflict, the feature in embodiments herein and embodiment can any phaseMutually combination.