summaryrefslogtreecommitdiff
path: root/qpid/cpp/xml/extra.xml
blob: 5cb37ae65f3606dd82d1a4395e6965797205bc93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
<?xml version="1.0"?>
<!--
 -
 - Licensed to the Apache Software Foundation (ASF) under one
 - or more contributor license agreements.  See the NOTICE file
 - distributed with this work for additional information
 - regarding copyright ownership.  The ASF licenses this file
 - to you under the Apache License, Version 2.0 (the
 - "License"); you may not use this file except in compliance
 - with the License.  You may obtain a copy of the License at
 - 
 -   http://www.apache.org/licenses/LICENSE-2.0
 - 
 - Unless required by applicable law or agreed to in writing,
 - software distributed under the License is distributed on an
 - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 - KIND, either express or implied.  See the License for the
 - specific language governing permissions and limitations
 - under the License.
 -
 -->

<amqp major="99" minor="0" port="5672">

  <domain name="mediumstr" type="mediumstr" label="string with 16bit size field" />

  <domain name="sequence-set" type="sequence-set" label="ranged set representation">
    <doc>
      Set of pairs of RFC-1982 numbers representing a discontinuous range. Each pair represents a
      closed interval within the list.

      For example, the set (1,3), (6,6), (8,9) represents the sequence 1,2,3,6,8,9.
    </doc>
  </domain>

  <domain name="xid010">
    <struct size="long" pack="short" type="1540">
      <field name="format" domain="long" />
      <field name="global-id" domain="shortstr" />
      <field name="branch-id" domain="shortstr" />
    </struct>
  </domain>

  <domain name="delivery-properties-010">
    <struct size="long" pack="short" type="1025">
      <field name="discard-unroutable" domain="bit" label="controls discard of unroutable messages"/>
      <field name="immediate" domain="bit" label="Consider message unroutable if it cannot be
        processed immediately"/>
      <field name="redelivered" domain="bit" label="redelivery flag"/>
      <field name="priority" domain="octet" label="message priority, 0 to 9"
        required="true"/>
      <field name="delivery-mode" domain="octet" label="message persistence requirement"
        required="true"/>
      <field name="ttl" domain="longlong" label="time to live in ms"/>
      <field name="timestamp" domain="longlong" label="message timestamp"/>
      <field name="expiration" domain="longlong" label="message expiration time"/>
      <field name="exchange" domain="shortstr" label="originating exchange"/>
      <field name="routing-key" domain="shortstr" label="message routing key"/>
      <field name="resume-id" domain="mediumstr" label="global id for message transfer"/>
      <field name="resume-ttl" domain="longlong" label="ttl in ms for interrupted message data"/>
    </struct>
  </domain>

  <domain name="message-properties-010">
    <struct size="long" pack="short" type="1027">
      <field name="content-length" domain="longlong" label="length of the body segment in bytes"/>
      <field name="message-id" domain="uuid" label="application message identifier"/>
      <field name="correlation-id" domain="mediumstr" label="application correlation identifier"/>
      <field name="reply-to" domain="reply-to" label="destination to reply to"/>
      <field name="content-type" domain="shortstr" label="MIME content type"/>
      <field name="content-encoding" domain="shortstr" label="MIME content encoding"/>
      <field name="user-id" domain="mediumstr" label="creating user id"/>
      <field name="app-id" domain="mediumstr" label="creating application id"/>
      <field name="application-headers" domain="table" label="application specific headers table"/>
    </struct>
  </domain>

<class name = "connection010" index = "1">

<method name = "start" index="1">
      <doc>new start method</doc>
      <chassis name="client" implement="MUST" />

      <response name="start-ok" />

      <field name="server-properties" domain="table" label="server properties">
            <doc>blah, blah</doc>
      </field>

      <field name="mechanisms" domain="array" label="available security mechanisms">
            <doc>blah, blah</doc>
      </field>

      <field name="locales" domain="array" label="available message locales">
      </field>

</method>

