You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Alan Conway <ac...@redhat.com> on 2014/05/30 18:52:43 UTC
Review request: Introduce Json/AMQP friendly schema and config file
parsing.
This is a first step towards DISPATCH-56: Implement
Create/Read/Update/Delete operations in the agent
I have comitted the new code but it is not yet hooked into the rest of
dispatch.
To quote Mark Twain: I would have made it shorter but I didn't have
time.
------------------------------------------------------------------------
r1598667 | aconway | 2014-05-30 12:48:56 -0400 (Fri, 30 May 2014) | 25
lines
DISPATCH-56: Introduce Json/AMQP friendly schema and config file
parsing.
Added qpid_dispatch_internal.management package with the following:
- schema.py: manipulate general purpose json schema for management
entities.
- Schema.validate(): verifies attribute values, adds default values, and
enforces
required/unique/singleton constraints in the schema.
- entity.py: represent management entity instances with attribute values
- qdrouter.json: json schema for the dispatch router.
- qdrouter.py: parse qdrouterd.conf into a Schema.
These classes are intended to replace config.schema and config.parser,
they are more general and more JSON/AMQP friendly.
They are not yet wired into the C router.
The config file parser introduces some minor change to config file
format to
accomodate the AMQP requirement that all entities have name and identity
attributes:
- all sections (entities) can have name and identity attributes as per
AMQP spec.
- sections without explicit name/identity attributes are given defaults.
- section router: "router-id" replaced with "identity"
- section log: renamed "logging"
- section log: "module" replaced by "name"
- section listener/connector: "label" replaced by "name"
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org