diff options
| author | Alan Conway <aconway@apache.org> | 2010-02-05 23:02:45 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-02-05 23:02:45 +0000 |
| commit | 5dd3cd3ae035673bf6003b6422712663ffa57fe5 (patch) | |
| tree | 0fd603d1e693b5c75ff41a86ed0051b04fa99f02 /cpp/xml | |
| parent | f5408c46da630d308f6e2a80b8b228cd398b89b4 (diff) | |
| download | qpid-python-5dd3cd3ae035673bf6003b6422712663ffa57fe5.tar.gz | |
Consistent connection names across a cluster.
- use the same host:port for connections and their shadows.
- add shadow property to managment connection to identify shadows.
- updated qpid-stat and qpid-cluster to filter on shadow property.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@907123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/xml')
| -rw-r--r-- | cpp/xml/cluster.xml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/xml/cluster.xml b/cpp/xml/cluster.xml index a879d5137b..44f055ea32 100644 --- a/cpp/xml/cluster.xml +++ b/cpp/xml/cluster.xml @@ -117,6 +117,7 @@ <!-- Announce a new connection --> <control name="announce" code="0x1"> + <field name="management-id" type="str16"/> <!-- Security Strength Factor (ssf): if the transport provides encryption (e.g. ssl), ssf is the bit length of the key. Zero if no encryption provided. --> @@ -135,13 +136,18 @@ <control name="abort" code="0x4"/> <!-- Update controls. Sent to a new broker in joining mode. - A connection is updateed as followed: - - open as a normal connection. + A connection is updated as followed: + - send the shadow's management ID in shadow-perpare on the update connection + - open the shadow as a normal connection. - attach sessions, create consumers, set flow with normal AMQP cokmmands. - send /reset additional session state with controls below. - send shadow-ready to mark end of shadow update. - send membership when entire update is complete. --> + <!-- Prepare to send a shadow connection with the given ID. --> + <control name="shadow-prepare" code="0x0F"> + <field name="management-id" type="str16"/> + </control> <!-- Consumer state that cannot be set by standard AMQP controls. --> <control name="consumer-state" code="0x10"> @@ -202,6 +208,7 @@ <control name="shadow-ready" code="0x20" label="End of shadow connection update."> <field name="member-id" type="uint64"/> <field name="connection-id" type="uint64"/> + <field name="management-id" type="str16"/> <field name="user-name" type="str8"/> <field name="fragment" type="str32"/> <field name="send-max" type="uint32"/> |