<method name = "start-ok" index="2">
      <doc>new start-ok method</doc>
      <chassis name="server" implement="MUST" />

      <field name="client-properties" domain="table" label="server properties">
            <doc>blah, blah</doc>
      </field>

      <field name="mechanism" domain="shortstr" label="chosen security mechanism">
            <doc>blah, blah</doc>
      </field>

      <field name="response" domain="longstr" label="security response data">
        <doc>blah blah</doc>
      </field>

      <field name="locale" domain="shortstr" label="chosen locale">
            <doc>blah, blah</doc>
      </field>

</method>

    <method name="secure" synchronous="1" index="3" label="security mechanism challenge">
      <doc>
        The SASL protocol works by exchanging challenges and responses until both peers have
        received sufficient information to authenticate each other. This method challenges the
        client to provide more information.
      </doc>

      <chassis name="client" implement="MUST" />

      <response name="secure-ok" />

      <field name="challenge" domain="longstr" label="security challenge data">
        <doc>
          Challenge information, a block of opaque binary data passed to the security mechanism.
        </doc>
      </field>
    </method>

    <!-- - Method: connection.secure-ok  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

    <method name="secure-ok" synchronous="1" index="4" label="security mechanism response">
      <doc>
        This method attempts to authenticate, passing a block of SASL data for the security
        mechanism at the server side.
      </doc>

      <chassis name="server" implement="MUST" />

      <field name="response" domain="longstr" label="security response data">
        <doc>
          A block of opaque data passed to the security mechanism. The contents of this data are
          defined by the SASL security mechanism.
        </doc>
        <assert check="notnull" />
      </field>
    </method>

    <method name="tune" synchronous="1" index="5" label="propose connection tuning parameters">
      <doc>
        This method proposes a set of connection configuration values to the client. The client can
        accept and/or adjust these.
      </doc>

      <chassis name="client" implement="MUST" />

      <response name="tune-ok" />

      <field name="channel-max" domain="short" label="proposed maximum channels">
        <doc>
          The maximum total number of channels that the server allows per connection. Zero means
          that the server does not impose a fixed limit, but the number of allowed channels may be
          limited by available server resources.
        </doc>
      </field>

      <field name="frame-max" domain="short" label="proposed maximum frame size">
        <doc>
          The largest frame size that the server proposes for the connection. The client can
          negotiate a lower value. Zero means that the server does not impose any specific limit but
          may reject very large frames if it cannot allocate resources for them.
        </doc>

        <rule name="minimum">
          <doc>
            Until the frame-max has been negotiated, both peers MUST accept frames of up to
            frame-min-size octets large, and the minimum negotiated value for frame-max is also
            frame-min-size.
          </doc>
          <doc type="scenario">
            Client connects to server and sends a large properties field, creating a frame of
            frame-min-size octets. The server must accept this frame.
          </doc>
        </rule>
      </field>

      <field name="heartbeat-min" domain="short" label="desired heartbeat delay"/>
      <field name="heartbeat-max" domain="short" label="desired heartbeat delay"/>
    </method>

    <!-- - Method: connection.tune-ok  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

    <method name="tune-ok" synchronous="1" index="6"
      label="negotiate connection tuning parameters">
      <doc>
        This method sends the client's connection tuning parameters to the server. Certain fields
        are negotiated, others provide capability information.
      </doc>

      <chassis name="server" implement="MUST" />

      <field name="channel-max" domain="short" label="negotiated maximum channels">
        <doc>
          The maximum total number of channels that the client will use per connection.
        </doc>

        <rule name="upper-limit">
          <doc>
            If the client specifies a channel max that is higher than the value provided by the
            server, the server MUST close the connection without attempting a negotiated close. The
            server may report the error in some fashion to assist implementors.
          </doc>
        </rule>

        <assert check="notnull" />
        <assert check="le" value="channel-max" />
      </field>

      <field name="frame-max" domain="short" label="negotiated maximum frame size">
        <doc>
          The largest frame size that the client and server will use for the connection. Zero means
          that the client does not impose any specific limit but may reject very large frames if it
          cannot allocate resources for them. Note that the frame-max limit applies principally to
          content frames, where large contents can be broken into frames of arbitrary size.
        </doc>

        <rule name="minimum">
          <doc>
            Until the frame-max has been negotiated, both peers MUST accept frames of up to
            frame-min-size octets large, and the minimum negotiated value for frame-max is also
            frame-min-size.
          </doc>
        </rule>

        <rule name="upper-limit">
          <doc>
            If the client specifies a frame max that is higher than the value provided by the
            server, the server MUST close the connection without attempting a negotiated close. The
            server may report the error in some fashion to assist implementors.
          </doc>
        </rule>
      </field>

      <field name="heartbeat" domain="short" label="desired heartbeat delay">
        <doc>
          The delay, in seconds, of the connection heartbeat that the client wants. Zero means the
          client does not want a heartbeat.
        </doc>
      </field>
    </method>

    <method name="open" synchronous="1" index="7" label="open connection to virtual host">
      <doc>
        This method opens a connection to a virtual host, which is a collection of resources, and
        acts to separate multiple application domains within a server. The server may apply
        arbitrary limits per virtual host, such as the number of each type of entity that may be
        used, per connection and/or in total.
      </doc>

      <chassis name="server" implement="MUST" />

      <response name="open-ok" />
      <response name="redirect" />

      <field name="virtual-host" domain="path" label="virtual host name">
        <!-- TODO 0.82 - the entire vhost model needs review. This concept was prompted by the HTTP
          vhost concept but does not fit very well into AMQP.  Currently we use the vhost as a 
          "cluster identifier" which is inaccurate usage. /PH 2006/07/19
        -->
        <doc>
          The name of the virtual host to work with.
        </doc>

        <rule name="separation">
          <doc>
            If the server supports multiple virtual hosts, it MUST enforce a full separation of
            exchanges, queues, and all associated entities per virtual host. An application,
            connected to a specific virtual host, MUST NOT be able to access resources of another
            virtual host.
          </doc>
        </rule>

        <rule name="security">
          <doc>
            The server SHOULD verify that the client has permission to access the specified virtual
            host.
          </doc>
        </rule>
        <assert check="regexp" value="^[a-zA-Z0-9/-_]+$" />
      </field>

      <field name="capabilities" domain="array" label="required capabilities">
        <doc>
          The client can specify zero or more capability names, delimited by spaces. The server can
          use this string to how to process the client's connection request.
        </doc>
      </field>

      <field name="insist" domain="bit" label="insist on connecting to server">
        <doc>
          In a configuration with multiple collaborating servers, the server may respond to a
          Connection.Open method with a Connection.Redirect. The insist option tells the server that
          the client is insisting on a connection to the specified server.
        </doc>
        <rule name="behaviour">
          <doc>
            When the client uses the insist option, the server MUST NOT respond with a
            Connection.Redirect method. If it cannot accept the client's connection request it
            should respond by closing the connection with a suitable reply code.
          </doc>
        </rule>
      </field>
    </method>

    <method name="open-ok" synchronous="1" index="8" label="signal that connection is ready">
      <doc>
        This method signals to the client that the connection is ready for use.
      </doc>

      <chassis name="client" implement="MUST" />

      <field name="known-hosts" domain="array" />
    </method>

    <method name="redirect" synchronous="1" index="9" label="redirects client to other server">
      <doc>
        This method redirects the client to another server, based on the requested virtual host
        and/or capabilities.
      </doc>

      <rule name="usage">
        <doc>
          When getting the Connection.Redirect method, the client SHOULD reconnect to the host
          specified, and if that host is not present, to any of the hosts specified in the
          known-hosts list.
        </doc>
      </rule>

      <chassis name="client" implement="MUST" />

      <field name="host" domain="shortstr" label="server to connect to">
        <doc>
          Specifies the server to connect to. This is an IP address or a DNS name, optionally
          followed by a colon and a port number. If no port number is specified, the client should
          use the default port number for the protocol.
        </doc>
        <assert check="notnull" />
      </field>

      <field name="known-hosts" domain="array" />
    </method>

