コード例 #1
0
ファイル: schema_doc.py プロジェクト: apache/qpid-dispatch
 def request_response(what):
     message = getattr(op, what)
     if message:
         if message.body:
             self.para(".%s body%s\n\n%s" % (
                 what.capitalize(), self.attribute_qualifiers(message.body),
                 message.body.description))
         if message.properties:
             self.para(".%s properties" % (what.capitalize()))
             for prop in dict_itervalues(message.properties):
                 self.attribute_type(prop)
コード例 #2
0
ファイル: schema_doc.py プロジェクト: sahu307/qpid-dispatch
 def request_response(what):
     message = getattr(op, what)
     if message:
         if message.body:
             self.para(".%s body%s\n\n%s" % (
                 what.capitalize(), self.attribute_qualifiers(message.body),
                 message.body.description))
         if message.properties:
             self.para(".%s properties" % (what.capitalize()))
             for prop in dict_itervalues(message.properties):
                 self.attribute_type(prop)
コード例 #3
0
ファイル: config.py プロジェクト: apache/qpid-dispatch
 def __init__(self, filename=None, schema=QdSchema(), raw_json=False):
     self.schema = schema
     self.config_types = [et for et in dict_itervalues(schema.entity_types)
                          if schema.is_configuration(et)]
     if filename:
         try:
             self.load(filename, raw_json)
         except Exception as e:
             raise Exception("Cannot load configuration file %s: %s"
                             % (filename, e))
     else:
         self.entities = []
コード例 #4
0
ファイル: config.py プロジェクト: seravat/qpid-dispatch
 def __init__(self, filename=None, schema=QdSchema(), raw_json=False):
     self.schema = schema
     self.config_types = [
         et for et in dict_itervalues(schema.entity_types)
         if schema.is_configuration(et)
     ]
     if filename:
         try:
             self.load(filename, raw_json)
         except Exception as e:
             raise Exception("Cannot load configuration file %s: %s" %
                             (filename, e))
     else:
         self.entities = []
コード例 #5
0
ファイル: schema_doc.py プロジェクト: sahu307/qpid-dispatch
 def operation_defs(self, entity_type):
     for op in dict_itervalues(entity_type.operation_defs):
         self.operation_def(op, entity_type)
コード例 #6
0
    def man_page(self):
        self.writeln(r"""
qdrouterd.conf(5)
=================
:doctype: manpage

NAME
----
qdrouterd.conf - configuration file for the dispatch router.

SYNOPSIS
--------
Provides the initial configuration when 'qdrouterd(8)' starts. The configuration
of a running router can be modified using 'qdmanage(8)'.


DESCRIPTION
-----------

The configuration file is made up of sections with this syntax:

----
sectionName {
    attributeName: attributeValue
    attributeName: attributeValue
    ...
}
----

For example you can define a router using the 'router' section

----
router {
    mode: standalone
    id: Router.A
    ...
}
----

or define a listener using the 'listener' section

----
listener {
    host: 0.0.0.0
    port: 20102
    saslMechanisms: ANONYMOUS
    ...
}
----

or define a connector using the 'connector' section

----
connector {
    role: inter-router
    host: 0.0.0.0
    port: 20003
    saslMechanisms: ANONYMOUS
    ...
}
----

An 'sslProfile' section with SSL credentials can be included in multiple 'listener' or 'connector' entities. Here's an example, note
how the 'sslProfile' attribute of 'listener' sections references the 'name'
attribute of 'sslProfile' sections.

----
sslProfile {
    name: my-ssl
    caCertFile: ca-certificate-1.pem
    certFile: server-certificate-1.pem
    privateKeyFile: server-private-key.pem
}

listener {
    sslProfile: my-ssl
    host: 0.0.0.0
    port: 20102
    saslMechanisms: ANONYMOUS
}
----
""")

        with self.section("Configuration Sections"):

            config = self.schema.entity_type("configurationEntity")
            for entity_type in dict_itervalues(self.schema.entity_types):
                if entity_type.short_name in TYPE_FILTER:
                    continue
                if config in entity_type.all_bases:
                    with self.section(entity_type.short_name):
                        if entity_type.description:
                            self.para(entity_type.description)
                        self.attribute_types(entity_type)

        self.writeln("""
SEE ALSO
--------

*qdrouterd(8)*, *qdmanage(8)*

http://qpid.apache.org/components/dispatch-router
""")
コード例 #7
0
    def man_page(self):
        self.writeln(r"""
qdrouterd.conf(5)
=================
:doctype: manpage

NAME
----
qdrouterd.conf - configuration file for the dispatch router.

SYNOPSIS
--------
Provides the initial configuration when 'qdrouterd(8)' starts. The configuration
of a running router can be modified using 'qdmanage(8)'.


DESCRIPTION
-----------

The configuration file is made up of sections with this syntax:

----
sectionName {
    attributeName: attributeValue
    attributeName: attributeValue
    ...
}
----

For example you can define a router using the 'router' section

----
router {
    mode: standalone
    id: Router.A
    ...
}
----

or define a listener using the 'listener' section

----
listener {
    host: 0.0.0.0
    port: 20102
    saslMechanisms: ANONYMOUS
    ...
}
----

or define a connector using the 'connector' section

----
connector {
    role: inter-router
    host: 0.0.0.0
    port: 20003
    saslMechanisms: ANONYMOUS
    ...
}
----

An 'sslProfile' section with SSL credentials can be included in multiple 'listener' or 'connector' entities. Here's an example, note
how the 'sslProfile' attribute of 'listener' sections references the 'name'
attribute of 'sslProfile' sections.

----
sslProfile {
    name: my-ssl
    caCertFile: ca-certificate-1.pem
    certFile: server-certificate-1.pem
    privateKeyFile: server-private-key.pem
}

listener {
    sslProfile: my-ssl
    host: 0.0.0.0
    port: 20102
    saslMechanisms: ANONYMOUS
}
----
""")

        with self.section("Configuration Sections"):

            config = self.schema.entity_type("configurationEntity")
            for entity_type in dict_itervalues(self.schema.entity_types):
                if entity_type.short_name in TYPE_FILTER:
                    continue
                if config in entity_type.all_bases:
                    with self.section(entity_type.short_name):
                        if entity_type.description:
                            self.para(entity_type.description)
                        self.attribute_types(entity_type)

        self.writeln("""
SEE ALSO
--------

*qdrouterd(8)*, *qdmanage(8)*

http://qpid.apache.org/components/dispatch-router
""")
コード例 #8
0
ファイル: schema_doc.py プロジェクト: apache/qpid-dispatch
 def operation_defs(self, entity_type):
     for op in dict_itervalues(entity_type.operation_defs):
         self.operation_def(op, entity_type)