Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License.
|
| 2 | .. http://creativecommons.org/licenses/by/4.0
|
| 3 |
|
| 4 | .. _dmaap-connection-objects:
|
| 5 |
|
| 6 | DMaaP connection objects
|
| 7 | ========================
|
| 8 |
|
VENKATESH KUMAR | 6455974 | 2020-04-29 18:53:53 -0400 | [diff] [blame] | 9 | DMaaP Connection objects are generated by the DCAE Platform at runtime
|
| 10 | and passed to the component in its application_configuration
|
Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame] | 11 |
|
| 12 | .. _dmaap-message-router:
|
| 13 |
|
| 14 | Message Router
|
| 15 | --------------
|
| 16 |
|
| 17 | Publishers and subscribers have the same generated
|
| 18 | ``Dmaap Connection Object`` structure. Here’s an example for any given
|
| 19 | config-key: (This is what will be in application_configuration)
|
| 20 |
|
| 21 | .. code:: json
|
| 22 |
|
| 23 | {
|
| 24 | "type": "message_router",
|
| 25 | "aaf_username": "some-user",
|
| 26 | "aaf_password": "some-password",
|
| 27 | "dmaap_info": {
|
| 28 | "client_role": "com.dcae.member",
|
| 29 | "client_id": "1500462518108",
|
| 30 | "location": "mtc00",
|
| 31 | "topic_url": "https://we-are-message-router.us:3905/events/some-topic"
|
| 32 | }
|
| 33 | }
|
| 34 |
|
| 35 | At the top-level:
|
| 36 |
|
| 37 | +--------------------------------+---------+---------------------------+
|
| 38 | | Property Name | Type | Description |
|
| 39 | +================================+=========+===========================+
|
| 40 | | type | string | *Required as input*. Must |
|
| 41 | | | | be ``message_router`` for |
|
| 42 | | | | message router topics |
|
| 43 | +--------------------------------+---------+---------------------------+
|
| 44 | | aaf_username | string | AAF username message |
|
| 45 | | | | router clients use to |
|
| 46 | | | | authenticate with secure |
|
| 47 | | | | topics |
|
| 48 | +--------------------------------+---------+---------------------------+
|
| 49 | | aaf_password | string | AAF password message |
|
| 50 | | | | router clients use to |
|
| 51 | | | | authenticate with secure |
|
| 52 | | | | topics |
|
| 53 | +--------------------------------+---------+---------------------------+
|
| 54 | | dmaap_info | JSON | *Required as input*. |
|
| 55 | | | object | Contains the topic |
|
| 56 | | | | connection details |
|
| 57 | +--------------------------------+---------+---------------------------+
|
| 58 |
|
| 59 | The ``dmaap_info`` object contains:
|
| 60 |
|
| 61 | +--------------------------------+---------+---------------------------+
|
| 62 | | Property Name | Type | Description |
|
| 63 | +================================+=========+===========================+
|
| 64 | | client_role | string | AAF client role that’s |
|
| 65 | | | | requesting publish or |
|
| 66 | | | | subscribe access to the |
|
| 67 | | | | topic |
|
| 68 | +--------------------------------+---------+---------------------------+
|
| 69 | | client_id | string | Client id for given AAF |
|
| 70 | | | | client |
|
| 71 | +--------------------------------+---------+---------------------------+
|
| 72 | | location | string | DCAE location for the |
|
| 73 | | | | publisher or subscriber, |
|
| 74 | | | | used to set up routing |
|
| 75 | +--------------------------------+---------+---------------------------+
|
| 76 | | topic_url | string | *Required as input*. URL |
|
| 77 | | | | for accessing the topic |
|
| 78 | | | | to publish or receive |
|
| 79 | | | | events |
|
| 80 | +--------------------------------+---------+---------------------------+
|
| 81 |
|
Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame] | 82 |
|
Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame] | 83 |
|
| 84 | .. _dmaap-data-router:
|
| 85 |
|
| 86 | Data Router
|
| 87 | -----------
|
| 88 |
|
| 89 | Publisher
|
| 90 | ~~~~~~~~~
|
| 91 |
|
| 92 | Here’s an example of what the generated ``Dmaap Connection Object`` for
|
| 93 | Data Router Publisher looks like: (This is what will be in
|
| 94 | application_configuration)
|
| 95 |
|
| 96 | .. code:: json
|
| 97 |
|
| 98 | {
|
| 99 | "type": "data_router",
|
| 100 | "dmaap_info": {
|
| 101 | "location": "mtc00",
|
| 102 | "publish_url": "https://we-are-data-router.us/feed/xyz",
|
| 103 | "log_url": "https://we-are-data-router.us/feed/xyz/logs",
|
| 104 | "username": "some-user",
|
| 105 | "password": "some-password",
|
| 106 | "publisher_id": "123456"
|
| 107 | }
|
| 108 | }
|
| 109 |
|
| 110 | At the top-level:
|
| 111 |
|
| 112 | +--------------------------------+---------+---------------------------+
|
| 113 | | Property Name | Type | Description |
|
| 114 | +================================+=========+===========================+
|
| 115 | | type | string | *Required as input*. Must |
|
| 116 | | | | be ``data_router`` for |
|
| 117 | | | | data router feeds |
|
| 118 | +--------------------------------+---------+---------------------------+
|
| 119 | | dmaap_info | JSON | *Required as input*. |
|
| 120 | | | object | Contains the feed |
|
| 121 | | | | connection details |
|
| 122 | +--------------------------------+---------+---------------------------+
|
| 123 |
|
| 124 | The ``dmaap_info`` object contains:
|
| 125 |
|
| 126 | +--------------------------------+---------+---------------------------+
|
| 127 | | Property Name | Type | Description |
|
| 128 | +================================+=========+===========================+
|
| 129 | | location | string | DCAE location for the |
|
| 130 | | | | publisher, used to set up |
|
| 131 | | | | routing |
|
| 132 | +--------------------------------+---------+---------------------------+
|
| 133 | | publish_url | string | *Required as input*. URL |
|
| 134 | | | | to which the publisher |
|
| 135 | | | | makes Data Router publish |
|
| 136 | | | | requests |
|
| 137 | +--------------------------------+---------+---------------------------+
|
| 138 | | log_url | string | URL from which log data |
|
| 139 | | | | for the feed can be |
|
| 140 | | | | obtained |
|
| 141 | +--------------------------------+---------+---------------------------+
|
| 142 | | username | string | Username the publisher |
|
| 143 | | | | uses to authenticate to |
|
| 144 | | | | Data Router |
|
| 145 | +--------------------------------+---------+---------------------------+
|
| 146 | | password | string | Password the publisher |
|
| 147 | | | | uses to authenticate to |
|
| 148 | | | | Data Router |
|
| 149 | +--------------------------------+---------+---------------------------+
|
| 150 | | publisher_id | string | Publisher id in Data |
|
| 151 | | | | Router |
|
| 152 | +--------------------------------+---------+---------------------------+
|
| 153 |
|
Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame] | 154 |
|
| 155 | Subscriber
|
| 156 | ~~~~~~~~~~
|
| 157 |
|
| 158 | Here’s an example of what the generated ``Dmaap Connection Object`` for
|
| 159 | a Data Router Subscriber looks like: (This is what will be passed in
|
| 160 | application_configuration)
|
| 161 |
|
| 162 | .. code:: json
|
| 163 |
|
| 164 | {
|
| 165 | "type": "data_router",
|
| 166 | "dmaap_info": {
|
| 167 | "location": "mtc00",
|
| 168 | "delivery_url": "https://my-subscriber-app.dcae:8080/target-path",
|
| 169 | "username": "some-user",
|
| 170 | "password": "some-password",
|
| 171 | "subscriber_id": "789012"
|
| 172 | }
|
| 173 | }
|
| 174 |
|
| 175 | At the top-level:
|
| 176 |
|
| 177 | +--------------------------------+---------+---------------------------+
|
| 178 | | Property Name | Type | Description |
|
| 179 | +================================+=========+===========================+
|
| 180 | | type | string | *Required as input*. Must |
|
| 181 | | | | be ``data_router`` for |
|
| 182 | | | | data router feeds |
|
| 183 | +--------------------------------+---------+---------------------------+
|
| 184 | | dmaap_info | JSON | *Required as input*. |
|
| 185 | | | object | Contains the feed |
|
| 186 | | | | connection details |
|
| 187 | +--------------------------------+---------+---------------------------+
|
| 188 |
|
| 189 | The ``dmaap_info`` object contains:
|
| 190 |
|
| 191 | +--------------------------------+---------+---------------------------+
|
| 192 | | Property Name | Type | Description |
|
| 193 | +================================+=========+===========================+
|
| 194 | | location | string | DCAE location for the |
|
| 195 | | | | subscriber, used to set |
|
| 196 | | | | up routing |
|
| 197 | +--------------------------------+---------+---------------------------+
|
| 198 | | delivery_url | string | URL to which the Data |
|
| 199 | | | | Router should deliver |
|
| 200 | | | | files |
|
| 201 | +--------------------------------+---------+---------------------------+
|
| 202 | | username | string | Username Data Router uses |
|
| 203 | | | | to authenticate to the |
|
| 204 | | | | subscriber when |
|
| 205 | | | | delivering files |
|
| 206 | +--------------------------------+---------+---------------------------+
|
| 207 | | password | string | Password Data Router uses |
|
| 208 | | | | to authenticate to the |
|
| 209 | | | | subscriber when |
|
| 210 | | | | delivering files |
|
| 211 | +--------------------------------+---------+---------------------------+
|
| 212 | | subscriber_id | string | Subscriber id in Data |
|
| 213 | | | | Router |
|
| 214 | +--------------------------------+---------+---------------------------+
|
| 215 |
|
Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame] | 216 |
|
Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame] | 217 |
|
Ralph Knag | d2cd31b | 2018-04-02 16:27:46 -0400 | [diff] [blame] | 218 |
|