<method name = "heartbeat" index="10">
      <doc>new start-ok method</doc>
      <chassis name="server" implement="MUST" />
</method>

    <!-- - Method: connection.close  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

    <method name="close" synchronous="1" index="11" label="request a connection close">
      <doc>
        This method indicates that the sender wants to close the connection. This may be due to
        internal conditions (e.g. a forced shut-down) or due to an error handling a specific method,
        i.e. an exception. When a close is due to an exception, the sender provides the class and
        method id of the method which caused the exception.
      </doc>
      <!-- TODO: The connection close mechanism needs to be reviewed from the ODF documentation and
        better expressed as rules here. /PH 2006/07/20
      -->

      <rule name="stability">
        <doc>
          After sending this method any received method except the Close-OK method MUST be
          discarded.
        </doc>
      </rule>

      <chassis name="client" implement="MUST" />
      <chassis name="server" implement="MUST" />

      <response name="close-ok" />

      <field name="reply-code" domain="reply-code" />
      <field name="reply-text" domain="reply-text" />
    </method>

    <!-- - Method: connection.close-ok - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

    <method name="close-ok" synchronous="1" index="12" label="confirm a connection close">
      <doc>
        This method confirms a Connection.Close method and tells the recipient that it is safe to
        release resources for the connection and close the socket.
      </doc>

      <rule name="reporting">
        <doc>
          A peer that detects a socket closure without having received a Close-Ok handshake method
          SHOULD log the error.
        </doc>
      </rule>

      <chassis name="client" implement="MUST" />
      <chassis name="server" implement="MUST" />
    </method>


