There are two main categories of management entity type.
3.4.1. Configuration Entities
Configuration entities define the attributes allowed in the configuration file
(see qdrouterd.conf(5)) but you can also create entities once the router is
running using the qdrouterd(8) tool’s create operation. Some entities can also
be modified using the update operation, see the entity descriptions below.
3.4.1.1. container
Attributes related to the AMQP container.
Operations allowed: READ
- containerName (string, CREATE)
- The name of the AMQP container. If not specified, the container name will be set to a value of the container’s choosing. The automatically assigned container name is not guaranteed to be persistent across restarts of the container.
- workerThreads (integer, default=1, CREATE)
- The number of threads that will be created to process message traffic and other application work (timers, non-amqp file descriptors, etc.) .
- debugDump (path, CREATE)
- A file to dump debugging information that can’t be logged normally.
- saslConfigPath (path, CREATE)
- Absolute path to the SASL configuration file.
- saslConfigName (string, default=’qdrouterd’, CREATE)
- Name of the SASL configuration. This string + ‘.conf’ is the name of the configuration file.
3.4.1.2. router
Tracks peer routers and computes routes to destinations.
Operations allowed: READ
- routerId (string, CREATE)
- Router’s unique identity.
- mode (One of [‘standalone’, ‘interior’, ‘edge’, ‘endpoint’], default=’standalone’, CREATE)
- In standalone mode, the router operates as a single component. It does not participate in the routing protocol and therefore will not cooperate with other routers. In interior mode, the router operates in cooperation with other interior routers in an interconnected network. In edge mode, the router operates with an up link into an interior router network. Edge routers are typically used as connection concentrators or as security firewalls for access into the interior network.
- area (string)
- Unused placeholder.
- helloInterval (integer, default=1, CREATE)
- Interval in seconds between HELLO messages sent to neighbor routers.
- helloMaxAge (integer, default=3, CREATE)
- Time in seconds after which a neighbor is declared lost if no HELLO is received.
- raInterval (integer, default=30, CREATE)
- Interval in seconds between Router-Advertisements sent to all routers in a stable network.
- raIntervalFlux (integer, default=4, CREATE)
- Interval in seconds between Router-Advertisements sent to all routers during topology fluctuations.
- remoteLsMaxAge (integer, default=60, CREATE)
- Time in seconds after which link state is declared stale if no RA is received.
- mobileAddrMaxAge (integer, default=60, CREATE)
- Deprecated - This value is no longer used in the router.
- addrCount (integer)
- Number of addresses known to the router.
- linkCount (integer)
- Number of links attached to the router node.
- nodeCount (integer)
- Number of known peer router nodes.
3.4.1.3. listener
Listens for incoming connections to the router.
Operations allowed: CREATE, READ
- addr (string, default=‘127.0.0.1’, CREATE)
- IP address: ipv4 or ipv6 literal or a host name.
- port (string, default=’amqp’, CREATE)
- Port number or symbolic service name.
- role (One of [‘normal’, ‘inter-router’, ‘on-demand’], default=’normal’, CREATE)
- The role of an established connection. In the normal role, the connection is assumed to be used for AMQP clients that are doing normal message delivery over the connection. In the inter-router role, the connection is assumed to be to another router in the network. Inter-router discovery and routing protocols can only be used over inter-router connections.
- certDb (path, CREATE)
- The path to the database that contains the public certificates of trusted certificate authorities (CA).
- certFile (path, CREATE)
- The path to the file containing the PEM-formatted public certificate to be used on the local end of any connections using this profile.
- keyFile (path, CREATE)
- The path to the file containing the PEM-formatted private key for the above certificate.
- passwordFile (path, CREATE)
- If the above private key is password protected, this is the path to a file containing the password that unlocks the certificate key.
- password (string, CREATE)
- An alternative to storing the password in a file referenced by passwordFile is to supply the password right here in the configuration file. This option can be used by supplying the password in the ‘password’ option. Don’t use both password and passwordFile in the same profile.
- saslMechanisms (string, CREATE)
- Comma separated list of accepted SASL authentication mechanisms.
- authenticatePeer (boolean, CREATE)
- yes: Require the peer’s identity to be authenticated; no: Do not require any authentication.
- requireEncryption (boolean, CREATE)
- yes: Require the connection to the peer to be encrypted; no: Permit non-encrypted communication with the peer
- requireSsl (boolean, CREATE)
- yes: Require the use of SSL or TLS on the connection; no: Allow clients to connect without SSL or TLS.
- trustedCerts (path, CREATE)
- This optional setting can be used to reduce the set of available CAs for client authentication. If used, this setting must provide a path to a PEM file that contains the trusted certificates.
- maxFrameSize (integer, default=65536, CREATE)
- Defaults to 65536. If specified, it is the maximum frame size in octets that will be used in the connection-open negotiation with a connected peer. The frame size is the largest contiguous set of uninterrupted data that can be sent for a message delivery over the connection. Interleaving of messages on different links is done at frame granularity.
- requirePeerAuth (boolean, CREATE)
- Deprecated - This attribute is now controlled by the authenticatePeer attribute.
- allowUnsecured (boolean, CREATE)
- Deprecated - This attribute is now controlled by the requireEncryption attribute.
- allowNoSasl (boolean, CREATE)
- Deprecated - This attribute is now controlled by the authenticatePeer attribute.
3.4.1.4. connector
Establishes an outgoing connections from the router.
Operations allowed: CREATE, READ
- addr (string, default=‘127.0.0.1’, CREATE)
- IP address: ipv4 or ipv6 literal or a host name.
- port (string, default=’amqp’, CREATE)
- Port number or symbolic service name.
- role (One of [‘normal’, ‘inter-router’, ‘on-demand’], default=’normal’, CREATE)
- The role of an established connection. In the normal role, the connection is assumed to be used for AMQP clients that are doing normal message delivery over the connection. In the inter-router role, the connection is assumed to be to another router in the network. Inter-router discovery and routing protocols can only be used over inter-router connections.
- certDb (path, CREATE)
- The path to the database that contains the public certificates of trusted certificate authorities (CA).
- certFile (path, CREATE)
- The path to the file containing the PEM-formatted public certificate to be used on the local end of any connections using this profile.
- keyFile (path, CREATE)
- The path to the file containing the PEM-formatted private key for the above certificate.
- passwordFile (path, CREATE)
- If the above private key is password protected, this is the path to a file containing the password that unlocks the certificate key.
- password (string, CREATE)
- An alternative to storing the password in a file referenced by passwordFile is to supply the password right here in the configuration file. This option can be used by supplying the password in the ‘password’ option. Don’t use both password and passwordFile in the same profile.
- saslMechanisms (string, CREATE)
- Comma separated list of accepted SASL authentication mechanisms.
- allowRedirect (boolean, default=True, CREATE)
- Allow the peer to redirect this connection to another address.
- maxFrameSize (integer, default=65536, CREATE)
- Maximum frame size in octets that will be used in the connection-open negotiation with a connected peer. The frame size is the largest contiguous set of uninterrupted data that can be sent for a message delivery over the connection. Interleaving of messages on different links is done at frame granularity.
3.4.1.5. log
Configure logging for a particular module. You can use the UPDATE operation to change log settings while the router is running.
Operations allowed: UPDATE, READ
- module (One of [‘ROUTER’, ‘ROUTER_HELLO’, ‘ROUTER_LS’, ‘ROUTER_MA’, ‘MESSAGE’, ‘SERVER’, ‘AGENT’, ‘CONTAINER’, ‘CONFIG’, ‘ERROR’, ‘DISPATCH’, ‘DEFAULT’], required)
- Module to configure. The special module ‘DEFAULT’ specifies defaults for all modules.
- enable (string, default=’default’, required, UPDATE)
- Levels are: trace, debug, info, notice, warning, error, critical. The enable string is a comma-separated list of levels. A level may have a trailing ‘+’ to enable that level and above. For example ‘trace,debug,warning+’ means enable trace, debug, warning, error and critical. The value ‘none’ means disable logging for the module. The value ‘default’ means use the value from the DEFAULT module.
- timestamp (boolean, UPDATE)
- Include timestamp in log messages.
- source (boolean, UPDATE)
- Include source file and line number in log messages.
- output (string, UPDATE)
- Where to send log messages. Can be ‘stderr’, ‘syslog’ or a file name.
3.4.1.6. fixedAddress
Establishes semantics for addresses starting with a prefix.
Operations allowed: CREATE, READ
- prefix (string, required, CREATE)
- The address prefix (always starting with ‘/’).
- phase (integer, CREATE)
- The phase of a multi-hop address passing through one or more waypoints.
- fanout (One of [‘multiple’, ‘single’], default=’multiple’, CREATE)
- One of ‘multiple’ or ‘single’. Multiple fanout is a non-competing pattern. If there are multiple consumers using the same address, each consumer will receive its own copy of every message sent to the address. Single fanout is a competing pattern where each message is sent to only one consumer.
- bias (One of [‘closest’, ‘spread’], default=’closest’, CREATE)
- Only if fanout is single. One of ‘closest’ or ‘spread’. Closest bias means that messages to an address will always be delivered to the closest (lowest cost) subscribed consumer. Spread bias will distribute the messages across subscribers in an approximately even manner.
3.4.1.7. waypoint
A remote node that messages for an address pass through.
Operations allowed: CREATE, READ
- address (string, required, CREATE)
- The AMQP address of the waypoint.
- connector (string, required, CREATE)
- The name of the on-demand connector used to reach the waypoint’s container.
- inPhase (integer, default=-1, CREATE)
- The phase of the address as it is routed _to_ the waypoint.
- outPhase (integer, default=-1, CREATE)
- The phase of the address as it is routed _from_ the waypoint.
3.4.1.8. linkRoutePattern
An address pattern to match against link sources and targets to cause the router to link-route the attach across the network to a remote node.
Operations allowed: CREATE, READ
- prefix (string, required, CREATE)
- An address prefix to match against target and source addresses. For Dispatch 0.4, this pattern must be of the form ‘<text>.’ and matches any address that contains that prefix. Note that the prefix must end with a period (.) and must not contain any other periods.
- connector (string, CREATE)
- The name of the on-demand connector used to reach the target node’s container. If this value is not provided, it means that the target container is expected to be connected to a different router in the network. This prevents links to a link-routable address from being misinterpreted as message-routing links when there is no route to a valid destination available.
3.4.1.9. console
Start a websocket/tcp proxy and http file server to serve the web console
Operations allowed: READ
- listener (string)
- The name of the listener to send the proxied tcp traffic to.
- wsport (integer, default=5673)
- port on which to listen for websocket traffic
- proxy (string)
- The full path to the proxy program to run.
- home (string)
- The full path to the html/css/js files for the console.
- args (string)
- Optional args to pass the proxy program for logging, authentication, etc.
3.4.2. Operational Entities
Operational entities provide statistics and other run-time attributes of the router.
The qdstat(8) tool provides a convenient way to query run-time statistics.
You can also use the general-purpose management tool qdmanage(8) to query
operational attributes.
3.4.2.1. org.amqp.management
The standard AMQP management node interface.
Operations allowed: QUERY, GET-TYPES, GET-ANNOTATIONS, GET-OPERATIONS, GET-ATTRIBUTES, GET-MGMT-NODES, READ
3.4.2.1.1. Operation GET-TYPES
Get the set of entity types and their inheritance relationships
Request properties:
- entityType (string)
- If set, restrict query results to entities that extend (directly or indirectly) this type
- identity (string)
- Set to the value self
Response body (map)A map where each key is an entity type name (string) and the corresponding value is the list of the entity types (strings) that it extends.
3.4.2.1.2. Operation GET-ATTRIBUTES
Get the set of entity types and the annotations they implement
Request properties:
- entityType (string)
- If set, restrict query results to entities that extend (directly or indirectly) this type
- identity (string)
- Set to the value self
Response body (map)A map where each key is an entity type name (string) and the corresponding value is a list (of strings) of attributes on that entity type.
3.4.2.1.3. Operation GET-OPERATIONS
Get the set of entity types and the operations they support
Request properties:
- entityType (string)
- If set, restrict query results to entities that extend (directly or indirectly) this type
- identity (string)
- Set to the value self
Response body (map)A map where each key is an entity type name (string) and the corresponding value is the list of operation names (strings) that it supports.
3.4.2.1.4. Operation GET-ANNOTATIONS
Request properties:
- entityType (string)
- If set, restrict query results to entities that extend (directly or indirectly) this type
- identity (string)
- Set to the value self
Response body (map)A map where each key is an entity type name (string) and the corresponding value is the list of annotations (strings) that it implements.
3.4.2.1.5. Operation QUERY
Query for attribute values of multiple entities.
Request body (map)A map containing the key attributeNames with value a list of (string) attribute names to return. If the list or the map is empty or the body is missing all attributes are returned.
Request properties:
- count (integer)
- If set, specifies the number of entries from the result set to return. If not set return all from offset
- entityType (string)
- If set, restrict query results to entities that extend (directly or indirectly) this type
- identity (string)
- Set to the value self
- offset (integer)
- If set, specifies the number of the first element of the result set to be returned.
Response body (map)A map with two entries. attributeNames is a list of the attribute names returned. results is a list of lists each containing the attribute values for a single entity in the same order as the names in the attributeNames entry. If an attribute name is not applicable for an entity then the corresponding value is null
Response properties:
- count (integer)
- Number of results returned
- identity (string)
- Set to the value self
3.4.2.1.6. Operation GET-MGMT-NODES
Get the addresses of all management nodes known to this router
Request properties:
- identity (string)
- Set to the value self
Response body (list)A list of addresses (strings) of management nodes known to this management node.
3.4.2.2. management
Qpid dispatch router extensions to the standard org.amqp.management interface.
Operations allowed: GET-SCHEMA, GET-JSON-SCHEMA, GET-LOG, PROFILE, QUERY, GET-TYPES, GET-ANNOTATIONS, GET-OPERATIONS, GET-ATTRIBUTES, GET-MGMT-NODES, READ
3.4.2.2.1. Operation GET-SCHEMA-JSON
Get the qdrouterd schema for this router in JSON format
Request properties:
- indent (integer)
- Number of spaces to indent the formatted result. If not specified, the result is in minimal format, no unnecessary spaces or newlines.
- identity (string)
- Set to the value self
Response body (string)The qdrouter schema as a JSON string.
3.4.2.2.2. Operation GET-LOG
Get recent log entries from the router.
Request properties:
- limit (integer)
- Maximum number of log entries to get.
- identity (string)
- Set to the value self
Response body (string)A list of log entries where each entry is a list of: module name(string), level name(string), message text(string), file name(string or None), line number(integer or None) , timestamp(integer)
3.4.2.2.3. Operation GET-SCHEMA
Get the qdrouterd schema for this router in AMQP map format
Request properties:
- identity (string)
- Set to the value self
Response body (map)The qdrouter schema as a map.
3.4.2.3. router.link
Link to another AMQP endpoint: router node, client or other AMQP process.
Operations allowed: READ
linkName (string)
linkType (One of [‘endpoint’, ‘waypoint’, ‘inter-router’, ‘inter-area’])
linkDir (One of [‘in’, ‘out’])
owningAddr (string)
eventFifoDepth (integer)
msgFifoDepth (integer)
remoteContainer (string)
3.4.2.4. router.address
AMQP address managed by the router.
Operations allowed: READ
inProcess (boolean)
subscriberCount (integer)
remoteCount (integer)
deliveriesIngress (integer)
deliveriesEgress (integer)
deliveriesTransit (integer)
deliveriesToContainer (integer)
deliveriesFromContainer (integer)
- key (string)
- Internal unique (to this router) key to identify the address
3.4.2.5. router.node
Remote router node connected to this router.
Operations allowed: READ
- routerId (string)
- Remote node identifier.
- instance (integer)
- Remote node boot number.
- linkState (list)
- List of remote node’s neighbours.
- nextHop (string)
- Neighbour ID of next hop to remote node from here.
- validOrigins (list)
- List of valid origin nodes for messages arriving via the remote node, used for duplicate elimination in redundant networks.
- address (string)
- Address of the remote node
- routerLink (entityId)
- Local link to remote node
3.4.2.6. connection
Connections to the router’s container.
Operations allowed: READ
- container (string)
- The container for this connection
state (One of [‘connecting’, ‘opening’, ‘operational’, ‘failed’, ‘user’])
- host (string)
- IP address and port number in the form addr:port.
- dir (One of [‘in’, ‘out’])
- Direction of connection establishment in or out of the router.
role (string)
- isAuthenticated (boolean)
- Indicates whether the identity of the connection’s user is authentic.
- isEncrypted (boolean)
- Indicates whether the connection content is encrypted.
- sasl (string)
- SASL mechanism in effect for authentication.
- user (string)
- Identity of the authenticated user.
- ssl (boolean)
- True iff SSL/TLS is in effect for this connection.
- sslProto (string)
- SSL protocol name
- sslCipher (string)
- SSL cipher name
- sslSsf (integer)
- SSL strength factor in effect
- properties (map)
- Connection properties supplied by the peer.
3.4.2.7. allocator
Memory allocation pool.
Operations allowed: READ
typeName (string)
typeSize (integer)
transferBatchSize (integer)
localFreeListMax (integer)
globalFreeListMax (integer)
totalAllocFromHeap (integer)
totalFreeToHeap (integer)
heldByThreads (integer)
batchesRebalancedToThreads (integer)
batchesRebalancedToGlobal (integer)