/* Copyright (c) 2008 John Leuner Permission is hereby granted, free of charge, to any person obtaining a copy of this file (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Class information entered from amqp_xml0-8.pdf and domain types from amqp-xml-doc0-9.pdf b3cb053f15e7b98808c0ccc67f23cb3e amqp_xml0-8.pdf http://www.twiststandards.org/index.php?option=com_docman&task=cat_view&gid=28&&Itemid=90 8444db91e2949dbecfb2585e9eef6d64 amqp-xml-doc0-9.pdf https://jira.amqp.org/confluence/download/attachments/720900/amqp-xml-doc0-9.pdf?version=1 */ { "name": "AMQP", "major-version": 8, "minor-version": 0, "port": 5672, "domains": [ ["access-ticket", "short"], ["bit", "bit"], ["channel-id", "longstr"], ["class-id", "short"], ["consumer-tag", "shortstr"], ["delivery-tag", "longlong"], ["destination", "shortstr"], ["duration", "longlong"], ["exchange-name", "shortstr"], ["known-hosts", "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-OOB-METHOD", "value": 4}, {"name": "FRAME-OOB-HEADER", "value": 5}, {"name": "FRAME-OOB-BODY", "value": 6}, {"name": "FRAME-TRACE", "value": 7}, {"name": "FRAME-HEARTBEAT", "value": 8}, {"name": "FRAME-MIN-SIZE", "value": 4096}, {"name": "FRAME-END", "value": 206}, {"name": "REPLY-SUCCESS", "value": 200}, {"name": "NOT-DELIVERED", "value": 310, "class": "soft-error"}, {"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": "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"}, {"type": "octet", "name": "version-minor"}, {"domain": "peer-properties", "name": "server properties"}, {"type": "longstr", "name": "mechanisms"}, {"type": "longstr", "name": "locales"}], "name": "start"}, {"id": 11, "arguments": [{"domain": "peer-properties", "name": "client-properties"}, {"type": "shortstr", "name": "mechanism"}, {"type": "longstr", "name": "response"}, {"type": "shortstr", "name": "locale"}], "name": "start-ok"}, {"id": 20, "arguments": [{"type": "longstr", "name": "challenge"}], "name": "secure"}, {"id": 21, "arguments": [{"type": "longstr", "name": "response"}], "name": "secure-ok"}, {"id": 30, "arguments": [{"type": "short", "name": "channel-max"}, {"type": "long", "name": "frame-max"}, {"type": "short", "name": "heartbeat"}], "name": "tune"}, {"id": 31, "arguments": [{"type": "short", "name": "channel-max"}, {"type": "long", "name": "frame-max"}, {"type": "short", "name": "heartbeat"}], "name": "tune-ok"}, {"id": 40, "arguments": [{"type": "shortstr", "name": "virtual-host"}, {"type": "shortstr", "name": "capabilities"}, {"type": "bit", "name": "insist"}], "name": "open"}, {"id": 41, "arguments": [{"type": "shortstr", "name": "known-hosts"}], "name": "open-ok"}, {"id": 50, "arguments": [{"type": "shortstr", "name": "host"}, {"type": "shortstr", "name": "known-hosts"}], "name": "redirect"}, {"id": 60, "arguments": [{"type": "short", "name": "reply-code"}, {"type": "shortstr", "name": "reply-text"}, {"type": "short", "name": "class-id"}, {"type": "short", "name": "method-id"}], "name": "close"}, {"id": 61, "arguments": [], "name": "close-ok"}], "name": "connection", "properties": [] }, { "id": 20, "methods": [{"id": 10, "arguments": [{"type": "shortstr", "name": "out-of-band"}], "name": "open"}, {"id": 11, "arguments": [], "name": "open-ok"}, {"id": 20, "arguments": [{"type": "bit", "name": "active"}], "name": "flow"}, {"id": 21, "arguments": [{"type": "bit", "name": "active"}], "name": "flow-ok"}, {"id": 30, "arguments": [{"type": "short", "name": "reply-code"}, {"type": "shortstr", "name": "reply-text"}, {"type": "table", "name": "details"}], "name": "alert"}, {"id": 40, "arguments": [{"type": "short", "name": "reply-code"}, {"type": "shortstr", "name": "reply-text"}, {"type": "short", "name": "class-id"}, {"type": "short", "name": "method-id"}], "name": "close"}, {"id": 41, "arguments": [], "name": "close-ok"}], "name": "channel" }, { "id": 30, "methods": [{"id": 10, "arguments": [{"type": "shortstr", "name": "realm"}, {"type": "bit", "name": "exclusive"}, {"type": "bit", "name": "passive"}, {"type": "bit", "name": "active"}, {"type": "bit", "name": "write"}, {"type": "bit", "name": "read"}], "name": "request"}, {"id": 11, "arguments": [{"type": "short", "name": "ticket"}], "name": "request-ok"}], "name": "access" }, { "id": 40, "methods": [{"id": 10, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "type"}, {"type": "bit", "name": "passive"}, {"type": "bit", "name": "durable"}, {"type": "bit", "name": "auto-delete"}, {"type": "bit", "name": "internal"}, {"type": "bit", "name": "nowait"}, {"type": "table", "name": "arguments"}], "name": "declare"}, {"id": 11, "arguments": [], "name": "declare-ok"}, {"id": 20, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "exchange"}, {"type": "bit", "name": "if-unused"}, {"type": "bit", "name": "nowait"}], "name": "delete"}, {"id": 21, "arguments": [], "name": "delete-ok"}], "name": "exchange" }, { "id": 50, "methods": [{"id": 10, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "queue"}, {"type": "bit", "name": "passive"}, {"type": "bit", "name": "durable"}, {"type": "bit", "name": "exclusive"}, {"type": "bit", "name": "auto-delete"}, {"type": "bit", "name": "nowait"}, {"type": "table", "name": "arguments"}], "name": "declare"}, {"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"}, {"type": "shortstr", "name": "queue"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "routing-key"}, {"type": "bit", "name": "nowait"}, {"type": "table", "name": "arguments"}], "name": "bind"}, {"id": 21, "arguments": [], "name": "bind-ok"}, {"id": 30, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "queue"}, {"type": "bit", "name": "nowait"}], "name": "purge"}, {"id": 31, "arguments": [{"type": "long", "name": "message-count"}], "name": "purge-ok"}, {"id": 40, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "queue"}, {"type": "bit", "name": "if-unused"}, {"type": "bit", "name": "if-empty"}, {"type": "bit", "name": "nowait"}], "name": "delete"}, {"id": 41, "arguments": [{"type": "long", "name": "message-count"}], "name": "delete-ok"}, {"id": 50, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "queue"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "routing-key"}, {"type": "table", "name": "arguments"}], "name": "unbind"}, {"id": 51, "arguments": [], "name": "unbind-ok"} ], "name": "queue" }, { "id": 60, "methods": [{"id": 10, "arguments": [{"type": "long", "name": "prefetch-size"}, {"type": "short", "name": "prefetch-count"}, {"type": "bit", "name": "global"}], "name": "qos"}, {"id": 11, "arguments": [], "name": "qos-ok"}, {"id": 20, "arguments": [{"domain": "access-ticket", "name": "ticket"}, {"domain": "queue-name", "name": "queue"}, {"type": "shortstr", "name": "consumer-tag"}, {"type": "bit", "name": "no-local"}, {"type": "bit", "name": "no-ack"}, {"type": "bit", "name": "exclusive"}, {"type": "bit", "name": "nowait"}], "name": "consume"}, {"id": 21, "arguments": [{"type": "shortstr", "name": "consumer-tag"}], "name": "consume-ok"}, {"id": 30, "arguments": [{"type": "shortstr", "name": "consumer-tag"}, {"type": "bit", "name": "nowait"}], "name": "cancel"}, {"id": 31, "arguments": [{"type": "shortstr", "name": "consumer-tag"}], "name": "cancel-ok"}, {"content": true, "id": 40, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "routing-key"}, {"type": "bit", "name": "mandatory"}, {"type": "bit", "name": "immediate"}], "name": "publish"}, {"content": true, "id": 50, "arguments": [{"type": "short", "name": "reply-code"}, {"type": "shortstr", "name": "reply-text"}, {"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"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "routing-key"}], "name": "deliver"}, {"id": 70, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "queue"}, {"type": "bit", "name": "no-ack"}], "name": "get"}, {"content": true, "id": 71, "arguments": [{"type": "longlong", "name": "delivery-tag"}, {"type": "bit", "name": "redelivered"}, {"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"}], "name": "get-empty"}, {"id": 80, "arguments": [{"type": "longlong", "name": "delivery-tag"}, {"type": "bit", "name": "multiple"}], "name": "ack"}, {"id": 90, "arguments": [{"type": "longlong", "name": "delivery-tag"}, {"type": "bit", "name": "requeue"}], "name": "reject"}, {"id": 100, "arguments": [{"type": "bit", "name": "requeue"}], "name": "recover"}], "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": 70, "methods": [{"id": 10, "arguments": [{"type": "long", "name": "prefetch-size"}, {"type": "short", "name": "prefetch-count"}, {"type": "bit", "name": "global"}], "name": "qos"}, {"id": 11, "arguments": [], "name": "qos-ok"}, {"id": 20, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "queue"}, {"type": "shortstr", "name": "consumer-tag"}, {"type": "bit", "name": "no-local"}, {"type": "bit", "name": "no-ack"}, {"type": "bit", "name": "exclusive"}, {"type": "bit", "name": "nowait"}], "name": "consume"}, {"id": 21, "arguments": [{"type": "shortstr", "name": "consumer-tag"}], "name": "consume-ok"}, {"id": 30, "arguments": [{"type": "shortstr", "name": "consumer-tag"}, {"type": "bit", "name": "nowait"}], "name": "cancel"}, {"id": 31, "arguments": [{"type": "shortstr", "name": "consumer-tag"}], "name": "cancel-ok"}, {"id": 40, "arguments": [{"type": "shortstr", "name": "identifier"}, {"type": "longlong", "name": "content-size"}], "name": "open"}, {"id": 41, "arguments": [{"type": "longlong", "name": "staged-size"}], "name": "open-ok"}, {"content": true, "id": 50, "arguments": [], "name": "stage"}, {"id": 60, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "routing-key"}, {"type": "bit", "name": "mandatory"}, {"type": "bit", "name": "immediate"}, {"type": "shortstr", "name": "identifier"}], "name": "publish"}, {"content": true, "id": 70, "arguments": [{"type": "short", "name": "reply-code"}, {"type": "shortstr", "name": "reply-text"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "routing-key"}], "name": "return"}, {"id": 80, "arguments": [{"type": "shortstr", "name": "consumer-tag"}, {"type": "longlong", "name": "delivery-tag"}, {"type": "bit", "name": "redelivered"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "routing-key"}, {"type": "shortstr", "name": "identifier"}], "name": "deliver"}, {"id": 90, "arguments": [{"type": "longlong", "name": "delivery-tag"}, {"type": "bit", "name": "multiple"}], "name": "ack"}, {"id": 100, "arguments": [{"type": "longlong", "name": "delivery-tag"}, {"type": "bit", "name": "requeue"}], "name": "reject"}], "name": "file", "properties": [{"type": "shortstr", "name": "content-type"}, {"type": "shortstr", "name": "content-encoding"}, {"type": "table", "name": "headers"}, {"type": "octet", "name": "priority"}, {"type": "shortstr", "name": "reply-to"}, {"type": "shortstr", "name": "message-id"}, {"type": "shortstr", "name": "filename"}, {"type": "timestamp", "name": "timestamp"}, {"type": "shortstr", "name": "cluster-id"}] }, { "id": 80, "methods": [{"id": 10, "arguments": [{"type": "long", "name": "prefetch-size"}, {"type": "short", "name": "prefetch-count"}, {"type": "long", "name": "consume-rate"}, {"type": "bit", "name": "global"}], "name": "qos"}, {"id": 11, "arguments": [], "name": "qos-ok"}, {"id": 20, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "queue"}, {"type": "shortstr", "name": "consumer-tag"}, {"type": "bit", "name": "no-local"}, {"type": "bit", "name": "exclusive"}, {"type": "bit", "name": "nowait"}], "name": "consume"}, {"id": 21, "arguments": [{"type": "shortstr", "name": "consumer-tag"}], "name": "consume-ok"}, {"id": 30, "arguments": [{"type": "shortstr", "name": "consumer-tag"}, {"type": "bit", "name": "nowait"}], "name": "cancel"}, {"id": 31, "arguments": [{"type": "shortstr", "name": "consumer-tag"}], "name": "cancel-ok"}, {"content": true, "id": 40, "arguments": [{"type": "short", "name": "ticket"}, {"type": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "routing-key"}, {"type": "bit", "name": "mandatory"}, {"type": "bit", "name": "immediate"}], "name": "publish"}, {"content": true, "id": 50, "arguments": [{"type": "short", "name": "reply-code"}, {"type": "shortstr", "name": "reply-text"}, {"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": "shortstr", "name": "exchange"}, {"type": "shortstr", "name": "queue"}], "name": "deliver"}], "name": "stream", "properties": [{"type": "shortstr", "name": "content-type"}, {"type": "shortstr", "name": "content-encoding"}, {"type": "table", "name": "headers"}, {"type": "octet", "name": "priority"}, {"type": "timestamp", "name": "timestamp"}] }, { "id": 90, "methods": [{"id": 10, "arguments": [], "name": "select"}, {"id": 11, "arguments": [], "name": "select-ok"}, {"id": 20, "arguments": [], "name": "commit"}, {"id": 21, "arguments": [], "name": "commit-ok"}, {"id": 30, "arguments": [], "name": "rollback"}, {"id": 31, "arguments": [], "name": "rollback-ok"}], "name": "tx" }, { "id": 100, "methods": [{"id": 10, "arguments": [], "name": "select"}, {"id": 11, "arguments": [], "name": "select-ok"}, {"id": 20, "arguments": [{"type": "shortstr", "name": "dtx-identifier"}], "name": "start"}, {"id": 21, "arguments": [], "name": "start-ok"}], "name": "dtx" }, { "id": 110, "methods": [{"content": true, "id": 10, "arguments": [{"type": "table", "name": "meta-data"}], "name": "request"}], "name": "tunnel", "properties": [{"type": "table", "name": "headers"}, {"type": "shortstr", "name": "proxy-name"}, {"type": "shortstr", "name": "data-name"}, {"type": "octet", "name": "durable"}, {"type": "octet", "name": "broadcast"}] }, { "id": 120, "methods": [{"id": 10, "arguments": [{"type": "octet", "name": "integer-1"}, {"type": "short", "name": "integer-2"}, {"type": "long", "name": "integer-3"}, {"type": "longlong", "name": "integer-4"}, {"type": "octet", "name": "operation"}], "name": "integer"}, {"id": 11, "arguments": [{"type": "longlong", "name": "result"}], "name": "integer-ok"}, {"id": 20, "arguments": [{"type": "shortstr", "name": "string-1"}, {"type": "longstr", "name": "string-2"}, {"type": "octet", "name": "operation"}], "name": "string"}, {"id": 21, "arguments": [{"type": "longstr", "name": "result"}], "name": "string-ok"}, {"id": 30, "arguments": [{"type": "table", "name": "table"}, {"type": "octet", "name": "integer-op"}, {"type": "octet", "name": "string-op"}], "name": "table"}, {"id": 31, "arguments": [{"type": "longlong", "name": "integer-result"}, {"type": "longstr", "name": "string-result"}], "name": "table-ok"}, {"content": true, "id": 40, "arguments": [], "name": "content"}, {"content": true, "id": 41, "arguments": [{"type": "long", "name": "content-checksum"}], "name": "content-ok"}], "name": "test" } ] }