</class>



<class name = "session010" index = "2">

<method name = "attach" index="1">

      <doc>blah, blah</doc>
      <chassis name="client" implement="MUST" />
      <chassis name="server" implement="MUST" />

      <response name="start-ok" />

      <field name="name" domain="mediumstr" label="blah">
            <doc>blah, blah</doc>
      </field>

      <field name="force" domain="bit" label="blah">
            <doc>blah, blah</doc>
      </field>

</method>

<method name = "attached" index="2">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="name" domain="mediumstr" label="blah">
            <doc>blah, blah</doc>
      </field>

</method>

<method name = "detach" index="3">

      <doc>blah, blah</doc>
      <chassis name="client" implement="MUST" />
      <chassis name="server" implement="MUST" />

      <response name="start-ok" />

      <field name="name" domain="mediumstr" label="blah">
            <doc>blah, blah</doc>
      </field>

</method>

<method name = "detached" index="4">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="name" domain="mediumstr" label="blah">
            <doc>blah, blah</doc>
      </field>


      <field name="detach-code" domain="octet" label="blah">
            <doc>blah, blah</doc>
      </field>

</method>

<method name = "request-timeout" index="5">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="timeout" domain="long" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>

<method name = "timeout" index="6">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="timeout" domain="long" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>


<method name = "command-point" index="7">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="command-id" domain="rfc1982-long" label="blah">
            <doc>blah, blah</doc>
      </field>


      <field name="command-offset" domain="longlong" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>

<method name = "expected" index="8">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="commands" domain="sequence-set" label="blah">
            <doc>blah, blah</doc>
      </field>

      <field name="fragments" domain="array" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>

<method name = "confirmed" index="9">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="commands" domain="sequence-set" label="blah">
            <doc>blah, blah</doc>
      </field>

      <field name="fragments" domain="array" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>

<method name = "completed" index="10">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="commands" domain="sequence-set" label="blah">
            <doc>blah, blah</doc>
      </field>

      <field name="timely-reply" domain="bit" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>

<method name = "known-completed" index="11">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="commands" domain="sequence-set" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>

<method name = "flush" index="12">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="expected" domain="bit" label="blah">
            <doc>blah, blah</doc>
      </field>
      <field name="confirmed" domain="bit" label="blah">
            <doc>blah, blah</doc>
      </field>
      <field name="completed" domain="bit" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>

<method name = "gap" index="13">
      <doc>blah, blah</doc>
      <chassis name="server" implement="MUST" />
      <chassis name="client" implement="MUST" />

      <field name="commands" domain="sequence-set" label="blah">
            <doc>blah, blah</doc>
      </field>
</method>

</class>

<class name="execution010" index="3">
    <method name = "sync" index="1">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <chassis name="client" implement="MUST" />
    </method>
    <method name = "result" index="2">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <chassis name="client" implement="MUST" />
        <field name="command-id" domain="command-id"/>
        <field name="value" domain="long-struct"/>
    </method>
    <method name = "exception" index="3">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <chassis name="client" implement="MUST" />
        <field name="error-code" domain="short"/>
        <field name="command-id" domain="long"/>
        <field name="class-code" domain="octet"/>
        <field name="command-code" domain="octet"/>
        <field name="field-index" domain="octet"/>
        <field name="description" domain="mediumstr"/>
        <field name="error-info" domain="table"/>
    </method>
</class>

<class name="message010" index="4">
    <doc>blah, blah</doc>
    <method name = "transfer" content="1" index="1">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <chassis name="client" implement="MUST" />
        <field name="destination" domain="shortstr"/>
        <field name="accept-mode" domain="octet"/>
        <field name="acquire-mode" domain="octet"/>
    </method>
    <method name = "accept" index="2">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <chassis name="client" implement="MUST" />
        <field name="commands" domain="sequence-set"/>
    </method>
    <method name = "reject" index="3">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <chassis name="client" implement="MUST" />
        <field name="commands" domain="sequence-set"/>
        <field name="code" domain="short"/>
        <field name="text" domain="shortstr"/>
    </method>
    <method name = "release" index="4">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="commands" domain="sequence-set"/>
        <field name="set-redelivered" domain="bit"/>
    </method>
    <method name = "acquire" index="5">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="transfers" domain="sequence-set"/>
        <result>
            <struct size="long" type="4">
                <field name="transfers" domain="sequence-set"/>
            </struct>
        </result>
    </method>

    <method name = "subscribe" index="7">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="queue" domain="shortstr"/>
        <field name="destination" domain="shortstr"/>
        <field name="accept-mode" domain="octet"/>
        <field name="acquire-mode" domain="octet"/>
        <field name="exclusive" domain="bit"/>
        <field name="resume-id" domain="mediumstr"/>
        <field name="resume-ttl" domain="longlong"/>
        <field name="arguments" domain="table"/>
    </method>
    <method name = "cancel" index="8">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="destination" domain="shortstr"/>
    </method>
    <method name = "set-flow-mode" index="9">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="destination" domain="shortstr"/>
        <field name="flow-mode" domain="octet"/>
    </method>
    <method name = "flow" index="10">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="destination" domain="shortstr"/>
        <field name="unit" domain="octet"/>
        <field name="value" domain="long"/>
    </method>
    <method name = "flush" index="11">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="destination" domain="shortstr"/>
    </method>
    <method name = "stop" index="12">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="destination" domain="shortstr"/>
    </method>
</class>

<class name="tx010" index="5">
    <doc>blah, blah</doc>
    <method name = "select" index="1">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
    </method>
    <method name = "commit" index="2">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
    </method>
    <method name = "rollback" index="3">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
    </method>
</class>

<class name="dtx010" index="6">
    <doc>blah, blah</doc>
    <method name = "select" index="1">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
    </method>
    <method name = "start" index="2">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="xid" domain="xid010"/>
        <field name="join" domain="bit"/>
        <field name="resume" domain="bit"/>
        <result>
            <struct size="long" pack="short" type="1">
                <field name="status" domain="short" />
            </struct>
        </result>
    </method>
    <method name = "end" index="3">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="xid" domain="xid010"/>
        <field name="fail" domain="bit"/>
        <field name="suspend" domain="bit"/>
        <result>
            <struct size="long" pack="short" type="1">
                <field name="status" domain="short" />
            </struct>
        </result>
    </method>
    <method name = "commit" index="4">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="xid" domain="xid010"/>
        <field name="one-phase" domain="bit"/>
        <result>
            <struct size="long" pack="short" type="1">
                <field name="status" domain="short" />
            </struct>
        </result>
    </method>
    <method name = "forget" index="5">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="xid" domain="xid010"/>
    </method>
    <method name = "get-timeout" index="6">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="xid" domain="xid010"/>
        <result>
            <struct size="long" pack="short" type="2">
                <field name="timeout" domain="long" />
            </struct>
        </result>
    </method>
    <method name = "prepare" index="7">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="xid" domain="xid010"/>
        <result>
            <struct size="long" pack="short" type="1">
                <field name="status" domain="short" />
            </struct>
        </result>
    </method>
    <method name = "recover" index="8">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <result>
            <struct size="long" pack="short" type="3">
                <field name="in-doubt" domain="array" />
            </struct>
        </result>
    </method>
    <method name = "rollback" index="9">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="xid" domain="xid010"/>
        <result>
            <struct size="long" pack="short" type="1">
                <field name="status" domain="short" />
            </struct>
        </result>
    </method>
    <method name = "set-timeout" index="10">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="xid" domain="xid010"/>
        <field name="timeout" domain="long"/>
    </method>
