CN102868594A - Method and device for message processing - Google Patents

Method and device for message processing Download PDF

Info

Publication number
CN102868594A
CN102868594A CN2012103377528A CN201210337752A CN102868594A CN 102868594 A CN102868594 A CN 102868594A CN 2012103377528 A CN2012103377528 A CN 2012103377528A CN 201210337752 A CN201210337752 A CN 201210337752A CN 102868594 A CN102868594 A CN 102868594A
Authority
CN
China
Prior art keywords
message
client
management unit
unit
username
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103377528A
Other languages
Chinese (zh)
Other versions
CN102868594B (en
Inventor
崔赢
颜秉珩
张俊
张现忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201210337752.8A priority Critical patent/CN102868594B/en
Publication of CN102868594A publication Critical patent/CN102868594A/en
Application granted granted Critical
Publication of CN102868594B publication Critical patent/CN102868594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method and a device for message processing. The device comprises an authority management unit, a message routing unit, a message management unit and a message transmitting and receiving unit. When one process needs to be implemented by a first client side, an application is sent to the message processing device, whether the first client side has the authority of access to a domain established by the authority management unit is judged by the authority management unit according to a username and a password input by the first client side, and if the first client side has the authority of access to the domain established by the authority management unit, a message routing unit and a message management unit required for the process are selected from message routing units and message management units specified by the domain with a process corresponding to the username and the password input by the client side, a corresponding relationship to the process is established, and the selected message routing unit and the selected message management unit are bound by set binding rules. The method and the device have the advantages of good universality and portability.

Description

A kind of message treatment method and device
Technical field
The present invention relates to field of Internet communication, be specifically related to a kind of message treatment method and device.
Background technology
Development along with society, every field is more and more higher to informationalized requirement, is mainly reflected in the data of processing and professional in continuous increase, therefore in the past the computing of unit device, the demand that storage is difficult to satisfy people, so Distributed Calculation and parallel computation have occurred, and developed into network calculations.The combination of Intel Virtualization Technology and grid has appearred in full-fledged along with Intel Virtualization Technology, this in conjunction with under, be pregnant with cloud computing.
Message communication in the cloud computing environment between each physical node becomes an importance of cloud computing technology, because the message communication between each physical node is much operations in the cloud computing environment, such as the basis of monitor service, system management, scheduling, load balancing, the high operation such as available.
Be flooded with resource isomery, dynamic, complicated under the various distributed environments in the present cloud computing environment, how guarantee that the reliable communicating between these resources just becomes the key issue of being badly in need of solution under the current cloud computing environment.
Addressing the above problem at present mode commonly used is, under cloud computing environment, adopt independent communication mechanism for certain two or more resource, and these several resources are in that tightly coupled state, network failure may cause information drop-out, communication mechanism is stronger to the dependence of resource, and do not have the general reliable message communication mechanism of a kind of independently resource.For the comparatively famous cloud computing company of industry have oneself independently message system to satisfy the requirement of communication mechanism in self cloud computing environment, but mostly be only applicable to oneself cloud computing platform product, function is comparatively single simultaneously, do not have versatility, be difficult to be transplanted in other the cloud computing platform.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of versatility and good message treatment method and the device of transplantability.
In order to address the above problem, the embodiment of the invention provides a kind of message processing apparatus, comprising: rights management unit, message routing unit, message management unit and message sending and receiving unit, wherein:
Described rights management unit is arranged to: set up a plurality of territories according to different professional or services; Set different processes for different territories, and be the different different username and passwords of course allocation; Respectively specifying message routing unit and the message management unit of a plurality of correspondences for different territories, can only work in the territory of correspondence in message routing unit and message management unit; Also when client solicitation message routing unit and message management unit, judge according to the username and password of this client input whether this client has the authority in the territory that access sets up, have then in message routing unit and message management unit for the territory appointment at the corresponding process of the username and password place of this client input, select the needed message routing unit of this process and message management unit and this process to set up corresponding relation, and selected message routing unit and message management unit are bound by the binding rule of setting; Also notify selected message routing unit to receive the message that this client is sent; Also notify client from selected message management unit, to obtain message by described message sending and receiving unit;
Described message sending and receiving unit is arranged to: receive the message that client is sent;
Described message routing unit is arranged to: receive the message that described message sending and receiving unit receives, and this message is sent to the message management unit of binding with this message routing unit according to described binding rule;
Described message management unit is arranged to: store the message that described message routing unit is sent; Also send the message of storing to client by described message sending and receiving unit.
Alternatively, described rights management unit is arranged to notify in such a way selected message routing unit to receive the message that this client is sent:
Judge that according to the username and password of client input whether this client has the authority of the selected message routing unit of access, has and then notifies this message routing unit to receive the message that this client is sent;
Described rights management unit is arranged to notify in such a way client to obtain message by described message sending and receiving unit from selected message management unit:
Username and password according to the client input judges whether this client has the authority of message in the receipt message administrative unit, has and then notifies this client to obtain this message by described message sending and receiving unit from this message management unit.
Alternatively, the binding of described message routing unit and message management unit is multi-to-multi.
Alternatively, described rights management unit is arranged in such a way to judge according to the username and password of this client input whether this client has the authority in the territory that the described rights management of access unit sets up:
Judging the territory at the corresponding process of username and password place of this client input whether in the territory that described rights management unit is set up, is that then this client has the authority in the territory that the described rights management of access unit sets up; Otherwise this client is not accessed the authority in the territory of setting up described rights management unit.
Alternatively, described rights management unit is arranged to judge according to the username and password of client input whether this client has the authority of the described message routing unit of access in such a way:
The whether corresponding process of described message routing unit of the corresponding process of this username and password is judged according to the username and password of this client input in described rights management unit, is that then this client has the authority of this message routing unit of access; Otherwise this client is not accessed the authority of this message routing unit.
Alternatively, described rights management unit is arranged to judge according to the username and password of client input whether this client has the authority that receives message in the described message management unit in such a way:
The whether corresponding process in described message management unit of the corresponding process of this username and password is judged according to the username and password of this client input in described rights management unit, is that then this client has the authority that receives message in this message management unit; Otherwise this client does not receive the authority of message in this message management unit.
Alternatively, described message management unit comprises message storage module, message routing module and scheduling message module, wherein:
Described message storage module is arranged to: store the message that described message routing unit is sent with the data structure of formation in internal memory;
Described message routing module is arranged to: send the message of storing to client by described message sending and receiving unit,, by the correct client that sends to its message of storing is deleted in message; If message is by the correct client that sends to, then continue the corresponding message of storage until receive the feedback of client or confirm and after this client death message is sent to other client.
Described scheduling message module is arranged to: control the message count that the same time sends to client by the pre-taken amount of configuration messages.
Alternatively, described message management unit also comprises the message persistence module, and it is arranged to: by monitoring the variation of message in the described message storage module, the message that changes is written in the disk.
Alternatively, any during described message routing unit also is arranged in such a way or appoint and several this message to be sent to message management unit with this message routing unit binding according to described binding rule:
According to the mode of direct-type message route, the mode of broadcast message route or the mode of subject-type message route.
Alternatively, this device also comprises lock unit, wherein:
Described lock unit is arranged to: will carry out the needed information of described process and all be synchronized at least one backup client;
Wherein, the needed information of executive process comprises: the message of the corresponding username and password of process, selected message routing unit and message management unit, the rule of the binding between the two, all sending and receivings.
Alternatively, this device also comprises the binding processing unit, and it is arranged to:
After described process finishes, remove the binding between described message routing unit and the message management unit; Perhaps, answer the new application of client, revise the binding between described message routing unit and the message management unit, to carry out new process.
The embodiment of the invention also provides a kind of message treatment method, and the method comprises the steps: based on aforesaid message processing apparatus
When the first client need to be carried out a certain process, send application to described message processing apparatus, rights management unit in the described message processing apparatus judges according to the username and password of described the first client input whether described the first client has the authority of accessing the territory of setting up described rights management unit, have then in message routing unit and message management unit for the territory appointment at the corresponding process of the username and password place of this client input, select the needed message routing unit of this process and message management unit and this process to set up corresponding relation, and selected message routing unit and message management unit are bound by the binding rule of setting;
After message sending and receiving unit in the described message processing apparatus receives the message of sending from the second client, described rights management unit notifies selected message routing unit to receive the message that described the second client is sent, and this message is sent to the message management unit of binding with this message routing unit according to described binding rule;
Described rights management unit notifies described the first client to obtain this message by described message sending and receiving unit from selected message management unit.
Alternatively, the step that described rights management unit notifies selected message routing unit to receive the message that described the second client sends comprises: described rights management unit judges according to the username and password of described the second client input whether described the second client has the authority of the selected message routing unit of access, have then that this message routing unit receives the message that described the second client is sent, and this message is sent to message management unit with this message routing unit binding according to described binding rule;
Described rights management unit notifies described the first client to comprise by described message sending and receiving unit obtains this message from selected message management unit step: described rights management unit judges according to the username and password of described the first client input whether described the first client has the authority that receives message in the selected message management unit, and have then described the first client obtains this message by described message sending and receiving unit from this message management unit
Alternatively, the rights management unit in the described message processing apparatus judges according to the username and password of described the first client input whether described the first client has the step of the authority of accessing the territory of setting up described rights management unit to comprise:
Whether the territory at the corresponding process of the username and password place of described the first client of described rights management unit judges input is that then described the first client has the authority in the territory that the access rights administrative unit sets up in the territory that the rights management unit is set up; Otherwise described the first client does not have the authority in the territory that the access rights administrative unit sets up.
Alternatively, described rights management unit judges according to the username and password of described the second client input whether described the second client has the step of the authority of the selected message routing unit of access to comprise:
The whether corresponding process of selected message routing unit of the corresponding process of this username and password is judged according to the username and password of described the second client input in described rights management unit, is that then described the second client has the authority of this message routing unit of access; Otherwise described the second client is not accessed the authority of this message routing unit.
Alternatively, described rights management unit judges according to the username and password of described the first client input whether described the first client has the step that receives the authority of message in the selected message management unit to comprise:
The whether corresponding process in selected message management unit of the corresponding process of this username and password is judged according to the username and password of described the first client input in described rights management unit, is that then described the first client has the authority that receives message in this message management unit; Otherwise described the first client does not receive the authority of message in this message management unit.
Alternatively, the method also comprises:
Lock unit in the described message processing apparatus will be carried out the needed information of this process and all be synchronized at least one backup client, when a certain client of carrying out described process breaks down, be taken over job by backup client;
Wherein, the needed information of executive process comprises: the message of the corresponding username and password of process, selected message routing unit and message management unit, the rule of the binding between the two, all sending and receivings.
The beneficial effect of the embodiment of the invention is:
The message treatment method of the embodiment of the invention and device, realize isolation professional or service, avoid phase mutual interference and impact between professional or the service, and guarantee the safety of data, therefore can carry out independently Message Processing, low with the coupling of communication object, versatility and transplantability are good, when being transplanted to other cloud computing environment, do not need to develop once again, reduced development cost; And versatility and portable good can well be transplanted in the new cloud computing environment.
The embodiment of the invention also by message synchronization and redundancy between multi-client, even reached the availability that the chance failure of individual customer end also can not affect the overall message processing unit, has realized the high available and load balancing of message system.
Description of drawings
Fig. 1 is the message processing apparatus schematic diagram of the embodiment of the invention;
Fig. 2 is the message treatment method flow chart of the embodiment of the invention;
Fig. 3 is the Message Processing example schematic of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
Need to prove, if do not conflict, each feature among the embodiment of the invention and the embodiment can mutually combine, all within protection scope of the present invention.In addition, although there is shown logical order in flow process, in some cases, can carry out step shown or that describe with the order that is different from herein.
A kind of message processing apparatus of the embodiment of the invention as shown in Figure 1, comprising: rights management unit 101, message routing unit 102, message management unit 103 and message sending and receiving unit 104, wherein:
Described rights management unit 101 is arranged to: set up a plurality of territories according to different professional or services; Set different processes for different territories, and be the different different username and passwords of course allocation; Respectively specifying message routing unit 102 and the message management unit 103 of a plurality of correspondences for different territories, can only work in the territory of correspondence in message routing unit 102 and message management unit 103; Also need to carry out a certain process in client, during to described rights management unit 101 solicitation message routing units 102 and message management unit 103, judge according to the username and password of this client input whether this client has the authority in the territory that access rights administrative unit 101 sets up, have then in message routing unit 102 and message management unit 103 for the territory appointment at the corresponding process of the username and password place of this client input, select the needed message routing unit 102 of this process and message management unit 103 to set up corresponding relation with this process, and selected message routing unit 102 and message management unit 103 bound the i.e. binding of newly-built message routing unit 102 and message management unit 103 by the binding rule of setting; Also notify selected message routing unit 102 to receive the message that this client is sent; Also notify client from this message management unit 103, to obtain this message by selected message sending and receiving unit 104.
On after addressing in all description, binding rule all is that the user sets as required, the regular setting of binding belongs to prior art, does not repeat them here.
Described message sending and receiving unit 104 is arranged to: receive the message that client is sent;
Described message routing unit 102 is arranged to: receive the message that described message sending and receiving unit 104 receives, and this message is sent to the message management unit 103 of binding with this message routing unit 102 according to described binding rule.
Described message management unit 103 is arranged to: store the message that described message routing unit 102 is sent; Also send the message of storing to client by described message sending and receiving unit 104.
Different territories is set up according to different professional or services in control of authority unit 101, just can be with the professional or service of needs isolation, namely mutually the business of interfere with or compromise or service distribution in different territories, thereby realize isolation professional or service, avoid phase mutual interference and impact between professional or the service, and guarantee the safety of data.
Setting up in the control of authority unit 101 has a plurality of territories, and the process of a plurality of non-interference and impact can be arranged in each territory, so just can guarantee efficiently carrying out of business or service; The mutual interfere with or compromise normally of the process in the same area not, the territory isolates the process of these mutual interfere with or compromises, phase mutual interference and impact between professional or the service have so just been avoided, and guarantee the safety of data, reach the professional efficient and effect that do not interfere with each other and affect, guaranteed simultaneously the safety of data.
Alternatively, described rights management unit 101 is arranged to notify in such a way selected message routing unit 102 to receive the message that this client is sent: judge according to the username and password of client input whether this client has the authority of the selected message routing unit 102 of access, have and then notify this message routing unit 102 to receive the message that this client is sent;
Alternatively, described rights management unit 101 is arranged to notify in such a way client to obtain this message by selected message sending and receiving unit 104 from this message management unit 103: the username and password according to the client input judges whether this client has the authority of message in the receipt message administrative unit 103, has and then notifies this client to obtain this message by described message sending and receiving unit 104 from this message management unit 103.
Alternatively, the binding of message routing unit 102 and message management unit 103 is multi-to-multis.
Alternatively, rights management unit 101 is arranged in such a way to judge according to the username and password of this client input whether this client has the authority in the territory that access rights administrative unit 101 sets up:
Judging the territory at the corresponding process of username and password place of this client input whether in the territory that rights management unit 101 is set up, is that then this client has the authority in the territory that access rights administrative unit 101 sets up; Otherwise this client does not have the authority in the territory that access rights administrative unit 101 sets up.
Alternatively, rights management unit 101 is arranged to judge according to the username and password of client input whether this client has the authority of access message routing unit 102 in such a way:
The process that this client is performed is judged according to the username and password of this client input in rights management unit 101, the process that namely this username and password is corresponding is message routing unit 102 corresponding processes whether, are that then this client has the authority of this message routing unit 102 of access; Otherwise this client is not accessed the authority of this message routing unit 102.
Alternatively, rights management unit 101 is arranged to judge according to the username and password of client input whether this client has the authority of message in the receipt message administrative unit 103 in such a way:
The process that this client is being carried out is judged according to the username and password of this client input in rights management unit 101, namely the process corresponding with this username and password message management unit 103 corresponding processes whether are that then this client has the authority that receives message in this message management unit 103; Otherwise this client does not receive the authority of message in this message management unit 103.
Alternatively, described message management unit 103 comprises message storage module 1031, message routing module 1032 and scheduling message module 1033, wherein:
Described message storage module 1031 is arranged to: store the message that described message routing unit 102 is sent with the data structure of formation in internal memory;
Described message routing module 1032 is arranged to: send the message store to client by described message sending and receiving unit 104, in message by the correct client that sends to, namely receive the feedback of client after, its message of storing is deleted; If message is not namely received the feedback of client not by the correct client that sends to, then continue the corresponding message of storage until receive the feedback of client or confirm and after this client death message is sent to other client.
Described scheduling message module 1033 is arranged to: control the message count that the same time sends to client by the pre-taken amount of configuration messages.
Alternatively, described message management unit 103 also comprises message persistence module 1034, and it is arranged to: by the variation of message in the monitoring information memory module 1031, the message that changes is written in the disk, prevents the information drop-out that the node machine of delaying brings.Message persistence module 1034 can affect the performance to message system, so can weigh Performance And Reliability, selects whether to open this module.
Alternatively, described message management unit 103 is message queue.
Alternatively, described message routing unit 102 also is arranged in such a way this message be sent to the message management unit 103 of binding with this message routing unit 102 according to described binding rule:
According to the mode of direct-type message route, the mode of broadcast message route or the mode of subject-type message route.
Wherein, the mode of direct-type message route is: by exact matching message, route messages to message management unit 103.
The mode of broadcast message route is: the message management unit 103 that routes messages to 102 bindings of all and message routing unit.
The mode of subject-type message route is: by the pattern matching of message routing unit 102 and message management unit 103, the message route is given the message management unit 103 of the some or all of coupling matic mould.
Described message sending and receiving unit 104 is arranged to: receive message that client sends or send message to client.
Alternatively, this device also comprises lock unit 105, and described lock unit 105 is arranged to: will carry out the needed information of described process and all be synchronized at least one backup client.Like this, when a certain client of carrying out described process breaks down, can be taken over job by backup client, thereby realize the high available of message processing apparatus.
Alternatively, the needed information of executive process comprises: the message that the corresponding username and password of process, selected message routing unit 102 and message management unit 103, the rule of the binding between the two, all sending and receivings arrive etc.
Alternatively, this device also comprises binding processing unit 106, and it is arranged to, and after described process finishes, removes the binding between described message routing unit 102 and the message management unit 103; Perhaps, answer client's new application, revise the binding between described message routing unit 102 and the message management unit 103, to carry out new process.
A kind of message treatment method of the embodiment of the invention as shown in Figure 2, comprises the steps:
Step 101, when the first client need to be carried out a certain process, send application to message processing apparatus, rights management unit 101 in the message processing apparatus judges according to the username and password of described the first client input whether described the first client has the authority in the territory that access rights administrative unit 101 sets up, have then in message routing unit 102 and message management unit 103 for the territory appointment at the corresponding process of the username and password place of this client input, select the needed message routing unit 102 of this process and message management unit 103 to set up corresponding relation with this process, and selected message routing unit 102 and message management unit 103 are bound by the binding rule of setting.
Rights management unit 101 in the message processing apparatus judges according to the username and password of described the first client input whether described the first client has the step of the authority in the territory that access rights administrative unit 101 sets up to comprise:
The territory at the corresponding process of username and password place of described client input is judged whether in the territory that rights management unit 101 is set up in rights management unit 101, is that then described the first client has the authority in the territory that access rights administrative unit 101 sets up; Otherwise described the first client does not have the authority in the territory that access rights administrative unit 101 sets up.
After step 102, message sending and receiving unit 104 receive the message of sending from the second client, rights management unit 101 notifies selected message routing unit 102 to receive the message that described the second client is sent, and this message is sent to the message management unit 103 of binding with this message routing unit 102 according to described binding rule.
Step 103, rights management unit 101 notify described the first client to obtain this message by described message sending and receiving unit 104 from selected message management unit 103.
Alternatively, described step 102 comprises: after message sending and receiving unit 104 receives the message of sending from the second client, rights management unit 101 judges according to the username and password of described the second client input whether described the second client has the authority of the selected message routing unit 102 of access, there is then this message routing unit 102 receive the message that described the second client is sent, and this message is sent to message management unit 103 with 102 bindings of this message routing unit according to described binding rule.
Alternatively, rights management unit 101 judges according to the username and password of described the second client input whether described the second client has the step of the authority of the selected message routing unit 102 of access to comprise:
The performed process of described the second client is judged according to the username and password of described the second client input in rights management unit 101, the process that namely this username and password is corresponding is selected message routing unit 102 corresponding processes whether, are that then described the second client has the authority of this message routing unit 102 of access; Otherwise described the second client is not accessed the authority of this message routing unit 102.
Alternatively, described step 103 comprises: rights management unit 101 judges according to the username and password of described the first client input whether described the first client has the authority of message in the receipt message administrative unit 103, and have then described the first client obtains this message by described message sending and receiving unit 104 from this message management unit 103.
Alternatively, rights management unit 101 judges according to the username and password of described the first client input whether described the first client has the step of the authority of message in the receipt message administrative unit 103 to comprise:
The process that described the first client is being carried out is judged according to the username and password of described the first client input in rights management unit 101, namely the process corresponding with this username and password selected message management unit 103 corresponding processes whether are that then described the first client has the authority that receives message in this message management unit 103; Otherwise described the first client does not receive the authority of message in this message management unit 103.
Alternatively, in the process of the described process of follow-up execution, the judgement of having carried out can no longer be carried out, and directly carries out the reception of message and obtain, with the saving program, and saving resource.
Alternatively, the method also comprises: lock unit 105 with the corresponding username and password of process, selected message routing unit 102 and message management unit 103, between the two binding rule, all sending and receivings to the needed information of this process of the execution such as message all be synchronized at least one backup client, when a certain client of carrying out described process breaks down, taken over job by backup client, thereby realize the high available of message processing apparatus.
Said method and device are mainly used in the cloud computing group system, can also be applied to have in the other system of similarity and structure.
The concrete application of above-mentioned message treatment method as shown in Figure 3.
The beneficial effect of the embodiment of the invention is:
The message treatment method of the embodiment of the invention and device, realize isolation professional or service, avoid phase mutual interference and impact between professional or the service, and guarantee the safety of data, therefore can carry out independently Message Processing, low with the coupling of communication object, when being transplanted to other cloud computing environment, do not need to develop once again, reduced development cost; And versatility and portable good can well be transplanted in the new cloud computing environment.
The embodiment of the invention also by message synchronization and redundancy between multi-client, even reached the availability that the chance failure of individual customer end also can not affect the overall message processing unit, has realized the high available and load balancing of message system.
Because above-mentioned effect makes the apparatus and method of the embodiment of the invention be applicable to complicated commercial cloud computing environment, thereby has boundless development prospect.
One of ordinary skill in the art will appreciate that all or part of step in the said method can come the instruction related hardware to finish by program, described program can be stored in the computer-readable recording medium, such as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuits.Correspondingly, each the module/unit in above-described embodiment can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Certainly; the present invention also can have other various embodiments; in the situation that do not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of claim of the present invention.

Claims (17)

1. a message processing apparatus is characterized in that, comprising: rights management unit, message routing unit, message management unit and message sending and receiving unit, wherein:
Described rights management unit is arranged to: set up a plurality of territories according to different professional or services; Set different processes for different territories, and be the different different username and passwords of course allocation; Respectively specifying message routing unit and the message management unit of a plurality of correspondences for different territories, can only work in the territory of correspondence in message routing unit and message management unit; Also when client solicitation message routing unit and message management unit, judge according to the username and password of this client input whether this client has the authority in the territory that access sets up, have then in message routing unit and message management unit for the territory appointment at the corresponding process of the username and password place of this client input, select the needed message routing unit of this process and message management unit and this process to set up corresponding relation, and selected message routing unit and message management unit are bound by the binding rule of setting; Also notify selected message routing unit to receive the message that this client is sent; Also notify client from selected message management unit, to obtain message by described message sending and receiving unit;
Described message sending and receiving unit is arranged to: receive the message that client is sent;
Described message routing unit is arranged to: receive the message that described message sending and receiving unit receives, and this message is sent to the message management unit of binding with this message routing unit according to described binding rule;
Described message management unit is arranged to: store the message that described message routing unit is sent; Also send the message of storing to client by described message sending and receiving unit.
2. message processing apparatus as claimed in claim 1 is characterized in that, described rights management unit is arranged to notify in such a way selected message routing unit to receive the message that this client is sent:
Judge that according to the username and password of client input whether this client has the authority of the selected message routing unit of access, has and then notifies this message routing unit to receive the message that this client is sent;
Described rights management unit is arranged to notify in such a way client to obtain message by described message sending and receiving unit from selected message management unit:
Username and password according to the client input judges whether this client has the authority of message in the receipt message administrative unit, has and then notifies this client to obtain this message by described message sending and receiving unit from this message management unit.
3. message processing apparatus as claimed in claim 1 or 2 is characterized in that, the binding of described message routing unit and message management unit is multi-to-multi.
4. message processing apparatus as claimed in claim 1 or 2, it is characterized in that, described rights management unit is arranged to judge according to the username and password of this client input whether this client has the authority of accessing the territory of setting up described rights management unit in such a way:
Judging the territory at the corresponding process of username and password place of this client input whether in the territory that described rights management unit is set up, is that then this client has the authority in the territory that the described rights management of access unit sets up; Otherwise this client is not accessed the authority in the territory of setting up described rights management unit.
5. message processing apparatus as claimed in claim 2 is characterized in that, described rights management unit is arranged to judge according to the username and password of client input whether this client has the authority of the described message routing unit of access in such a way:
The whether corresponding process of described message routing unit of the corresponding process of this username and password is judged according to the username and password of this client input in described rights management unit, is that then this client has the authority of this message routing unit of access; Otherwise this client is not accessed the authority of this message routing unit.
6. message processing apparatus as claimed in claim 2 is characterized in that, described rights management unit is arranged to judge according to the username and password of client input whether this client has the authority that receives message in the described message management unit in such a way:
The whether corresponding process in described message management unit of the corresponding process of this username and password is judged according to the username and password of this client input in described rights management unit, is that then this client has the authority that receives message in this message management unit; Otherwise this client does not receive the authority of message in this message management unit.
7. message processing apparatus as claimed in claim 1 or 2 is characterized in that, described message management unit comprises message storage module, message routing module and scheduling message module, wherein:
Described message storage module is arranged to: store the message that described message routing unit is sent with the data structure of formation in internal memory;
Described message routing module is arranged to: send the message of storing to client by described message sending and receiving unit,, by the correct client that sends to its message of storing is deleted in message; If message is by the correct client that sends to, then continue the corresponding message of storage until receive the feedback of client or confirm and after this client death message is sent to other client.
Described scheduling message module is arranged to: control the message count that the same time sends to client by the pre-taken amount of configuration messages.
8. message processing apparatus as claimed in claim 7 is characterized in that, described message management unit also comprises the message persistence module, and it is arranged to: by monitoring the variation of message in the described message storage module, the message that changes is written in the disk.
9. message processing apparatus as claimed in claim 1 or 2, it is characterized in that any during described message routing unit also is arranged in such a way or appoint and several this message to be sent to message management unit with this message routing unit binding according to described binding rule:
According to the mode of direct-type message route, the mode of broadcast message route or the mode of subject-type message route.
10. such as claim 1,2,5 or 6 described message processing apparatus, it is characterized in that, this device also comprises lock unit, wherein:
Described lock unit is arranged to: will carry out the needed information of described process and all be synchronized at least one backup client;
Wherein, the needed information of executive process comprises: the message of the corresponding username and password of process, selected message routing unit and message management unit, the rule of the binding between the two, all sending and receivings.
11. such as claim 1,2,5 or 6 described message processing apparatus, it is characterized in that, this device also comprises the binding processing unit, it is arranged to:
After described process finishes, remove the binding between described message routing unit and the message management unit; Perhaps, answer the new application of client, revise the binding between described message routing unit and the message management unit, to carry out new process.
12. a message treatment method is characterized in that, the method comprises the steps: based on such as each described message processing apparatus among the claim 1-10
When the first client need to be carried out a certain process, send application to described message processing apparatus, rights management unit in the described message processing apparatus judges according to the username and password of described the first client input whether described the first client has the authority of accessing the territory of setting up described rights management unit, have then in message routing unit and message management unit for the territory appointment at the corresponding process of the username and password place of this client input, select the needed message routing unit of this process and message management unit and this process to set up corresponding relation, and selected message routing unit and message management unit are bound by the binding rule of setting;
After message sending and receiving unit in the described message processing apparatus receives the message of sending from the second client, described rights management unit notifies selected message routing unit to receive the message that described the second client is sent, and this message is sent to the message management unit of binding with this message routing unit according to described binding rule;
Described rights management unit notifies described the first client to obtain this message by described message sending and receiving unit from selected message management unit.
13. message treatment method as claimed in claim 12 is characterized in that,
The step that described rights management unit notifies selected message routing unit to receive the message that described the second client sends comprises: described rights management unit judges according to the username and password of described the second client input whether described the second client has the authority of the selected message routing unit of access, have then that this message routing unit receives the message that described the second client is sent, and this message is sent to message management unit with this message routing unit binding according to described binding rule;
Described rights management unit notifies described the first client to comprise by described message sending and receiving unit obtains this message from selected message management unit step: described rights management unit judges according to the username and password of described the first client input whether described the first client has the authority that receives message in the selected message management unit, and have then described the first client obtains this message by described message sending and receiving unit from this message management unit
14. such as claim 12 or 13 described message treatment methods, it is characterized in that, the rights management unit in the described message processing apparatus judges according to the username and password of described the first client input whether described the first client has the step of the authority of accessing the territory of setting up described rights management unit to comprise:
Whether the territory at the corresponding process of the username and password place of described the first client of described rights management unit judges input is that then described the first client has the authority in the territory that the access rights administrative unit sets up in the territory that the rights management unit is set up; Otherwise described the first client does not have the authority in the territory that the access rights administrative unit sets up.
15. message treatment method as claimed in claim 13, it is characterized in that, described rights management unit judges according to the username and password of described the second client input whether described the second client has the step of the authority of the selected message routing unit of access to comprise:
The whether corresponding process of selected message routing unit of the corresponding process of this username and password is judged according to the username and password of described the second client input in described rights management unit, is that then described the second client has the authority of this message routing unit of access; Otherwise described the second client is not accessed the authority of this message routing unit.
16. message treatment method as claimed in claim 13, it is characterized in that, described rights management unit judges according to the username and password of described the first client input whether described the first client has the step that receives the authority of message in the selected message management unit to comprise:
The whether corresponding process in selected message management unit of the corresponding process of this username and password is judged according to the username and password of described the first client input in described rights management unit, is that then described the first client has the authority that receives message in this message management unit; Otherwise described the first client does not receive the authority of message in this message management unit.
17. such as claim 12,13,15 or 16 described message treatment methods, it is characterized in that, the method also comprises:
Lock unit in the described message processing apparatus will be carried out the needed information of this process and all be synchronized at least one backup client, when a certain client of carrying out described process breaks down, be taken over job by backup client;
Wherein, the needed information of executive process comprises: the message of the corresponding username and password of process, selected message routing unit and message management unit, the rule of the binding between the two, all sending and receivings.
CN201210337752.8A 2012-09-12 2012-09-12 Method and device for message processing Active CN102868594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210337752.8A CN102868594B (en) 2012-09-12 2012-09-12 Method and device for message processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210337752.8A CN102868594B (en) 2012-09-12 2012-09-12 Method and device for message processing

Publications (2)

Publication Number Publication Date
CN102868594A true CN102868594A (en) 2013-01-09
CN102868594B CN102868594B (en) 2015-05-27

Family

ID=47447198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210337752.8A Active CN102868594B (en) 2012-09-12 2012-09-12 Method and device for message processing

Country Status (1)

Country Link
CN (1) CN102868594B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279431A (en) * 2013-05-23 2013-09-04 青岛海信宽带多媒体技术有限公司 Access method for kinds of permissions of memorizer
CN105512861A (en) * 2015-12-09 2016-04-20 南通科俊建筑工程有限公司 Office automatic information processing method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050027871A1 (en) * 2003-06-05 2005-02-03 William Bradley Interoperable systems and methods for peer-to-peer service orchestration
CN101926138A (en) * 2008-01-25 2010-12-22 国际商业机器公司 Method and system for message delivery in messaging networks

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050027871A1 (en) * 2003-06-05 2005-02-03 William Bradley Interoperable systems and methods for peer-to-peer service orchestration
CN101926138A (en) * 2008-01-25 2010-12-22 国际商业机器公司 Method and system for message delivery in messaging networks

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279431A (en) * 2013-05-23 2013-09-04 青岛海信宽带多媒体技术有限公司 Access method for kinds of permissions of memorizer
CN105512861A (en) * 2015-12-09 2016-04-20 南通科俊建筑工程有限公司 Office automatic information processing method and system

Also Published As

Publication number Publication date
CN102868594B (en) 2015-05-27

Similar Documents

Publication Publication Date Title
US11586673B2 (en) Data writing and reading method and apparatus, and cloud storage system
EP3432549B1 (en) Method and apparatus for processing user requests
CN107181808B (en) Private cloud system and operation method
EP2652594B1 (en) Multi-tenant, high-density container service for hosting stateful and stateless middleware components
CN107547595B (en) Cloud resource scheduling system, method and device
WO2019210580A1 (en) Access request processing method, apparatus, computer device, and storage medium
US20160323880A1 (en) Application Driven and Adaptive Unified Resource Management For Data Centers with Multi-Resource Schedulable Unit (MRSU)
US20120084443A1 (en) Virtual provisioning with implementation resource boundary awareness
CN110661647A (en) Life cycle management method and device
CN107005435B (en) Network service descriptor shelving method and device
CN102571698A (en) Access authority control method, system and device for virtual machine
CN110442610A (en) The method, apparatus of load balancing calculates equipment and medium
CN112948063B (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
CN105450759A (en) System mirror image management method and device
US20080201474A1 (en) Computer system
US8606908B2 (en) Wake-up server
CN111858050B (en) Server cluster hybrid deployment method, cluster management node and related system
CN111857951A (en) Containerized deployment platform and deployment method
CN109120680A (en) A kind of control system, method and relevant device
CN102868594A (en) Method and device for message processing
CN112202879A (en) Middleware management method and device, electronic equipment and storage medium
CN112445602A (en) Resource scheduling method, device and system and electronic equipment
CN110275772B (en) Data processing method and related equipment thereof
US9942083B1 (en) Capacity pool management
US10481963B1 (en) Load-balancing for achieving transaction fault tolerance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant