summaryrefslogtreecommitdiff
path: root/amqp-rabbitmq-0.9.1.json
blob: 7a2dbd820ceb749d53ce85a9ca497714264a8d53 (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
{
    "name": "AMQP",
    "major-version": 0,
    "minor-version": 9,
    "revision": 1,
    "port": 5672,
    "copyright": [
        "Copyright (C) 2008-2011 VMware, Inc.\n",
        "\n",
        "Permission is hereby granted, free of charge, to any person\n",
        "obtaining a copy of this file (the \"Software\"), to deal in the\n",
        "Software without restriction, including without limitation the \n",
        "rights to use, copy, modify, merge, publish, distribute, \n",
        "sublicense, and/or sell copies of the Software, and to permit \n",
        "persons to whom the Software is furnished to do so, subject to \n",
        "the following conditions:\n",
        "\n",
        "The above copyright notice and this permission notice shall be\n",
        "included in all copies or substantial portions of the Software.\n",
        "\n",
        "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n",
        "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n",
        "OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n",
        "NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n",
        "HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n",
        "WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n",
        "FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n",
        "OTHER DEALINGS IN THE SOFTWARE.\n",
        "\n",
        "Class information entered from amqp_xml0-8.pdf and domain types from amqp-xml-doc0-9.pdf\n",
        "Updated for 0-9-1 by Tony Garnock-Jones\n",
        "\n",
        "b3cb053f15e7b98808c0ccc67f23cb3e  amqp_xml0-8.pdf\n",
        "http://www.twiststandards.org/index.php?option=com_docman&task=cat_view&gid=28&&Itemid=90\n",
        "8444db91e2949dbecfb2585e9eef6d64  amqp-xml-doc0-9.pdf\n",
        "https://jira.amqp.org/confluence/download/attachments/720900/amqp-xml-doc0-9.pdf?version=1\n"],

    "domains": [
        ["bit", "bit"],
        ["channel-id", "longstr"],
        ["class-id", "short"],
        ["consumer-tag", "shortstr"],
        ["delivery-tag", "longlong"],
        ["destination", "shortstr"],
        ["duration", "longlong"],
        ["exchange-name", "shortstr"],
        ["long", "long"],
        ["longlong", "longlong"],
        ["longstr", "longstr"],
        ["method-id", "short"],
        ["no-ack", "bit"],
        ["no-local", "bit"],
        ["octet", "octet"],
        ["offset", "longlong"],
        ["path", "shortstr"],
        ["peer-properties", "table"],
        ["queue-name", "shortstr"],
        ["redelivered", "bit"],
        ["reference", "longstr"],
        ["reject-code", "short"],
        ["reject-text", "shortstr"],
        ["reply-code", "short"],
        ["reply-text", "shortstr"],
        ["security-token", "longstr"],
        ["short", "short"],
        ["shortstr", "shortstr"],
        ["table", "table"],
        ["timestamp", "timestamp"]
    ],

    "constants": [
        {"name": "FRAME-METHOD", "value": 1},
        {"name": "FRAME-HEADER", "value": 2},
        {"name": "FRAME-BODY", "value": 3},
        {"name": "FRAME-HEARTBEAT", "value": 8},
        {"name": "FRAME-MIN-SIZE", "value": 4096},
        {"name": "FRAME-END", "value": 206},
        {"name": "REPLY-SUCCESS", "value": 200},
        {"name": "CONTENT-TOO-LARGE", "value": 311, "class": "soft-error"},
        {"name": "NO-ROUTE", "value": 312, "class": "soft-error"},
        {"name": "NO-CONSUMERS", "value": 313, "class": "soft-error"},
        {"name": "ACCESS-REFUSED", "value": 403, "class": "soft-error"},
        {"name": "NOT-FOUND", "value": 404, "class": "soft-error"},
        {"name": "RESOURCE-LOCKED", "value": 405, "class": "soft-error"},
        {"name": "PRECONDITION-FAILED", "value": 406, "class": "soft-error"},
        {"name": "CONNECTION-FORCED", "value": 320, "class": "hard-error"},
        {"name": "INVALID-PATH", "value": 402, "class": "hard-error"},
        {"name": "FRAME-ERROR", "value": 501, "class": "hard-error"},
        {"name": "SYNTAX-ERROR", "value": 502, "class": "hard-error"},
        {"name": "COMMAND-INVALID", "value": 503, "class": "hard-error"},
        {"name": "CHANNEL-ERROR", "value": 504, "class": "hard-error"},
        {"name": "UNEXPECTED-FRAME", "value": 505, "class": "hard-error"},
        {"name": "RESOURCE-ERROR", "value": 506, "class": "hard-error"},
        {"name": "NOT-ALLOWED", "value": 530, "class": "hard-error"},
        {"name": "NOT-IMPLEMENTED", "value": 540, "class": "hard-error"},
        {"name": "INTERNAL-ERROR", "value": 541, "class": "hard-error"}
    ],

    "classes": [
        {
            "id": 10,
            "methods": [{"id": 10,
                         "arguments": [{"type": "octet", "name": "version-major", "default-value": 0},
                                       {"type": "octet", "name": "version-minor", "default-value": 9},
                                       {"domain": "peer-properties", "name": "server-properties"},
                                       {"type": "longstr", "name": "mechanisms", "default-value": "PLAIN"},
                                       {"type": "longstr", "name": "locales", "default-value": "en_US"}],
                         "name": "start",
                         "synchronous" : true},
                        {"id": 11,
                         "arguments": [{"domain": "peer-properties", "name": "client-properties"},
                                       {"type": "shortstr", "name": "mechanism", "default-value": "PLAIN"},
                                       {"type": "longstr", "name": "response"},
                                       {"type": "shortstr", "name": "locale", "default-value": "en_US"}],
                         "name": "start-ok"},
                        {"id": 20,
                         "arguments": [{"type": "longstr", "name": "challenge"}],
                         "name": "secure",
                         "synchronous" : true},
                        {"id": 21,
                         "arguments": [{"type": "longstr", "name": "response"}],
                         "name": "secure-ok"},
                        {"id": 30,
                         "arguments": [{"type": "short", "name": "channel-max", "default-value": 0},
                                       {"type": "long", "name": "frame-max", "default-value": 0},
                                       {"type": "short", "name": "heartbeat", "default-value": 0}],
                         "name": "tune",
                         "synchronous" : true},
                        {"id": 31,
                         "arguments": [{"type": "short", "name": "channel-max", "default-value": 0},
                                       {"type": "long", "name": "frame-max", "default-value": 0},
                                       {"type": "short", "name": "heartbeat", "default-value": 0}],
                         "name": "tune-ok"},
                        {"id": 40,
                         "arguments": [{"type": "shortstr", "name": "virtual-host", "default-value": "/"},
                                       {"type": "shortstr", "name": "capabilities", "default-value": ""},
                                       {"type": "bit", "name": "insist", "default-value": false}],
                         "name": "open",
                         "synchronous" : true},
                        {"id": 41,
                         "arguments": [{"type": "shortstr", "name": "known-hosts", "default-value": ""}],
                         "name": "open-ok"},
                        {"id": 50,
                         "arguments": [{"type": "short", "name": "reply-code"},
                                       {"type": "shortstr", "name": "reply-text", "default-value": ""},
                                       {"type": "short", "name": "class-id"},
                                       {"type": "short", "name": "method-id"}],
                         "name": "close",
                         "synchronous" : true},
                        {"id": 51,
                         "arguments": [],
                         "name": "close-ok"}],
            "name": "connection",
            "properties": []
        },
        {
            "id": 20,
            "methods": [{"id": 10,
                         "arguments": [{"type": "shortstr", "name": "out-of-band", "default-value": ""}],
                         "name": "open",
                         "synchronous" : true},
                        {"id": 11,
                         "arguments": [{"type": "longstr", "name": "channel-id", "default-value": ""}],
                         "name": "open-ok"},
                        {"id": 20,
                         "arguments": [{"type": "bit", "name": "active"}],
                         "name": "flow",
                         "synchronous" : true},
                        {"id": 21,
                         "arguments": [{"type": "bit", "name": "active"}],
                         "name": "flow-ok"},
                        {"id": 40,
                         "arguments": [{"type": "short", "name": "reply-code"},
                                       {"type": "shortstr", "name": "reply-text", "default-value": ""},
                                       {"type": "short", "name": "class-id"},
                                       {"type": "short", "name": "method-id"}],
                         "name": "close",
                         "synchronous" : true},
                        {"id": 41,
                         "arguments": [],
                         "name": "close-ok"}],
            "name": "channel"
        },
        {
            "id": 30,
            "methods": [{"id": 10,
                         "arguments": [{"type": "shortstr", "name": "realm", "default-value": "/data"},
                                       {"type": "bit", "name": "exclusive", "default-value": false},
                                       {"type": "bit", "name": "passive", "default-value": true},
                                       {"type": "bit", "name": "active", "default-value": true},
                                       {"type": "bit", "name": "write", "default-value": true},
                                       {"type": "bit", "name": "read", "default-value": true}],
                         "name": "request",
                         "synchronous" : true},
                        {"id": 11,
                    "arguments": [{"type": "short", "name": "ticket", "default-value": 1}],
                         "name": "request-ok"}],
            "name": "access"
        },
        {
            "id": 40,
            "methods": [{"id": 10,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "exchange"},
                                       {"type": "shortstr", "name": "type", "default-value": "direct"},
                                       {"type": "bit", "name": "passive", "default-value": false},
                                       {"type": "bit", "name": "durable", "default-value": false},
                                       {"type": "bit", "name": "auto-delete", "default-value": false},
                                       {"type": "bit", "name": "internal", "default-value": false},
                                       {"type": "bit", "name": "nowait", "default-value": false},
                                       {"type": "table", "name": "arguments", "default-value": {}}],
                         "name": "declare",
                         "synchronous" : true},
                        {"id": 11,
                         "arguments": [],
                         "name": "declare-ok"},
                        {"id": 20,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "exchange"},
                                       {"type": "bit", "name": "if-unused", "default-value": false},
                                       {"type": "bit", "name": "nowait", "default-value": false}],
                         "name": "delete",
                         "synchronous" : true},
                        {"id": 21,
                         "arguments": [],
                         "name": "delete-ok"},
                        {"id": 30,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "destination"},
                                       {"type": "shortstr", "name": "source"},
                                       {"type": "shortstr", "name": "routing-key", "default-value": ""},
                                       {"type": "bit", "name": "nowait", "default-value": false},
                                       {"type": "table", "name": "arguments", "default-value": {}}],
                         "name": "bind",
                         "synchronous" : true},
                        {"id": 31,
                         "arguments": [],
                         "name": "bind-ok"},
                        {"id": 40,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "destination"},
                                       {"type": "shortstr", "name": "source"},
                                       {"type": "shortstr", "name": "routing-key", "default-value": ""},
                                       {"type": "bit", "name": "nowait", "default-value": false},
                                       {"type": "table", "name": "arguments", "default-value": {}}],
                         "name": "unbind",
                         "synchronous" : true},
                        {"id": 51,
                         "arguments": [],
                         "name": "unbind-ok"}],
            "name": "exchange"
        },
        {
            "id": 50,
            "methods": [{"id": 10,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                           {"type": "shortstr", "name": "queue", "default-value": ""},
                                       {"type": "bit", "name": "passive", "default-value": false},
                                       {"type": "bit", "name": "durable", "default-value": false},
                                       {"type": "bit", "name": "exclusive", "default-value": false},
                                       {"type": "bit", "name": "auto-delete", "default-value": false},
                                       {"type": "bit", "name": "nowait", "default-value": false},
                                       {"type": "table", "name": "arguments", "default-value": {}}],
                         "name": "declare",
                         "synchronous" : true},
                        {"id": 11,
                         "arguments": [{"type": "shortstr", "name": "queue"},
                                       {"type": "long", "name": "message-count"},
                                       {"type": "long", "name": "consumer-count"}],
                         "name": "declare-ok"},
                        {"id": 20,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "queue", "default-value": ""},
                                       {"type": "shortstr", "name": "exchange"},
                                       {"type": "shortstr", "name": "routing-key", "default-value": ""},
                                       {"type": "bit", "name": "nowait", "default-value": false},
                                       {"type": "table", "name": "arguments", "default-value": {}}],
                         "name": "bind",
                         "synchronous" : true},
                        {"id": 21,
                         "arguments": [],
                         "name": "bind-ok"},
                        {"id": 30,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "queue", "default-value": ""},
                                       {"type": "bit", "name": "nowait", "default-value": false}],
                         "name": "purge",
                         "synchronous" : true},
                        {"id": 31,
                         "arguments": [{"type": "long", "name": "message-count"}],
                         "name": "purge-ok"},
                        {"id": 40,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "queue", "default-value": ""},
                                       {"type": "bit", "name": "if-unused", "default-value": false},
                                       {"type": "bit", "name": "if-empty", "default-value": false},
                                       {"type": "bit", "name": "nowait", "default-value": false}],
                         "name": "delete",
                         "synchronous" : true},
                        {"id": 41,
                         "arguments": [{"type": "long", "name": "message-count"}],
                         "name": "delete-ok"},
                        {"id": 50,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "queue", "default-value": ""},
                                       {"type": "shortstr", "name": "exchange"},
                                       {"type": "shortstr", "name": "routing-key", "default-value": ""},
                                       {"type": "table", "name": "arguments", "default-value": {}}],
                         "name": "unbind",
                         "synchronous" : true},
                        {"id": 51,
                         "arguments": [],
                         "name": "unbind-ok"}
                        ],
            "name": "queue"
        },
        {
            "id": 60,
            "methods": [{"id": 10,
                         "arguments": [{"type": "long", "name": "prefetch-size", "default-value": 0},
                                       {"type": "short", "name": "prefetch-count", "default-value": 0},
                                       {"type": "bit", "name": "global", "default-value": false}],
                         "name": "qos",
                         "synchronous" : true},
                        {"id": 11,
                         "arguments": [],
                         "name": "qos-ok"},
                        {"id": 20,
                         "arguments": [{"domain": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "queue", "default-value": ""},
                                       {"type": "shortstr", "name": "consumer-tag", "default-value": ""},
                                       {"type": "bit", "name": "no-local", "default-value": false},
                                       {"type": "bit", "name": "no-ack", "default-value": false},
                                       {"type": "bit", "name": "exclusive", "default-value": false},
                                       {"type": "bit", "name": "nowait", "default-value": false},
                                       {"type": "table", "name": "arguments", "default-value": {}}],
                         "name": "consume",
                         "synchronous" : true},
                        {"id": 21,
                         "arguments": [{"type": "shortstr", "name": "consumer-tag"}],
                         "name": "consume-ok"},
                        {"id": 30,
                         "arguments": [{"type": "shortstr", "name": "consumer-tag"},
                                       {"type": "bit", "name": "nowait", "default-value": false}],
                         "name": "cancel",
                         "synchronous" : true},
                        {"id": 31,
                         "arguments": [{"type": "shortstr", "name": "consumer-tag"}],
                         "name": "cancel-ok"},
                        {"content": true,
                         "id": 40,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "exchange", "default-value": ""},
                                       {"type": "shortstr", "name": "routing-key", "default-value": ""},
                                       {"type": "bit", "name": "mandatory", "default-value": false},
                                       {"type": "bit", "name": "immediate", "default-value": false}],
                         "name": "publish"},
                        {"content": true,
                         "id": 50,
                         "arguments": [{"type": "short", "name": "reply-code"},
                                       {"type": "shortstr", "name": "reply-text", "default-value": ""},
                                       {"type": "shortstr", "name": "exchange"},
                                       {"type": "shortstr", "name": "routing-key"}],
                         "name": "return"},
                        {"content": true,
                         "id": 60,
                         "arguments": [{"type": "shortstr", "name": "consumer-tag"},
                                       {"type": "longlong", "name": "delivery-tag"},
                                       {"type": "bit", "name": "redelivered", "default-value": false},
                                       {"type": "shortstr", "name": "exchange"},
                                       {"type": "shortstr", "name": "routing-key"}],
                         "name": "deliver"},
                        {"id": 70,
                         "arguments": [{"type": "short", "name": "ticket", "default-value": 0},
                                       {"type": "shortstr", "name": "queue", "default-value": ""},
                                       {"type": "bit", "name": "no-ack", "default-value": false}],
                         "name": "get",
                         "synchronous" : true},
                        {"content": true,
                         "id": 71,
                         "arguments": [{"type": "longlong", "name": "delivery-tag"},
                                       {"type": "bit", "name": "redelivered", "default-value": false},
                                       {"type": "shortstr", "name": "exchange"},
                                       {"type": "shortstr", "name": "routing-key"},
                                       {"type": "long", "name": "message-count"}],
                         "name": "get-ok"},
                        {"id": 72,
                         "arguments": [{"type": "shortstr", "name": "cluster-id", "default-value": ""}],
                         "name": "get-empty"},
                        {"id": 80,
                         "arguments": [{"type": "longlong", "name": "delivery-tag", "default-value": 0},
                                       {"type": "bit", "name": "multiple", "default-value": false}],
                         "name": "ack"},
                        {"id": 90,
                         "arguments": [{"type": "longlong", "name": "delivery-tag"},
                                       {"type": "bit", "name": "requeue", "default-value": true}],
                         "name": "reject"},
                        {"id": 100,
                         "arguments": [{"type": "bit", "name": "requeue", "default-value": false}],
                         "name": "recover-async"},
                        {"id": 110,
                         "arguments": [{"type": "bit", "name": "requeue", "default-value": false}],
                         "name": "recover",
                         "synchronous" : true},
                        {"id": 111,
                         "arguments": [],
                         "name": "recover-ok"},
                        {"id": 120,
                         "arguments": [{"type": "longlong", "name": "delivery-tag", "default-value": 0},
                                       {"type": "bit", "name": "multiple", "default-value": false},
                                       {"type": "bit", "name": "requeue", "default-value": true}],
                         "name": "nack"},
                        {"id": 257,
                         "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""},
                                       {"type": "long", "name": "count"},
                                       {"type": "long", "name": "credit"},
                                       {"type": "bit", "name": "drain"}],
                         "name": "credit",
                         "synchronous" : true},
                        {"id": 258,
                         "arguments": [{"type": "long", "name": "available"}],
                         "name": "credit-ok"},
                        {"id": 259,
                         "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""},
                                       {"type": "long", "name": "credit"},
                                       {"type": "long", "name": "count"},
                                       {"type": "long", "name": "available"},
                                       {"type": "bit", "name": "drain"}],
                         "name": "credit-state"}],
            "name": "basic",
            "properties": [{"type": "shortstr", "name": "content-type"},
                           {"type": "shortstr", "name": "content-encoding"},
                           {"type": "table", "name": "headers"},
                           {"type": "octet", "name": "delivery-mode"},
                           {"type": "octet", "name": "priority"},
                           {"type": "shortstr", "name": "correlation-id"},
                           {"type": "shortstr", "name": "reply-to"},
                           {"type": "shortstr", "name": "expiration"},
                           {"type": "shortstr", "name": "message-id"},
                           {"type": "timestamp", "name": "timestamp"},
                           {"type": "shortstr", "name": "type"},
                           {"type": "shortstr", "name": "user-id"},
                           {"type": "shortstr", "name": "app-id"},
                           {"type": "shortstr", "name": "cluster-id"}]
        },
        {
            "id": 90,
            "methods": [{"id": 10,
                         "arguments": [],
                         "name": "select",
                         "synchronous" : true},
                        {"id": 11,
                         "arguments": [],
                         "name": "select-ok"},
                        {"id": 20,
                         "arguments": [],
                         "name": "commit",
                         "synchronous" : true},
                        {"id": 21,
                         "arguments": [],
                         "name": "commit-ok"},
                        {"id": 30,
                         "arguments": [],
                         "name": "rollback",
                         "synchronous" : true},
                        {"id": 31,
                         "arguments": [],
                         "name": "rollback-ok"}],
            "name": "tx"
        },
        {
            "id": 85,
            "methods": [{"id": 10,
                         "arguments": [
                             {"type": "bit", "name": "nowait", "default-value": false}],
                         "name": "select",
                         "synchronous": true},
                        {"id": 11,
                         "arguments": [],
                         "name": "select-ok"}],
            "name": "confirm"
        }
    ]
}