</class>

<class name="exchange010" index="7">
    <doc>blah, blah</doc>
    <method name = "declare" index="1">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="exchange" domain="shortstr"/>
        <field name="type" domain="shortstr"/>
        <field name="alternate-exchange" domain="shortstr"/>
        <field name="passive" domain="bit"/>
        <field name="durable" domain="bit"/>
        <field name="auto-delete" domain="bit"/>
        <field name="arguments" domain="table"/>
    </method>
    <method name = "delete" index="2">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="exchange" domain="shortstr"/>
        <field name="if-unused" domain="bit"/>
    </method>
    <method name = "query" index="3">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="name" domain="shortstr"/>
        <result>
            <struct size="long" type="1">
                <field name="type" domain="shortstr"/>
                <field name="durable" domain="bit"/>
                <field name="not-found" domain="bit"/>
                <field name="arguments" domain="table"/>
            </struct>
        </result>
    </method>
    <method name = "bind" index="4">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="queue" domain="shortstr"/>
        <field name="exchange" domain="shortstr"/>
        <field name="binding-key" domain="shortstr"/>
        <field name="arguments" domain="table"/>
    </method>
    <method name = "unbind" index="5">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="queue" domain="shortstr"/>
        <field name="exchange" domain="shortstr"/>
        <field name="binding-key" domain="shortstr"/>
    </method>
    <method name = "bound" index="6">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="exchange" domain="shortstr"/>
        <field name="queue" domain="shortstr"/>
        <field name="binding-key" domain="shortstr"/>
        <field name="arguments" domain="table"/>
        <result>
            <struct size="long" type="2">
                <field name="exchange-not-found" domain="bit"/>
                <field name="queue-not-found" domain="bit"/>
                <field name="queue-not-matched" domain="bit"/>
                <field name="key-not-matched" domain="bit"/>
                <field name="arguments-not-matched" domain="bit"/>
            </struct>
        </result>
    </method>
</class>

<class name="queue010" index="8">
    <doc>blah, blah</doc>
    <method name = "declare" index="1">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="queue" domain="shortstr"/>
        <field name="alternate-exchange" domain="shortstr"/>
        <field name="passive" domain="bit"/>
        <field name="durable" domain="bit"/>
        <field name="exclusive" domain="bit"/>
        <field name="auto-delete" domain="bit"/>
        <field name="arguments" domain="table"/>
    </method>
    <method name = "delete" index="2">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="queue" domain="shortstr"/>
        <field name="if-unused" domain="bit"/>
        <field name="if-empty" domain="bit"/>
    </method>
    <method name = "purge" index="3">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="queue" domain="shortstr"/>
    </method>
    <method name = "query" index="4">
        <doc>blah, blah</doc>
        <chassis name="server" implement="MUST" />
        <field name="queue" domain="shortstr"/>
        <result>
            <struct size="long" type="1">
                <field name="name" domain="shortstr"/>
                <field name="alternate-exchange" domain="shortstr"/>
                <field name="durable" domain="bit"/>
                <field name="exclusive" domain="bit"/>
                <field name="auto-delete" domain="bit"/>
                <field name="arguments" domain="table"/>
                <field name="message-count" domain="long"/>
                <field name="subscriber-count" domain="long"/>
            </struct>
        </result>
    </method>
</class>

</amqp>